This gist is part of a blog post. Check it out at:
http://jasonrudolph.com/blog/2011/08/09/programming-achievements-how-to-level-up-as-a-developer
This gist is part of a blog post. Check it out at:
http://jasonrudolph.com/blog/2011/08/09/programming-achievements-how-to-level-up-as-a-developer
var d = new Date(); | |
d.setHours(d.getHours()-d.getTimezoneOffset()/60); | |
var T2 = Date.UTC(2011,9,13,7,1); | |
var diff=new Date(); | |
diff.setTime(T2-d); | |
var days = diff.getDate() < 10 ? "0" + diff.getDate() : diff.getDate(); | |
var hours = diff.getHours() < 10 ? "0" + diff.getHours() : diff.getHours(); | |
var min = diff.getMinutes() < 10 ? "0" + diff.getMinutes() : diff.getMinutes(); | |
var sec = diff.getSeconds() < 10 ? "0" + diff.getSeconds() : diff.getSeconds(); |
package main | |
func main() { | |
println("helloworld") | |
} |
ActionMailer::Base.smtp_settings = { | |
:address => "smtp.postmarkapp.com", | |
:port => 2525, | |
:domain => 'derpderp.com', | |
:user_name => 'derpderp', | |
:password => 'herpdederp', | |
:authentication => 'plain', | |
:enable_starttls_auto => true | |
} |
# in ApplicationController | |
layout :set_layout | |
def set_layout | |
# If this is a PJAX request, don't render a layout. | |
request.headers['X-PJAX'] ? false : 'application' | |
end |
Hi there,
FounderDating (FD) is an invite-only, online network for entrepreneur to connect with cofounders.
$leche: #BBA993 | |
$caramel: #CC9966 | |
$shit-brown: #330000 | |
$mexican-last-night-brown: rgb(47,17,15) | |
$craft-red: rgb(238, 64, 55) | |
$dark-red: #660000 | |
$satan-grey: #666 |
group :assets do | |
gem 'closure-compiler' | |
end |
# Example of the Active Tracker API | |
# One javascript call at the top of your page can send any events you want to Mixpanel, Kissmetrics, etc | |
# Given a few links like this: | |
# <a href="http://google.com" data-event-name="google" data-event-properties="'target': 'google', 'username': 'nate'"></a> | |
# Then: | |
# active_tracker.track_links(); | |
# ... sends an event called "google" | |
# ... with JSON properties "'target': 'google', 'username': 'nate', 'environment': 'development'" | |
# ... to all of your registered event providers (in this case, mixpanel and kissmetrics) |
Speed, pacing strategy and aerodynamic drafting in Thoroughbred horse racing | |
http://rsbl.royalsocietypublishing.org/content/8/4/678.short | |
Aerodynamic characteristics as determinants of the drafting effect in cycling. | |
http://ukpmc.ac.uk/abstract/MED/17218899/reload=0;jsessionid=LRL9A6Q7MbD9Azdvf1SG.4 | |
The mathematics of breaking away and chasing in cycling | |
http://www.springerlink.com/content/rahtxmaa0uun8cn1/ | |
Cyclist bunch riding: a review of the literature |