Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
2
Task/Hello-world-Newbie/00-META.yaml
Normal file
2
Task/Hello-world-Newbie/00-META.yaml
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
---
|
||||
from: http://rosettacode.org/wiki/Hello_world/Newbie
|
||||
17
Task/Hello-world-Newbie/00-TASK.txt
Normal file
17
Task/Hello-world-Newbie/00-TASK.txt
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
;Task:
|
||||
Guide a new user of a language through the steps necessary
|
||||
to install the programming language and selection of a [[Editor|text editor]] if needed,
|
||||
to run the languages' example in the [[Hello world/Text]] task.
|
||||
* Assume the language-newbie is a programmer in another language.
|
||||
* Assume the language-newbie is competent in installing software for the platform.
|
||||
* Assume the language-newbie can use one simple text editor for the OS/platform, (but that may not necessarily be a particular one if the installation needs a particular editor).
|
||||
* Refer to, (and link to), already existing documentation as much as possible (but provide a summary here).
|
||||
* Remember to state where to view the output.
|
||||
* If particular IDE's or editors are required that are not standard, then point to/explain their installation too.
|
||||
|
||||
|
||||
;Note<nowiki>:</nowiki>
|
||||
* If it is more natural for a language to give output via a GUI or to a file etc, then use that method of output rather than as text to a terminal/command-line, but remember to give instructions on how to view the output generated.
|
||||
* You may use sub-headings if giving instructions for multiple platforms.
|
||||
<br><br>
|
||||
|
||||
|
|
@ -0,0 +1,13 @@
|
|||
; Hello World!
|
||||
; Prints Hello, World! to stdout
|
||||
BDOS equ 5 ; BDOS call entry
|
||||
PRINT equ 9 ; BDOS string stdout subroutine
|
||||
|
||||
org 100h ; (mostly) All CP/M programs start at 100h
|
||||
|
||||
start lxi d,message ; load message pointer to DE register pair
|
||||
mvi c,PRINT ; set up BDOS call to do string print
|
||||
call BDOS ; call BDOS routine
|
||||
ret ; pop back out into CP/M
|
||||
|
||||
message db 'Hello, World!','$' ; message string, all CP/M strings have an EOL of '$'
|
||||
|
|
@ -0,0 +1,18 @@
|
|||
/* ARM assembly Raspberry PI */
|
||||
/* program helloword64.s */
|
||||
.data
|
||||
szMessage: .asciz "Hello world. \n"
|
||||
.equ LGMESSAGE, . - szMessage // compute length of message
|
||||
.text
|
||||
.global main
|
||||
main:
|
||||
mov x0,1 // output std linux
|
||||
ldr x1,qAdrMessage // adresse of message
|
||||
mov x2,LGMESSAGE // sizeof(message)
|
||||
mov x8,64 // select system call 'write'
|
||||
svc 0 // perform the system call
|
||||
|
||||
mov x0, 0 // return code
|
||||
mov x8,93 // select system call 'exit'
|
||||
svc 0 // perform the system call
|
||||
qAdrMessage: .quad szMessage
|
||||
3
Task/Hello-world-Newbie/ALGOL-68/hello-world-newbie.alg
Normal file
3
Task/Hello-world-Newbie/ALGOL-68/hello-world-newbie.alg
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
main: (
|
||||
printf($"Goodbye, World!"l$)
|
||||
)
|
||||
18
Task/Hello-world-Newbie/ARM-Assembly/hello-world-newbie.arm
Normal file
18
Task/Hello-world-Newbie/ARM-Assembly/hello-world-newbie.arm
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
/* ARM assembly Raspberry PI */
|
||||
/* program helloword.s */
|
||||
.data
|
||||
szMessage: .asciz "Hello world. \n"
|
||||
.equ LGMESSAGE, . - szMessage @ compute length of message
|
||||
.text
|
||||
.global main
|
||||
main:
|
||||
mov r0, #1 @ output std linux
|
||||
ldr r1, iAdrMessage @ adresse of message
|
||||
mov r2, #LGMESSAGE @ sizeof(message)
|
||||
mov r7, #4 @ select system call 'write'
|
||||
swi #0 @ perform the system call
|
||||
|
||||
mov r0, #0 @ return code
|
||||
mov r7, #1 @ request to exit program
|
||||
swi 0
|
||||
iAdrMessage: .int szMessage
|
||||
3
Task/Hello-world-Newbie/AWK/hello-world-newbie.awk
Normal file
3
Task/Hello-world-Newbie/AWK/hello-world-newbie.awk
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
BEGIN {
|
||||
print "Hello" 3-1 "U", sprintf("%c",33)
|
||||
}
|
||||
6
Task/Hello-world-Newbie/Ada/hello-world-newbie-1.ada
Normal file
6
Task/Hello-world-Newbie/Ada/hello-world-newbie-1.ada
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
procedure Main is
|
||||
|
||||
begin
|
||||
-- Insert code here.
|
||||
null;
|
||||
end Main;
|
||||
5
Task/Hello-world-Newbie/Ada/hello-world-newbie-2.ada
Normal file
5
Task/Hello-world-Newbie/Ada/hello-world-newbie-2.ada
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
with Ada.Text_IO; use Ada.Text_IO;
|
||||
procedure Main is
|
||||
begin
|
||||
Put_Line("Hello World!");
|
||||
end Main;
|
||||
1
Task/Hello-world-Newbie/Agda/hello-world-newbie-1.agda
Normal file
1
Task/Hello-world-Newbie/Agda/hello-world-newbie-1.agda
Normal file
|
|
@ -0,0 +1 @@
|
|||
sudo apt install cabal-install
|
||||
1
Task/Hello-world-Newbie/Agda/hello-world-newbie-2.agda
Normal file
1
Task/Hello-world-Newbie/Agda/hello-world-newbie-2.agda
Normal file
|
|
@ -0,0 +1 @@
|
|||
cabal update
|
||||
1
Task/Hello-world-Newbie/Agda/hello-world-newbie-3.agda
Normal file
1
Task/Hello-world-Newbie/Agda/hello-world-newbie-3.agda
Normal file
|
|
@ -0,0 +1 @@
|
|||
cabal install Agda
|
||||
12
Task/Hello-world-Newbie/Agda/hello-world-newbie-4.agda
Normal file
12
Task/Hello-world-Newbie/Agda/hello-world-newbie-4.agda
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
module HelloWorld where
|
||||
|
||||
open import Agda.Builtin.IO using (IO)
|
||||
open import Agda.Builtin.Unit renaming (⊤ to Unit)
|
||||
open import Agda.Builtin.String using (String)
|
||||
|
||||
postulate putStrLn : String -> IO Unit
|
||||
{-# FOREIGN GHC import qualified Data.Text as T #-}
|
||||
{-# COMPILE GHC putStrLn = putStrLn . T.unpack #-}
|
||||
|
||||
main : IO Unit
|
||||
main = putStrLn "Hello world!"
|
||||
1
Task/Hello-world-Newbie/Agda/hello-world-newbie-5.agda
Normal file
1
Task/Hello-world-Newbie/Agda/hello-world-newbie-5.agda
Normal file
|
|
@ -0,0 +1 @@
|
|||
agda --compile HelloWorld.agda
|
||||
1
Task/Hello-world-Newbie/Agda/hello-world-newbie-6.agda
Normal file
1
Task/Hello-world-Newbie/Agda/hello-world-newbie-6.agda
Normal file
|
|
@ -0,0 +1 @@
|
|||
./HelloWorld
|
||||
1
Task/Hello-world-Newbie/Agda/hello-world-newbie-7.agda
Normal file
1
Task/Hello-world-Newbie/Agda/hello-world-newbie-7.agda
Normal file
|
|
@ -0,0 +1 @@
|
|||
sudo apt install emacs
|
||||
1
Task/Hello-world-Newbie/Agda/hello-world-newbie-8.agda
Normal file
1
Task/Hello-world-Newbie/Agda/hello-world-newbie-8.agda
Normal file
|
|
@ -0,0 +1 @@
|
|||
agda-mode setup
|
||||
1
Task/Hello-world-Newbie/Agda/hello-world-newbie-9.agda
Normal file
1
Task/Hello-world-Newbie/Agda/hello-world-newbie-9.agda
Normal file
|
|
@ -0,0 +1 @@
|
|||
agda-mode compile
|
||||
|
|
@ -0,0 +1 @@
|
|||
? "HELLO, WORLD!"
|
||||
1
Task/Hello-world-Newbie/Arturo/hello-world-newbie.arturo
Normal file
1
Task/Hello-world-Newbie/Arturo/hello-world-newbie.arturo
Normal file
|
|
@ -0,0 +1 @@
|
|||
print "Hello World!!"
|
||||
|
|
@ -0,0 +1 @@
|
|||
MsgBox, Hello World!
|
||||
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 @@
|
|||
Print "HelloWorld!"
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
clg # Clear the graphics screen
|
||||
font "Arial",10,100 # Set the font style, size, and weight respectively
|
||||
color black # Set the color...
|
||||
text 0,0,"HelloWorld!" # Display in (x,y) the text HelloWorld!
|
||||
1
Task/Hello-world-Newbie/BQN/hello-world-newbie-1.bqn
Normal file
1
Task/Hello-world-Newbie/BQN/hello-world-newbie-1.bqn
Normal file
|
|
@ -0,0 +1 @@
|
|||
rlwrap ./BQN
|
||||
1
Task/Hello-world-Newbie/BQN/hello-world-newbie-2.bqn
Normal file
1
Task/Hello-world-Newbie/BQN/hello-world-newbie-2.bqn
Normal file
|
|
@ -0,0 +1 @@
|
|||
"Hello, World!"
|
||||
1
Task/Hello-world-Newbie/Befunge/hello-world-newbie.bf
Normal file
1
Task/Hello-world-Newbie/Befunge/hello-world-newbie.bf
Normal file
|
|
@ -0,0 +1 @@
|
|||
"!dlrow olleH">:#,_@
|
||||
6
Task/Hello-world-Newbie/C++/hello-world-newbie.cpp
Normal file
6
Task/Hello-world-Newbie/C++/hello-world-newbie.cpp
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
#include <iostream>
|
||||
int main() {
|
||||
using namespace std;
|
||||
cout << "Hello, World!" << endl;
|
||||
return 0;
|
||||
}
|
||||
1
Task/Hello-world-Newbie/COBOL/hello-world-newbie-1.cobol
Normal file
1
Task/Hello-world-Newbie/COBOL/hello-world-newbie-1.cobol
Normal file
|
|
@ -0,0 +1 @@
|
|||
$ sudo apt-get install open-cobol
|
||||
7
Task/Hello-world-Newbie/COBOL/hello-world-newbie-2.cobol
Normal file
7
Task/Hello-world-Newbie/COBOL/hello-world-newbie-2.cobol
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
program-id. hello-world.
|
||||
|
||||
procedure division.
|
||||
display "Hello, World!"
|
||||
|
||||
goback
|
||||
.
|
||||
1
Task/Hello-world-Newbie/COBOL/hello-world-newbie-3.cobol
Normal file
1
Task/Hello-world-Newbie/COBOL/hello-world-newbie-3.cobol
Normal file
|
|
@ -0,0 +1 @@
|
|||
$ cobc -x -Wall -free ./hello.cob
|
||||
2
Task/Hello-world-Newbie/COBOL/hello-world-newbie-4.cobol
Normal file
2
Task/Hello-world-Newbie/COBOL/hello-world-newbie-4.cobol
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
$ ./hello
|
||||
Hello, World!
|
||||
1
Task/Hello-world-Newbie/Clojure/hello-world-newbie-1.clj
Normal file
1
Task/Hello-world-Newbie/Clojure/hello-world-newbie-1.clj
Normal file
|
|
@ -0,0 +1 @@
|
|||
$ lein new app my-hello
|
||||
3
Task/Hello-world-Newbie/Clojure/hello-world-newbie-2.clj
Normal file
3
Task/Hello-world-Newbie/Clojure/hello-world-newbie-2.clj
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
$ cd my-hello
|
||||
$ lein run
|
||||
Hello, World!
|
||||
1
Task/Hello-world-Newbie/Clojure/hello-world-newbie-3.clj
Normal file
1
Task/Hello-world-Newbie/Clojure/hello-world-newbie-3.clj
Normal file
|
|
@ -0,0 +1 @@
|
|||
$ lein repl
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
10 PRINT "HELLO, WORLD!"
|
||||
20 END
|
||||
|
|
@ -0,0 +1 @@
|
|||
(format t "Hello world!~%")
|
||||
|
|
@ -0,0 +1 @@
|
|||
(load "hello.lisp")
|
||||
1
Task/Hello-world-Newbie/Coq/hello-world-newbie-1.coq
Normal file
1
Task/Hello-world-Newbie/Coq/hello-world-newbie-1.coq
Normal file
|
|
@ -0,0 +1 @@
|
|||
sudo snap install coq-prover
|
||||
3
Task/Hello-world-Newbie/Coq/hello-world-newbie-2.coq
Normal file
3
Task/Hello-world-Newbie/Coq/hello-world-newbie-2.coq
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
Require Import Coq.Strings.String.
|
||||
|
||||
Eval compute in ("Hello world!"%string).
|
||||
6
Task/Hello-world-Newbie/D/hello-world-newbie.d
Normal file
6
Task/Hello-world-Newbie/D/hello-world-newbie.d
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
import std.stdio;
|
||||
|
||||
void main()
|
||||
{
|
||||
writeln("Hello world!");
|
||||
}
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
procedure TForm1.Button1Click(Sender: TObject);
|
||||
begin
|
||||
end;
|
||||
|
|
@ -0,0 +1 @@
|
|||
Memo1.Lines.Add('Hello World');
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
procedure TForm1.Button1Click(Sender: TObject);
|
||||
begin
|
||||
Memo1.Lines.Add('Hello World');
|
||||
end;
|
||||
1
Task/Hello-world-Newbie/EasyLang/hello-world-newbie.easy
Normal file
1
Task/Hello-world-Newbie/EasyLang/hello-world-newbie.easy
Normal file
|
|
@ -0,0 +1 @@
|
|||
print "Hello world!"
|
||||
7
Task/Hello-world-Newbie/EchoLisp/hello-world-newbie-1.l
Normal file
7
Task/Hello-world-Newbie/EchoLisp/hello-world-newbie-1.l
Normal file
|
|
@ -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")
|
||||
21
Task/Hello-world-Newbie/EchoLisp/hello-world-newbie-2.l
Normal file
21
Task/Hello-world-Newbie/EchoLisp/hello-world-newbie-2.l
Normal file
|
|
@ -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.
|
||||
10
Task/Hello-world-Newbie/Eiffel/hello-world-newbie-1.e
Normal file
10
Task/Hello-world-Newbie/Eiffel/hello-world-newbie-1.e
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
class
|
||||
APPLICATION
|
||||
create
|
||||
make
|
||||
feature
|
||||
make
|
||||
do
|
||||
print ("Hello World!")
|
||||
end
|
||||
end
|
||||
1
Task/Hello-world-Newbie/Eiffel/hello-world-newbie-2.e
Normal file
1
Task/Hello-world-Newbie/Eiffel/hello-world-newbie-2.e
Normal file
|
|
@ -0,0 +1 @@
|
|||
class APPLICATION ... end
|
||||
1
Task/Hello-world-Newbie/Eiffel/hello-world-newbie-3.e
Normal file
1
Task/Hello-world-Newbie/Eiffel/hello-world-newbie-3.e
Normal file
|
|
@ -0,0 +1 @@
|
|||
create make
|
||||
1
Task/Hello-world-Newbie/Eiffel/hello-world-newbie-4.e
Normal file
1
Task/Hello-world-Newbie/Eiffel/hello-world-newbie-4.e
Normal file
|
|
@ -0,0 +1 @@
|
|||
make do ... end
|
||||
1
Task/Hello-world-Newbie/Eiffel/hello-world-newbie-5.e
Normal file
1
Task/Hello-world-Newbie/Eiffel/hello-world-newbie-5.e
Normal file
|
|
@ -0,0 +1 @@
|
|||
print ( ... )
|
||||
1
Task/Hello-world-Newbie/Eiffel/hello-world-newbie-6.e
Normal file
1
Task/Hello-world-Newbie/Eiffel/hello-world-newbie-6.e
Normal file
|
|
@ -0,0 +1 @@
|
|||
inherit ANY
|
||||
4
Task/Hello-world-Newbie/Elena/hello-world-newbie-1.elena
Normal file
4
Task/Hello-world-Newbie/Elena/hello-world-newbie-1.elena
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
public program()
|
||||
{
|
||||
console.writeLine("Hello world")
|
||||
}
|
||||
1
Task/Hello-world-Newbie/Elena/hello-world-newbie-2.elena
Normal file
1
Task/Hello-world-Newbie/Elena/hello-world-newbie-2.elena
Normal file
|
|
@ -0,0 +1 @@
|
|||
elc program1.l
|
||||
1
Task/Hello-world-Newbie/Elena/hello-world-newbie-3.elena
Normal file
1
Task/Hello-world-Newbie/Elena/hello-world-newbie-3.elena
Normal file
|
|
@ -0,0 +1 @@
|
|||
program1
|
||||
6
Task/Hello-world-Newbie/Erlang/hello-world-newbie.erl
Normal file
6
Task/Hello-world-Newbie/Erlang/hello-world-newbie.erl
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
% Implemented by Arjun Sunel
|
||||
-module(helloworld).
|
||||
-export([main/0]).
|
||||
|
||||
main() ->
|
||||
io:fwrite("Hello world!\n").
|
||||
|
|
@ -0,0 +1 @@
|
|||
Print "HelloWorld!"
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
Cls 'Clear the graphics screen
|
||||
Screen 1 'Mode 320x200
|
||||
Locate 12,15
|
||||
Print "Hello world!"
|
||||
Sleep
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
window 1
|
||||
|
||||
print @"Hello, World!"
|
||||
|
||||
HandleEvents
|
||||
|
|
@ -0,0 +1 @@
|
|||
println 'Hello to the Groovy world'
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
String hello = 'Hello to the Groovy world'
|
||||
println hello
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
assert hello.contains('Groovy')
|
||||
assert hello.startsWith('Hello')
|
||||
1
Task/Hello-world-Newbie/Haskell/hello-world-newbie-1.hs
Normal file
1
Task/Hello-world-Newbie/Haskell/hello-world-newbie-1.hs
Normal file
|
|
@ -0,0 +1 @@
|
|||
$ sudo apt-get install ghc
|
||||
4
Task/Hello-world-Newbie/Haskell/hello-world-newbie-2.hs
Normal file
4
Task/Hello-world-Newbie/Haskell/hello-world-newbie-2.hs
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
$ touch hello.hs
|
||||
$ cat > hello.hs << HERE
|
||||
main = putStrLn "Hello, World!"
|
||||
HERE
|
||||
1
Task/Hello-world-Newbie/Haskell/hello-world-newbie-3.hs
Normal file
1
Task/Hello-world-Newbie/Haskell/hello-world-newbie-3.hs
Normal file
|
|
@ -0,0 +1 @@
|
|||
$ ghc hello.hs -o hello
|
||||
2
Task/Hello-world-Newbie/Haskell/hello-world-newbie-4.hs
Normal file
2
Task/Hello-world-Newbie/Haskell/hello-world-newbie-4.hs
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
$ ./hello
|
||||
Hello, World!
|
||||
1
Task/Hello-world-Newbie/J/hello-world-newbie.j
Normal file
1
Task/Hello-world-Newbie/J/hello-world-newbie.j
Normal file
|
|
@ -0,0 +1 @@
|
|||
'Hello, World!'
|
||||
2
Task/Hello-world-Newbie/Jakt/hello-world-newbie-1.jakt
Normal file
2
Task/Hello-world-Newbie/Jakt/hello-world-newbie-1.jakt
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
cmake -B build -GNinja
|
||||
cmake --build build
|
||||
3
Task/Hello-world-Newbie/Jakt/hello-world-newbie-2.jakt
Normal file
3
Task/Hello-world-Newbie/Jakt/hello-world-newbie-2.jakt
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
fn main() {
|
||||
println("Hello world!")
|
||||
}
|
||||
1
Task/Hello-world-Newbie/Jakt/hello-world-newbie-3.jakt
Normal file
1
Task/Hello-world-Newbie/Jakt/hello-world-newbie-3.jakt
Normal file
|
|
@ -0,0 +1 @@
|
|||
jakt hello.jakt
|
||||
1
Task/Hello-world-Newbie/Jakt/hello-world-newbie-4.jakt
Normal file
1
Task/Hello-world-Newbie/Jakt/hello-world-newbie-4.jakt
Normal file
|
|
@ -0,0 +1 @@
|
|||
jakt -cr hello.jakt
|
||||
1
Task/Hello-world-Newbie/Java/hello-world-newbie-1.java
Normal file
1
Task/Hello-world-Newbie/Java/hello-world-newbie-1.java
Normal file
|
|
@ -0,0 +1 @@
|
|||
javac -version
|
||||
6
Task/Hello-world-Newbie/Java/hello-world-newbie-2.java
Normal file
6
Task/Hello-world-Newbie/Java/hello-world-newbie-2.java
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
public class HelloWorld {
|
||||
public static void main(String[] args) {
|
||||
//Prints 'Hello world!' to terminal/console.
|
||||
System.out.println("Hello world!");
|
||||
}
|
||||
}
|
||||
11
Task/Hello-world-Newbie/Java/hello-world-newbie-3.java
Normal file
11
Task/Hello-world-Newbie/Java/hello-world-newbie-3.java
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
public class HelloWorld {
|
||||
public static void main(String[]args){
|
||||
HelloWorld hw = new HelloWorld();
|
||||
hw.run();
|
||||
}
|
||||
|
||||
void run(){
|
||||
//Print 'Hello world!' to console/terminal
|
||||
System.out.println("Hello world!");
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1 @@
|
|||
console.log("Hello, World!");
|
||||
|
|
@ -0,0 +1 @@
|
|||
alert("Hello, World!");
|
||||
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 ;
|
||||
3
Task/Hello-world-Newbie/Kotlin/hello-world-newbie.kotlin
Normal file
3
Task/Hello-world-Newbie/Kotlin/hello-world-newbie.kotlin
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
fun main(args: Array<String>) {
|
||||
println("Hello, World!")
|
||||
}
|
||||
|
|
@ -0,0 +1,25 @@
|
|||
The minimal installation is straightforward. Go to this URL:
|
||||
|
||||
- http://lambdaway.free.fr/lambdaspeech/?view=download
|
||||
|
||||
• 1) download the ~25kb archive,
|
||||
• 2) unzip the archive, you get a ~100kb folder named "archive",
|
||||
• 3) rename it for instance "my_wiki", avoiding spaces and esoteric characters,
|
||||
• 4) open your FTP tool and upload the folder to your web account.
|
||||
|
||||
Your wiki "my_wiki" is ready! Now:
|
||||
|
||||
• 1) open any modern web browser and go to "my_wiki" in your web account,
|
||||
• 2) the start page displays "Hello World",
|
||||
• 3) click on the title "start" to open the edit menu,
|
||||
• 4) in the editor frame, under the first line containing
|
||||
|
||||
_h1 Hello World
|
||||
|
||||
write for instance:
|
||||
|
||||
_p This is my first sentence, a new paragraph has been added.
|
||||
|
||||
• 5) then choose "save" in the menu.
|
||||
|
||||
Congratulations, your first web page is published.
|
||||
1
Task/Hello-world-Newbie/Lean/hello-world-newbie-1.lean
Normal file
1
Task/Hello-world-Newbie/Lean/hello-world-newbie-1.lean
Normal file
|
|
@ -0,0 +1 @@
|
|||
sudo snap install --classic code
|
||||
4
Task/Hello-world-Newbie/Lean/hello-world-newbie-2.lean
Normal file
4
Task/Hello-world-Newbie/Lean/hello-world-newbie-2.lean
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
def main : IO Unit :=
|
||||
IO.println ("Hello world!")
|
||||
|
||||
#eval main
|
||||
|
|
@ -0,0 +1 @@
|
|||
10 print "Hello World!"
|
||||
1
Task/Hello-world-Newbie/Lua/hello-world-newbie.lua
Normal file
1
Task/Hello-world-Newbie/Lua/hello-world-newbie.lua
Normal file
|
|
@ -0,0 +1 @@
|
|||
io.write("Hello world, from ",_VERSION,"!\n")
|
||||
1
Task/Hello-world-Newbie/Maple/hello-world-newbie.maple
Normal file
1
Task/Hello-world-Newbie/Maple/hello-world-newbie.maple
Normal file
|
|
@ -0,0 +1 @@
|
|||
"Hello World";
|
||||
|
|
@ -0,0 +1 @@
|
|||
print "Hello 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 @@
|
|||
monti
|
||||
|
|
@ -0,0 +1 @@
|
|||
monti file.mt
|
||||
|
|
@ -0,0 +1 @@
|
|||
|Hello, World!| PRINT .
|
||||
1
Task/Hello-world-Newbie/Nim/hello-world-newbie.nim
Normal file
1
Task/Hello-world-Newbie/Nim/hello-world-newbie.nim
Normal file
|
|
@ -0,0 +1 @@
|
|||
echo "Hello world!"
|
||||
1
Task/Hello-world-Newbie/Nix/hello-world-newbie-1.nix
Normal file
1
Task/Hello-world-Newbie/Nix/hello-world-newbie-1.nix
Normal file
|
|
@ -0,0 +1 @@
|
|||
"Hello world!"
|
||||
1
Task/Hello-world-Newbie/Nix/hello-world-newbie-2.nix
Normal file
1
Task/Hello-world-Newbie/Nix/hello-world-newbie-2.nix
Normal file
|
|
@ -0,0 +1 @@
|
|||
(import <nixpkgs> { }).writeText "hello" "Hello world!\n"
|
||||
1
Task/Hello-world-Newbie/OCaml/hello-world-newbie-1.ocaml
Normal file
1
Task/Hello-world-Newbie/OCaml/hello-world-newbie-1.ocaml
Normal file
|
|
@ -0,0 +1 @@
|
|||
print_string "Hello world!\n";;
|
||||
1
Task/Hello-world-Newbie/OCaml/hello-world-newbie-2.ocaml
Normal file
1
Task/Hello-world-Newbie/OCaml/hello-world-newbie-2.ocaml
Normal file
|
|
@ -0,0 +1 @@
|
|||
ocamlc -o hello hello.ml
|
||||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue