This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// uses https://github.com/neckro/LPD8806 | |
#include "LPD8806.h" | |
#include "SPI.h" | |
// strip settings | |
const uint16_t PIXEL_LENGTH = 32; | |
// tracer settings | |
#define NUM_TRACERS 4 | |
const int16_t MIN_POSRATE = 2; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* Table schema | |
CREATE TABLE `params` ( | |
`key` varchar(255) NOT NULL DEFAULT '', | |
`value` varchar(255) NOT NULL DEFAULT '', | |
PRIMARY KEY (`key`) | |
) ENGINE=InnoDB DEFAULT CHARSET=utf8; | |
*/ | |
// Settings |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
from random import randint | |
from fileinput import input | |
from argparse import ArgumentParser | |
from sys import stdout | |
# "data set of leet unicode chars" stolen from | |
# Tchouky's Zalgo Generator on eeemo.net | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$file = realpath(@$_GET['f']); | |
$p = pathinfo($file); | |
if (!$file || strtolower(@$p['extension']) !== 'md') { | |
http_response_code(403); | |
exit; | |
} | |
$cmd = sprintf( | |
'./md/peg-multimarkdown/multimarkdown "%s" --smart | sed "s/\–\;/\&mdash\;/g"', | |
escapeshellcmd($file) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// State machine, for event handlers and other mischief | |
define([], function() { "use strict"; | |
/////////////////////// | |
var stateM = { | |
create: function(target, config) { | |
var instance = Object.create(stateM.proto); | |
instance.statesHash = {}; | |
instance.statesStack = []; | |
instance.begunStates = {}; | |
instance.listeners = []; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// SVG helpers | |
define([], function() { "use strict"; | |
/////////////////////// | |
var Svg = (function(svg) { | |
svg.ns = { | |
svg: 'http://www.w3.org/2000/svg', | |
xlink: 'http://www.w3.org/1999/xlink' | |
}; | |
svg.create = function() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env sh | |
IFS=$'\n' | |
export dest=$1 | |
revision=$2 | |
default_revision="HEAD~1" | |
function tar_upload() { | |
local server=${dest%:*} | |
local remote_dir=${dest#*:} | |
sed -e 's/^.*-\> //g' |\ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Runs a stochastic dither animation on an 8x8 LED matrix. | |
23 December 2011 - neckro@gmail.com - No license. Do what thou wilt. | |
Requires a Maxim MAX7221 or MAX7219 LED controller. | |
Also requires LedControl library: http://www.arduino.cc/playground/Main/LedControl | |
Fills a row's array proportional to its distance from origin, | |
then applies a Fisher-Yates shuffle to randomize the order. | |
*/ | |
#include <LedControl.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"teams": { | |
"Potion of Beneficial MeFitation": [ | |
"slitherrr", | |
"256", | |
"murphyslaw", | |
"odiv", | |
"thenoid", | |
"zureal" | |
], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
default_branch="master" | |
repo_dir="$HOME/www" | |
branch=$1 | |
[ -z "$branch" ] && branch="$default_branch" | |
cd $repo_dir | |
git fetch | |
git clean -fd |
OlderNewer