| TIME | REACT | NATIVE |
|---|---|---|
| 08:00 | ** Registation ** | ** ** |
| 08:30 | ** Welcome Breakfast by Kega ** | ** ** |
| 09:30 | Conference opening | ** ** |
| 09:50 | **Styling React/ReactNative Applications – Max Stoiber KeystoneJS ** | **Coding Mobile with the Pros – Gant Laborde Infinite Red ** |
| React popularized a new way of building user interfaces – components. By splitting our app into small, digestible parts the system as a whole becomes a lot easier to understand. CSS was made in an era where documents were the height of the web. It doesn't fit easily into component-based systems, making styling one of the pa |
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
| import store from 'react-native-simple-store'; | |
| //also requires something like 'proxy-polyfill' | |
| export default new Proxy(store, { | |
| //GET is async, so it's used like `myStore[someID].then(...)` | |
| get: async function (receiver, name) { | |
| return await receiver.get(name) | |
| }, | |
| //SET simply works like `myStore[someID]=someObject` | |
| // (`null` deletes, this lines up with calling for a non-existant value) |
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
| const cheerio = require('cheerio'), | |
| request = require('request'), | |
| dance = require('breakdance'), | |
| fs = require('fs'), | |
| path = require('path'), | |
| url = require('url') | |
| const save_loc = path.resolve(process.argv[1],'..','puni-scrape'); //configurable? | |
| const puni = 'http://www.punipunijapan.com'; |
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
| //export default kanahave = (input,script='h') => { | |
| const kanahave = (input,script='h') => { | |
| let kI = kanaInput(input);if(kI)return kI; | |
| script=script.toLowerCase() | |
| const kana = script=='hiragana'||script.charAt(0)=='h'?data.hiragana:data.katakana | |
| return romajiInput(input,kana) | |
| } | |
| const kanaInput = k => { | |
| let h_i = data.hiragana.join('').indexOf(k.charAt(0)) |
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
| const cmdr = require('commander'), | |
| request = require('request') | |
| cmdr | |
| .option('-t, --text [value]') | |
| .option('-c, --common') | |
| .parse(process.argv); | |
| const Jisho = 'http://jisho.org/api/v1/search/words?keyword=' |
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
| const cheerio = require('cheerio'), | |
| request = require('request'), | |
| dance = require('breakdance'), | |
| fs = require('fs'), | |
| path = require('path'), | |
| url = require('url') | |
| const save_loc = path.resolve(process.argv[1],'..'); | |
| const r_a = 'https://react.amsterdam'; |
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
| #!/usr/bin/env node | |
| 'use strict'; | |
| const path = require('path'); | |
| const fs = require('fs'); | |
| const cmdr = {path:process.argv[process.argv.length-1]} | |
| console.log('Manipulating : '+cmdr.path); | |
| if(!cmdr.path){console.log('No path given');process.exit();} |
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
| // Is this _even_ gist-worthy? (Not yet, is the answer. Not yet.) | |
| window.youtubeMe = function(videoID){ | |
| document.querySelector(".content") | |
| .insertAdjacentHTML('beforebegin', | |
| '<iframe width="100%" height="100%" src="https://www.youtube.com/embed/'+videoID+'" frameborder="0" allowfullscreen></iframe>' | |
| ); | |
| } | |
| document.querySelector("body").style.color="white" | |
| document.querySelector("body").style['background-color']="black" |
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
| body { | |
| font-family: "Fira Code", "Courier New", monospace; | |
| font-size: large; | |
| font-weight: 200; | |
| margin: 0; | |
| padding: 0; | |
| color: white; | |
| background-color: black; | |
| background: linear-gradient(15deg, #44dd44, #dddd44); | |
| height: 100vh; |
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
| #!/usr/bin/env node | |
| const path = require('path'); | |
| const fs = require('fs'); | |
| const cmdr = require('commander'); | |
| //this requires Cairo: https://www.npmjs.com/package/canvas | |
| // brew install pkg-config cairo libpng jpeg giflib | |
| const {createCanvas, Image} = require('canvas'); | |
| cmdr |