Skip to content

Instantly share code, notes, and snippets.

View skopp's full-sized avatar

Rashaad Essop skopp

View GitHub Profile
from __future__ import print_function
import sublime
import sublime_plugin
import os
import sys
import json
import base64
import subprocess
import functools
import webbrowser
@skopp
skopp / README.md
Last active December 16, 2015 18:20
enter the matrix by skopp
@skopp
skopp / README.md
Created April 28, 2013 00:07 — forked from mbostock/.block

From Wikipedia:

Epicyclic gearing or planetary gearing is a gear system consisting of one or more outer gears, or planet gears, revolving about a central, or sun gear. … Epicyclic gearing systems also incorporate the use of an outer ring gear or annulus, which meshes with the planet gears.

Use the menu in the top-left to change the frame of reference, fixing the specified gear in-place.

Teacup.handler UINavigationBar, :backgroundImage do |styles|
styles.each do |metric, image|
case metric
when UIBarMetricsDefault, :portrait
self.setBackgroundImage(image && image.uiimage, forBarMetrics:UIBarMetricsDefault)
when UIBarMetricsLandscapePhone, :landscape
self.setBackgroundImage(image && image.uiimage, forBarMetrics:UIBarMetricsLandscapePhone)
end
end
end
Teacup.handler UINavigationBar, :backgroundImage { |styles|
styles.each do |metric, image|
metric = metric.uibarmetrics if metric.is_a? Symbol
self.setBackgroundImage(image && image.uiimage, forBarMetrics:metric)
end
}
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
@stash
stash / waterfall.js
Created April 26, 2013 13:43
async.waterfall gotchas
var async = require('async');
/*jshint noarg:false */
function first(next) {
console.log('first', arguments);
next(); // no params = nothing in next step
}
function second(next) {
console.log('second', arguments);

Python News

What's New in Python 2.7.4?

Release date: 2013-04-06

Build

@skopp
skopp / index.html
Created April 4, 2013 22:43
A CodePen by skopp.
<div class="hexrow">
<div>
<span>Any text you would like (that fits).</span>
<div></div>
<div></div>
</div>
<div>
<span>Really, change the text to say what you want!</span>
<div></div>
<div></div>
<en-note>
<span style="font-weight:bold;color:red;">Here's some bold red text!</span>
</en-note>