Skip to content

Instantly share code, notes, and snippets.

View buley's full-sized avatar
🍯
cooking

Tay buley

🍯
cooking
View GitHub Profile
@buley
buley / gist:9edc099d51d298161d48
Created July 14, 2014 23:39
virtualizing pidora on os x
brew install qemu
cd /usr/local/Cellar/qemu/1.7.0/bin
wget http://xecdesign.com/downloads/linux-qemu/kernel-qemu
./qemu-system-arm -kernel kernel-qemu -cpu arm1176 -m 256 -M versatilepb -no-reboot -serial stdio -append "root=/dev/sda2 panic=1 rootfstype=ext4 rw" -hda ~/Downloads/Pidora-2014-R2-1/Pidora-2014-R2-1.img
curl -IL "http://www.nytimes.com/2014/05/11/opinion/sunday/kristof-whats-so-scary-about-smart-girls.html?smid=tw-share&smv1" | grep HTTP
HTTP/1.1 303 See Other
HTTP/1.1 302 Found
HTTP/1.1 303 See Other
HTTP/1.1 302 Found
HTTP/1.1 303 See Other
HTTP/1.1 302 Found
HTTP/1.1 303 See Other
HTTP/1.1 302 Found
HTTP/1.1 303 See Other
@buley
buley / gist:9752414
Last active August 29, 2015 13:57 — forked from munificent/gist:9749671
You appear to be advocating a new:
You appear to believe that:
Unfortunately, your idea (has/lacks):
The following philosophical objections apply:
@buley
buley / gist:9669739
Created March 20, 2014 17:48
How I explained promises
var ryan = function() {
console.log('hey girl');
};
for ( var x = 0; x < 10; x += 1 ) {
(function(z) { var prev = ryan;
ryan = function() {
console.log('hey guy', z);
prev();
} }(x));
}
@buley
buley / atom-events
Created February 28, 2014 03:32 — forked from ardcore/atom-events
application:open-your-keymap
application:open-your-stylesheet
autocomplete:attach
autoflow:reflow-paragraph
bookmarks:clear-bookmarks
bookmarks:jump-to-next-bookmark
bookmarks:jump-to-previous-bookmark
bookmarks:toggle-bookmark
bookmarks:view-all
check:correct-misspelling
#
# Initialize the stuff
#
# We build the status bar item menu
def setupMenu
menu = NSMenu.new
menu.initWithTitle 'FooApp'
mi = NSMenuItem.new
mi.title = 'Hellow from MacRuby!'
mi.action = 'sayHello:'
@buley
buley / And a title
Created January 12, 2014 05:13
This is my gist
It has a body
# Artsy Editorial
#
# Get Page stats from google analytics
GA = require('googleanalytics')
util = require('util')
require('date-utils');
module.exports = (robot) ->
robot.hear /stats (.*)http:\/\/artsy.net\/(.*)/i, (msg) ->
// Disable bold.
term_.prefs_.set('enable-bold', false)
// Use this for Solarized Dark
term_.prefs_.set('background-color', "#002b36");
term_.prefs_.set('foreground-color', "#839496");
term_.prefs_.set('color-palette-overrides', [
'#073642',
'#dc322f',
@buley
buley / gist:5078485
Created March 3, 2013 21:54
Guessed Gender At TC based on /feed
{
"Taylor": "likely-male",
"Ingrid": "female",
"Alex": "male",
"Gregory": "male",
"John": "male",
"Colleen": "female",
"Ross": "male",
"Natasha": "female",