Skip to content

Instantly share code, notes, and snippets.


Aaron Buchanan aaronbuchanan

View GitHub Profile
aaronbuchanan / 0_reuse_code.js
Created Mar 1, 2014
Here are some things you can do with Gists in GistBox.
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
aaronbuchanan / index.html
Created Jun 14, 2014
A Pen by Aaron Buchanan.
View index.html
<div class="navbar navbar-inverse navbar-fixed-top" role="navigation">
<div class="container-fluid">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<a class="navbar-brand" href="#">Project Name</a>
$ for filename in OrigPrefix*; do echo mv \"$f\" \"${f//OrigPrefix/NewPrefix}\"; done
aaronbuchanan /
Created Jul 22, 2014
persistent ulimit fix for local file watchers
launchctl limit maxfiles 2048 2048 && ulimit -n 2048
aaronbuchanan / gist:2dcf936daceab925da61
Created Feb 3, 2015
P.O.S.T. — Purpose Outcome Structure Timing
View gist:2dcf936daceab925da61
Purpose Outcome Structure Timing
Having a plan for sales meetings, before the actual meeting will improve your chances of success.
Winging it is not a good strategy. You really need to think in advance what is the Purpose of the meeting and what is the Outcome of the meeting. You want the Purchase Order (PO) so think about the Purpose and the Outcome.
Be realistic about what can be achieved in the meeting. Ideally think about what the customer wants from the meeting - not just what you want. If you draw an analogy with dating - you might want sex on the first date but is it realistic? Having a clear view on small incremental steps forward towards the end goal is important otherwise you can end up in a protracted Engagement and never get Married (get the sale) or worse still turn the sale off by being too pushy!
Using the POST (Purpose Outcome Structure Timing) tool will help you have more effective sales meetings.
Purpose - what is the reason for the meeting. If it's a first meeting the purpose might
View gist:4e378ff5e96cb2cb28bf
$ gource -f -1280x720 --auto-skip-seconds 1 --bloom-multiplier 1.0 --bloom-intensity 1.2 -e 0.2 --background 000000 --background-image gource/bg.png --seconds-per-day .2 --highlight-all-users -o gource/out.ppm
$ ffmpeg -y -r 60 -f image2pipe -vcodec ppm -i gource/out.ppm -vcodec libx264 -preset ultrafast -pix_fmt yuv420p -crf 1 -threads 0 -bf 0 gource/out.mp4
View gist:5df6887f76026bb25acb
@implementation InterfaceController
SRWebSocket *_webSocket;
- (void)awakeWithContext:(id)context {
[super awakeWithContext:context];
- (IBAction)didOpen {
View gist:353f10ddcb0d4a175661
<smil><head><layout><root-layout width="2460px" height="1440px"/><region id="Image" left="0" top="0" width="2460px" height="1296px" fit="meet"/></layout></head><body><par dur="5000ms"><img src="20150815_140057.jpeg" region="Image"/></par></body></smil>
aaronbuchanan / top 100 domain occurrences by email.sql
Created Sep 1, 2015
MYSQL statement to parse the domain of an email and show the most common domains
View top 100 domain occurrences by email.sql
select count(*) as occurrances, substring_index(email, "@", -1) as domain
from users
group by substring_index(email, "@", -1)
ORDER by occurrances DESC
limit 100;
aaronbuchanan / Gulpfile.js
Created Oct 19, 2015 — forked from ddprrt/Gulpfile.js
Gulp: Grabbing JavaScript assets from a CDN to add to your build pipeline
View Gulpfile.js
var gulp = require('gulp');
var source = require('vinyl-source-stream');
var request = require('request');
var merge = require('merge2');
var concat = require('gulp-concat');
var buffer = require('gulp-buffer');
* 1. We request the latest jQuery version from the jQuery CDN. The
* request package allows for streaming. What we get in return