Skip to content

Instantly share code, notes, and snippets.

View MyColorSchemes.cs
using Livity.Collections;
using Livity.Composition;
using Livity.Text.Logic;
using Livity.Text.UI.Engine;
using Livity.Text.UI.Engine.Internal;
using UnityEngine;
namespace Livity.Mine
View brewv
# Installs the previous version of a Homebrew formula
# Usage: brewv formula_name desired_version
# Based on
# Author: Matti Schneider <> (
cnsoft / extendArgs.cs
Created Jan 14, 2014
How to extend object[] args.
View extendArgs.cs
object[] _args = args;
if(methodName == "doEfxCast"){
//extend args with isReal
//invoke proxy to call rpc.
object[] args2 = new object[args.Length+1];
if (_rpchandler)
args2[args.Length]= true;//Owner _rpchandler.isRealClient;
View FDrawingSprite.cs
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
/* Author @jpsarda
* A drawing class.
* Examples :
View 1 SingletonBehaviour.cs
public abstract class SingletonBehaviour<Interface> : MonoBehaviour
where Interface : class
private static Interface _instance = null;
public static Interface instance { get { return _instance; } }
void Awake()
System.Diagnostics.Debug.Assert(this is Interface);
cnsoft / LevelEditor.cs
Created Dec 18, 2013
An example of Level Editor works on Unity engine.
View LevelEditor.cs
using System.Linq;
using UnityEditor;
using UnityEngine;
using System.Collections;
using System;
using gui = UnityEngine.GUILayout;
using System.Collections.Generic;
import random
class Cell(object):
def __init__(self, is_mine, is_visible=False, is_flagged=False):
self.is_mine = is_mine
self.is_visible = is_visible
self.is_flagged = is_flagged
def show(self):
View TouchToMouseConverter.cs
Converts Mobile Touch to the default Mouse Click
## invoked these method in Mobile too
## only called in touch screen
View gist:7744195
wwdc 2013 sessions video 下载快速通道.
地址 + 百度离线 = 秒下
View HD.txt