Skip to content

Instantly share code, notes, and snippets.

View ringmaster's full-sized avatar

Owen Winkler ringmaster

View GitHub Profile
@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) {
-----BEGIN PGP MESSAGE-----
Version: GnuPG v1.4.13 (MingW32)
hQIMA3YVUXiGvrJpARAAgIyWEFf2OGamVXDjDCLTj2cepNt2VY9Jwlhi8OZGs/kg
+gmIkyIA2JXyT7cbwe3ple5jQIDa4nC1K5PexQ2WF2CkhcNEZn8eyZlWAUv+bsT6
otJ4Kv4GI21oBYJditdUp5POy5LWMGce3oXe0xMrrumpl+la++i3MX/mSJK6Uapu
QJtyOiREb1hZWHbrtrA9uLe/Qn4RUAjhvgKfAAvoJu8U3tYEH0yk8sh4Ht38x1uP
PuSv4Er/UfPxJb2HDS+VitxffFMxCJWv65Z1WWVqJD8rWoHs8YZyUOw7ECTzYlZl
i9C0fJHxFS4dZgPbNrwEzG4rDhvKjB7LoThhmXTmoXu5V2YwqotjEaVOcf8NbjTu
OpwjmVyEOyFLr/0Su9TpTv0rzXEFaxmFGQERDdRs0dCNYFcJ01ss9mW4sUGka7ZO
@ringmaster
ringmaster / keybase.md
Created February 24, 2014 20:41
keybase.md

Keybase proof

I hereby claim:

  • I am ringmaster on github.
  • I am ringmaster (https://keybase.io/ringmaster) on keybase.
  • I have a public key whose fingerprint is 1ECB FD3E 9FD9 271F 4B8D C71D 8C65 3BD1 5B6A FAB1

To claim this, I am signing this object:

@ringmaster
ringmaster / sketch_jan30a.ino
Created January 30, 2014 23:29
My "first" Arduino sketch
int switchState = 0;
int lightOn = 0;
int led = 13;
void setup() {
pinMode(3, OUTPUT);
pinMode(4, OUTPUT);
pinMode(5, OUTPUT);
pinMode(2, INPUT);
pinMode(led, OUTPUT);
<?php
if(PHP_OS == 'WINNT') {
$CONFIG = array (
'datadirectory' => 'D:\owen\Documents\phpstorm\oc2\data',
'dbhost' => 'home.lise',
// Extra SSL options to be used for configuration
'openssl' => array(
'config' => 'C:\Program Files (x86)\iis express\PHP\v5.4\extras\openssl.cnf',
),
);