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
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 |
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
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 ) }); | |
} |
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
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." |
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
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 |