Skip to content

Instantly share code, notes, and snippets.

View TheEvilDev's full-sized avatar

Mitch TheEvilDev

View GitHub Profile
public static class ExampleCurrying {
public static int Add(Func<int> a, Func<int> b){
return a() + b();
}
public static int Multiply(Func<int> a, Func<int> b){
return a() * b();
}
public static int Divide(Fun<int> a, Func<int> b){
@TheEvilDev
TheEvilDev / gist:89f55865763a69367857
Created May 25, 2014 00:27
My 7 year old son Drake's first FSharp program $$$
// Learn more about F# at http://fsharp.net
// See the 'F# Tutorial' project for more help.
[<EntryPoint>]
let main argv =
let nickels (x:float) = x * 0.05;
let pennies (x:float) = x * 0.01;
let dimes (x:float) = x * 0.10;
let quarters (x:float) = x * 0.25;
@TheEvilDev
TheEvilDev / Dependency.rb
Created November 27, 2012 00:31
Albacore improved nuspec generating, auto-dependency discovery
class Dependency
attr_accessor :Name, :Version
def initialize(name, version)
@Name = name
@Version = version
end
end