This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# http://guides.rubygems.org/command-reference/#gem_environment | |
--- | |
install: --ri --rdoc # gem install with docs | |
update: --ri --rdoc # gem update with docs | |
verbose: true # Verbosity of the gem command | |
backtrace: true # Print backtrace when RubyGems encounters an error |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rubies=(1.8.7-p358 ree-1.8.7-2011.03 1.9.2-p290 1.9.3-p429 2.0.0-p247) | |
for r in $rubies | |
do | |
rbenv local $r; bundle install --without debug; CI=true bundle exec rake; | |
done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
❯ go run closing-channels.go | |
sent job 1 | |
sent job 2 | |
sent job 3 | |
sent all jobs | |
received job 1 | |
received job 2 | |
received job 3 | |
received all jobs |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace :deploy do | |
namespace :assets do | |
desc 'install asset dependencies' | |
task :install, roles: [:assets] do | |
run "cd #{latest_release} && bower install --no-color" | |
end | |
end | |
end | |
before 'deploy:assets:precompile', 'deploy:assets:install' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
var lrSnippet = require('grunt-contrib-livereload/lib/utils').livereloadSnippet; | |
var mountFolder = function (connect, dir) { | |
return connect.static(require('path').resolve(dir)); | |
}; | |
module.exports = function (grunt) { | |
// load all grunt tasks | |
require('matchdep').filterDev('grunt-*').forEach(grunt.loadNpmTasks); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /code/railsapp/app/assets/javascripts/thing/app.js.coffee | |
#= require angular/templates | |
angular.module("thing", ["app.templates"]).value("appName", "thing") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require './hash_inverse' | |
describe Hash do | |
describe "when empty and asked for the inverse" do | |
it "returns an empty hash" do | |
{}.inverse.must_equal Hash.new | |
end | |
end | |
describe "when mapping are unique and asked for the inverse" do |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# spec/support/macros/authentication_macros.rb | |
module AuthenticationMacros | |
def sign_in_user | |
let(:current_user) { Factory.stub(:user) } | |
before do | |
sign_in current_user | |
warden.stub(:authenticate => current_user) | |
warden.stub(:authenticate! => current_user) | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace :f do | |
desc "alias for `rake footasticforsure:dowork`" | |
task :d | |
Rake::Task["footasticforsure:dowork"].invoke | |
end | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# an attempt to identify the commit when hpricot 0.8.3 segfaults | |
# were introduced. | |
# | |
# To be able to use git bisect run, I used fork to run the test-case, | |
# as otherwise the running process is left in a zombie I don't wanna leave state. | |
# | |
# Put this in hpricot source folder (with the Rakefile), then run: | |
# | |
# $ git checkout master | |
# $ git bisect start HEAD 0.8.2 |