Skip to content

Instantly share code, notes, and snippets.

View schlick's full-sized avatar

Michael MacDonald schlick

View GitHub Profile
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>changed</key>
<dict>
<key>command</key>
<string>#!/usr/bin/env ruby -rcgi
# By Henrik Nyh &lt;http://henrik.nyh.se&gt; 2007-06-26
When /^(\d+) (minutes|hours|days) pass$/ do |amount, unit|
now = Time.now
Time.stubs(:now).returns(now + amount.to_i.send(unit.to_sym))
end
When /^going back (\d+) (minutes|hours|days)$/ do |minutes|
now = Time.now
Time.stubs(:now).returns(now - amount.to_i.send(unit.to_sym))
end
amc-projects:sqlite3 {
'sqlite3' / setup not defined.
Already pulled amc-projects (git@github.com:amc-projects/babushka-deps.git) this session.
build tools {
'build tools' / internal_setup not defined.
'build tools' / setup not defined.
build-essential {
'build-essential' / setup not defined.
apt {
'apt' / internal_setup not defined.
@schlick
schlick / best_model.rb
Last active September 30, 2015 01:57 — forked from ltw/best_model.rb
Order of a standard Model
class Model < ParentModel
include Foo::Bar
extend Bar::Baz
acts_as_authentic
dsl_specific_flags
module InternalModule
...
end