Skip to content

Instantly share code, notes, and snippets.

@jwo
jwo / .rspec
Created May 24, 2012 — forked from coreyhaines/.rspec
Loading just active record
View .rspec
--colour
-I app
@jwo
jwo / gist:2775692
Created May 23, 2012 — forked from johnnygoodman/gist:2772856
Vehicle Class, Make == Instance Variable Dynamic
View gist:2775692
#-------------------------------------
# this part just to run the specs
#
#
require 'rspec'
class Vehicle; end
# end
#-------------------------------------
#require_relative './vehicle'
@jwo
jwo / gist:2585904
Created May 3, 2012 — forked from unnitallman/gist:944011
sqlite with activerecord outside rails
View gist:2585904
require 'active_record'
require 'logger'
ActiveRecord::Base.logger = Logger.new(STDERR)
ActiveRecord::Base.establish_connection(
adapter: "sqlite3",
database: ":memory:"
)
@jwo
jwo / .rspec
Created Mar 29, 2012 — forked from coreyhaines/.rspec
Loading just active record
View .rspec
--colour
-I app
View gist:1546140
#!/bin/sh
set -u
set -e
# Example init script, this can be used with nginx, too,
# since nginx and unicorn accept the same signals
# Feel free to change any of the following variables for your app:
APP_ROOT=/home/deploy/public_html/rm/current
PID=$APP_ROOT/tmp/pids/unicorn.pid
ENV=production