Skip to content

Instantly share code, notes, and snippets.

@TheMapSmith
TheMapSmith / flights.js
Last active March 17, 2024 15:51
Fetching flight info
var fs = require('fs');
var request = require('request-promise');
var moment = require('moment')
// Globals
global.timestamp = moment().unix()
global.allPlaybacks = [];
global.geojson = {};
global.geojson['type'] = 'FeatureCollection';
global.geojson['features'] = [];
@TheMapSmith
TheMapSmith / data.csv
Created May 6, 2020 18:59 — forked from jadiehm/data.csv
Choropleth U.S. county map
id name rate
6073 San Diego 5702
6019 Fresno 5294
42071 Lancaster 4009
6107 Tulare 3952
6099 Stanislaus 3532
6077 San Joaquin 3181
53077 Yakima 2989
47059 Greene 2952
41005 Clackamas 2842
@TheMapSmith
TheMapSmith / index.html
Last active November 26, 2019 01:15 — forked from d3noob/index.html
A full screen leaflet.js map
<!DOCTYPE html>
<html>
<head>
<title>Full Screen Leaflet Map</title>
<meta charset="utf-8" />
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.7/leaflet.css" />
<style>
body {
padding: 0;

Particle Generation Idea

Is this right?

  1. Establish a buncha particles
  • Gridded? Random?
  1. Pass the start XY through a noise = random.noise2D(sx, sy) to get a value
  • What to do with Frequency?
  • What to do with Amplitude?
  • Returns range (-1, 1)?
@TheMapSmith
TheMapSmith / index.html
Last active August 27, 2018 11:11
esri-icon visualization
<link rel="stylesheet" href="http://js.arcgis.com/3.14/esri/css/esri.css">
<h2>
<span class="esri-icon-close ></span>
<span class="esri-icon-drag-horizontal ></span>
<span class="esri-icon-drag-vertical ></span>
<span class="esri-icon-handle-horizontal ></span>
<span class="esri-icon-handle-vertical ></span>
<span class="esri-icon-check-mark ></span>
<span class="esri-icon-left-triangle-arrow ></span>
<span class="esri-icon-right-triangle-arrow ></span>
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@TheMapSmith
TheMapSmith / index.html
Created May 10, 2018 14:44
Culverts Inspected in 2018
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<title>Culverts Inspected - 2018</title>
</head>
<body>
<div class="stats">
<h1>Culverts Inspected in 2018:</h1>
<h1 id="2018-count"></h1>
@TheMapSmith
TheMapSmith / .block
Last active November 1, 2017 15:20 — forked from mbostock/.block
Orthographic
license: gpl-3.0
@TheMapSmith
TheMapSmith / boxstarter.ps1
Created September 22, 2017 16:40 — forked from jessfraz/boxstarter.ps1
Boxstarter Commands for a new Windows box.
# Description: Boxstarter Script
# Author: Jess Frazelle <jess@linux.com>
# Last Updated: 2017-09-11
#
# Install boxstarter:
# . { iwr -useb http://boxstarter.org/bootstrapper.ps1 } | iex; get-boxstarter -Force
#
# You might need to set: Set-ExecutionPolicy RemoteSigned
#
# Run this boxstarter by calling the following from an **elevated** command-prompt: