Skip to content

Instantly share code, notes, and snippets.

View robertSahm's full-sized avatar

Robert Sahm robertSahm

View GitHub Profile
@robertSahm
robertSahm / Installing Libsass and Sassc and Bourbon and Neat
Last active November 23, 2015 22:33
Installing Libsass and Sassc and Bourbon and Neat
We couldn’t find that file to show.
@robertSahm
robertSahm / herokuSSLfix
Created July 16, 2012 19:40
When heroku doesn't accept your ssl key
Just let Heroku know what your public keys are:
heroku keys:add ~/.ssh/id_rsa.pub
@robertSahm
robertSahm / gist:2722128
Created May 17, 2012 22:53 — forked from joncode/gist:2713367
github terminal alias commands - awesome!
alias ll="ls -lahG"
alias cdr='cd ~/rails'
alias gs='git status'
alias gl='git pull'
alias gp='git push'
alias gm='git merge'
alias gap='git add -p'
alias gaa='git add .'
alias gd='git diff | mate'
@robertSahm
robertSahm / gist:2722126
Created May 17, 2012 22:52 — forked from joncode/gist:2521919
installing Compass Gem
> gem install 'compass'
add to Gemfile in app - assets block
group :assets do
gem 'compass'
gem 'sass-rails', '~> 3.1.4'
# gem 'coffee-rails', '~> 3.1.1'
# gem 'uglifier', '>= 1.0.3'
end
> bundle install
@robertSahm
robertSahm / gist:2571322
Created May 1, 2012 20:56 — forked from joncode/gist:2565964
uploading local git repo to github
git remote add origin [email protected]:joncode/wibble.git
you have to include the word 'origin' for this to work
@robertSahm
robertSahm / jquery.replaceWith.example
Created April 27, 2012 19:02
jQuery replace with exampe
$('.guitarClick1 a').click(function() {
$('h2.chooseInstrument').replaceWith('<h2 class="chooseInstrument">Step 2: Choose a body style</h2>');
})
@robertSahm
robertSahm / gist:2501162
Created April 26, 2012 17:29 — forked from joncode/gist:2501101
Add CSS id to link_tag
using the old argument style of controller: "#", action: "#" , must put them in a hash to avoid id confusion
<%= link_to 'STORE',{ controller: 'store', action: 'new'}, :id => "storeClick" %>