View base64.js
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 encode(s) { | |
var c = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=", | |
o = []; | |
for (var i = 0, n = s.length; i < n;) { | |
var c1 = s.charCodeAt(i++), | |
c2 = s.charCodeAt(i++), | |
c3 = s.charCodeAt(i++); | |
o.push(c.charAt(c1 >> 2)); | |
o.push(c.charAt(((c1 & 3) << 4) | (c2 >> 4))); | |
o.push(c.charAt(i < n + 2 ? ((c2 & 15) << 2) | (c3 >> 6) : 64)); |
View perlin-worker.js
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
onmessage = function(e) { | |
var data = e.data.data = [], | |
n = Math.pow(2, 7 - e.data.zoom), | |
x0 = e.data.column * n, | |
y0 = e.data.row * n, | |
w = e.data.size.x, | |
h = e.data.size.y; | |
for (var y = 0, i = 0; y < h; y++) { | |
for (var x = 0; x < w; x++) { |
View app.yaml
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
application: polymaps | |
version: 1 | |
runtime: python | |
api_version: 1 | |
handlers: | |
- url: /state/.* | |
script: main.py | |
- url: /county/.* |
View jsonp.diff
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
diff --git a/src/Queue.js b/src/Queue.js | |
index d243c13..616dbc6 100644 | |
--- a/src/Queue.js | |
+++ b/src/Queue.js | |
@@ -99,5 +99,41 @@ po.queue = (function() { | |
return {abort: abort}; | |
} | |
- return {text: text, xml: xml, json: json, image: image}; | |
+ function jsonp(src, callback) { |
View .block
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
license: gpl-3.0 |
View .block
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
license: gpl-3.0 |
View .block
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
license: gpl-3.0 |
View .block
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
license: gpl-3.0 | |
redirect: https://beta.observablehq.com/@mbostock/1d-cellular-automaton |
View .block
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
license: gpl-3.0 |
View .block
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
license: gpl-3.0 |
OlderNewer