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
| Math.normalscale = function(minv, maxv, lst) | |
| { | |
| for (var n = 0; n < lst.length; ++n) | |
| { | |
| var k = (Math.abs(maxv - minv) > 0.001) ? ((lst[n] - minv) / (maxv - minv)) : 0; | |
| lst[n] = 1-k; | |
| } | |
| }; | |
| Math.scale = function(width, height, maxdim) |
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
| globalobj.analyser = Howler.ctx.createAnalyser(); | |
| Howler.masterGain.connect(globalobj.analyser); | |
| globalobj.analyser.connect(Howler.ctx.destination); | |
| ico.music.visual = function(v) | |
| { | |
| if (!v || !globalobj.analyser) | |
| return 1; | |
| var bufferLength = globalobj.analyser.frequencyBinCount; |
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
| ico.camera = new Image(); | |
| ico.camera.title = "Camera"; | |
| ico.camera.src = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAZCAYAAABQDyyRAAACuklEQVRIS62WS4hPYRjG52CFTAyZEUnJJZdEGZlhRhELo8zGko1bZoGsFIYil7KQcdmgKVGkbDSGBRtJWEg0oRmkUEiN3Gb8/Z5/79FxmnPOew5fPb3n+773fd7nu5+gwllKpVKA60gwB4wbIEz9H8Fd8CkIgl8eagW5CgKacWwD1RkBX+jfDs4i4mcWuUsAyedCdA8MziK0/h/Y1Qi4luXvFXARojVZZLH+durrEFFKi/tLACNdhPMsMCgS9JXv/WBsTgHd+J8A32JxXYi6EbaVBZB4KkaK5+dMUtT9NYHNCLkfkHwYleugrihbwbjnxK2QgMV83M5JchN/4ZUmEOhYNoKmnDxbJWATQSedgUq4Huis94Zn3e6I4bRNBufAbCffIQnYgvNxR0APPg0klYhyscQV0Z1OWxVdl8ASB+cRr4DvkNVr01jiodgZYAHQ3fAQPKBfl5CE6SRdBZMyRLgFtEHeYuQjsAeAZi5azlPZGBFxkPoOE5ikwy1gYjj1jG4PbK0JjKfw22xC9WbcApUps+AS8AGCaoj7SK53QOtbn0CqparEV1ZL8R4z5l8FPINgOqT9EE7h+zLQGg9U+michu8LE/AWm3aDumbgMyRVJmC0CWhIENBL+yi9gnZC3v2PGVAujarLRrUNezRBwF78Ws2vFtsJtGmTimsGFNwO8VojHoLdBXbHWA+rLbL+x6jrpEQftrgQtwAF1kF+J2SwDbmSugRppN3hhUSfRq/NOiFl9OrKJUAbahlJHqeR2kY9I8EZyf8I2MDXaYezXN6AfaAjeiXb0tRgG8FOMNPJV34L5uFcvmKdpR+/R0CbUu96+BrqiIrL+9umdC0SoHv9CljuFBB1C/980zZaEu1TOpaG |
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
| var dogBarkingBuffer = null; | |
| window.AudioContext = window.AudioContext || window.webkitAudioContext; | |
| var audio = new AudioContext(); | |
| var request = new XMLHttpRequest(); | |
| request.open('GET', "icons/a.mp3", true); | |
| request.responseType = 'arraybuffer'; | |
| request.onload = function() | |
| { |
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
| var str = | |
| `AED United Arab Emirates Dirham | |
| AFN Afghan Afghani | |
| ALL Albanian Lek | |
| AMD Armenian Dram | |
| ANG Netherlands Antillean Guilder | |
| AOA Angolan Kwanza | |
| ARS Argentine Peso | |
| AUD Australian Dollar | |
| AWG Aruban Florin |
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
| var mean = a.mean() | |
| var sum = 0 | |
| for (var n = 0; n < a.length; ++n) | |
| sum += Math.pow(a[n]-mean,2) | |
| a.deviation = Math.sqrt(sum/a.length) | |
| var sum = 0 | |
| for (var n = 0; n < x.length; ++n) | |
| sum += (x[n]-xmean)*(y[n]-ymean) | |
| var cov = sum/(x.length-1) |
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
| function glob(str, rule) {try{return new RegExp("^" + rule.split("*").join(".*") + "$").test(str)}catch(e){return false}} |
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
| var Quandlobj = (function () | |
| { | |
| function init() | |
| { | |
| var http = new XMLHttpRequest() | |
| http.onreadystatechange = function() | |
| { | |
| if (http.readyState != http.DONE) | |
| return | |
| if (http.status != 200) |
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
| function readme() | |
| { | |
| var name = 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function(c) { | |
| var r = Math.random()*16|0, v = c == 'x' ? r : (r&0x3|0x8); return v.toString(16);}) + ".md"; | |
| var str = "" | |
| var a = new Array() | |
| for (var n = 0; n < catobj.data.length; ++n) | |
| { | |
| var k = catobj.data[n] |
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
| var Reportobj = (function () | |
| { | |
| function init() | |
| { | |
| this.data = [{name: "", title: "", describe: ""}] | |
| this.ANCHOR = 0 | |
| var http = new XMLHttpRequest() | |
| http.onreadystatechange = function() | |
| { | |
| if (http.readyState != http.DONE) |
NewerOlder