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
| #!/bin/bash | |
| USER="narze" | |
| REPOS=( | |
| "orgname/reponame" | |
| ) | |
| for REPO in "${REPOS[@]}"; do | |
| echo "Adding user ${USER} to $REPO" |
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
| #!/bin/bash | |
| PERMISSION="push" # Can be one of: pull, push, admin, maintain, triage | |
| ORG="orgname" | |
| TEAM_SLUG="your-team-slug" | |
| # Get names with `gh repo list orgname` | |
| REPOS=( | |
| "orgname/reponame" | |
| ) |
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
| { | |
| "customizeUI.activityBar": "top", | |
| "customizeUI.activityBarHideSettings": true, | |
| "customizeUI.font.monospace": "FantasqueSansMono Nerd Font", | |
| "customizeUI.font.regular": "FantasqueSansMono Nerd Font", | |
| "customizeUI.fontSizeMap": { | |
| "12px": "11px", | |
| "13px": "11px", | |
| // "monospace": "11px", // Used for monospace fonts in user interface | |
| "menu": "13px", // Used for menu items (windows only) |
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
| .gg/3ZGxgeS9UR |
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
| KBD Manoonchai "Thai Manoonchai v1.0" | |
| COPYRIGHT "MIT" | |
| COMPANY "Manoonchai" | |
| LOCALENAME "th-TH" | |
| LOCALEID "0000041e" |
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 = %w[เรา หมอ ชาติ ไทย ครู กรุงเทพ นนท์] | |
| verb = %w[รัก มี เที่ยว ชนะ ชิม ช้อป ใช้ สะดวก พร้อม ไม่ทิ้ง ร่วมใจ] | |
| obj = %w[เรา กัน ไทย ด้วยกัน ชาติ หมอ สะดวก ครู] + [nil] | |
| special_verb = %w[สู้โควิด ปลอดภัย] | |
| normal = sub.product(verb, obj).map(&:join).uniq | |
| special = sub.product(special_verb).map(&:join) | |
| all = (normal + special).sort |
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
| async function run() { | |
| const wait = ms => new Promise(resolve => setTimeout(resolve, ms)) | |
| const selector = 'div[aria-label="Toggle to follow"] div' | |
| const nodes = [...document.querySelectorAll(selector)] | |
| if (!nodes.length) return | |
| for (let node of nodes) { | |
| const text = node.parentElement.parentElement.parentElement.innerText |
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
| า : 1854 | |
| น : 1593 | |
| ร : 1530 | |
| อ : 1139 | |
| ก : 1102 | |
| เ : 1050 | |
| ง : 989 | |
| ั : 947 | |
| ย : 900 | |
| ่ : 894 |
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
| // Source : https://github.com/narze/sandbox/blob/master/ruby/english-common-words.rb | |
| the | |
| of | |
| to | |
| and | |
| in | |
| is | |
| it | |
| that |
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
| Event.on("mouseDidMove", (point) => { | |
| // Phoenix.log(point.x, point.y) | |
| const space = Space.active() | |
| const windows = space.windows({ visible: true }) | |
| // TODO: Find nearest window which does not enclose the point | |
| const distances = windows.map((w) => { | |
| const f = w.frame() | |
| // Phoenix.log(w.app().name(), f.x, f.y, f.width, f.height) |