Skip to content

Instantly share code, notes, and snippets.

View CaseyLeask's full-sized avatar

Casey Leask CaseyLeask

  • Melbourne :: Australia
View GitHub Profile
@CaseyLeask
CaseyLeask / Evil.rb
Created December 10, 2010 10:33
Violating the Sanctity of Encapsulation
class Evil
def run_locally(&block)
instance_eval &block
end
private
def secretName
puts "CTHULHU"
end
end
@CaseyLeask
CaseyLeask / ruby_enums.rb
Created January 7, 2011 08:18
Ruby Enumerators
module Enumerable
def lazy_select
Enumerator.new do |yielder|
each do |obj|
yielder.yield(obj) if yield(obj)
end
end
end
end
@CaseyLeask
CaseyLeask / dabblet.css
Created February 17, 2012 09:08 — forked from alexmwalker/dabblet.css
CSS3 Pong *
/**
* CSS3 Pong *
*/
body{
background: #000;
}
#court {
border:5px dashed #fff;
height:500px;
@CaseyLeask
CaseyLeask / dabblet.css
Created February 17, 2012 09:12 — forked from alexmwalker/dabblet.css
CSS3 Pong *
/**
* CSS3 Pong *
*/
body{
background: #000;
}
#court {
border:5px dashed #fff;
height:500px;
@CaseyLeask
CaseyLeask / dabblet.css
Created February 17, 2012 09:53 — forked from alexmwalker/dabblet.css
CSS3 Pong *
/**
* CSS3 Pong *
*/
body{
background: #000;
}
#court {
margin-top:30px;
border:5px dashed #fff;
@CaseyLeask
CaseyLeask / dabblet.css
Created February 17, 2012 09:53 — forked from alexmwalker/dabblet.css
CSS3 Pong *
/**
* CSS3 Pong *
*/
body{
background: #000;
}
#court {
margin-top:30px;
border:5px dashed #fff;
@CaseyLeask
CaseyLeask / dabblet.css
Created February 17, 2012 09:54 — forked from alexmwalker/dabblet.css
CSS3 Pong *
/**
* CSS3 Pong *
*/
body{
background: #000;
}
#court {
margin-top:30px;
border:5px dashed #fff;
@CaseyLeask
CaseyLeask / dabblet.css
Created February 17, 2012 09:54 — forked from alexmwalker/dabblet.css
CSS3 Pong *
/**
* CSS3 Pong *
*/
body{
background: #000;
}
#court {
margin-top:30px;
border:5px dashed #fff;
@CaseyLeask
CaseyLeask / dabblet.css
Created February 17, 2012 09:54 — forked from alexmwalker/dabblet.css
CSS3 Pong *
/**
* CSS3 Pong *
*/
body{
background: #000;
}
#court {
margin-top:30px;
border:5px dashed #fff;
@CaseyLeask
CaseyLeask / dabblet.css
Created February 17, 2012 09:55 — forked from alexmwalker/dabblet.css
CSS3 Pong *
/**
* CSS3 Pong *
*/
body{
background: #000;
}
#court {
margin-top:30px;
border:5px dashed #fff;