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
body { | |
color: red !important; | |
} |
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
.test { | |
display: none; | |
overflow: hidden; | |
no: ways | |
} |
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
ssh -i $keypairname ec2-user@$ec2ip // ssh into EC2 instance | |
aws iam list-users // show iam users | |
kops edit/get ig nodes --name ${NAME} // gets instance groups and lets you configure min and max nodes etc | |
kops delete cluster --name ${NAME} --yes | |
// RESTART CLUSTER | |
export NAME=fleetman.k8s.local // set env variable | |
export KOPS_STATE_STORE=s3://kops-fleetman // set env variable | |
kops create cluster --zones=ap-southeast-1a,ap-southeast-1b,ap-southeast-1c ${NAME} // recreate cluster | |
kops edit ig nodes --name ${NAME} // edit cluster to have 5 max and 3 min nodes |
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
R.add(5, 10) | |
let add5 = R.add(5) | |
add5(10) | |
// for divide and subtractn the order matters | |
let subtract40 = R.subtract(R.__, 40) // needs to be 2x underscore | |
subtract40(100) | |
// old | |
const fahrenheitToCelcius = x => { |
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
https://github.com/facebook/react/issues/15156 |
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
Show hidden characters
// https://gist.github.com/vincentbollaert/e90def9b351d8d97c90ef7cfd887685e | |
{ | |
"presets": [ | |
"@babel/preset-env", | |
"@babel/preset-react" | |
], | |
"plugins": [ | |
"react-hot-loader/babel", | |
"@babel/plugin-syntax-dynamic-import", |
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
grid-template-rows: 0 570px auto auto auto; | |
grid-template-areas: | |
"header header orderbook" | |
"chart chart orderbook" | |
"orderform orderform orderbook" | |
"tradelist tradelist orderbook" | |
"history history orderbook"; | |
grid-template-columns: 1fr 1fr 234px; |
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 botListItems = document.querySelectorAll('#botListSimple .divTableRow'); | |
const toRemove = [...botListItems].filter((item, index) => index > 185); | |
toRemove.forEach(item => { | |
const checkbox = item.children[0].children[0].children[0]; | |
checkbox.click(); | |
}) | |
// remove adams |
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
{ | |
"processors": [ | |
"stylelint-processor-styled-components" | |
], | |
"extends": [ | |
"stylelint-config-recommended", | |
"stylelint-config-styled-components" | |
], | |
"rules": { | |
"no-extra-semicolons": null, |
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
https://stackoverflow.com/questions/50805753/duplicate-module-name-react-native |
NewerOlder