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
#.github/workflows/main.yml | |
name: Windows - Ngrok | |
on: workflow_dispatch | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
env: |
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
// 3D Dom viewer, copy-paste this into your console to visualise the DOM as a stack of solid blocks. | |
// You can also minify and save it as a bookmarklet (https://www.freecodecamp.org/news/what-are-bookmarklets/) | |
(() => { | |
const SHOW_SIDES = false; // color sides of DOM nodes? | |
const COLOR_SURFACE = true; // color tops of DOM nodes? | |
const COLOR_RANDOM = false; // randomise color? | |
const COLOR_HUE = 190; // hue in HSL (https://hslpicker.com) | |
const MAX_ROTATION = 180; // set to 360 to rotate all the way round | |
const THICKNESS = 20; // thickness of layers | |
const DISTANCE = 10000; // ¯\\_(ツ)_/¯ |
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
[ | |
{ | |
"command": "vscode-neovim.compositeEscape1", | |
"key": "j", | |
"when": "neovim.mode == insert && editorTextFocus", | |
"args": "j" | |
}, | |
{ | |
"command": "vscode-neovim.compositeEscape2", | |
"key": "k", |
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
" packadd quickscope | |
" execute 'luafile ' . stdpath('config') . '/lua/settings.lua' | |
function! s:manageEditorSize(...) | |
let count = a:1 | |
let to = a:2 | |
for i in range(1, count ? count : 1) | |
call VSCodeNotify(to == 'increase' ? 'workbench.action.increaseViewSize' : 'workbench.action.decreaseViewSize') | |
endfor | |
endfunction |
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
{ | |
// open json editor for settings | |
"workbench.settings.editor": "json", | |
// Theme | |
"workbench.colorTheme": "Aura Dark", | |
"workbench.iconTheme": "moxer-icons", | |
// Change font | |
"editor.fontFamily": "Geist Mono", |
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
extends Node2D | |
class_name MovementController | |
var player : CharacterBody2D = null | |
func _ready(): | |
var parent = self.get_parent() | |
if parent: | |
if parent.get_class() == "CharacterBody2D": player = parent |
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
type Words<S extends string> = S extends S ? string extends S ? string[] : WordsAgg<S, []> : never; | |
type WordsAgg<S extends string, L extends string[]> = S extends "" | |
? L | |
: S extends `${AsciiUpper}${AsciiLower}${string}` | |
? PascalWord<S, L> | |
: S extends `${AsciiUpper}${string}` | |
? UpperWord<S, L> | |
: S extends `${AsciiLower}${string}` | |
? CharsetWord<S, L, AsciiLower> | |
: S extends `${AsciiDigit}${string}` |