layers/my-layer/
entrypoints/ # Same as WXT
background.ts
popup.html
content.ts
composables/ # Auto-imported (if enabled)
components/ # Auto-imported (if enabled)
hooks/ # Auto-imported (if enabled)
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
| # Git Update-and-Push (gup) | |
| # Amends the last commit with any changes to files included in that commit and force-pushes the updated commit. | |
| # Usage: | |
| # gitup # Amend last commit with changes to files in that commit and force-push | |
| # gitup -s # Show status of files in last commit without amending; 🔥 indicates changes | |
| gup() { | |
| # Check for flags | |
| local status_only=false | |
| if [[ "$1" == "-s" || "$1" == "--status" ]]; then |
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
| npm install --save-dev husky @commitlint/cli @commitlint/config-conventional | |
| npx husky init | |
| echo 'export default {\n extends: ["@commitlint/config-conventional"]\n}' > commitlint.config.js | |
| echo 'npx --no -- commitlint --edit $1' > .husky/commit-msg | |
| chmod +x .husky/commit-msg |
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
| { | |
| "workbench.colorCustomizations": { | |
| "editorGutter.background": "#242424" // set to the same as your editor background | |
| } | |
| } | |
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
| Sub Prepare_CSV() | |
| ' | |
| ' Prepare Barclays bank CSV export | |
| ' | |
| ' - formats number, date and amount columns | |
| ' - splits memo column | |
| ' - trims resulting cells | |
| ' - consolidates amazon payees | |
| ' - copies data to clipboard | |
| ' |
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
| Type Region | |
| src As Range | |
| col As Long | |
| End Type | |
| Sub Copy_Columns() | |
| ' | |
| ' This Excel macro copies columns from a <source> sheet to a <target> sheet: | |
| ' | |
| ' - by default, sheets 1 and 2 will be used as <source> and <target> |
| group | name | emojis |
|---|---|---|
| positive | ||
| winning | 🥳😎🤩🤑🤓🤠😇🫡 | |
| cheeky | 😏😉😋😛😝😜🤪 | |
| happy | 🙂🙃😀😃😁😄😆😅😂🤣 | |
| content | 😌 |
|
| amorous | 😗😙😚😘😍 | |
| neutral | ||
| shy | 🫢🤭 |
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
| let values = [] | |
| let scores = [] | |
| function prepare (length = 10_000_000) { | |
| values = (new Array(length)).fill(1).map((e, i) => i) | |
| } | |
| function forIn () { | |
| const output = [] | |
| for (let i = 0; i < values.length; i++) { |
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
| javascript: document.querySelectorAll('*').forEach(e => { | |
| if (e.childNodes.length === 1 && e.childNodes[0].nodeType === Element.TEXT_NODE) { | |
| if (e.innerText && e.innerText === e.innerText.toUpperCase()) { | |
| e.innerText = e.innerText.toLowerCase() | |
| .replace(/^\w|\.\s+\w/gm, t => t.toUpperCase()) | |
| .replace(/\si\s/, ' I '); | |
| } | |
| } | |
| }); |
NewerOlder