Skip to content

Instantly share code, notes, and snippets.

View prefork's full-sized avatar

Nate Benes prefork

View GitHub Profile

Keybase proof

I hereby claim:

  • I am prefork on github.
  • I am prefork (https://keybase.io/prefork) on keybase.
  • I have a public key whose fingerprint is 0A5E 1B57 BBA2 11A3 36B5 9AF2 ED6C 02C9 C87E 8192

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am natebenes on github.
  • I am prefork (https://keybase.io/prefork) on keybase.
  • I have a public key whose fingerprint is 0A5E 1B57 BBA2 11A3 36B5 9AF2 ED6C 02C9 C87E 8192

To claim this, I am signing this object:

@prefork
prefork / README.md
Created February 17, 2014 23:28 — forked from mbostock/.block

This example demonstrates loading of CSV data, which is then quantized into a diverging color scale. The values are visualized as colored cells per day. Days are arranged into columns by week, then grouped by month and years. Colors by Cynthia Brewer. Layout inspired by Rick Wicklin and Robert Allison. Dow Jones historical data copyright Yahoo! Finance or independent data provider; fair use for educational purposes.

# Get list of Dining Halls
http://histestiis.unl.edu/menus/services/DailyMenu.aspx?action=getcomplexes
# Get list of Meal Dates
http://histestiis.unl.edu/menus/services/DailyMenu.aspx?action=getmealdates
# Get menu for DAY
http://histestiis.unl.edu/menus/services/dailymenu.aspx?action=getdailymenuforentireday&complexId={COMPLEX_ID}&mealdate={DATE}&Type=hierarchical
#!/bin/sh
sudo aptitude remove nginx-light nginx nginx-common nginx-full
sudo apt-get install python-software-properties software-properties-common
sudo add-apt-repository ppa:chris-lea/nginx-devel
sudo aptitude update
sudo apt-get install nginx-light
@prefork
prefork / README.md
Created January 24, 2013 03:27 — forked from mbostock/.block

From Wikipedia:

Epicyclic gearing or planetary gearing is a gear system consisting of one or more outer gears, or planet gears, revolving about a central, or sun gear. … Epicyclic gearing systems also incorporate the use of an outer ring gear or annulus, which meshes with the planet gears.

Use the menu in the top-left to change the frame of reference, fixing the specified gear in-place.

# add this to increase your zen
127.0.0.1 www.buzzfeed.com
test
# Path to your oh-my-zsh configuration.
export ZSH=$HOME/.oh-my-zsh
# Set to the name theme to load.
# Look in ~/.oh-my-zsh/themes/
export ZSH_THEME="sorin"
# Set to this to use case-sensitive completion
# export CASE_SENSITIVE="true"
@prefork
prefork / helpers.rb
Created December 30, 2011 01:38 — forked from foysavas/helpers.rb
Carrierwave, DataMapper, & Sinatra starring in "Imagine the Possibilities"
def is_ajax_request?
if respond_to? :content_type
if request.xhr?
true
else
false
end
else
false
end