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
/Library/Ruby/Gems/1.8/gems/rspec-1.1.9/lib/spec/runner/options.rb:229:in `files_to_load': File or directory not found: gems (RuntimeError) | |
from /Library/Ruby/Gems/1.8/gems/rspec-1.1.9/lib/spec/runner/options.rb:221:in `each' | |
from /Library/Ruby/Gems/1.8/gems/rspec-1.1.9/lib/spec/runner/options.rb:221:in `files_to_load' | |
from /Library/Ruby/Gems/1.8/gems/rspec-1.1.9/lib/spec/runner/options.rb:98:in `run_examples' | |
from /Library/Ruby/Gems/1.8/gems/rspec-1.1.9/lib/spec.rb:21:in `run' | |
from /Library/Ruby/Gems/1.8/gems/rspec-1.1.9/lib/spec/runner.rb:191:in `register_at_exit_hook' | |
from /usr/bin/rake:19 |
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
config.gem 'rspec-rails', :lib => "spec/rails", :version => '1.1.11' | |
config.gem 'rspec', :lib => "spec", :version => '1.1.11 |
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
tell application "Things" to activate | |
tell application "Finder" | |
set visible of process "Things" to false | |
end tell |
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
cd <project directory> | |
git remote add mergername <remote repository url> | |
git pull mergername <local branch name> |
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
#!/bin/sh | |
#sudo gem install compass | |
# This will generate the following error: | |
# ERROR: While executing gem ... (Gem::RemoteSourceException) | |
# HTTP Response 302 fetching http://gems.rubyforge.org/yaml | |
sudo gem install rubygems-update --source http://production.s3.rubygems.org/ | |
sudo gem update --system --source http://production.s3.rubygems.org/ |
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
# required libraries | |
sudo apt-get install g++ curl libssl-dev apache2-utils | |
# install git if needed | |
sudo apt-get install git-core | |
# checkout the latest node file | |
git clone http://github.com/ry/node.git | |
# configure the installation to ~/opt folder |
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
# Let the gem find the gcc complier | |
$ export CC=/usr/bin/gcc-4.2 | |
# Run this command to install the gem mysql | |
$ env ARCHFLAGS="-arch x86_64" gem install mysql -- --with-mysql-dir=/usr/local/mysql --with-mysql-lib=/usr/local/mysql/lib --with-mysql-include=/usr/local/mysql/include --with-mysql-config=/usr/local/mysql/bin/mysql_config | |
# For Rails 3.0.x, we should use mysql2 version 0.2.x | |
# Run this command to install mysql2 with version 0.2.6 | |
$ env ARCHFLAGS="-arch x86_64" gem install mysql2 --version=0.2.6 -- --with-mysql-dir=/usr/local/mysql --with-mysql-lib=/usr/local/mysql/lib --with-mysql-include=/usr/local/mysql/include --with-mysql-config=/usr/local/mysql/bin/mysql_config |
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
# Add the following line to your ~/.bash_profile | |
export DYLD_LIBRARY_PATH="/usr/local/mysql/lib:$DYLD_LIBRARY_PATH" |
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
img:not([width]):not([height]) { | |
border: 2px solid red !important; | |
} |
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
function getElementsByClass(searchClass,node,tag) { | |
var classElements = new Array(); | |
if ( node == null ) | |
node = document; | |
if ( tag == null ) | |
tag = '*'; | |
var els = node.getElementsByTagName(tag); | |
var elsLen = els.length; | |
var pattern = new RegExp("(^|\\s)"+searchClass+"(\\s|$)"); | |
for (i = 0, j = 0; i < elsLen; i++) { |