Skip to content

Instantly share code, notes, and snippets.

View luigidenora's full-sized avatar
👀

Luigi Denora luigidenora

👀
View GitHub Profile
@luigidenora
luigidenora / depth-texture.ts
Created April 23, 2025 16:01
DepthTexture plane
private createRenderTarget(): WebGLRenderTarget {
const width = window.innerWidth;
const height = window.innerHeight;
const target = new WebGLRenderTarget(width, height);
target.texture.minFilter = NearestFilter;
target.texture.magFilter = NearestFilter;
target.texture.generateMipmaps = false;
target.stencilBuffer = false;
target.samples = 4;
body {
--dot-bg: white;
--dot-color: gray;
--dot-size: 1px;
--dot-space: 22px;
background:
linear-gradient(90deg, var(--dot-bg) calc(var(--dot-space) - var(--dot-size)), transparent 1%) center / var(--dot-space) var(--dot-space),
linear-gradient(var(--dot-bg) calc(var(--dot-space) - var(--dot-size)), transparent 1%) center / var(--dot-space) var(--dot-space),
var(--dot-color);
}
‎‎​
glTFD��[JSON{"asset":{"generator":"Khronos glTF Blender I/O v3.6.27","version":"2.0"},"extensionsUsed":["KHR_materials_specular","KHR_materials_ior"],"scene":0,"scenes":[{"name":"Scene","nodes":[7]}],"nodes":[{"name":"jaw","rotation":[0.8851194977760315,3.8832973814351135e-07,7.386012157439836e-07,0.4653637707233429],"scale":[1,1,0.9999999403953552],"translation":[2.0732455769175074e-24,0.6687784194946289,9.337068007653215e-09]},{"name":"lip bot","rotation":[0.8392724990844727,5.185223130865779e-07,8.00391205757478e-07,0.5437110662460327],"translation":[2.363375778433433e-18,0.6794220805168152,-0.005321835167706013]},{"name":"lip top","rotation":[0.7535229325294495,6.269598884500738e-07,7.18608362149098e-07,0.6574216485023499],"scale":[1,0.9999998807907104,0.9999998807907104],"translation":[2.363375778433433e-18,0.6794220805168152,-0.005321835167706013]},{"children":[0,1,2],"name":"head"},{"name":"spit control","rotation":[0.6815675497055054,9.208432857121807e-06,0.05330353602766991,0.7298118472099304
@luigidenora
luigidenora / spinner.sh
Last active September 28, 2023 16:03
Spinner Sh
function spinner() {
pid=$! # Process Id of the previous running command
spin='⠋⠙⠹⠸⠼⠴⠦⠧⠇⠏'
CYAN='\033[0;36m'
NC='\033[0m'
i=0
while kill -0 $pid 2>/dev/null; do
i=$(((i + 1) % 10))
printf "\r${CYAN}${spin:$i:1}${NC} $1"
sleep .1
@luigidenora
luigidenora / TFRAME 4.2.1.md
Last active July 6, 2023 15:19
TFRAME version

Backend:

Frontend:

notification service

  • il notification service adesso controlla tramite la can use se l'app è abilitata alle notifiche: aggiungere quindi rotta canUse alle routes:

    routes: TdsNotificationsRoutes = {
@luigidenora
luigidenora / custom_scrollbar.scss
Last active March 24, 2023 15:42
custom scrollbar
.content {
overflow: auto;
box-sizing: border-box;
&__hide-scrollbar {
padding: var(--size, 0);
overflow: auto;
display: flex;
flex-direction: column;
box-shadow: inset 0px 30px 10px -30px #00000041, inset 0px -30px 10px -30px #00000041;
"$schema" = 'https://starship.rs/config-schema.json'
add_newline = false
# format = "$username$hostname$directory$git_branch$git_status$git_commit$package$character"
# right_format = "$battery"
format = """
$username$hostname\