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
const fn = x => x + (x * ((x-1)/2)) |
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
@-webkit-keyframes wipe { | |
0% { | |
-webkit-mask-size: 0% 0%; | |
} | |
100% { | |
-webkit-mask-size: 550% 550%; | |
} | |
} | |
.remark-visible .remark-slide-content { |
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 React, { | |
PropTypes, Component | |
} from 'react'; | |
import { | |
Animated, Easing | |
} from 'react-native'; | |
// BYO sync icon | |
const SYNC = require('../images/sync.png') |
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
HzRBnyQt1d2e-uD5L6T7PJdXrnt7_9Q_0_wNPSvW3Z797p9nAsLydSubwj0r1w273L6hdav9pk3mHpXrnt3v7iebbfm4J5uNPSvW3AAzZ7972F9NGAAAEE0yGAAE0nAuLytdSebCAkkkj0Bggctutw2LKApTLAobMAIJJJJpPBcXi7k82cbHpbL5a9QWSSXUAQ60CAS3YAQfC4l4J5t5RKAzhskk0FFA0pFA0nAidJujEAkDJA9JgbXib7kAAJ5IBA5sBAI5TAAQuEAQOJAQzRCAz1CASQ_UCAgckAgctAgc2Ag8pEAI52AA5IBA5aBA5TJAQSuNAQQOSAQQSO |
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
.jump { | |
display: inline-block; | |
animation-duration: 1.5s; | |
animation-name: jump; | |
animation-iteration-count: infinite; | |
} | |
.jump.alt { | |
animation-delay: .75s; | |
} | |
@keyframes jump { |
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
.sway { | |
display: inline-block; | |
animation-duration: 2s; | |
animation-name: sway; | |
animation-iteration-count: infinite; | |
animation-direction: alternate; | |
animation-timing-function: ease-in-out; | |
} | |
@keyframes sway { | |
from { |
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
// localStorageProxy.foo = 'bar' | |
// -> localStorage.getItem('foo') = 'bar' | |
localStorageProxy = new Proxy(localStorage, { | |
get: (r,n)=>r.getItem(n), | |
set: (r,n,v)=>r.setItem(n,v), | |
deleteProperty: (r,n)=>r.removeItem(name) | |
}) |
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
// reverses the vowels of a (lowercase) word | |
( | |
s=>(r=/[aeiou]/g,x=s.match(r),c=x.length,s.replace(r,_=>x[--c])) | |
)('geographically') // -> gaigraphocelly |
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
// sorts the vowels in a (lowercase) word | |
( | |
s=>(r=/[aeiou]/g,x=s.match(r).sort(),c=0,s.replace(r,_=>x[c++])) | |
)('crocodile') // -> crecidolo |
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
const child_process = require('child_process') | |
const readline = require('readline'); | |
let bootRP = true; | |
const rl = readline.createInterface({ | |
input: process.stdin, | |
output: process.stdout | |
}); |