Without lodash
-rw-r--r-- 1 ajhsu staff 96K 12 5 14:41 app.bundle.js
Bundled with independent lodash.debounce && lodash.throttle package
-rw-r--r-- 1 ajhsu staff 106K 12 5 14:58 app.bundle.js
Bundled with `import lodash from 'lodash/function'`
This file contains hidden or 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
| [ | |
| { | |
| "key": "cmd+'", | |
| "command": "editor.action.insertSnippet", | |
| "when": "editorTextFocus", | |
| "args": { | |
| "snippet": "console.log(${TM_SELECTED_TEXT}$1)$0;" | |
| } | |
| } | |
| ] |
This file contains hidden or 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
| unbind C-b | |
| set-option -g prefix ` | |
| bind ` send-prefix |
This file contains hidden or 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
| var style = document.createElement('style'); | |
| style.type = 'text/css'; | |
| style.innerHTML = ` | |
| body { | |
| background-color: yellow; | |
| } | |
| `; | |
| document.querySelector('head').appendChild(style); |
This file contains hidden or 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 memorySizeOf(obj) { | |
| let bytes = 0; | |
| function sizeOf(obj) { | |
| if (obj !== null && obj !== undefined) { | |
| switch (typeof obj) { | |
| case 'number': | |
| bytes += 8; | |
| break; | |
| case 'string': |
One can use MD5 or plain text diff to see differences in PDF files. If that's not enough, here's how to use diffpdf which knows how to diff based on appearance or words:
brew install diff-pdf- edit your
~/.gitconfigto add this:
[difftool "diffpdf"]
cmd = diff-pdf \"$LOCAL\" \"$REMOTE\"
This file contains hidden or 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
| ## Adb Server | |
| adb kill-server | |
| adb start-server | |
| ## Adb Reboot | |
| adb reboot | |
| adb reboot recovery | |
| adb reboot-bootloader | |
| ## Shell |
This file contains hidden or 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
| var __createElement__ = document.createElement; | |
| document.createElement = function(tagName, options){ | |
| console.log(`Element <${tagName}> created.`); | |
| return __createElement__.call(this, tagName, options); | |
| }; |
This file contains hidden or 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
| find . -name "nodemodules" -type d -prune -exec rm -rf '{}' + |
This file contains hidden or 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
| // ==UserScript== | |
| // @name Fix GitLab's WebIDE slash issue | |
| // @version 0.1 | |
| // @author ajhsu | |
| // @match https://gitlab.yourdomain.com/-/ide/project/* | |
| // ==/UserScript== | |
| /** | |
| * Attach event handler for history.pushState | |
| */ |