Skip to content

Instantly share code, notes, and snippets.

View stephenhandley's full-sized avatar
🎾
let

Stephen Handley stephenhandley

🎾
let
View GitHub Profile
Fs = require('fs')
Path = require('path')
ChildProcess = require('child_process')
TYPES = {
"PNG image data" : 'png'
"JPEG image data" : 'jpg'
"GIF image data" : 'gif'
"TIFF image data" : 'tiff'
Verifying that +stephenhandley is my openname (Bitcoin username). https://onename.io/stephenhandley
@stephenhandley
stephenhandley / AND_ALL_OF_THESE_APPROACHES_R_LAME.coffee
Created November 29, 2014 04:33
finding object in array of objects by property value
BARFS = [
{
x : 10
name : 'pizza'
}
{
x : 11
name : 'tacos'
}
{
@stephenhandley
stephenhandley / output.txt
Last active August 29, 2015 14:12
Compatriots! Soda in the drinking fountains is 100% true!
Harry Reid:FAAAAAAAAAART! *points finger at Republicans*
Ted Cruz:FAAAAAAAAAAAAAAAAAAAART! *points finger at Democrats*
Elizabeth Warren:FAAART! *points finger at Republicans*
Jebster:FAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAART! *points finger at Democrats*
Compatriots! I AM DEFINITIELY NOT LYING WHEN I SAY Soda in the drinking fountains is 100% true!
XOXO Harry Reid
Countrymen! I AM DEFINITIELY NOT LYING WHEN I SAY Soda in the drinking fountains is 100% true!
@stephenhandley
stephenhandley / gist:fabab41a57dbe5d701ee
Created February 15, 2015 01:07
instagram embed thing for jeff to use
<html>
<head>
<script src="http://platform.instagram.com/en_US/embeds.js"></script>
</head>
<body style="background-color: black">
<blockquote class="instagram-media" data-instgrm-captioned data-instgrm-version="4" style=" background:#FFF; border:0; border-radius:3px; box-shadow:0 0 1px 0 rgba(0,0,0,0.5),0 1px 10px 0 rgba(0,0,0,0.15); margin: 1px; max-width:658px; padding:0; width:99.375%; width:-webkit-calc(100% - 2px); width:calc(100% - 2px);"><div style="padding:8px;"> <div style=" background:#F8F8F8; line-height:0; margin-top:40px; padding:50% 0; text-align:center; width:100%;"> <div style=" background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAsCAMAAAApWqozAAAAGFBMVEUiIiI9PT0eHh4gIB4hIBkcHBwcHBwcHBydr+JQAAAACHRSTlMABA4YHyQsM5jtaMwAAADfSURBVDjL7ZVBEgMhCAQBAf//42xcNbpAqakcM0ftUmFAAIBE81IqBJdS3lS6zs3bIpB9WED3YYXFPmHRfT8sgyrCP1x8uEUxLMzNWElFOYCV6mHWWwMzdPEKHlhLw7NWJqkHc4uIZphavDzA2JPzUDsBZziNae2S6owH8xPmX8G7zzgKEOPUoYHvGz1TBCxMkd3kwNVbU0gKHkx+iZILf77IofhrY1nYFnB/lQPb79drWOyJVa/DAvg9B/rLB4cC+Nq
@stephenhandley
stephenhandley / home.html
Created October 12, 2011 12:22
homepage
<html>
<head>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js"></script>
<script type="text/javascript">
$(document).ready(function (evt) {
var bookmarks = {
sites: {
'g+': 'https://plus.google.com',
'hacker news': 'http://news.ycombinator.com',
techcrunch: 'http://techcrunch.com',
@stephenhandley
stephenhandley / LICENSE.txt
Created October 19, 2011 00:14 — forked from 140bytes/LICENSE.txt
140byt.es -- Click ↑↑ fork ↑↑ to play!
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 YOUR_NAME_HERE <YOUR_URL_HERE>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
{
"this": {
"is" : {
"one more": "way",
"that" : "json",
"coulda" : "woulda",
"be" : "indented"
},
"okay": "awesome"
},
{
"this": {
"is": {
"one more": "way",
"that": "json",
"coulda": "woulda",
"be": "indented"
},
"okay": "awesome"
},
@stephenhandley
stephenhandley / json_indentation_a.json
Created March 27, 2012 06:51
this is a way of indenting json
{
"this": {
"is": {
"a": "way",
"that": "json",
"could": "should",
"be": "indented"
},
"okay": "awesome"
},