I hereby claim:
- I am weisjohn on github.
- I am weisjohn (https://keybase.io/weisjohn) on keybase.
- I have a public key whose fingerprint is 0D82 1A64 9177 3831 5AD6 A57A 5013 D03D 7310 E3E2
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| /*! | |
| * froala_editor v2.6.1 (https://www.froala.com/wysiwyg-editor) | |
| * License https://froala.com/wysiwyg-editor/terms/ | |
| * Copyright 2014-2017 Froala Labs | |
| */ | |
| ! function(a) { | |
| "function" == typeof define && define.amd ? define(["jquery"], a) : "object" == typeof module && module.exports ? module.exports = function(b, c) { | |
| return void 0 === c && (c = "undefined" != typeof window ? require("jquery") : require("jquery")(b)), a(c) | |
| } : a(window.jQuery) |
| # Frontend Masters - Complete Intro to React v2 - March 20th, 2017 | |
| ## JSX | |
| - SoC smashed together | |
| - `{}` - output the value of this js expression | |
| - `webpack --watch` | |
| - `npm run-script foo -- ` then after `--` is sent to command | |
| ## JSX vs. createElement |
| var gaussian = require('gaussian'); | |
| // mean is the center of the distritubion | |
| var mean = 34.5; | |
| var variance = 300; | |
| var distribution = gaussian(mean, variance); | |
| // number of samples |
| const http = require('http'); | |
| const https = require('https'); | |
| const server = http.createServer(); | |
| const host = 'example.com'; | |
| server.on('request', (req, res) => { | |
| // set cors on the response |
| // configure twitter integration | |
| var twit = require('twit'); | |
| var T = new Twit({ | |
| consumer_key: '...' | |
| , consumer_secret: '...' | |
| , access_token: '...' | |
| , access_token_secret: '...' | |
| }); | |
| // express app |
| 0 info it worked if it ends with ok | |
| 1 verbose cli [ '/Users/jweis/.nvm/v0.12.0/bin/node', | |
| 1 verbose cli '/Users/jweis/.nvm/v0.12.0/bin/npm', | |
| 1 verbose cli 'install' ] | |
| 2 info using [email protected] | |
| 3 info using [email protected] | |
| 4 verbose install where, deps [ '/Users/jweis/mysrc/weisjohn/nes-controller', [ 'node-hid' ] ] | |
| 5 verbose install where, peers [ '/Users/jweis/mysrc/weisjohn/nes-controller', [] ] | |
| 6 info preinstall [email protected] | |
| 7 silly cache add args [ 'node-hid@~0.3.2', null ] |
| #!bin/bash | |
| echo "Export your Gmail contacts as a CSV, name it contacts.csv, put it in this directory, press Enter" | |
| read foo | |
| wget --referer=https://forum.btcsec.com https://forum.btcsec.com/uploads/manual_09_2014/google_5000000.7z | |
| echo "I haven't worked out a way to unzip .7z files from a cli yet... patches welcome" | |
| echo "Press enter when you've unzipped the file" | |
| read foo |