Skip to content

Instantly share code, notes, and snippets.

View alexspurling's full-sized avatar

Alex Spurling alexspurling

View GitHub Profile
get = -> {
secret_callback = -> {
secret_squirrly_function = -> {secret_callback(err, res, body)}
# Do something asynchronous
setTimeout secret_squirrly_function, 5000
# and return a function
(callback) -> {secret_callback = callback}
}
}
@alexspurling
alexspurling / git_svn_bash_prompt.sh
Last active August 8, 2018 05:51 — forked from woods/git_svn_bash_prompt.sh
Update of prompt colours and terminal title
#!/bin/bash
#
# DESCRIPTION:
#
# Set the bash prompt according to:
# * the branch/status of the current git repository
# * the branch of the current subversion repository
# * the return value of the previous command
#
# USAGE: