Skip to content

Instantly share code, notes, and snippets.

View dmitrydwhite's full-sized avatar

Dmitry White dmitrydwhite

  • Oregon, United States
View GitHub Profile
@dmitrydwhite
dmitrydwhite / gi.sh
Created March 26, 2019 22:24
Maybe I am not the only one who types `gi tpush` like 8 times a day
# me> gi tpush
# computer> -bash: gi: command not found
# me> dang it you kno wwhat I meant!
gi() { TCOMMAND=$1; shift; OTHERARGS=$@; if [ ${TCOMMAND:0:1} = "t" ]; then git ${TCOMMAND:1} $OTHERARGS; fi; }
// TODO: Add semicolon at end of this and all the other statements.
// TODO: Move module.exports statement to bottom of file--not necessary, but best practice.
module.exports = Batch
/**
* Creates a new instance of Batch
* @param {Boolean} sync Whether or not a delay frame should be set during queueing.
*/
function Batch(sync) {
if(!(this instanceof Batch)) {