Skip to content

Instantly share code, notes, and snippets.

View heshuimu's full-sized avatar
👨‍🚀
Spaaaaaaaaaaaaaaaaaace

雪竜 (Tommy Li) heshuimu

👨‍🚀
Spaaaaaaaaaaaaaaaaaace
View GitHub Profile
@heshuimu
heshuimu / 1-setup.md
Created January 15, 2021 15:59 — forked from troyfontaine/1-setup.md
Signing your Git Commits using GPG on MacOS Sierra/High Sierra

Methods of Signing with GPG

There are now two ways to approach this:

  1. Using gpg and generating keys
  2. Using Kryptonite by krypt.co

This Gist explains how to do this using gpg in a step-by-step fashion. Kryptonite is actually wickedly easy to use-but you will still need to follow the instructions

For using a GUI-based GIT tool such as Tower or Github Desktop, follow the steps here for signing with either GPG or Krypt.co.

using System.Diagnostics;
using UnityEngine;
namespace K4.Threading
{
using SelfType = K4UnityThreadDispatcher;
public partial class K4UnityThreadDispatcher : MonoBehaviour
{
public static SelfType Instance
public interface IK4UIPoolingListCell<DataType>
{
void Show();
void Hide();
void UpdateInformation(int index, DataType data);
}
@heshuimu
heshuimu / Unity120FPS.m
Created September 19, 2017 11:22
How to enable 120fps in Unity before official support arrives
- (void)callbackFramerateChange:(int)targetFPS
{
if (targetFPS <= 0)
targetFPS = 60;
int animationFrameInterval = (60.0f / targetFPS);
if (animationFrameInterval < 1)
animationFrameInterval = 1;
_enableRunLoopAcceptInput = (animationFrameInterval == 1 && UnityDeviceCPUCount() > 1);
@heshuimu
heshuimu / UITurboButton.cs
Last active April 11, 2017 06:28
A UI Turbo Button MonoBehaviour for Unity (Written with version 5.5)
using UnityEngine;
using UnityEngine.Events;
using UnityEngine.EventSystems;
using UnityEngine.UI;
public class UITurboButton : MonoBehaviour, IPointerDownHandler, IPointerUpHandler
{
public float turboTriggerTime;
public float turboFireCooldown;
@heshuimu
heshuimu / keybase.md
Created January 6, 2017 07:58
Keybase yooo

Keybase proof

I hereby claim:

  • I am heshuimu on github.
  • I am heshuimu (https://keybase.io/heshuimu) on keybase.
  • I have a public key whose fingerprint is D45E E1B1 AA11 3FD8 3DDB 73F8 9C9F 6031 7048 1026

To claim this, I am signing this object: