Skip to content

Instantly share code, notes, and snippets.

View melissakeizer's full-sized avatar

Melissa Keizer melissakeizer

View GitHub Profile
@stuart11n
stuart11n / gist:9628955
Created March 18, 2014 20:34
rename git branch locally and remotely
git branch -m old_branch new_branch # Rename branch locally
git push origin :old_branch # Delete the old branch
git push --set-upstream origin new_branch # Push the new branch, set local branch to track the new remote
@overture8
overture8 / vim_setup.md
Last active December 19, 2015 23:08
VIM Setup
@assafgelber
assafgelber / Rakefile
Last active December 19, 2015 15:38
Rakefile for building haml layouts, includes and indexes for jekyll for use in github pages.
# Rake tasks to parse haml layouts, includes and index files for jekyll
# Assumes that the haml files are in (_layouts|_includes|_posts)/_haml
namespace :haml do
require 'haml'
def convert file, destination
base_name = File.basename(file, '.haml') + '.html'
html = File.open(file, 'r') { |f| Haml::Engine.new(f.read).render }
File.open(File.join(destination, base_name), 'w') { |f| f.write html }