Skip to content
This repository has been archived by the owner on Jan 1, 2019. It is now read-only.

Commit

Permalink
Merge branch 'master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
srbcheema1 authored Oct 1, 2017
2 parents e31c95b + 78a34a2 commit 80c2e46
Show file tree
Hide file tree
Showing 20 changed files with 175 additions and 2 deletions.
9 changes: 9 additions & 0 deletions GO
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package main

import "fmt"

func main() {
fmt.Println("hello world")
}
//to run the program
$ go run hello-world.go
3 changes: 3 additions & 0 deletions HelloWorld.M
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
HelloWorld
write "Hello World!",!
quit
2 changes: 1 addition & 1 deletion Hello_World.rb
Original file line number Diff line number Diff line change
@@ -1 +1 @@
puts "hello world"
puts 'Hello, world!'
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,6 @@
13. [Scala](https://github.com/srbcheema1/Hello_world/blob/master/helloworld.scala)
14. [Brainfuck](https://github.com/srbcheema1/Hello_world/blob/master/helloworld.bf)
15. [Perl](https://github.com/srbcheema1/Hello_world/blob/master/hello_world.pl)

16. [Swift](https://github.com/srbcheema1/Hello_world/blob/master/hello_world.swift)
17. [C#](https://github.com/srbcheema1/Hello_world/blob/master/helloworld.cs)

5 changes: 5 additions & 0 deletions ballerina
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import ballerina.lang.system;

function main (string[] args) {
system:println("Hello, World!");
}
1 change: 1 addition & 0 deletions hello.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
print("Hello, world!")
1 change: 1 addition & 0 deletions helloWorld.coffee
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
console.log 'Hello, World!'
26 changes: 26 additions & 0 deletions hello_world.asm
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
;
;"hello, world" in assembly language for Linux
;
;to compile:
;
;nasm -f elf hello.asm
;ld -s -o hello hello.o

section .text
global _start ;must be declared for linker (ld)

_start: ;tell linker entry point

mov edx,len ;message length
mov ecx,msg ;message to write
mov ebx,1 ;file descriptor (stdout)
mov eax,4 ;system call number (sys_write)
int 0x80 ;call kernel

mov eax,1 ;system call number (sys_exit)
int 0x80 ;call kernel

section .data

msg db 'Hello, world!',0xa ;our dear string
len equ $ - msg ;length of our dear string
1 change: 1 addition & 0 deletions hello_world.erl
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
io:fwrite("Hello, world\n").
7 changes: 7 additions & 0 deletions hello_world.fs
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
open System

[<EntryPoint>]
let main (argv :string[]) =
printfn "Hello World"
Console.ReadLine() |> ignore
0
5 changes: 5 additions & 0 deletions hello_world.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package main
import "fmt"
func main() {
fmt.Println("Hello World")
}
4 changes: 4 additions & 0 deletions hello_world.hs
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
-- haskell "hello world" program
-- compile with 'ghc -o hello hello_world.hs' and run with './hello

main = putStrLn "hello world"
2 changes: 2 additions & 0 deletions hello_world.mb
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
('&%:9]!~}|z2Vxwv-,POqponl$Hjig%eB@@>}=<M:9wv6WsU2T|nm-,jcL(I&%$#"
`CB]V?Tx<uVtT`Rpo3NlF.Jh++FdbCBA@?]!~|4XzyTT43Qsqq(Lnmkj"Fhg${z@>
1 change: 1 addition & 0 deletions hello_world.ml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
print_string "hello world\n";;
3 changes: 3 additions & 0 deletions hello_world.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
fn main() {
println!("Hello World!");
}
89 changes: 89 additions & 0 deletions hello_world.spl
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
Hello World Program in Shakespeare.

Romeo, a young man with a remarkable patience.
Juliet, a likewise young woman of remarkable grace.
Ophelia, a remarkable woman much in dispute with Hamlet.
Hamlet, the flatterer of Andersen Insulting A/S.


Act I: Hamlet's insults and flattery.

Scene I: The insulting of Romeo.

[Enter Hamlet and Romeo]

Hamlet:
You lying stupid fatherless big smelly half-witted coward!
You are as stupid as the difference between a handsome rich brave
hero and thyself! Speak your mind!

You are as brave as the sum of your fat little stuffed misused dusty
old rotten codpiece and a beautiful fair warm peaceful sunny summer's
day. You are as healthy as the difference between the sum of the
sweetest reddest rose and my father and yourself! Speak your mind!

You are as cowardly as the sum of yourself and the difference
between a big mighty proud kingdom and a horse. Speak your mind.

Speak your mind!

[Exit Romeo]

Scene II: The praising of Juliet.

[Enter Juliet]

Hamlet:
Thou art as sweet as the sum of the sum of Romeo and his horse and his
black cat! Speak thy mind!

[Exit Juliet]

Scene III: The praising of Ophelia.

[Enter Ophelia]

Hamlet:
Thou art as lovely as the product of a large rural town and my amazing
bottomless embroidered purse. Speak thy mind!

Thou art as loving as the product of the bluest clearest sweetest sky
and the sum of a squirrel and a white horse. Thou art as beautiful as
the difference between Juliet and thyself. Speak thy mind!

[Exeunt Ophelia and Hamlet]


Act II: Behind Hamlet's back.

Scene I: Romeo and Juliet's conversation.

[Enter Romeo and Juliet]

Romeo:
Speak your mind. You are as worried as the sum of yourself and the
difference between my small smooth hamster and my nose. Speak your
mind!

Juliet:
Speak YOUR mind! You are as bad as Hamlet! You are as small as the
difference between the square of the difference between my little pony
and your big hairy hound and the cube of your sorry little
codpiece. Speak your mind!

[Exit Romeo]

Scene II: Juliet and Ophelia's conversation.

[Enter Ophelia]

Juliet:
Thou art as good as the quotient between Romeo and the sum of a small
furry animal and a leech. Speak your mind!

Ophelia:
Thou art as disgusting as the quotient between Romeo and twice the
difference between a mistletoe and an oozing infected blister! Speak
your mind!

[Exeunt]
1 change: 1 addition & 0 deletions hello_world.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
print("hello world")
1 change: 1 addition & 0 deletions hello_world_jsfuck.js

Large diffs are not rendered by default.

10 changes: 10 additions & 0 deletions helloworld.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
namespace HelloWorld
{
class Hello
{
static void Main()
{
Console.WriteLine("Hello World!");
}
}
}
3 changes: 3 additions & 0 deletions helloworld.lol
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
HAI 1.2
VISIBLE "HELLO WORLD!"
KTHXBYE

0 comments on commit 80c2e46

Please sign in to comment.