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
// create a bookmark and use this code as the URL, you can now toggle the css on/off | |
// thanks+credit: https://dev.to/gajus/my-favorite-css-hack-32g3 | |
javascript: (function() { | |
var elements = document.body.getElementsByTagName('*'); | |
var items = []; | |
for (var i = 0; i < elements.length; i++) { | |
if (elements[i].innerHTML.indexOf('* { background:#000!important;color:#0f0!important;outline:solid #f00 1px!important; background-color: rgba(255,0,0,.2) !important; }') != -1) { | |
items.push(elements[i]); | |
} | |
} |
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
// See https://blog.isquaredsoftware.com/presentations/react-redux-ts-intro-2020-12/#/36 for slides | |
// My basic render function structure: | |
function RenderLogicExample({ | |
someBoolean, // 1) Destructure values from `props` object | |
someList, | |
}) { | |
// 2) Declare state values | |
const [a, setA] = useState(0); | |
const [b, setB] = useState(0); |
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
npm set registry https://r.npm.taobao.org # ๆณจๅๆจกๅ้ๅ | |
npm set disturl https://npm.taobao.org/dist # node-gyp ็ผ่ฏไพ่ต็ node ๆบ็ ้ๅ | |
## ไปฅไธ้ๆฉๆทปๅ | |
npm set sass_binary_site https://npm.taobao.org/mirrors/node-sass # node-sass ไบ่ฟๅถๅ ้ๅ | |
npm set electron_mirror https://npm.taobao.org/mirrors/electron/ # electron ไบ่ฟๅถๅ ้ๅ | |
npm set ELECTRON_MIRROR https://cdn.npm.taobao.org/dist/electron/ # electron ไบ่ฟๅถๅ ้ๅ | |
npm set puppeteer_download_host https://npm.taobao.org/mirrors # puppeteer ไบ่ฟๅถๅ ้ๅ | |
npm set chromedriver_cdnurl https://npm.taobao.org/mirrors/chromedriver # chromedriver ไบ่ฟๅถๅ ้ๅ | |
npm set operadriver_cdnurl https://npm.taobao.org/mirrors/operadriver # operadriver ไบ่ฟๅถๅ ้ๅ |