Skip to content

Instantly share code, notes, and snippets.

@SED4906
SED4906 / iridescent.gdshader
Created July 12, 2024 21:00
Iridescent Godot Shader, based on work by Alan Zucconi
shader_type spatial;
float saturate(float x)
{
return clamp(x,0.0,1.0);
}
vec3 saturate3(vec3 x)
{
return clamp(x, vec3(0), vec3(1));
}
@iamevn
iamevn / cdromance-download-links.user.js
Last active February 28, 2025 10:49
simple userscript to insert download links back into cdromance (you might need to refresh the page if the links break) (click raw link near top right to install)
@lundman
lundman / notarytool_remote.sh
Created December 9, 2023 04:51
xcrun notarytool replacement for macOS 10.14 using ssh
#!/bin/bash
#
# Replacement commandline tool of "notarytool" for 10.14.
# Will ssh to host specified and run "xcrun notarytool" on
# that server.
#
# Arguments are copied as is, and expects the last argument to
# be the filename.
#
# notarytool_remote.sh submit --wait
@ishad0w
ishad0w / aveyo_edge_removal.bat
Last active December 10, 2025 12:35
AveYo (Microsoft Edge Removal)
@(set "0=%~f0"^)#) & powershell -nop -c iex([io.file]::ReadAllText($env:0)) & exit /b
#:: just copy-paste into powershell - it's a standalone hybrid script
sp 'HKCU:\Volatile Environment' 'Edge_Removal' @'
$also_remove_webview = 1
## why also remove webview? because it is 2 copies of edge, not a slimmed down CEF, and is driving bloated web apps
$also_remove_widgets = 1
## why also remove widgets? because it is a webview glorified ad portal on msn and bing news cathering to stupid people
$also_remove_xsocial = 1
## why also remove xsocial? because it starts webview setup every boot - xbox gamebar will still work without the social crap
@AzureDVBB
AzureDVBB / node_trees.py
Created July 17, 2018 21:22
A simple node tree addon template for blender.
# the little less documented way of adding a custom node tree
# and populate it with nodes of varying types of I/O
# sockets that work together, discombobulated
# first we import the blender API
import bpy
# then we create the UI space, the node tree as it is called
# but in actualy fact this is similar to a UI panel/menu
@josephg
josephg / love_smoothmouse.patch
Created October 14, 2017 06:26
Smooth scrolling fixes for SDL and love2d
diff -r 37e1ced87caf src/modules/event/sdl/Event.cpp
--- a/src/modules/event/sdl/Event.cpp Wed Aug 02 02:56:02 2017 +0300
+++ b/src/modules/event/sdl/Event.cpp Sat Oct 14 17:25:09 2017 +1100
@@ -270,8 +270,8 @@
}
break;
case SDL_MOUSEWHEEL:
- vargs.emplace_back((double) e.wheel.x);
- vargs.emplace_back((double) e.wheel.y);
+ vargs.emplace_back((double) e.wheel.preciseX);
@swillits
swillits / Keycodes.swift
Last active July 15, 2025 04:47
Swift Keyboard Keycodes
struct Keycode {
// Layout-independent Keys
// eg.These key codes are always the same key on all layouts.
static let returnKey : UInt16 = 0x24
static let enter : UInt16 = 0x4C
static let tab : UInt16 = 0x30
static let space : UInt16 = 0x31
static let delete : UInt16 = 0x33
static let escape : UInt16 = 0x35