I hereby claim:
- I am briantjacobs on github.
- I am btjakes (https://keybase.io/btjakes) on keybase.
- I have a public key ASDhNq6NQEpNVZaQgpDz8ly4PZxOGGNwlyLUMehHzOX4PAo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
from jsonmerge import merge | |
import itertools | |
import os | |
import sys | |
import subprocess | |
import processHorizons | |
import simplejson as json | |
import msgpack | |
import dateutil.parser | |
from datetime import datetime |
import re | |
import os | |
import csv | |
import json | |
import sys | |
import StringIO | |
import dateutil.parser | |
import datetime | |
def main(inputFile): |
var cubeSphere = new CubeSphere({ | |
parent: PARENT, // scene or Object3D | |
scale: 1, // in case scaling according to other objects in scene | |
radius: 5, // size of sphere | |
textureFaces: [ | |
new THREE.ImageUtils.loadTexture(04.jpg), | |
new THREE.ImageUtils.loadTexture(03.jpg), | |
new THREE.ImageUtils.loadTexture(05.jpg), | |
new THREE.ImageUtils.loadTexture(06.jpg), | |
new THREE.ImageUtils.loadTexture(02.jpg), |
// Important: You must serve your pages as XHTML for this shim to work, | |
// otherwise namespaced attributes and elements will get messed up. | |
Object.defineProperty(SVGElement.prototype, 'innerHTML', { | |
get: function() { | |
var $child, $node, $temp, _i, _len, _ref; | |
$temp = document.createElement('div'); | |
$node = this.cloneNode(true); | |
_ref = $node.children; | |
for (_i = 0, _len = _ref.length; _i < _len; _i++) { | |
$child = _ref[_i]; |
Here’s how to make animations like this one. It requires intermediate Unix command-line knowledge, to install some tools and to debug if they don’t work. You’ll need these utilities:
curl
(or you can translate to wget
)convert
and montage
, part of ImageMagickffmpeg
, plus whatever codecsparallel
, for iteration that’s nicer than shell for loops or xargs
zsh
for leading 0s in numerical ranges to work#!/usr/bin/env node | |
// USAGE ------ | |
// ============ | |
var shell = require('./shellHelper'); | |
// execute a single shell command | |
shell.exec('npm test --coverage', function(err){ | |
console.log('executed test'); |
// USAGE ------ | |
// ============ | |
var shell = require('./shellHelper'); | |
// execute a single shell command | |
shell.exec('npm test --coverage', function(err){ | |
console.log('executed test'); | |
}}); |
The difference between XYZ and TMS tiles and how to convert between them
Lots of tile-based maps use either the XYZ or TMS scheme. These are the maps that have tiles
ending in /0/0/0.png
or something. Sometimes if it's a script, it'll look like
&z=0&y=0&x=0
instead. Anyway, these are usually maps in Spherical Mercator.
Good examples are OpenStreetMap, Google Maps, MapBox, MapQuest, etc. Lots of maps.
Most of those are in XYZ. The best documentation for that is slippy map tilenames on the OSM Wiki, and Klokan's Tiles a la Google.
development: | |
adapter: mysql2 | |
encoding: utf8 | |
database: my_database | |
username: root | |
password: | |
apt: | |
- somepackage | |
- anotherpackage |