As described here, ominbus-installed chef doesn't play well with rvm. This script automates wrapping the chef binary symlinks in /usr/bin so they work again. Tested on OSX.
This file contains 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
Comment in Gemfile: | |
# Use SCSS for stylesheets | |
# gem 'sass-rails', '~> 4.0.0' | |
# Use Uglifier as compressor for JavaScript assets | |
# gem 'uglifier', '>= 1.3.0' | |
# Use CoffeeScript for .js.coffee assets and views | |
# gem 'coffee-rails', '~> 4.0.0' |
The Psychology of Computer Programming, Gerald M. Weinberg
The Mythical Man-Month: Essays on Software Engineering, Frederick P. Brooks
Peopleware: Productive Projects and Teams, Tom DeMarco, Timothy R. Lister
Characterizing people as non-linear, first-order components in software development, Alistair A. R Cockburn
The Passionate Programmer, Chad Fowler
This file contains 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
module Celluloid | |
class Timeout | |
public | |
def self.timeout(sec, exception_class = TimeoutError, &block) | |
future = Celluloid::Future.new(&block) | |
begin | |
future.value(sec) | |
rescue ::Celluloid::TimeoutError => e | |
raise exception_class || e | |
end |
This file contains 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
/* | |
Author: Simon Robson | |
Email: shrobson at google's email service | |
Javascript to place a baseline layer or grid over the content of a page. | |
Dependencies: | |
------------ | |
jQuery (http://www.jquery.com) |
This file contains 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
/* | |
Author: Simon Robson | |
Email: shrobson at google's email service | |
Javascript to place a baseline grid over the content of a page. | |
Dependencies: | |
------------ | |
jQuery (http://www.jquery.com) |
This file contains 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
# Basic rails template w/git setup. Slightly adapetd from... | |
# newgit.rb | |
# from Joao Vitor | |
# via http://github.com/jeremymcanally/rails-templates | |
# rails:rm_tmp_dirs | |
["./tmp/pids", "./tmp/sessions", "./tmp/sockets", "./tmp/cache"].each do |f| | |
run("rmdir ./#{f}") | |
end |
This file contains 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
<!-- Note: this depends on this patch being applied: | |
http://github.com/simonrobson/spree/commit/5d94572bf5ba8fe8198a21dc1253845603fb3c9d --> | |
<p> | |
<% attribute = field[:name].gsub(" ", "_").downcase %> | |
<%= f.label attribute, field[:name] %> | |
<% if f.object && f.object.column_for_attribute(attribute).type == :boolean %> | |
<%= f.check_box attribute %> | |
<% else %> |