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
| 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)); | |
| } |
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
| // ==UserScript== | |
| // @name CDR insert links | |
| // @namespace http://tampermonkey.net/ | |
| // @version 2024-02-12_v3 | |
| // @description inject external download links on cdromance | |
| // @author iamevn | |
| // @match https://cdromance.com/* | |
| // @grant GM.xmlHttpRequest | |
| // @connect cdromance.org | |
| // @updateURL http://gist.github.com/iamevn/3afea03de61fa351bcde666f7c6d13f6/raw/cdromance-download-links.user.js |
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
| #!/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 |
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
| @(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 |
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
| # 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 |
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
| 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); |
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
| 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 |