This gist is a collection of my rough notes from Strange Loop 2012.
require "rubygems" | |
require "twitter" | |
require "json" | |
# things you must configure | |
TWITTER_USER = "your_username" | |
MAX_AGE_IN_DAYS = 1 # anything older than this is deleted | |
# get these from dev.twitter.com | |
CONSUMER_KEY = "your_consumer_key" |
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>Ansi 0 Color</key> | |
<dict> | |
<key>Blue Component</key> | |
<real>0.07884746789932251</real> | |
<key>Green Component</key> | |
<real>0.081504985690116882</real> |
var express = require('express'), | |
passport = require('passport'), | |
LocalStrategy = require('passport-local').Strategy, | |
connect = require('connect'), | |
http = require('http'), | |
path = require('path'), | |
util = require('util'), | |
fs = require('fs'), | |
redis = require('redis'), | |
cookie = require('cookie'), |
UPDATE: The Vector Tiles are not being served at this time by Openstreetmap. Try later or a different provider (example) Services seem to have resumed
A simple test of extending the L.TileLayer to fetch geoJSON tiles from openstreetmap and render them with d3. This is probably not the most efficient way to do this, as we accept empty image tags (from the standard TileLayer) and use them as containers for the data/requests.
This is a more wordy, narrative accompaniment to my pretty bare presentation about d3 that I gave to the jQuery DC Meetup.
- Not a chart library (though you can make charts with it)
- Not a map library (though you can make maps with it)
Which is to say, d3 can be used for building things, but the 'atomic parts' are lower-level than bar graphs or projections or so on. This is a powerful fact. It also means that d3 is a good basis for simple interfaces, like Vega.js, that make its power accessible in other ways.
- Not a compatibility layer (it doesn't work with bad browsers)
Static tiled raster version of Mike Bostock’s satellite projection example
Minimal Mercator tiles from a [MapBox terrain example](http://a.tiles.mapbox.com/v3/examples.map-4l7djmvo/page.html) are [automatic computed](http://www.jasondavies.com/maps/tile/) and reprojected on-the-fly.
Unfortunately, distortion is too great to support zooming at the moment.
#!/bin/bash | |
CDB_USER=$1 | |
API_KEY=$2 | |
IMPORT_FILE=$3 | |
if [[ -z $CDB_USER ]] | |
then | |
echo "Missing user" | |
fi |
#!/bin/bash | |
set -e -u | |
domain='http://geojson.io' | |
infile='' | |
if (uname | grep -q 'Darwin'); then | |
open='open' | |
else | |
open='xdg-open' |