Skip to content

Instantly share code, notes, and snippets.

View ticky's full-sized avatar
💽

Jessica Stokes ticky

💽
View GitHub Profile
@ticky
ticky / lol.js
Last active February 16, 2016 23:47 — forked from wesbos/lol.js
// paste in your console
(function() {
// if `onvoiceschanged` begins undefined, we need to call this manually, apparently?
var wasUndefined = speechSynthesis.onvoiceschanged === undefined;
speechSynthesis.onvoiceschanged = function() {
var sandbox = document.createElement('iframe');
sandbox.style.visibility = 'hidden';
sandbox.style.display = 'block';
document.body.appendChild(sandbox);
#!/bin/sh
COMMAND=
ONCHANGE=
INTERVAL=2
MD5COMMAND=
ONCE=NO
if which md5 >/dev/null 2>&1; then
MD5COMMAND=md5

Misty's Dad's Burritos (vegetarian version (metric edition))

Ingredients

  • 680g tempeh
  • 3 cloves garlic
  • 1 cup vegetable stock
  • 3 cups water
  • 4-4½ TBsp chili powder
  • 1½ tsp leaf oregano

Local (OS X) Side

~/Library/LaunchAgents/pbcopy.plist

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
     <key>Label</key>
     <string>localhost.pbcopy</string>
// easing functions http://goo.gl/5HLl8
Math.easeInOutQuad = function (t, b, c, d) {
t /= d/2;
if (t < 1) {
return c/2*t*t + b;
}
t--;
return -c/2 * (t*(t-2) - 1) + b;
};
#! /usr/bin/env python
""" Convert values between RGB hex codes and xterm-256 color codes.
Nice long listing of all 256 colors and their codes. Useful for
developing console color themes, or even script output schemes.
Resources:
* http://en.wikipedia.org/wiki/8-bit_color
* http://en.wikipedia.org/wiki/ANSI_escape_code