Skip to content

Instantly share code, notes, and snippets.

@McPo
McPo / Oculus Quest Unity OSX Integration Patch
Last active February 6, 2022 12:17
Enable Oculus Quest Unity Development on OSX / macOS via `Oculus > OVR Build`
1. Install the embedded Android SDK and copy the file `adb` to `adb.exe` e.g:
```
cd /Applications/Unity/Hub/Editor/****/PlaybackEngines/AndroidPlayer/SDK/platform-tools/
cp adb adb.exe
```
2. Apply the following diff to the Oculus Integration asset.
3. Navigate to Oculus > OVR Build > OVR Scene Quick Preview
@ditzel
ditzel / MeshDestroy.cs
Created August 19, 2019 19:02
MeshDestroy => Put it on a game object with a mesh filter and renderer. Make sure to have read/write enabled on fbx import
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class MeshDestroy : MonoBehaviour
{
private bool edgeSet = false;
private Vector3 edgeVertex = Vector3.zero;
private Vector2 edgeUV = Vector2.zero;
@nmurthy
nmurthy / getTotps.js
Created January 30, 2019 20:56
export authy totp codes
/* base32 */
/*
Copyright (c) 2011, Chris Umbel
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
furnished to do so, subject to the following conditions:
@josephbk117
josephbk117 / TriPlanarTerrain.shader
Last active July 12, 2023 06:27
Tri-Planar Unity Terrain Shader
/*Please do support www.bitshiftprogrammer.com by joining the facebook page : fb.com/BitshiftProgrammer
Legal Stuff:
This code is free to use no restrictions but attribution would be appreciated.
Any damage caused either partly or completly due to usage this stuff is not my responsibility*/
Shader "BitshiftProgrammer/TriPlanarTerrain"
{
Properties {
_TransitionFalloff ("Transition Falloff", Range(0.01, 10.0)) = 4.0
[HideInInspector] _Control ("Control (RGBA)", 2D) = "red" {}
[HideInInspector] _Splat3 ("Layer 3 (A)", 2D) = "white" {}
@gboudreau
gboudreau / AuthyToOtherAuthenticator.md
Last active July 4, 2024 07:36 — forked from Ingramz/AuthyToOtherAuthenticator.md
Export TOTP tokens from Authy
@karpathy
karpathy / min-char-rnn.py
Last active June 28, 2024 06:13
Minimal character-level language model with a Vanilla Recurrent Neural Network, in Python/numpy
"""
Minimal character-level Vanilla RNN model. Written by Andrej Karpathy (@karpathy)
BSD License
"""
import numpy as np
# data I/O
data = open('input.txt', 'r').read() # should be simple plain text file
chars = list(set(data))
data_size, vocab_size = len(data), len(chars)
@Dr-Nikson
Dr-Nikson / README.md
Last active June 8, 2023 12:04
Auth example (react + redux + react-router)