Github will be the main account and bitbucket the secondary.
ssh-keygen -t rsa -C "github email"
Enter passphrase when prompted. If you see an option to save the passphrase in your keychain, do it for an easier life.
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
# Client Reroutes | |
RewriteBase /web/ | |
RewriteRule ^web\/index\.php$ - [L] | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteRule . /web/index.php [L] |
function bigBoySort(arr) { | |
if (arr.length < 2) { | |
return arr; | |
} | |
let p = arr[0]; | |
let lo = []; | |
let hi = []; | |
for (let i = 1; i < arr.length; i++) { |
<?php | |
function flatten($arr, $keys = []) { | |
$res = []; | |
foreach ($arr as $key => $val) { | |
$keys[] = strval($key); | |
if (is_array($val)) { | |
$res = array_merge($res, flatten($val, $keys)); |
import nodeResolve from 'rollup-plugin-node-resolve'; | |
import commonjs from 'rollup-plugin-commonjs'; | |
import buble from 'rollup-plugin-buble'; | |
import uglify from 'rollup-plugin-uglify'; | |
import json from 'rollup-plugin-json'; | |
const paths = [ | |
['client/components/SearchComponent.js', 'web/js/components/SearchComponent.js'] | |
]; |
λ yarn run start | |
yarn run v1.12.3 | |
$ rollup -c -w --environment DEV | |
rollup v1.1.0 | |
bundles ./src/index.js → public\app.js... | |
[!] (commonjs plugin) SyntaxError: Unexpected token (2821:19) in C:\.dev\js\.react\dota\node_modules\react-dom\cjs\react-dom.development.js | |
node_modules\react-dom\cjs\react-dom.development.js (2821:19) | |
2819: // on the client side because the browsers are inconsistent. Instead we call focus(). | |
2820: 'autoFocus', 'autoPlay', 'controls', 'default', 'defer', 'disabled', 'formNoValidate', 'hidden', 'loop', 'noModule', 'noValidate', 'open', 'playsInline', 'readOnly', 'required', 'reversed', 'scoped', 'seamless', | |
2821: // Microdata |
const a = { | |
foo: 2 | |
}; | |
function say() { | |
console.log(this.foo); | |
} | |
const dontSay = () => console.log(this.foo); |
const sayHi = () => { | |
console.log(hi()); | |
}; | |
const hi = () => { | |
return 'hi'; | |
}; | |
sayHi(); |