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.Collections.Generic; | |
using UnityEngine; | |
public static class Fibonacci | |
{ | |
private static Dictionary<int, Vector3[]> fibonacciSphereCache = new Dictionary<int, Vector3[]>(); | |
public static Vector3[] FibonacciSphere(int samples) | |
{ | |
if (fibonacciSphereCache.ContainsKey(samples)) |
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.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public class DrawMeshInstancedDemo : MonoBehaviour { | |
[SerializeField] | |
private Color color1; | |
[SerializeField] | |
private Color color2; |
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
var ui = document.querySelector("[title=Members]") | |
// requires the presence menu to be open (because React) but could be hidden via CSS | |
if ( !ui.className.match("selected") ) { | |
ui.dispatchEvent(new MouseEvent("click",{bubbles: true, cancellable: true})) | |
} | |
//ui.nextSibling.style.display = "none" // hides UI if you are streaming | |
previousMeasures = JSON.parse( localStorage.getItem('hubs-measurements') ); | |
if (!previousMeasures) previousMeasures = [] |
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
package euler | |
import ( | |
"math" | |
"github.com/EliCDavis/vector" | |
) | |
// https://stackoverflow.com/questions/1568568/how-to-convert-euler-angles-to-directional-vector |
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.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
using RecordAndPlay.Record; | |
public static class RecurseExample | |
{ | |
public static void RecurseAdd(Recorder recorder, GameObject obj) | |
{ | |
if (recorder == null) |
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 UnityEngine; | |
using RecordAndPlay; | |
using RecordAndPlay.Record; | |
using RecordAndPlay.Playback; | |
using System.Collections; | |
using System.Collections.Generic; | |
using Recolude; | |
namespace Example | |
{ |
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.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
using UnityEngine.UI; | |
using Recolude; | |
namespace Example | |
{ | |
public class ScoreboardBehavior : MonoBehaviour |
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 UnityEngine; | |
using Recolude; | |
using RecordAndPlay; | |
using RecordAndPlay.Record; | |
using System.Collections; | |
namespace Example | |
{ | |
public class UploadExample : MonoBehaviour | |
{ |
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
package main | |
import ( | |
"fmt" | |
"log" | |
"os" | |
"os/exec" | |
"syscall" | |
"time" | |
"unsafe" |
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
package main | |
import ( | |
"fmt" | |
"log" | |
"syscall" | |
"unsafe" | |
) | |
var ( |
NewerOlder