Skip to content

Commit 865900c

Browse files
committedSep 30, 2014
Adding haxe & julia implementations
1 parent b127e4b commit 865900c

File tree

3 files changed

+23
-0
lines changed

3 files changed

+23
-0
lines changed
 

‎README.md

+2
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ This ASCII representation is a cartoon mascot at [Cerner Engineering](http://eng
4545
* [dart](https://www.dartlang.org/) - [art.dart](dart/art.dart) (`dart art.dart`)
4646
* [erlang](http://www.erlang.org/) - [art.erl](erlang/art.erl) (`erl -pa ./art.erl -run art print -run init stop -noshell`)
4747
* [go](https://golang.org/) - [art.go](go/art.go) (`go run art.go`)
48+
* [haxe](https://golang.org/) - [Art.hx](haxe/Art.hx) (`haxe -main Art --interp`)
49+
* [julia](http://julialang.org/) - [art.jl](julia/art.jl) (`julia art.jl`)
4850
* [lua](http://www.lua.org/) - [art.lua](lua/art.lua) (`lua art.lua`)
4951
* [ocaml](https://ocaml.org) - [art.ml](ocaml/art.ml) (`ocaml art.ml`)
5052
* [node.js](http://nodejs.org/) - [art.js](node/art.js) (`node art.js`)

‎haxe/Art.hx

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import sys.io.File;
2+
3+
// "2 to the 5th" programming competition @ engineering.cerner.com
4+
//
5+
// Read in the ASCII art file and simply print it to the console.
6+
// Note: This assumes you are executing "haxe -main Art --interp"
7+
// in the current working directory.
8+
class Art {
9+
static public function main():Void {
10+
neko.Lib.println(File.getContent("../art/alan.txt"));
11+
}
12+
}

‎julia/art.jl

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# "2 to the 5th" programming competition @ engineering.cerner.com
2+
#
3+
# Read in the ASCII art file and simply print it to the console.
4+
# Note: This assumes you are executing "julia art.jl" in the current
5+
# working directory. You may also start up the julia REPL and then
6+
# execute:
7+
# > include("art.jl")
8+
#
9+
write(STDOUT, readall("../art/alan.txt"))

0 commit comments

Comments
 (0)