This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace StealTheseUnderpants | |
{ | |
using System; | |
public class Underpants | |
{ | |
public UnderpantsEnumerator GetEnumerator() | |
{ | |
return new UnderpantsEnumerator(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.HashMap | |
interface IOperator do | |
def run(x:int, y:int) | |
returns int | |
end | |
end | |
class Operators | |
macro def add_op(name, &op) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.HashMap | |
interface IOperator do | |
def run(x:int, y:int) | |
returns int | |
end | |
end | |
class Operators | |
def add |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
interface IOperator do | |
def run(x:int, y:int) | |
returns int | |
end | |
end | |
class Add | |
implements IOperator | |
def run(x:int, y:int) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"Find the 2345 number!"[/[0-9]+/] # => "5" | |
"Find the 2345 number!"[/[^0-9]+/] # => "Find the " |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
shopt -s extglob #Enables extglob | |
# OS: OSX 10.6.7 and Ubuntu 11.04 | |
# Mono: 2.10.1 | |
# Mono 2.10 is required since we need C# 4.0 support to compile IronRuby. | |
# C# 4.0 support can either be found in mono 2.10 or 2.6 compiled with special | |
# flags. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public IEnumerable<Action> Parameterized_shit_method_bithes() | |
{ | |
yield return () => Run_me_with_params(5, 4); | |
yield return () => Run_me_with_params(7, 8); | |
yield return () => Run_me_with_params(12, 56); | |
} | |
protected void Run_me_with_params(int x, int y) | |
{ | |
// Assert shit here |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class FooMap : ClassMap<Foo> | |
{ | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; This is a comment | |
; Everything that is declared "outside" a class is automatically placed in the class "Global" | |
this_is_a_variable: 5 | |
; Types are not dynamic, they are inferenced. | |
this_is_a_method: (x, y) { | |
result: x + y; Everything after ; is not read and treated like a comment |