Skip to content

Instantly share code, notes, and snippets.

@kaezarrex
kaezarrex / index.html
Last active December 11, 2015 01:09
Font Awesome buttons
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8>
<meta name="viewport" content="width=device-width">
<title>Social Buttons</title>
<link href="http://netdna.bootstrapcdn.com/font-awesome/3.2.1/css/font-awesome.min.css" rel="stylesheet">
<link href="./style.css" rel="stylesheet">
</head>
<body>
@kaezarrex
kaezarrex / index.html
Last active December 11, 2015 22:09
Houndstooth text mask
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8 />
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Houndstooth</title>
<link href='http://fonts.googleapis.com/css?family=Libre+Baskerville:400,700' rel='stylesheet' type='text/css'>
<style>
body {
font-size: 100px;
@kaezarrex
kaezarrex / index.html
Last active December 17, 2015 00:10
CSS Transparency
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8 />
<meta name="viewport" content="initial-scale = 1.0,maximum-scale = 1.0" />
<title>CSS Transparency</title>
<link rel="stylesheet" href="style.css" />
</head>
<body>
<div class="img-wrap1 tile">
@kaezarrex
kaezarrex / post-receive
Created February 13, 2014 01:16
post-receive deploy hook
#!/bin/bash
build="build-branch"
build_dir="/build/path"
while read oldrev newrev refname
do
branch=$(git rev-parse --symbolic --abbrev-ref $refname)
if [ "$build" == "$branch" ]; then
GIT_WORK_TREE=$build_dir git checkout -f $build
@kaezarrex
kaezarrex / index.html
Last active August 29, 2015 13:56
lies???
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, user-scalable=no">
<link href="style.css" rel="stylesheet" type="text/css">
</head>
<body>
<div id="google_canvas"></div>
<script src="http://code.jquery.com/jquery-2.0.3.min.js"></script>
@kaezarrex
kaezarrex / LICENSE
Last active September 22, 2021 08:40
punchcard-js
MIT License
Copyright (c) 2019 David Hazinski
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
@kaezarrex
kaezarrex / brewer.ipynb
Created April 13, 2014 16:18
brewer (bokeh example)
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@kaezarrex
kaezarrex / blocks-thumbnail
Last active August 29, 2015 13:59
bl.ocks.org thumbnail creator
#! /bin/bash
echo $1
convert "$1" -thumbnail 230x120 -gravity center -background white -extent 230x120 thumbnail.png
@kaezarrex
kaezarrex / README.md
Last active August 29, 2015 13:59
NC State Wolfline arrivals graph

The transit data comes through my proxy from the TransLoc OpenAPI. Routes are represented as large, colored nodes. Stops are small, gray nodes. Edges represent the minimum arrival prediction between a given stop and all vehicles on a given route.

The code needs refactoring.

@kaezarrex
kaezarrex / README.md
Last active November 26, 2019 00:35
Park walk

Auto-centering and auto-scaling topojson data with an inkpen-style drawing animation.