Skip to content

Instantly share code, notes, and snippets.

View bdougherty's full-sized avatar
🚀
(╯°□°)╯︵ ┻━┻

Brad Dougherty bdougherty

🚀
(╯°□°)╯︵ ┻━┻
View GitHub Profile
@bdougherty
bdougherty / atom-invisibles-override.less
Last active January 25, 2016 08:49 — forked from justo/atom-invisibles-override.less
Style to make Atom’s tab character a wide line like Sublime Text and to only show invisibles on document highlight and on the current line.
@import "syntax-variables";
atom-text-editor::shadow {
// Make invisible characters the same color as the background, and
// explicitly set the box-shadow color for indent guides (otherwise they
// will be invisible too).
.invisible-character {
color: @syntax-background-color;
&.indent-guide {
@bdougherty
bdougherty / server.py
Created July 21, 2015 19:47 — forked from ccampbell/server.py
Simple static webserver using tornado
#!/usr/bin/env python
import os
import tornado.web
from tornado.ioloop import IOLoop
from tornado.options import define, options
# config options
define('port', default=8080, type=int, help='port to run web server on')
define('debug', default=False, help='start app in debug mode')
options.parse_command_line(final=True)
#!/usr/bin/env ruby
# Xcode auto-versioning script for Subversion by Axel Andersson
# Updated for git by Marcus S. Zarra and Matt Long
# Converted to ruby by Abizer Nasir
# Appends the git sha to the version number set in Xcode.
# see http://www.stompy.org/2008/08/14/xcode-and-git-another-build-script/ for more details
git = `sh /etc/profile; which git`.chomp
sha = `#{git} rev-parse --short HEAD`.chomp
@bdougherty
bdougherty / gist:125113
Created June 7, 2009 02:32 — forked from xaviershay/gist:49265
Git branch status bash prompt
function get_git_branch {
git branch | awk '/^\*/ { print $2 }'
}
function get_git_dirty {
git diff --quiet || echo '*'
}
function get_git_prompt {
git branch &> /dev/null || return 1
echo "[$(get_git_branch)$(get_git_dirty)] "
}