Skip to content

Instantly share code, notes, and snippets.

David Hazinski kaezarrex

Block or report user

Report or block kaezarrex

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@kaezarrex
kaezarrex / index.html
Last active Aug 29, 2015
Chart and Table
View index.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>D3 Chart and Table</title>
<link rel="stylesheet/less" type="text/css" href="style.less">
<script src="http://cdnjs.cloudflare.com/ajax/libs/less.js/1.7.1/less.min.js" type="text/javascript"></script>
</head>
<body>
<svg class="chart"></svg>
View index.html
<html>
<head>
<title>Sketch1</title>
<style>
body {
margin: 0;
background-color: #000;
}
line {
stroke: #333;
View designer.html
<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 {
View tl_trac_beautifier.user.js
// ==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 Sep 28, 2015
Leaflet+D3 Route Shapes
View index.html
<!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 Mar 4, 2012
A JavaScript function for chaining asynchronous calls.
View first.js
function first(func) {
this.then = function(callback) {
return first(function(cb) {
func(function(){
callback(cb);
});
});
};
View twister.sh
#!/bin/bash
EXPECTED_ARGS=1
E_BADARGS=65
CMDS="say espeak"
exists=false
if [ $# -ne $EXPECTED_ARGS ]
then
echo "Usage: `basename $0` <seconds>"
View linelength.py
#! /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)
View octigones.user.js
// ==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 / massive-props.user.js
Created Jul 5, 2012
Give massive props on Twitter
View massive-props.user.js
// ==UserScript==
// @name Massive Props
// @namespace https://twitter.com
// @include https://twitter.com/*
// @description https://twitter.com/ryanqnorth/status/220970058548121600
// ==/UserScript==
var script = document.createElement('style');
script.innerHTML = '\
.favorite { \
You can’t perform that action at this time.