Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View seb776's full-sized avatar
🚀
Experimenting

z0rg seb776

🚀
Experimenting
View GitHub Profile
@seb776
seb776 / BabylonDebug.js
Created January 31, 2022 10:35
Debug Layer BabylonJS
scene.debugLayer.show({embedMode: true});
@seb776
seb776 / Count lines of C#
Created January 31, 2022 10:34
Powershell count lines of code
// Taken from here https://www.limilabs.com/blog/source-lines-of-code-count-using-powershell
(dir -include *.cs -recurse | select-string "^(\s*)//" -notMatch | select-string "^(\s*)$" -notMatch).Count
@seb776
seb776 / Config.json
Created January 23, 2022 17:04
Bonzomatic KORG nanoKONTROL2
"midi":{ // the keys below will become the shader variable names, the values are the CC numbers
"midiPrev":58,
"midiNext":59,
"midiCycle":46,
"midiForward":43,
"midiBackward":44,
"midiStop":42,
"midiPlay":41,
@seb776
seb776 / UnitySwizzle.cs
Created December 21, 2021 18:18
Adding swizzle feature to unity.
using UnityEngine;
// This code is generated
// The goal is to provide shortcuts for accessing vector components like in shader languages (feature called swizzle).
// This makes possible to use a vector this way :
// Vector3 v; v.xzxz();
// Vector2 v; v.yyyy();
// Vector4 v; v.ww();
// ...
@seb776
seb776 / DisableASW.bat
Last active December 21, 2021 18:13
When using oculus quest 1 or 2 in AirLink with an unreal app, the Asynchronous Space Warp (ASW) optimization fails with the optimizations of Unreal (TAA...) This disables the feature allowing a smooth image in the headset.
REM Assuming your oculus app is installed in default folder
echo server:asw.Off | "C:\Program Files\Oculus\Support\oculus-diagnostics\OculusDebugToolCLI.exe"
@seb776
seb776 / CreateQuilt.bat
Last active December 21, 2021 18:09
Batch using imagemagick to assemble a Quilt for looking glass
@echo off
set quiltColumns=8
set quiltRows=6
set magickPath="magick.exe"
setlocal
set "psCommand="(new-object -COM 'Shell.Application')^
.BrowseForFolder(0,'Please choose a folder.',0,0).self.path""