GithubHelp home page GithubHelp logo

larshp / abap-advent-2020-template Goto Github PK

View Code? Open in Web Editor NEW
9.0 9.0 4.0 131 KB

Advent of Code 2020 - ABAP Template

Home Page: https://blogs.sap.com/2020/11/15/getting-ready-advent-of-code-2020/

License: The Unlicense

ABAP 85.93% JavaScript 14.07%

abap-advent-2020-template's People

Contributors

dependabot-preview[bot] avatar dependabot[bot] avatar gregorwolf avatar joltdx avatar larshp avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

abap-advent-2020-template's Issues

Rename to /abc/ namespace

Hey!
I wanted to rename into /abc/-namespace.
my renaming section looks like

"rename": { "output": "renamed", "skip": [], "patterns": [{"type": "CLAS|INTF", "oldName": "z(cl|if).", "newName": "/abc/$1_"}] },

which didn't work.

also this regex did not work:

"patterns": [{"type": "CLAS|INTF", "oldName": "z(cl|if)(.*)", "newName": "/abc/$1$2"}]

Renaming itself with your settings worked.

npm run rename ended with
abaplint: 213 issue(s) found, 47 file(s) analyzed
Renames NOT applied, issues found

What am I doing wrong?

thanks for any hint.

Question on how to use Methods

Hey,

I have following problem.

image

Coding:

 PUBLIC SECTION.

    INTERFACES zif_advent2020_schmelto .

    METHODS part1
      IMPORTING
        !input        TYPE string
      RETURNING
        VALUE(output) TYPE string .
METHOD part1.

"...

  SPLIT input AT |\r\n| INTO TABLE DATA(strings).

  LOOP AT strings INTO DATA(string1).
    LOOP AT strings INTO DATA(string2).
      IF string1 + string2 = 2020.
        DATA(result) = CONV i( string1 * string2 ).
        output = condense( result ).
      ENDIF.
    ENDLOOP.
  ENDLOOP.

ENDMETHOD.

" ...


METHOD zif_advent2020_schmelto~solve.

  output = part1( input ).

ENDMETHOD.

with the method call it says in the output <pending>

if I add the coding in the solve method it will provide me the right answer.

image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.