Skip to content

Instantly share code, notes, and snippets.

View JustinFincher's full-sized avatar
🎧
Listening to FKJ or Defected Radio

JustZht JustinFincher

🎧
Listening to FKJ or Defected Radio
View GitHub Profile
@JustinFincher
JustinFincher / Table.swift
Created July 28, 2023 02:55
Recursive Outline Table
import SwiftUI
struct TestModel: Identifiable {
let id = UUID()
var children: [TestModel]? {
(0..<5).map { _ in
TestModel()
}
}
}
@JustinFincher
JustinFincher / ScriptEngine.cs
Created March 3, 2017 08:06 — forked from SeargeDP/ScriptEngine.cs
Sandboxed scripting environment for C# based on Mono.CSharp for .NET 3.5 (works in Unity3D projects)
// Written by Michael 'Searge' Stoyke in 03/2015
// Released as public domain, do whatever you want with it!
using System;
using System.IO;
using System.Reflection;
using System.Text;
using Mono.CSharp;
namespace GameLibrary {
using UnityEngine;
using UnityEditor;
using System.Reflection;
using System.IO;
using RavenTech;
namespace RavenTech.Editor
{
/// <summary>
/// 文档浏览器窗口
@JustinFincher
JustinFincher / METER.pde
Created August 14, 2016 17:08
Recreate METER using Processing
import android.net.wifi.*;
import android.content.*;
import android.app.*;
import processing.core.*;
import android.os.Bundle;
import android.content.Context;
import android.hardware.Sensor;
import android.hardware.SensorManager;
import android.hardware.SensorEvent;
import android.hardware.SensorEventListener;
using UnityEngine;
using System.Collections;
public class JZ_PlanetHelper : MonoBehaviour
{
// return x -180.0 ~ 180.0
// return y -90.0 ~ 90.0
public static Vector2 CartesianToPolarDegress(Vector3 point)
{
var polar = Vector2.zero;