Skip to content

Instantly share code, notes, and snippets.

View rowanmanning's full-sized avatar
📢
honk

Rowan Manning rowanmanning

📢
honk
View GitHub Profile
@rowanmanning
rowanmanning / facepalm.coffee
Last active December 17, 2015 20:39
Hubot Animated Facepalm
# Description:
# None
#
# Dependencies:
# None
#
# Configuration:
# None
#
# Commands:
@rowanmanning
rowanmanning / percentages.css
Created March 27, 2013 15:15
Say NO to inline styles in progress bars... ಠ_ಠ
.progress-1 { width: 1%; }
.progress-2 { width: 2%; }
.progress-3 { width: 3%; }
.progress-4 { width: 4%; }
.progress-5 { width: 5%; }
.progress-6 { width: 6%; }
.progress-7 { width: 7%; }
.progress-8 { width: 8%; }
.progress-9 { width: 9%; }
.progress-10 { width: 10%; }
@rowanmanning
rowanmanning / wesley-client.html
Created March 21, 2013 07:33
Testing out Wesley (https://github.com/adlawson/wesley) from a simple browser client. You can test this with the command line client which comes bundled with Wesley.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8"/>
<title>Simple Wesley Client</title>
</head>
<body>
@rowanmanning
rowanmanning / useful-mac-tools.md
Created March 18, 2013 11:11
Useful Mac tools that I use all the time
@rowanmanning
rowanmanning / library.scss
Created January 17, 2013 13:24
Sass defaults example
$foo: 'bar' !default;
// ...do stuff
@rowanmanning
rowanmanning / list-colors.bash
Created November 29, 2012 09:54
Output all 255 terminal colors (Works on a Mac anyway...)
for i in {0..255}; do echo "$i: $(tput setaf $i)reg $(tput bold)bld$(tput sgr0) $(tput sgr 0 1)$(tput setaf $i)und$(tput sgr0)"; done
@rowanmanning
rowanmanning / demo.html
Last active October 12, 2015 15:08
Simple Konami Code with jQuery
<!DOCTYPE html>
<meta charset="utf-8"/>
<title>↑ ↑ ↓ ↓ ← → ← → B A</title>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
<script src="konami.js"></script>
<script>
// On document ready
@rowanmanning
rowanmanning / instructions.md
Created October 25, 2012 13:31
Git Autocompletion On Mac OS X

Git Autocompletion On Mac OS X

(based on this post which I don't like because they tell you to add a bash file to your home directory)

Run the following commands to begin:

cd /usr/local/bin && curl https://github.com/git/git/raw/master/contrib/completion/git-completion.bash -OL
@rowanmanning
rowanmanning / example.less
Created June 16, 2012 18:06
LESS Hackery
// Allows specifying default variables in LESS
// Some really sneaky shit that will shoot me in the foot if
// LESS changes too much...
@--lol: ~`"" + ( root._less = root._less || this )`;
@--lol: ~`"" + ( root.getLessVar = function (name) { return root._less[name] ? root._less[name].toJS() : '' } )`;
@--lol: ~`"" + ( root.getLessVarDefault = function (name, def) { return root.getLessVar(name) !== '' ? root.getLessVar(name) : root.getLessVar(def) } )`;
// Example: