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
Verifying that +serapath is my openname (Bitcoin username): https://onename.io/serapath |
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
### Keybase proof | |
I hereby claim: | |
* I am serapath on github. | |
* I am serapath (https://keybase.io/serapath) on keybase. | |
* I have a public key whose fingerprint is B6E8 4291 380F C7CA 13BD 4AAC CC1E CE17 E471 F574 | |
To claim this, I am signing this object: |
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
<body><script> | |
/* SET `$appurl` as argument to the IIFE | |
to load any javascript (localstorage size limit 5mb) | |
The first page visit will load the whole script, follow-up visits | |
load the cached script right away and if a new version is available, | |
offer to update the app now or later. | |
(The caching only works if the server sends `header.etag`) | |
I welcome suggestions/questions/discussions - just drop me a message :-) | |
http://twitter.com/serapath |
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
/******************************************************************** | |
COMPONENT - ./MyThunk.js | |
********************************************************************/ | |
// module.exports = MyThunk | |
function Hook (db, component, tracks, TEMP) { | |
this.db = db | |
this.component = component | |
this.tracks = tracks | |
this.TEMP = TEMP | |
this.untrack = [] |
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
/* | |
Make use of: | |
@NOTE | |
@REVIEW | |
@HACK | |
@IDEA | |
@XXX | |
@FIXME | |
@TODO |
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
// <html> | |
// <head> | |
// <meta charset="UTF-8"> | |
// </head> | |
// <body> | |
// <script src="asdf.js"></script> | |
// </body> | |
// </html> | |
var charOE = 'ö'.charCodeAt(0) | |
var charSEMICOLON = ';'.charCodeAt(0) |
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 Y (F) { | |
function fn (x) { | |
return F(function (y) { return x(x)(y) }) | |
} | |
return F(function (y) { return fn(fn)(y) }) | |
} | |
function FactGen (fact) { | |
return function (n) { | |
return (n == 0) ? 1 : (n*fact(n-1)) |
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
require('dom-console')({console:true,initAction:'minimize'}) | |
/****************************************************************************** | |
HELPER | |
******************************************************************************/ | |
var apply=J=>J.forEach(b=>b.forEach(e=>e[0][e[1]]?e[0][e[1]]+=e[2]:e[0][e[1]]=e[2])) | |
var log=E=>console.log(E) | |
/****************************************************************************** | |
"VALUE EQUATIONS" | |
******************************************************************************/ | |
CONTRACT = { |
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
setInterval(function(xhr, randCol) { | |
var color=(color=randCol().hexString()).slice(1,color.length) | |
xhr({url:'http://192.168.2.4/change_color',method:'POST',data:'color='+color}) | |
},3000, require('minixhr'), require('random-color')) |
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 r={};'hello x=5 hey="cool"'.replace(/([^=\s]+)(?:\s*=\s*(?:"([^"]*?)"|\'([^']*?)\'|(\S*)))?/g,function(_,k,d,s,b){r[k]=d||s||b||true});r |
OlderNewer