Skip to content

Instantly share code, notes, and snippets.

View arcktip's full-sized avatar

Patrick T. Hoffman arcktip

View GitHub Profile

Keybase proof

I hereby claim:

  • I am arcktip on github.
  • I am arcktip (https://keybase.io/arcktip) on keybase.
  • I have a public key ASCnn_VskWgr7jdYc5_N7T9nqLX7FhNDpXj4pfgbHoT4-go

To claim this, I am signing this object:

function HideCategory(id, IsAgent) {
// Function hides category
$j("div#category_" + id).hide('blind');
SetDownArrow(id, IsAgent);
$j.cookie('hide_category_' + id, 'yes', { expires: 180 });
$j("div#category_header_" + id).attr("onclick", "ShowCategory(" + id + "," +IsAgent+ ")");
};
library('RCurl')
library('RJSONIO')
library('igraph')
stations.url <- getURL('http://citibikenyc.com/stations/json')
dist.url <- getURL('appservices.citibikenyc.com/data2/stations.php')
# prep stations for kmeans clustering
stations.prep <- function(url) {
stations.json2 <- fromJSON(url, method='C')
@arcktip
arcktip / latlong.pde
Created May 3, 2012 22:10 — forked from leebyron/latlong.pde
conversions from Lat/long to 2d map projections - for Processing
/**
* A collection of functions responsible for performing translations between
* longitude/latitude coordinates and points on a 1/1 square
* (which you could then map to pixelspace)
*
* @author leebyron
*/
/**
* lon double x coordinate in radians [-PI,PI)