Add tasks for all the new languages
This commit is contained in:
parent
9dc3c2bb62
commit
bba7bfd280
13208 changed files with 134745 additions and 0 deletions
3
Task/Hello-world-Newbie/Axe/hello-world-newbie.axe
Normal file
3
Task/Hello-world-Newbie/Axe/hello-world-newbie.axe
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
PROGRAM:MYPROGRM
|
||||
:.HELLO
|
||||
:Disp "HELLO, WORLD!",i
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
;; This is a comment
|
||||
;; Type in the following -uncommented- line in the input text area, and press [RETURN]
|
||||
;; or click onto the "Eval" button
|
||||
;; Auto-completion : You will notice that after "(di" , EchoLisp proposes "(display" :
|
||||
;; Press the [TAB] key to accept
|
||||
|
||||
(display "Hello, World" "color:blue")
|
||||
|
|
@ -0,0 +1,21 @@
|
|||
;; usage give the syntax(es) for a function call
|
||||
;; "usage" abbreviation is "us"
|
||||
(us display) → 📗 (display object css-style-string) (display object)
|
||||
|
||||
;; help opens the reference manual at the right place, in a browser tab
|
||||
;; "help" abbreviation is "?"
|
||||
(? display) → [http://www.echolalie.org/echolisp/help.html#display]
|
||||
|
||||
;; searching
|
||||
;; (apropos name) displays the list of functions about 'name'
|
||||
;; "apropos" abbreviation is "ap"
|
||||
;; 'special' forms (you will learn that later) are flagged with 👀
|
||||
;; 1:2 is the number or arguments. min 1, max 2
|
||||
(ap list) → #(👀 for*/list:2:n 👀 for/list:2:n alist?:1 circular-list:1:n list->stack:2
|
||||
list->vector:1 list-index:2 list-ref:2 list-sort:2 list-tail:2 list:1:n list?:1
|
||||
maplist:2 set-plist!:2 stack->list:1 stream->list:1:2 string->list:1 sublist:3
|
||||
symbol-plist:1 vector->list:1 )
|
||||
|
||||
;; Or you can press the "Help" button.
|
||||
;; Lost in the reference manual ?
|
||||
;; Just type-in a letter, and you will go to the alphabetical index.
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
include "ConsoleWindow
|
||||
|
||||
print"Goodbye, World!"
|
||||
3
Task/Hello-world-Newbie/Monte/hello-world-newbie.monte
Normal file
3
Task/Hello-world-Newbie/Monte/hello-world-newbie.monte
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
def sayHello():
|
||||
traceln("Hello World")
|
||||
sayHello()
|
||||
|
|
@ -0,0 +1 @@
|
|||
"Hello world!" println
|
||||
|
|
@ -0,0 +1 @@
|
|||
oforth hello.of
|
||||
|
|
@ -0,0 +1 @@
|
|||
oforth --P"\"Hello world!\n\" println"
|
||||
1
Task/Hello-world-Newbie/Pare/hello-world-newbie-1.pare
Normal file
1
Task/Hello-world-Newbie/Pare/hello-world-newbie-1.pare
Normal file
|
|
@ -0,0 +1 @@
|
|||
(print "hello world")
|
||||
1
Task/Hello-world-Newbie/Pare/hello-world-newbie-2.pare
Normal file
1
Task/Hello-world-Newbie/Pare/hello-world-newbie-2.pare
Normal file
|
|
@ -0,0 +1 @@
|
|||
perl pare hello.l
|
||||
6
Task/Hello-world-Newbie/Ra/hello-world-newbie.ra
Normal file
6
Task/Hello-world-Newbie/Ra/hello-world-newbie.ra
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
class HelloWorld
|
||||
**Prints "Goodbye, World!"**
|
||||
|
||||
on start
|
||||
|
||||
print "Goodbye, World!"
|
||||
4
Task/Hello-world-Newbie/Ring/hello-world-newbie.ring
Normal file
4
Task/Hello-world-Newbie/Ring/hello-world-newbie.ring
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
sayHello()
|
||||
|
||||
func sayHello
|
||||
see "Hello World" + nl
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
* "Hello world!"
|
||||
end
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
PROGRAM:HELLO
|
||||
:AsmPrgm
|
||||
:219F9D
|
||||
:EF0A45
|
||||
:EF2E45
|
||||
:C9
|
||||
:48656C6C6F2C20576F726C642100
|
||||
3
Task/Hello-world-Newbie/jq/hello-world-newbie-1.jq
Normal file
3
Task/Hello-world-Newbie/jq/hello-world-newbie-1.jq
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
$ echo '"Hello world!"' | jq .
|
||||
|
||||
C:\ echo "Hello world!" | jq .
|
||||
1
Task/Hello-world-Newbie/jq/hello-world-newbie-2.jq
Normal file
1
Task/Hello-world-Newbie/jq/hello-world-newbie-2.jq
Normal file
|
|
@ -0,0 +1 @@
|
|||
curl -Ss http://hello.world.com | jq .
|
||||
5
Task/Hello-world-Newbie/jq/hello-world-newbie-3.jq
Normal file
5
Task/Hello-world-Newbie/jq/hello-world-newbie-3.jq
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
$ echo '"Hello world!"' > hello.txt
|
||||
$ jq . hello.txt
|
||||
|
||||
C:\ echo "Hello world!" > hello.txt
|
||||
C:\ jq . hello.txt
|
||||
3
Task/Hello-world-Newbie/jq/hello-world-newbie-4.jq
Normal file
3
Task/Hello-world-Newbie/jq/hello-world-newbie-4.jq
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
$ jq -n '"Hello world!"'
|
||||
|
||||
C:\ jq -n "Hello world!
|
||||
1
Task/Hello-world-Newbie/jq/hello-world-newbie-5.jq
Normal file
1
Task/Hello-world-Newbie/jq/hello-world-newbie-5.jq
Normal file
|
|
@ -0,0 +1 @@
|
|||
jq -n -f hello.txt .
|
||||
7
Task/Hello-world-Newbie/jq/hello-world-newbie-6.jq
Normal file
7
Task/Hello-world-Newbie/jq/hello-world-newbie-6.jq
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
def binary_digits:
|
||||
if . == 0 then 0
|
||||
else [recurse( if . == 0 then empty else ./2 | floor end ) % 2 | tostring]
|
||||
| reverse
|
||||
| .[1:] # remove the leading 0
|
||||
| join("")
|
||||
end ;
|
||||
Loading…
Add table
Add a link
Reference in a new issue