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
// Inspired by http://dmitry.baranovskiy.com/work/github/ | |
d3.chart.impact = function() { | |
var width = 1, | |
height = 1, | |
duration = 0, | |
domain = null, | |
values = Object, | |
key = d3_chart_impactKey, | |
value = d3_chart_impactValue, | |
sort = null, |
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 | |
# | |
# Language agnostic GIT pre commit hook. | |
# | |
# Copyright (c) 2013 Marius Wilms. | |
# All rights reserved. | |
# | |
# Distributed under the terms of the BSD 3-clause license. Redistributions | |
# of this file must retain the above copyright notice. For the full license | |
# text see: http://opensource.org/licenses/BSD-3-Clause. |
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
# ------------------------------------------------------------------# | |
# FILE: mbriggs.zsh-theme # | |
# BY: Matt Briggs ([email protected]) # | |
# BASED ON: smt by Stephen Tudor ([email protected]) # | |
# ------------------------------------------------------------------# | |
SCM_THEME_PROMPT_DIRTY="${red}⚡${reset_color}" | |
SCM_THEME_PROMPT_AHEAD="${red}!${reset_color}" | |
SCM_THEME_PROMPT_CLEAN="${green}✓${reset_color}" | |
SCM_THEME_PROMPT_PREFIX=" " |
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 | |
if [[ -z "$1" ]]; then | |
echo "Syntax: $0 debfile" | |
exit 1 | |
fi | |
DEBFILE="$1" | |
TMPDIR=`mktemp -d /tmp/deb.XXXXXXXXXX` || exit 1 | |
OUTPUT=`basename "$DEBFILE" .deb`.modified.deb |
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 | |
/** | |
* Continuation routing examples. Handles URLs in the following forms: | |
* | |
* /posts | |
* /en/posts | |
* /admin/posts | |
* /admin/en/posts | |
* /admin/en/posts.json | |
* /admin/en/posts/4ef16ccc7f8b9aa331000064.json |
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 ruby | |
# Usage: gitio URL [CODE] | |
# | |
# Turns a github.com URL | |
# into a git.io URL | |
# | |
# Copies the git.io URL to your clipboard. | |
url = ARGV[0] | |
code = ARGV[1] |
NewerOlder