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 UnityEditor.Build; | |
using UnityEditor.Build.Reporting; | |
using UnityEngine; | |
namespace MyApp | |
{ | |
/// <summary> | |
/// Disables the Ultraleap provider at build time | |
/// </summary> | |
public class UltraleapPreprocessor : IPreprocessBuildWithReport |
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 Leap.Unity; | |
using System.Collections; | |
#if UNITY_EDITOR | |
using UnityEditor; | |
#endif | |
using UnityEngine; | |
/// <summary> | |
/// Allows using the Ultraleap in Desktop Mode for editor debugging, rather than on a headset. | |
/// Local position and rotation control the offset of the device. |
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
# get yt-dlp (https://github.com/yt-dlp/yt-dlp) | |
# install ffmpeg (choco install ffmpeg or https://www.ffmpeg.org/download.html | |
# run command below | |
# copy to the "Music" folder on your Garmin Watch via USB | |
# example $URL = "https://music.youtube.com/playlist?list=PL-BHPGwxCFX_onAQe_WIv7JewuMpT38Ft" | |
$URL = Read-Host "Enter YouTube Music Playlist URL" | |
.\yt-dlp --output "%(playlist_id)s/%(id)s.%(ext)s" --add-metadata --extract-audio --audio-format mp3 --write-playlist-metafiles --write-info-json "$URL" | |
$URL -match "(?<=list=)[^&]+" | |
$PLAYLIST_ID = $Matches[0] |
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 Rhino; | |
using Rhino.DocObjects; | |
using Rhino.Geometry; | |
using System.Collections.Generic; | |
Dictionary<int, List<RhinoObject>> map = new Dictionary<int, List<RhinoObject>>(); | |
MeshingParameters meshingParameters = MeshingParameters.Minimal; | |
meshingParameters.SimplePlanes = true; |
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 Newtonsoft.Json; | |
using System.Collections.Generic; | |
using System.Net.Http; | |
using System.Threading.Tasks; | |
namespace CN | |
{ | |
public static class YakApi | |
{ | |
private static HttpClient httpClient = new HttpClient(); |
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
// Belongs in an Assets/**/Editor folder | |
public class iOSPostProcessor | |
{ | |
/// <summary> | |
/// Post processor to automate skipping the checkbox on testflight for encryption compliance. | |
/// </summary> | |
[PostProcessBuild(-999)] | |
public static void OnPostProcessBuildRunInBackground(BuildTarget buildTarget, string path) | |
{ |
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 "Points/Billboard" | |
{ | |
Properties | |
{ | |
_PointSize("PointSize", Range(0, 0.1)) = 0.01 | |
[Enum(UnityEngine.Rendering.BlendMode)] _SrcBlend("Source Blend", Float) = 1 // "One" | |
[Enum(UnityEngine.Rendering.BlendMode)] _DstBlend("Destination Blend", Float) = 0 // "Zero" | |
[Enum(UnityEngine.Rendering.CompareFunction)] _ZTest("Depth Test", Float) = 4 // "LessEqual" | |
[Enum(DepthWrite)] _ZWrite("Depth Write", Float) = 1 // "On" | |
} |
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
Autoconnected Player [Error] System.AggregateException: One or more errors occurred. ---> System.InvalidOperationException: Error resolving name servers ---> System.DllNotFoundException: Unable to load DLL 'advapi32.dll': The specified module could not be found. | |
at Microsoft.Win32.Win32RegistryApi.OpenSubKey (Microsoft.Win32.RegistryKey rkey, System.String keyName, System.Boolean writable) [0x00000] in <00000000000000000000000000000000>:0 | |
at Microsoft.Win32.RegistryKey.OpenSubKey (System.String name, System.Boolean writable) [0x00000] in <00000000000000000000000000000000>:0 | |
at Microsoft.Win32.RegistryKey.OpenSubKey (System.String name) [0x00000] in <00000000000000000000000000000000>:0 | |
at DnsClient.Windows.NameResolutionPolicy.Resolve (System.Boolean includeGenericServers, System.Boolean includeDirectAccessServers) [0x00000] in <00000000000000000000000000000000>:0 | |
at DnsClient.NameServer.ResolveNameResolutionPolicyServers () [0x00000] in <00000000000000000000000000000000>:0 | |
at DnsClient.NameSe |
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 Grasshopper.Kernel; | |
using System; | |
namespace MyTestComponent | |
{ | |
public class TestComponent : GH_Component | |
{ | |
public override Guid ComponentGuid => new Guid("{86A4E46A-520B-4C6B-8AD2-9939097778E5}"); | |
public TestComponent() : base( |
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 Grasshopper.Kernel; | |
using System; | |
namespace MyTestComponent | |
{ | |
public class TestComponent : GH_Component | |
{ | |
public override Guid ComponentGuid => new Guid("{86A4E46A-520B-4C6B-8AD2-9939097778E5}"); | |
public TestComponent() : base( |
NewerOlder