This file contains 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
Windows Registry Editor Version 5.00 | |
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout] | |
"Scancode Map"=hex:00,00,00,00,00,00,00,00,03,00,00,00,0E,00,3a,00,3a,00,46,00,00,00,00,00 |
This file contains 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
use minifb::{Key, Scale, Window, WindowOptions}; | |
use num_complex::Complex; | |
use tokio::task; | |
const WIDTH: usize = 640; | |
const HEIGHT: usize = 360; | |
fn mandelbrot_set(c: Complex<f64>, limit: u32) -> Option<u32> { | |
let mut z = Complex::new(0.0, 0.0); | |
for i in 0..limit { |
This file contains 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
using System.IO; | |
using UnityEditor; | |
using UnityEngine; | |
public class test : EditorWindow | |
{ | |
[MenuItem("CONTEXT/Material/Rip Texture")] |
This file contains 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
import os | |
import bpy | |
# Find the Blender output file | |
outfile = os.getenv("UNITY_BLENDER_EXPORTER_OUTPUT_FILE") | |
# Do the conversion | |
print("Starting blender to FBX conversion " + outfile) |
This file contains 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
using System; | |
using System.Diagnostics; | |
using System.Collections.Generic; | |
using System.Reflection; | |
using System.Runtime.InteropServices; | |
public class C { | |
static Dictionary<MethodInfo, byte[]> PatchedData = new(); | |
static unsafe void TryDetourFromTo(MethodInfo src, MethodInfo dst) |
This file contains 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 Box Mode | |
// @namespace Violentmonkey Scripts | |
// @grant none | |
// @version 1.0 | |
// @author @float3 | |
// @description Box Mode | |
// @updateURL https://gist.githubusercontent.com/float3/e6fd7ea19e3a3feb7c08d386f545b290/raw/BoxMode.js | |
// @downloadURL https://gist.githubusercontent.com/float3/e6fd7ea19e3a3feb7c08d386f545b290/raw/BoxMode.js | |
// ==/UserScript== |
This file contains 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
/* | |
MIT License | |
Copyright (c) 2022 Float3 | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights | |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
copies of the Software, and to permit persons to whom the Software is |
This file contains 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 "3/Unstereo" | |
{ | |
Properties | |
{ | |
[Enum(Left, 0, Right, 1)] _Eye ("Which Eye do you want to render", Float) = 0 | |
} | |
SubShader | |
{ | |
Pass | |
{ |
This file contains 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
#ifndef COMMON_INCLUDED | |
#define COMMON_INCLUDED | |
#pragma warning (default : 3206) // implicit truncation | |
//this needs to match you camera_res_height in the config.json file | |
#define VRC_CONFIG_CAMERA_RESOLUTION 2160 | |
//from Scruffy | |
bool isVR() |
This file contains 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
#if UNITY_EDITOR | |
#region | |
using System.Linq; | |
using UnityEditor; | |
using UnityEngine; | |
using UnityEngine.SceneManagement; | |
#endregion |
NewerOlder