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
mapboxgl.accessToken = config.accessToken; | |
var origin = [-122.4340, 37.7353, 1000]; | |
var map = new mapboxgl.Map({ | |
container: 'map', | |
style: 'mapbox://styles/mapbox/light-v9', | |
center: origin, | |
zoom: 15.95, | |
pitch: 60, | |
heading: 41, |
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
mapboxgl.accessToken = 'pk.eyJ1IjoiYmVubmxpY2giLCJhIjoieUxHOHQyNCJ9.VLDDBTTdzeHKJvR5ABYaLA' | |
let tubeMesh; | |
let tubeMaterial; | |
let origin = [-122.2639955060099, 37.7994199370347, 1000]; | |
let map = new mapboxgl.Map({ | |
container: 'map', | |
style: 'mapbox://styles/mapbox/light-v9', | |
center: origin, | |
zoom: 12, |
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
# Sublime's HTML reindenting is currently pretty bad. And Tidy and xmllint | |
# change my code in ways I don't really like or need. I just need the thing | |
# reindented sanely. Emacs did that pretty well. | |
# | |
# One thing led to another. A few drinks later and now I'm using Emacs to | |
# reindent HTML from within Sublime. | |
# | |
# Save the contents of this file as ohmygodemacs.py in your User directory. | |
# Then save the contents of the following docstring as ohmygodemacs.elisp in your | |
# User directory |
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() { | |
ABM.DatGUI = (function() { | |
function DatGUI(fbui) { | |
var self = this; | |
this.gui = new dat.GUI(); | |
this.model = {}; | |
this.fbui = fbui; | |
fbui.fb.on('child_added', function(uiSnap) { | |
var uiEl = uiSnap.val(), |
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 count = 0; | |
while (agent.patchRightAndAhead(0,1).isWall()) { | |
agent.rotate(Math.PI/2); | |
count++; | |
if (count >= 3) { | |
agent.die(); | |
} | |
} |
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
// v1 | |
{ | |
birth_certificate: { | |
lat: 54, | |
lon: 22, | |
etc: etc | |
}, | |
data: { | |
height: 4, |
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 bogart = require('bogart'); | |
var router = bogart.router(); | |
router.get('/', function(req) { | |
return bogart.middleware.respondWithFile(req, 'index.html'); | |
}); | |
var app = bogart.app(); | |
app.use(bogart.batteries); | |
app.use(router); |
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 customEnvelope = { | |
levels: [0, 1, 0], | |
times: [0.5, 0.5] | |
}; | |
var gateDef = { | |
ugen: "flock.ugen.sequencer", | |
durations: [1, 1, 1], | |
values: [1, 1, 1], | |
options: { |
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 watchPosition(agent) { | |
agent.dataRef.child("coords").once("value", function(coords) { | |
if (coords.val()) { | |
console.log("Has coords!"); | |
agent.dataRef.child("coords").on("value", function(coords) { | |
var lat = coords.child("lat").val(); | |
var lon = coords.child("lon").val(); | |
var patch = getPatchAt(lat, lon, 3); | |
if (patch) agent.setData("patch", patch.url); |
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
info: Creating snapshot 0.1.0-28 | |
info: Updating app agentcloud | |
info: Activating snapshot 0.1.0-28 for agentcloud | |
info: Starting app agentcloud | |
error: Error running command deploy | |
error: Nodejitsu Error (500): Internal Server Error | |
warn: Error returned from Nodejitsu | |
error: Error: connect ECONNREFUSED | |
error: at errnoException (net.js:768:11) | |
error: at Object.afterConnect [as oncomplete] (net.js:759:19) |
NewerOlder