Skip to content

Instantly share code, notes, and snippets.

I may be slow to respond.

litefeel litefeel

I may be slow to respond.
Block or report user

Report or block litefeel

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
litefeel / BarycentricCoordinates.cs
Last active Sep 13, 2018
View BarycentricCoordinates.cs
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public struct BarycentricCoordinates
View TouchArea.cs
using System.Collections;
using System.Collections.Generic;
using UnityEngine.UI;
public class TouchArea : Graphic
protected override void OnEnable()
litefeel / hsv_rgb.shader
Created Jul 27, 2018
shader: HSV <-> RGB
View hsv_rgb.shader
float3 RGB2HSV(float3 c)
float4 K = float4(0.0, -1.0 / 3.0, 2.0 / 3.0, -1.0);
float4 p = lerp(float4(, K.wz), float4(, K.xy), step(c.b, c.g));
float4 q = lerp(float4(p.xyw, c.r), float4(c.r, p.yzx), step(p.x, c.r));
float d = q.x - min(q.w, q.y);
litefeel / ContentSizeByParent.cs
Created Jul 10, 2018
Unity 根据父对象的大小,按比例设置该对象的尺寸
View ContentSizeByParent.cs
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.EventSystems;
using UnityEngine.UI;
[AddComponentMenu("Layout/Content Size By Parent", 143)]
litefeel / TriggerContainerEditor.cs
Created May 17, 2018 — forked from bzgeb/TriggerContainerEditor.cs
Example Drag & Drop area in a custom inspector for the Unity editor
View TriggerContainerEditor.cs
using UnityEngine;
using System.Collections;
using UnityEditor;
[CustomEditor (typeof(TriggerContainer))]
public class TriggerContainerEditor : Editor
private SerializedObject obj;
litefeel / trial.key
Created Aug 25, 2017 — forked from huqi/trial.key
Beyond Compare 4 license for Mac
View trial.key
Beyond Compare 4
Licensed to: ASIO Allsoftinone
Quantity: 1 user
Serial number: 1822-9597
License type: Pro Edition for Windows
View BillBoard2D.cs
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class BillBoard2D : MonoBehaviour {
public Camera m_Camera;
void Update()
litefeel / excel2xml.bat
Last active Jun 19, 2017
*.xml <==> *.xlsx
View excel2xml.bat
@echo off
set xmldir="xmldir"
set exceldir="exceldir"
set method=e2x %method% %xmldir% %exceldir%
if %errorlevel% NEQ 0 (
View ServerTime.lua
local latency = 0
local ServerTime = {
localTime = os.time(),
serverTime = os.time(),
-- 服务器时间-客户端时间
function ServerTime.setServerTime(time)
latency = time - os.time()
-- localTime = os.time()
litefeel /
Created May 10, 2017

使用 config

将从config.json的 from 分支上的修改从新应用到 to 分支,类似于git rebase
但是只合并 authorreversion 开始的修改


You can’t perform that action at this time.