This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
public delegate void ProducerDelegate<T>(Action<T> resolve, Action<Exception> reject); | |
public class Promise<T> | |
{ | |
private T m_result; | |
private Exception m_error; | |
private bool m_fufilled; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define DEBUG_PINCH | |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using UnityEngine; | |
using UnityEngine.EventSystems; | |
public abstract class PinchEventData : BaseEventData |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env python | |
''' | |
This simple script can build a ttf with specified character subsets from a file. | |
The script utilizes fontforge, so it must be available on the system. | |
''' | |
import fontforge | |
import argparse | |
import codecs |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <xmmintrin.h> | |
#include <chrono> | |
#include <iostream> | |
#include <iomanip> | |
using namespace std; | |
using namespace chrono; | |
#ifdef _MSC_VER | |
__declspec(align(16)) struct matrix44 | |
#else |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <xmmintrin.h> | |
#include <chrono> | |
#include <iostream> | |
using namespace std; | |
using namespace chrono; | |
#ifdef _MSC_VER | |
__declspec(align(16)) struct vector4 | |
#else | |
struct alignas(16) vector4 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/lua | |
--[[ | |
A simple coroutine manager inspired by Unity and the example in <<Python Essential Reference>>. | |
--]] | |
--for debugging coroutine in ZeroBrane | |
--require('mobdebug').coro() | |
__call_mt = {} |