Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View goldylucks's full-sized avatar

Adam Goldman goldylucks

View GitHub Profile
@puyo
puyo / hangman.html
Created October 1, 2015 06:55
Animated ASCII artwork on the JS console
<html>
<body>
<script>
var hangmanStages = [
`
@ArturT
ArturT / .bash_profile
Last active June 26, 2021 05:55
Watch file changes and run rspec for the test file or specified line number test. Use spring with rspec optionally.
# It requries installed nodemon
# $ npm install -g nodemon
#
# Add this in your ~/.bash_profile
#
# How to use it?
#
# Run spec for user_spec.rb when file changed.
# $ wr spec/models/user_spec.rb
#
@robmiller
robmiller / .gitconfig
Created July 17, 2013 07:52
Some useful Git aliases that I use every day
#
# Working with branches
#
# Get the current branch name (not so useful in itself, but used in
# other aliases)
branch-name = "!git rev-parse --abbrev-ref HEAD"
# Push the current branch to the remote "origin", and set it to track
# the upstream branch
publish = "!git push -u origin $(git branch-name)"
@leoapost
leoapost / gist:4318441
Created December 17, 2012 13:55
Delete all remote branches, except master
# Replace REMOTE_NAME with your remote name (e.g. origin)
git branch -r | grep REMOTE_NAME/ | grep -v 'master$' | grep -v HEAD| cut -d/ -f2 | while read line; do git push REMOTE_NAME :$line; done;