I hereby claim:
- I am jrallison on github.
- I am jrallison (https://keybase.io/jrallison) on keybase.
- I have a public key whose fingerprint is EB89 AFFA 56B8 C4AC 2700 E487 2626 D32F C175 D7F5
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
package main | |
import ( | |
"customerio/core/customers" | |
"customerio/core/segments" | |
"customerio/core/spaces" | |
"flag" | |
"log" | |
"strconv" | |
"time" |
package main | |
import ( | |
"customerio/core/customers" | |
"customerio/core/segments" | |
"customerio/core/spaces" | |
"flag" | |
"log" | |
"strconv" | |
"time" |
jQuery("#pages ul li").hover(function(){ | |
jQuery(this).stop(true).animate({ | |
marginTop: "10px" | |
}, 250); | |
}, function(){ | |
jQuery(this).stop(true).animate({ | |
marginTop: "0px" | |
}, 250); | |
}); |
def first_n_primes(n) | |
return [] if n <= 0 | |
@primes ||= [2] | |
x = @primes.last + 1 | |
until @primes.length >= n | |
prime = true | |
@primes.each do |p| |
Nameserver trace for challenge.gov: | |
Looking for who is responsible for root zone and followed d.root-servers.net. | |
Looking for who is responsible for gov and followed f.usadotgov.net. | |
Looking for who is responsible for challenge.gov and followed a.ns.zerigo.net. | |
Nameservers for challenge.gov: | |
c.ns.zerigo.net returned (SERVFAIL) | |
a.ns.zerigo.net returned (SERVFAIL) |
var image = new Image(); | |
image.src = url; | |
image.onload = function() { | |
// Display image | |
}; |
<% @somethings.each do |something| %> | |
<%= cache("somethings:#{something.id}", :time => something.created_at) do %> | |
<div class="something"> | |
<%= render "somethings/expensive_calculation" %> | |
<!-- time.strftime(...) calculated dynamically every time --> | |
<p class="timestamp"><%= time.strftime("%B %d, %Y") %></p> | |
</div> | |
<% end %> | |
<% end %> |
# Model | |
class Model < ActiveRecord::Base | |
default_scope where(:hidden => false) | |
def hide! | |
update_attributes!(:hidden => true) | |
end | |
end |