Skip to content

Instantly share code, notes, and snippets.


Donovan Hutchinson donovanh

View GitHub Profile
View gist:ac2c69d14ea3ee1230e4
alias hometime = git checkout -b hometime && git push origin hometime && git add --all & git commit --all -m "hometime push"
donovanh / 0_reuse_code.js
Created Oct 3, 2013
Here are some things you can do with Gists in GistBox.
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
donovanh / gist:5814722
Last active Dec 18, 2015 — forked from oisin/gist:4444722
A handy bash prompt customization that shows the working directory followed by the current branch, and an asterisk if the branch is dirrrrty.
View gist:5814722
# Highlighting on prompt
parse_git_branch() {
git_status="$(git status 2> /dev/null)"
branch_pattern="^# On branch ([^${IFS}]*)"
View twitter-entities.js
* twitter-entities.js
* This function converts a tweet with "entity" metadata
* from plain text to linkified HTML.
* See the documentation here:
* Basically, add ?include_entities=true to your timeline call
* Copyright 2010, Wade Simmons
* Licensed under the MIT license