Skip to content

Instantly share code, notes, and snippets.

@cx20
cx20 / hello.cob
Created June 9, 2012 19:09
Hello, COBOL World!
IDENTIFICATION DIVISION.
PROGRAM-ID. hello.
PROCEDURE DIVISION.
DISPLAY "Hello, COBOL World!".
STOP RUN.
@cx20
cx20 / hello.d
Created June 9, 2012 19:22
Hello, D World!
import std.stdio;
int main( char[][] args )
{
writefln( "Hello, D World!" );
return 0;
}
@cx20
cx20 / hello.dart
Created June 9, 2012 19:24
Hello, Dart World!
main()
{
print( 'Hello, Dart World!' );
}
@cx20
cx20 / hello.dart.js
Created June 9, 2012 19:25
Hello, Dart World!
// ********** Library dart:core **************
// ********** Natives dart:core **************
function $defProp(obj, prop, value) {
Object.defineProperty(obj, prop,
{value: value, enumerable: false, writable: true, configurable: true});
}
function $throw(e) {
// If e is not a value, we can use V8's captureStackTrace utility method.
// TODO(jmesserly): capture the stack trace on other JS engines.
if (e && (typeof e == 'object') && Error.captureStackTrace) {
@cx20
cx20 / hello.hs
Created June 9, 2012 19:27
Hello, Haskell World!
main = putStrLn "Hello, Haskell World!"
@cx20
cx20 / hello.fs
Created June 9, 2012 19:28
Hello, F# World!
printfn "Hello, F# World!"
@cx20
cx20 / hello.fs
Created June 9, 2012 19:30
Hello, F# World!
open System
Console.WriteLine("Hello, F# World!")
@cx20
cx20 / hello.pl
Created June 9, 2012 19:31
Hello, Perl World!
#!/usr/bin/perl
print "Hello, Perl World!¥n";
@cx20
cx20 / hello.py
Created June 9, 2012 19:32
Hello, Python World!
#!/usr/bin/python
print "Hello, Python World!"
@cx20
cx20 / hello.rb
Created June 9, 2012 19:46
Hello, Ruby World!
#!/usr/bin/ruby
puts "Hello, Ruby World!"