Skip to content

Instantly share code, notes, and snippets.

View JeffHerb's full-sized avatar

Jeffrey Herb JeffHerb

  • Office for Information Technology - NYS- RT Cluster
  • Albany NY
View GitHub Profile
@JeffHerb
JeffHerb / 0_reuse_code.js
Last active August 29, 2015 14:09
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@JeffHerb
JeffHerb / clear all but .git
Created March 12, 2014 00:04
If you ever have the need to completely remove the contents of a git project folder, but want to retain the .git
for i in `ls | grep -v ".git"` ; do rm -rf $i; done; rm .gitignore;