This is a map of the USDA commuting zones, which are collections of counties last modified in 2000.
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
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); |
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
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 |
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
(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"); |
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 | |
#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' |
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
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) { |
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
{ | |
"name": "netflix-category-scraper", | |
"version": "0.0.0", | |
"description": "Collect all categories from Netflix", | |
"dependencies": { | |
"cheerio": "*", | |
"sqlite3": "*", | |
"request": "*" | |
}, | |
"author": { |
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
<!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> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
NewerOlder