This is a map of the USDA commuting zones, which are collections of counties last modified in 2000.
View number_sequences.js
function generateSequences(n, k) { | |
var sequences = []; | |
function getSequences(n, k, sequence) { | |
// calculate the highest possible value of a number, such that it leaves at least enough left over to fill the rest with 1s | |
var upper = n - k + 1; | |
for (var c = 1; c <= upper; c += 1) { | |
var sub_sequence = sequence.slice(0); | |
sub_sequence.push(c); |
View get_county_borders.js
var fs = require("fs"); | |
var d3 = require("d3"); | |
var topojson = require("topojson"); | |
var point = require('point-at-length'); | |
var ProgressBar = require('progress'); | |
var us = require("./us-10m.v1.json"); | |
var path = d3.geoPath().projection(null); // pre-projected |
View elasticSVG.js
(function() { | |
var root = this; | |
// create a new SVG element | |
var elasticSVG = function(selector, opts) { | |
opts = opts || {}; | |
// containing DOM element, which defaults to body | |
var parent = document.querySelectorAll(selector || "body"); |
View counties.preprojected.topo.data.json
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View dropbox.sh
#!/bin/bash | |
#Thx, http://stackoverflow.com/questions/20723868/batch-rename-dropbox-conflict-files | |
#Point to where you want the script to look and where it should backup files it replaces | |
folder=~/Dropbox/Private | |
backup=~/Desktop/Dropbox.backup | |
#colors | |
red='\033[0;31m' |
View index.js
var Raphael = require("raphael-browserify"), | |
shuffle = require('shuffle-array'), | |
domify = require('domify'); | |
var body = "<div id='canvas'><div id='controls'><button>PLAY</button></div>"; | |
document.body.appendChild(domify(body)) | |
// bag of marbles will be represented as an array of strings: ["green", "blue", "blue", ... ] | |
function makeMarbles(ratios) { |
View package.json
{ | |
"name": "netflix-category-scraper", | |
"version": "0.0.0", | |
"description": "Collect all categories from Netflix", | |
"dependencies": { | |
"cheerio": "*", | |
"sqlite3": "*", | |
"request": "*" | |
}, | |
"author": { |
View index.html
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<title>The Word Stone</title> | |
<link rel="stylesheet" href="styles.css"> | |
</head> | |
<body> | |
<div class="container"> | |
<div class="canvas" id="canvas"></div> | |
<div id="wordlist" class="wordlist"></div> |
View coordinates.json
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
NewerOlder