Skip to content

Instantly share code, notes, and snippets.

View ringmaster's full-sized avatar

Owen Winkler ringmaster

View GitHub Profile
@ringmaster
ringmaster / tracklist.md
Last active February 11, 2016 19:35
Rap Complaint Track List

"Here Comes the Cat"

"Where My Leftovers At?"

"Your Pull Request is Bad and You Should Feel Bad"

“Bus Nonsense”

“Your Friend Smells Bad”

"You Think You Know Philly Cheesesteaks"

"Making Bread"

"Remote Life"

"Hydroponics"

"So Many Headphones"

@ringmaster
ringmaster / Onename.txt
Created November 13, 2015 13:42
Onename
Verifying that +ringmaster is my blockchain ID. https://onename.com/ringmaster
@ringmaster
ringmaster / GIF-Screencast-OSX.md
Created October 14, 2015 19:42 — forked from dergachev/GIF-Screencast-OSX.md
OS X Screencast to animated GIF

OS X Screencast to animated GIF

This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.

Screencapture GIF

Instructions

To capture the video (filesize: 19MB), using the free "QuickTime Player" application:

<?php
//...
public function filter_default_rewrite_rules( $rules ) {
$rules[] = array(
'name' => 'display_invoice',
'parse_regex' => '%^(?P<client_slug>.+?)/invoice/(?P<slug>.+?)/?$%i',
'build_str' => '{$client_slug}/invoice/{$slug}',
@ringmaster
ringmaster / gist:439486c538e19bb77f3b
Created July 3, 2014 12:25
Beers in PA that are uncommon in OH
4 Hands
Allagash [Limited]
Appalachian [Limited]
August Schell
Beer Valley [Limited]
Belfast Bay [Limited]
Blue Point
Boaks [Limited]
Bottle Tree
Brash
@ringmaster
ringmaster / archives.plugin.php
Last active August 29, 2015 14:01
archives.plugin.php that takes into account the current post maybe
<?php
class MonthlyArchives extends Plugin
{
private $config = array();
private $class_name = '';
private $cache = array();
private $default_options = array (
'display_month' => 'F',
'show_count' => 'Y',
alias l="ls -la"
alias phpd="php -dxdebug.remote_autostart=On"
alias more=less
export EDITOR=vim
export SSH_AUTH_SOCK=/tmp/.ssh-socket
ssh-add -l 2>&1 >/dev/null
if [ $? = 2 ]; then
@ringmaster
ringmaster / gist:10978482
Created April 17, 2014 12:11
Exactly my feelings on the matter
“Martin, did you ever play basketball?”
“Yes.”
“Tell me, what’s a foul?”
“It’s when a player breaks one of the rules. Do it five times and you’re kicked out of the game. Six, if it’s the NBA.”
Phillip smiled. “Good. The best way I’ve ever summed up the war as I see it is that one side, our side, sees a foul as being against the rules, and if you do it too many times you have to be removed. The other side, Jimmy’s side, sees fouls as things you’re allowed to get caught doing several times, and if you don’t, you aren’t trying hard enough.”
“So you’re mad at Jimmy because you think his side cheats at life.”
“Partly. Mostly I’m mad because I’m pretty sure his side is going to win.”
Meyer, Scott (2014-03-18). Off to Be the Wizard (Magic 2.0, Book 1) (Kindle Locations 2566-2572). 47North. Kindle Edition.
groupZeros = function (ar) {
for(var i = ar.length - 1; i > 0; i--) {
if(ar[i] == 0) {
for(var z = 0; z < i - 1; z++) {
if(ar[z] == 0) {
ar.splice(i, 1);
ar.splice(z, 0, 0);
z = i;
}
}
<?php
class OC_Hook extends ArrayObject {
static protected $registered = array();
protected $abort = false;
protected $callbacks = array();
protected $signal = '';
public static function connect($classname, $signalname, $callback) {