This file contains hidden or 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
| window.CITIES=[{"city":"Aberdeen","state":"","country":"Scotland","lat":57.1,"lng":-2.1,"tz_time":0},{"city":"Adelaide","state":"","country":"Australia","lat":-34.9,"lng":138.6,"tz_time":9.5},{"city":"Algiers","state":"","country":"Algeria","lat":36.8,"lng":3,"tz_time":1},{"city":"Amsterdam","state":"","country":"Netherlands","lat":52.3,"lng":4.8,"tz_time":1},{"city":"Ankara","state":"","country":"Turkey","lat":39.9,"lng":32.9,"tz_time":2},{"city":"Asunción","state":"","country":"Paraguay","lat":-25.2,"lng":-57.6,"tz_time":-4},{"city":"Athens","state":"","country":"Greece","lat":37.9,"lng":23.7,"tz_time":2},{"city":"Auckland","state":"","country":"New Zealand","lat":-36.8,"lng":174.7,"tz_time":12},{"city":"Bangkok","state":"","country":"Thailand","lat":13.7,"lng":100.5,"tz_time":7},{"city":"Barcelona","state":"","country":"Spain","lat":41.3,"lng":2.1,"tz_time":1},{"city":"Beijing","state":"","country":"China","lat":39.9,"lng":116.4,"tz_time":8},{"city":"Belém","state":"","country":"Brazil","lat":-1.4,"lng": |
This file contains hidden or 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
| t /= 700 | |
| x=(t+x/8)|0 | |
| y=(t+y/8)|0 | |
| if (xor(x%2, y%2)) gray(x+y) | |
| else gray(b+g+r) | |
| a+=cosp(t)*30 |
This file contains hidden or 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
| // with http://distilleryimage6.ak.instagram.com/3477a9e25e4311e3ab2b12f292af6a15_8.jpg | |
| t -= 100000 // or so | |
| t /= 500 | |
| if (a == 0) { r = g = b = x; t /= -3 } | |
| else if (r > 0) { t/=r/4 } | |
| r *= (Math.sin(t*x/y) + 1)/2 | |
| g *= (Math.cos(t*y/x) + 0.4)/2 | |
| b *= (Math.sin(t) + 1.5)/2 | |
| a = b |
This file contains hidden or 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
| y += x | |
| PI = Math.PI | |
| sin = function(a){return Math.sin(a)} | |
| cos = function(a){return Math.cos(a)} | |
| v = cos(sin(x/w*PI*2-PI/2)+cos(y/h*PI*2+PI)+t/6666)*127+127 | |
| thick = 50 | |
| b = v //((v/thick)|0)*thick | |
| x += (v = cos(sin(x/w*PI*2-PI/2)+cos(y/h*PI*2+PI)+t/6666)*127+127) |
This file contains hidden or 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
| y += x | |
| PI = Math.PI | |
| sin = function(a){return Math.sin(a)} | |
| cos = function(a){return Math.cos(a)} | |
| v = cos(sin(x/w*PI*2-PI/2)+cos(y/h*PI*2+PI)+t/6666)*127+127 | |
| thick = 50 | |
| b = v //((v/thick)|0)*thick | |
| x += (v = cos(sin(x/w*PI*2-PI/2)+cos(y/h*PI*2+PI)+t/6666)*127+127) |
This file contains hidden or 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
| javascript:(function ani(){ requestAnimationFrame(ani); | |
| Mouse.x = ~~(Math.random() * window.innerWidth); | |
| Mouse.y = ~~(Math.random() * window.innerHeight) | |
| })() |
This file contains hidden or 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
| javascript:(function(){var az = document.getElementsByTagName("a"); for (var i in az) { az[i].innerHTML = "<img src='" + az[i].href + "'>"; } })() |
This file contains hidden or 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
| <style> | |
| .short { display: block; } | |
| .short .more { font-weight: bold; cursor: pointer; } | |
| .long { display: none; } | |
| .long .less { font-weight: bold; cursor: pointer; } | |
| </style> | |
| {{#events}} | |
| <p>{{name}}</p> | |
| <span class="description"> |
This file contains hidden or 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
| <script>$($("code").each(function(){ $(this).html( $(this).html().replace(/</g,"<") ) }))</script> | |
| <code> | |
| <i>i buy water</i> | |
| </code> |
This file contains hidden or 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
| javascript:(function () { | |
| function getTextNodesIn(node, includeWhitespaceNodes) { | |
| var textNodes = [], whitespace = /^\s*$/; | |
| function getTextNodes(node) { | |
| if (node.nodeType == 3) { | |
| if (includeWhitespaceNodes || !whitespace.test(node.nodeValue)) { | |
| textNodes.push(node); | |
| } | |
| } else { | |
| for (var i = 0, len = node.childNodes.length; i < len; ++i) { |