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 foobar = function() { | |
| console.log(‘A’); | |
| console.log(‘B’); | |
| console.log(‘C’); | |
| } | |
| foobar(); |
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
| ; Cycle between windows of the same app like in macOS - Alt+backtick. | |
| ; Source: https://gist.github.com/rbika/014fb3570beaef195db0bd53fa681037 | |
| #NoEnv | |
| SendMode Input | |
| SetWorkingDir %A_ScriptDir% | |
| !`:: | |
| WinGet, activeProcess, ProcessName, A ; Retrieves the name of the process that owns the active window | |
| WinGet, winList, List, ahk_exe %activeProcess% ; Retrieves a pseudo-list of windows belonging to this process |
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
| ; macOS accentuation system | |
| ; source: https://gist.github.com/rbika/111bde86fb3315eca00f841ccdedd261 | |
| #NoEnv | |
| SendMode Input | |
| SetWorkingDir %A_ScriptDir% | |
| #`::previewAccent("``") | |
| #e::previewAccent("´") | |
| #i::previewAccent("ˆ") |
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
| /** | |
| * @see https://prettier.io/docs/configuration | |
| * @type {import("prettier").Config} | |
| */ | |
| const config = { | |
| plugins: [ | |
| '@ianvs/prettier-plugin-sort-imports', | |
| 'prettier-plugin-tailwindcss', | |
| ], |
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
| import { dirname } from "path"; | |
| import { fileURLToPath } from "url"; | |
| import { FlatCompat } from "@eslint/eslintrc"; | |
| import prettier from "eslint-config-prettier"; | |
| const __filename = fileURLToPath(import.meta.url); | |
| const __dirname = dirname(__filename) | |
| const compat = new FlatCompat({ | |
| baseDirectory: __dirname, |
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
| { | |
| "editor.formatOnSave": true, | |
| "files.insertFinalNewline": true, | |
| "editor.defaultFormatter": "esbenp.prettier-vscode" | |
| } |
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
| { | |
| "description": "Maps Caps Lock to Left Ctrl", | |
| "manipulators": [ | |
| { | |
| "from": { | |
| "key_code": "caps_lock", | |
| "modifiers": { "optional": ["any"] } | |
| }, | |
| "to": [{ "key_code": "left_control" }], | |
| "type": "basic" |
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
| { | |
| "description": "Maps Left Ctrl + h/j/k/l to arrow keys", | |
| "manipulators": [ | |
| { | |
| "from": { | |
| "key_code": "h", | |
| "modifiers": { | |
| "mandatory": ["left_control"], | |
| "optional": ["any"] | |
| } |
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
| { | |
| "description": "Maps Left Ctrl + a/s/d to modifiers", | |
| "manipulators": [ | |
| { | |
| "from": { | |
| "key_code": "a", | |
| "modifiers": { | |
| "mandatory": ["left_control"], | |
| "optional": ["any"] | |
| } |