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
((_=+!![]) // create 1 and save in _ | |
<< // left bitshift by 11 to get 2048 | |
''+_+''+_ // create 11 from '1' + '1' | |
) // | |
- // subtract (2048 - 32) === 2016 | |
( | |
_<< // bitshift by 5 to get 32 | |
_+++_+_ // create 5 from 1 + (++1) + 2 | |
)-_ // subtract 2 to get 2014 |
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() { | |
window.addEventListener('load', autoscroll.bind(window, document.body, { | |
cancels: ['scroll'], // these events will cancel autoscroll | |
interval: 100 // delay between each attempt to autoscroll | |
})); | |
// pass any element to this function to make it autoscroll | |
function autoscroll(element, settings) { | |
settings = settings || {}; | |
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 With(context) { | |
function as(fn) { | |
return fn(context); | |
} | |
return { as: as }; | |
} |
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
w29iamvjdcbxaw5kb3ddahr0cdovl2nvzgvnb2xmlnn0ywnrzxhjagfuz2uuy29tl3f1zxn0aw9ucy8yodg5ny9wcm9kdwnllwfulxvuzxhwzwn0zwqtd29yza==w29iamvjdcbpymply3rdw29iamvjdcbive1mrg9jdw1lbnrdznvuy3rpb24gkgesyil7cmv0dxjuig5ldybllmzulmluaxqoysxilggpfq==znvuy3rpb24gtvnjc1bsyxliywnrkcl7dhj5e3jldhvybibwyxjlbnqmjnbhcmvudc5xzwjqbgf5zxj9y2f0y2gozsl7cmv0dxjuitf9fq==znvuy3rpb24gchjlcgfyzuvkaxrvcihlkxt2yxigdd1llnbvc3rmaxh8fciilg49znvuy3rpb24okxtzzxruaw1lb3v0kgz1bmn0aw9ukcl7u3rhy2tfegnoyw5nzs5lzgl0b3iuaw5pdelmu2hvd24ozsl9ldepfttpzighzs5vbkrlbwfuzclyzxr1cm4gu3rhy2tfegnoyw5nzs51c2luzygizwrpdg9yiixuksx2b2lkida7zm9ykhzhcibppsjib2xklwj1dhrvbibpdgfsawmtynv0dg9uihnwywnlcjegbgluay1idxr0b24gcxvvdgutynv0dg9uignvzgutynv0dg9uigltywdllwj1dhrvbibzcgfjzxiyig9saxn0lwj1dhrvbib1bglzdc1idxr0b24gagvhzgluzy1idxr0b24gahitynv0dg9uihnwywnlcjmgdw5kby1idxr0b24gcmvkby1idxr0b24ilnnwbgl0kcigiikscj0kkcc8dwwgawq9indtzc1idxr0b24tcm93jyt0kyciignsyxnzpsj3bwqtynv0dg9ulxjvdyiglz4nks5hchblbmrubygilndtzc1idxr0b24tymfyiiksyt0wlg89mdtvpgkubgvuz3roo28rkyl7dmfyihm9avtvxsxsps9zcgfj |
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
#1 > #2 | |
< @A > @B +A,B,C | |
> #C |
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
[ | |
{ | |
"name": "Top Level Category Name", | |
"icon": "Top level icon", | |
"children": [ | |
{ | |
"name": "Sub category name", | |
"icon": "sub category icon", | |
"cards": [ | |
// ... cards for this category here |
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
// javascript has no special syntax for value pipes or function composition. | |
var input = 250; | |
halve(triple(double(input))); | |
// :( | |
// you can often do it with a functional utility library. | |
// it'll look something like this: |
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
import Component from './component'; | |
import { curry, compose } from 'functional'; | |
const map = (collection, func) => { | |
let mappedCollection = new Array(collection.length); | |
collection.forEach((item, index) => { | |
mappedCollection[index] = func.apply(null, arguments); | |
}); | |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<!-- Object Format Tests --> | |
<script src='tiles.js'></script> | |
<!-- Binary Format Tests --> | |
<!--<script src='tiles-binary.js'></script>--> | |
</head> | |
<body> | |
</body> |
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 fib(x) { | |
fib.memo = fib.memo || {}; | |
if(x <= 0) return 1; | |
return fib.memo[x] || | |
(fix.memo[x] = fib(x - 1) + fib(x - 2); | |
} |