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 App() { | |
return ( | |
<Container fluid style={{ height: "100vh" }}> | |
<Row style={{ height: "100%" }}> | |
<Col | |
style={{ background: "yellow", height: "100%", paddingTop: "15px", paddingBottom: "15px" }} | |
> | |
Col 1 | |
</Col> | |
<Col style={{height: "100%", paddingTop: "15px", paddingBottom: "15px" }}> |
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
{ | |
"root": true, | |
"parser": "@typescript-eslint/parser", | |
"plugins": ["@typescript-eslint"], | |
"extends": [ | |
"eslint:recommended", | |
"plugin:@typescript-eslint/eslint-recommended", | |
"plugin:@typescript-eslint/recommended", | |
"prettier/@typescript-eslint" | |
] |
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
git init && npm init -y | |
npm i -D @types/react @types/react-dom live-server typescript | |
tsc --init --module system --moduleResolution node --jsx react --sourceMap --esModuleInterop --target es5 --lib es6,dom --outFile ./dist/index.js | |
curl https://raw.githubusercontent.com/nnance/react-ts-basic-starter/master/.gitignore > .gitignore | |
curl https://raw.githubusercontent.com/nnance/react-ts-basic-starter/master/index.html > index.html | |
curl https://raw.githubusercontent.com/nnance/react-ts-basic-starter/master/index.tsx > index.tsx |
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
src/serviceWorker.ts |
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
#!/bin/bash | |
# taken from https://coderwall.com/p/guqrca/remove-all-node_module-folders-recursively | |
find . -name "node_modules" -exec rm -rf '{}' + |
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
type AnyJson = boolean | number | string | null | JsonArray | JsonMap; | |
interface JsonMap { [key: string]: AnyJson; } | |
interface JsonArray extends Array<AnyJson> {} |
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
nvm() { | |
unset -f nvm | |
export NVM_DIR=~/.nvm | |
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm | |
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion | |
nvm "$@" | |
} | |
node() { | |
unset -f node |
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
# Defaults / Configuration options for homebridge | |
# The following settings tells homebridge where to find the config.json file and where to persist the data (i.e. pairing and others) | |
HOMEBRIDGE_OPTS=-U /var/lib/homebridge | |
# If you uncomment the following line, homebridge will log more | |
# You can display this via systemd's journalctl: journalctl -f -u homebridge | |
# DEBUG=* |
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
'use strict' | |
const Gdax = require('gdax') | |
const h = require('highland') | |
const streamStatistics = require('stream-statistics') | |
const newClient = (markets = ['BTC-USD']) => new Gdax.WebsocketClient(markets) | |
const websocket = newClient() |
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
{ | |
me { | |
id, | |
name, | |
age, | |
friends { | |
id, | |
name, | |
age | |
} |
NewerOlder