Skip to content

Instantly share code, notes, and snippets.

@kaezarrex
kaezarrex / index.html
Last active August 29, 2015 14:14
sunburst
<html>
<head>
<title>Sketch1</title>
<style>
body {
margin: 0;
background-color: #000;
}
line {
stroke: #333;
@kaezarrex
kaezarrex / designer.html
Last active August 29, 2015 14:22
designer
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<link rel="import" href="../notification-elements/notification-alert.html">
<polymer-element name="my-element">
<template>
<style>
:host {
@kaezarrex
kaezarrex / tl_trac_beautifier.user.js
Created November 28, 2011 19:50 — forked from jasonwyatt/tl_trac_beautifier.user.js
TransLoc Trac Beautifier
// ==UserScript==
// @name TL Trac Beautifier
// @namespace https://dev.transloc.com
// @description Makes Trac look much better.
// @include https://dev.transloc.com/*
// ==/UserScript==
var $;
addJQuery(letsJQuery);
@kaezarrex
kaezarrex / index.html
Last active September 28, 2015 20:02
Leaflet+D3 Route Shapes
<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8'>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.7.2/leaflet.css">
<style>
body { padding: 0; margin: 0; }
html, body, #map { height: 100%; }
</style>
@kaezarrex
kaezarrex / first.js
Created March 4, 2012 23:23
A JavaScript function for chaining asynchronous calls.
function first(func) {
this.then = function(callback) {
return first(function(cb) {
func(function(){
callback(cb);
});
});
};
@kaezarrex
kaezarrex / twister.sh
Created April 29, 2012 19:01
Twister
#!/bin/bash
EXPECTED_ARGS=1
E_BADARGS=65
CMDS="say espeak"
exists=false
if [ $# -ne $EXPECTED_ARGS ]
then
echo "Usage: `basename $0` <seconds>"
#! /usr/bin/env python
from collections import defaultdict
from os import walk
from os.path import join
from subprocess import check_output
args = ['git', 'blame', '-p']
authors = defaultdict(list)
@kaezarrex
kaezarrex / octigones.user.js
Created May 9, 2012 21:10
Remove Octicons
// ==UserScript==
// @name Octigones
// @namespace https://github.com
// @include https://github.com/*
// @description A GitHub beautifier.
// ==/UserScript==
var JQUERY_URL = 'http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js',
$;
@kaezarrex
kaezarrex / coffee.md
Last active October 10, 2015 07:37
Cold Brew

Cold brew is great! It takes longer to make than normal coffee, but it's much smoother tasting. Try it without cream and you'll see what I mean.

[cold brew coffee][recipe]

I make double batches of [the recipe from Smitten Kitchen][recipe], and I let it sit for 12 to 24 hours.

  • 2/3 cup ground coffee 3 cups water
@kaezarrex
kaezarrex / recipe.md
Created September 24, 2012 23:48
Farmer's Pie

Ingredients

1 tbs. coconut or avocado oil
4-6 cloves fresh garlic, chopped
2 pounds (900 g) ground lamb
1 pound (450 g) ground grassfed beef
2 cups (300 g) onions chopped
2 cups (250 g) carrots, peeled and sliced
2 stalks celery, chopped
1 tbs. fresh rosemary, chopped fine