Skip to content

Instantly share code, notes, and snippets.

View frankrowe's full-sized avatar

Frank Rowe frankrowe

View GitHub Profile
@frankrowe
frankrowe / README.md
Last active August 29, 2015 14:00 — forked from mbostock/.block

This choropleth encodes unemployment rates from 2008 with a quantize scale ranging from 0 to 15%. A threshold scale is a useful alternative for coloring arbitrary ranges.

var express = require('express')
, csvorjson = require('csvorjson')
var workController = express.Router()
workController.get('/jobs', function(req, res, next) {
runquery(function(data){
csvorjson(req, res, data)
}
})
@frankrowe
frankrowe / gist:4a32c6a92a33116da3c0
Created August 4, 2014 13:41
default_colors.less
// COLOR VARIABLES
// Cool
@aqua: #7FDBFF;
@blue: #0074D9;
@navy: #001F3F;
@teal: #39CCCC;
@green: #2ECC40;
@olive: #3D9970;
@frankrowe
frankrowe / index.html
Last active December 12, 2015 05:48
map boilerplate
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Map Boilerplate</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width">
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/leaflet/0.5/leaflet.css" />
<!--[if lte IE 8]> <link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/leaflet/0.5/leaflet.ie.css" /> <![endif]-->
@frankrowe
frankrowe / README.md
Last active December 17, 2015 10:18 — forked from mbostock/.block
{
"AL": "Alabama",
"AK": "Alaska",
"AS": "American Samoa",
"AZ": "Arizona",
"AR": "Arkansas",
"CA": "California",
"CO": "Colorado",
"CT": "Connecticut",
"DE": "Delaware",
@frankrowe
frankrowe / nginx.conf
Last active December 18, 2015 15:58
nginx.conf example
worker_processes 1;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@frankrowe
frankrowe / .bash_profile
Last active December 20, 2015 12:29
- prompt: user@pwd >_ - sets terminal tab title to pwd (~ = home)
# Git aliases
alias gita='git add'
alias gitc='git commit -m'
alias gits='git status'
alias gitl='git log --oneline --color'
alias gitb='git branch --color'
alias gitu='git reset --HEAD^'
# Other Aliases
alias ls='ls -G'
<snippet>
<!-- put this file in /packages/User/<Folder Name>/console_log.sublime-snippet then restart your Sublime Text 2 -->
<content><![CDATA[console.log($1)$0]]></content>
<tabTrigger>log</tabTrigger>
<scope>text.html,source.js</scope>
<description>console.log()</description>
</snippet>