Skip to content

Instantly share code, notes, and snippets.

View Henry-T's full-sized avatar

Henry.T Henry-T

View GitHub Profile
@Henry-T
Henry-T / rvm_install.sh
Last active November 2, 2016 09:32
RVM_Install
#!/bin/bash
# install gpg
brew install gnupg
# this will download a gpg key, for downloaded file verification
gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3
# install rvm
\curl -sSL https://get.rvm.io | bash -s stable
# set Ruby download source to Ruby-China mirror
echo "ruby_url=https://cache.ruby-china.org/pub/ruby" > ~/.rvm/user/db
@Henry-T
Henry-T / Loggly-0.2.1.hx
Last active December 20, 2015 09:49
haxe http api of Loggly based on loggly-0.2.1.js
package;
import haxe.Json;
import flash.net.URLLoader;
import flash.net.URLRequest;
import flash.net.URLVariables;
import flash.net.URLRequestMethod;
// Usage
// key - logging instance id from loggly.com
@Henry-T
Henry-T / OnScreenTestCase.hx
Created July 3, 2013 15:51
Test case to verify if OnScreen check working correctly
package;
import openfl.Assets;
import flash.geom.Rectangle;
import flash.net.SharedObject;
import flixel.ui.FlxButton;
import flixel.FlxG;
import flixel.FlxPath;
import flixel.FlxSave;
import flixel.FlxSprite;
@Henry-T
Henry-T / OpenflMaskTestMain.hx
Last active December 19, 2015 05:49
Openfl Mask
package;
import flash.display.Sprite;
import flash.events.Event;
import motion.Actuate;
import motion.easing.Quad;
class Main extends Sprite {
var _sprite_mask:Sprite;