Skip to content

Instantly share code, notes, and snippets.

View tlray's full-sized avatar

Raymond Vellener tlray

View GitHub Profile

Keybase proof

I hereby claim:

  • I am tlray on github.
  • I am raymondvellener (https://keybase.io/raymondvellener) on keybase.
  • I have a public key whose fingerprint is 8122 3EAF 88D1 B048 9FA0 AA9B CC79 799B 0D36 E4AA

To claim this, I am signing this object:

@tlray
tlray / test.js
Created February 11, 2011 12:28
test
function x(){
var x =1;
var y = "kjhjkhjkhk";
}
dit is een openbare gist
@tlray
tlray / gist:459899
Created July 1, 2010 12:30
distance_of_time_in_words in het nederlands
#in config/locals/nl.yml
nl:
half_a_minute: een halve minuut
x_minutes: x minuten
#etc. zie http://apidock.com/rails/v3.0.0.beta3/ActionView/Helpers/DateHelper/distance_of_time_in_words voor alle te vertalen woorden (bij show source)
#in controller of mailer
class MyController
include ActionView::Helpers::DateHelper
namespace :deploy do
PRODUCTION_APP = 'myapp'
STAGING_APP = 'myapp-staging'
def run(*cmd)
system(*cmd)
raise "Command #{cmd.inspect} failed!" unless $?.success?
end
def confirm(message)
namespace :deploy do
PRODUCTION_APP = 'myapp'
STAGING_APP = 'myapp-staging'
def run(*cmd)
system(*cmd)
raise "Command #{cmd.inspect} failed!" unless $?.success?
end
def confirm(message)