Skip to content

Instantly share code, notes, and snippets.

View siebertm's full-sized avatar

Michael Siebert siebertm

  • Berlin, Germany
View GitHub Profile
@siebertm
siebertm / Questions
Created September 6, 2011 16:58
GOTO Amsterdam
Day job:
Rails / Javascript developer at samedi in Berlin
What is your language of choice:
Whatever fits the job. Mostly Ruby, Javascript and Coffeescript
Open Source contributions:
Various small libs and tools others could find useful and a few smallish things in Rails
How do you use GitHub:
# mongo_template.rb
# fork of Ben Scofield's Rails MongoMapper Template (http://gist.github.com/181842)
#
# To use:
# rails project_name -m http://gist.github.com/gists/219223.txt
# remove unneeded defaults
run "rm public/index.html"
run "rm public/images/rails.png"
run "rm public/javascripts/controls.js"
@siebertm
siebertm / gist:58796
Created February 5, 2009 16:21 — forked from rails/gist:58761
var DateHelper = {
// Takes the format of "Jan 15, 2007 15:45:00 GMT" and converts it to a relative time
// Ruby strftime: %b %d, %Y %H:%M:%S GMT
time_ago_in_words_with_parsing: function(from) {
var date = new Date;
date.setTime(Date.parse(from));
return this.time_ago_in_words(date);
},
time_ago_in_words: function(from) {