Skip to content

Instantly share code, notes, and snippets.

View lazuee's full-sized avatar
:shipit:
Lazuee

John Marlo Lapiz lazuee

:shipit:
Lazuee
View GitHub Profile
@lazuee
lazuee / ngrok-rdp.yml
Created August 7, 2024 07:56
Windows 10 Free RDP - Ngrok
#.github/workflows/main.yml
name: Windows - Ngrok
on: workflow_dispatch
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
@OrionReed
OrionReed / dom3d.js
Last active November 2, 2024 08:45
3D DOM viewer, copy-paste this into your console to visualise the DOM topographically.
// 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; // ¯\\_(ツ)_/¯
@ixahmedxi
ixahmedxi / keybindings.json
Created January 2, 2024 20:46
Vscode neovim keybindings.json
[
{
"command": "vscode-neovim.compositeEscape1",
"key": "j",
"when": "neovim.mode == insert && editorTextFocus",
"args": "j"
},
{
"command": "vscode-neovim.compositeEscape2",
"key": "k",
@ixahmedxi
ixahmedxi / init.vim
Created January 2, 2024 20:46
vscode neovim init.vim
" 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
@ixahmedxi
ixahmedxi / settings.json
Created January 2, 2024 20:45
VSCode settings.json
{
// open json editor for settings
"workbench.settings.editor": "json",
// Theme
"workbench.colorTheme": "Aura Dark",
"workbench.iconTheme": "moxer-icons",
// Change font
"editor.fontFamily": "Geist Mono",
@lazuee
lazuee / movement_controller.gd
Last active September 30, 2023 09:17
Godot 4 Beta 1 - Click to Move with NavigationAgent2D
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
@lazuee
lazuee / PascalToSentenceCase.ts
Created August 11, 2022 13:50
PascalCase to SentenceCase
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}`