Skip to content

Instantly share code, notes, and snippets.

View TigerHix's full-sized avatar
🎯
Warudo

Tiger Tang TigerHix

🎯
Warudo
View GitHub Profile
using System;
using Cysharp.Threading.Tasks;
using Warudo.Core.Attributes;
using Warudo.Core.Data;
using Warudo.Core.Graphs;
using Warudo.Core.Utils;
using Warudo.Plugins.Core.Assets;
using Warudo.Plugins.Core.Utils;
namespace Warudo.Plugins.Core.Nodes {
@TigerHix
TigerHix / KalmanFilterFloat.cs
Created November 8, 2022 07:09 — forked from davidfoster/KalmanFilterFloat.cs
Simple Kalman filtering in Unity.
using System.Collections.Generic;
/// <summary>A Kalman filter implementation for <c>float</c> values.</summary>
public class KalmanFilterFloat {
//-----------------------------------------------------------------------------------------
// Constants:
//-----------------------------------------------------------------------------------------
public const float DEFAULT_Q = 0.000001f;
/**
FinalIKを使ったLeapMotion Orion用HandController
(VRIKバージョン)
Author: MiyuMiyu (https://twitter.com/miyumiyuna5)
Source: https://qiita.com/miyumiyu/items/72b965df46a79f3ec523
Modified by: Emiliana (https://twitter.com/Emiliana_vt)
Modifications: Updated for current SDK version, supports hand position reset on tracking loss, hand mirroring and interpolation.
*/
/*
@TigerHix
TigerHix / link.xml
Created March 29, 2020 19:25
Unity link.xml for LiteDB 5.0.5
@TigerHix
TigerHix / Vibration.cs
Created January 21, 2020 06:53 — forked from ruzrobert/Vibration.cs
Android Vibration for Unity 3D. Supports all API: 1 - 29 (auto detect), Amplitudes, Predefined Effects, both Legacy and >=26 APIs.
using System.Diagnostics.CodeAnalysis;
using UnityEngine;
// Dont forget to add "using RDG;" to the top of your script!
namespace RDG
{
/// <summary>
/// Class for controlling Vibration. Automatically initializes before scene is loaded.
/// </summary>
public static class Vibration
@TigerHix
TigerHix / CytusChartConverter.cs
Created August 3, 2018 15:27
Converts a given Cytus chart to Cytus II formatted chart.
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
namespace TigerHix
{
class CytusChartConverter
@TigerHix
TigerHix / SearchType.cs
Created September 16, 2017 13:04 — forked from natsupy/SearchType.cs
Search type in root folder
using System;
using System.Collections.Generic;
using System.IO;
using System.Text;
using Newtonsoft.Json;
using UnityEngine;
public IEnumerator GetLevels()
{
@TigerHix
TigerHix / TextureAtlasSlicer.cs
Created July 19, 2017 13:33 — forked from toxicFork/TextureAtlasSlicer.cs
TextureAtlasSlicer.cs
using System;
using System.Collections.Generic;
using System.Xml;
using UnityEditor;
using UnityEngine;
public class TextureAtlasSlicer : EditorWindow {
[MenuItem("CONTEXT/TextureImporter/Slice Sprite Using XML")]
public static void SliceUsingXML(MenuCommand command)
{
// Question 1
public class Digits {
private ArrayList<Integer> digitList;
// Alternative method: parse num as String, use charAt and Integer.parseInt to extract the digits
public Digits(int num) {
digitList = new ArrayList<Integer>();
if (num == 0) digitList.add(0);
while (num > 0) {