Skip to content

Instantly share code, notes, and snippets.

@maiha
maiha / new.rb
Created June 26, 2009 13:52 — forked from genki/new.rb
class Foo
foo : puts "foo"
bar :
puts "bar"
puts "hello"
baz : "BAZ"
Foo.new.foo
#!/usr/bin/env sh
if ! which md5sum > /dev/null; then
echo Install md5sum
exit 1
fi
if ! which curl > /dev/null; then
echo Install curl
exit 1
@maiha
maiha / test.cr
Created November 27, 2016 03:59 — forked from fridgerator/test.cr
class Changeset(T)
def initialize(@instance : T)
end
end
module Cset(T)
def changeset(instance)
Changeset(T).new(instance)
end
end