Skip to content

Instantly share code, notes, and snippets.

View dbalatero's full-sized avatar

David Balatero dbalatero

View GitHub Profile
u = ->(m) do
y = ->(*a, &b) { y = ->(*a) { b.(*a, &y) } }
r = ->(n, f) do
i, g = f.()
i <= n ? [i] + r.(n, g) : []
end
r.(m, y.() { |i, j, &b| -> { [j, b.(j, i + j)] } }.(1, 1))
end
We couldn’t find that file to show.
jQuery(document).ready(function () {
// init
var $contact = $('#contact');
$contact.css({right: ( -($contact.width() ) + 19 ) });
$contact.mouseleave(function () {
if ($contact.hasClass('active')) {
$contact.removeClass('active');
$contact.animate({right: ( -($contact.width() ) + 20 ) });
}
Hay-Colored Sweatpants
Union for the Jobless
Tobacco Bongwater
(created by Rob and Colin in the Haight)
Arbitrary-Precision Koopas
Burger Collateral
(11:06:50 AM) me (gtalk): "I definitely cosign the fuck out of this burger."
hydra = Typhoeus::Hydra.new(20) # number is the size of the easy object pool
user_request = User.find_request(1) # where 1 is the id of the user
user_request.on_complete do
@user = User.parse(user_request.response.body)
comment_requests = @user.comment_ids.map {|id| Comment.find_request(id)}
comment_requests.each do |comment_request|
comment_request.on_complete do
@user.comments << Comment.parse(comment_request.response.body)
end