Skip to content

Instantly share code, notes, and snippets.

View yangboz's full-sized avatar
:octocat:
lifelong learner

yangbo.zhou yangboz

:octocat:
lifelong learner
View GitHub Profile
[ [ 21.596119999999999,
112.0187,
"YUEJIANGCHENG90609",
2,
78,
26,
"CN",
412477316,
15,
23,
@yangboz
yangboz / free-transform-manager.as
Created March 25, 2014 07:44
free-transform-manager sample code
package
{
import com.ryan.geom.FreeTransformManager;
import flash.display.Bitmap;
import flash.display.Sprite;
import flash.events.Event;
public class Main extends Sprite
{
@yangboz
yangboz / Obj-C_Singleton.m
Created March 25, 2014 01:42
Obj-C_Singleton.m example code
//
// Common Objective-C Singleton Class.m
// iOS
//
// Created by yangboz on 03-25-14.
// Copyright (c) 2013年 GODPAPER. All rights reserved.
//
#import "App42_API_Utils.h"
@yangboz
yangboz / FLEX4.6.0_Air3.8_build_swc.xml
Last active August 29, 2015 13:57
FLEX ant file with as3 library project feature
<?xml version="1.0" encoding="utf-8"?>
<!-- This build file provdes a close approximation of the build process
and build settings inside Flash Builder, but it is not an exact copy.
Please customize this file as necessary. -->
<!-- Generated from project settings as of 3/18/14 6:45 PM -->
<project name="XXXXLib1.0" default="build" basedir=".">
<property name="FLEX_HOME" value="C:\Software\FLEX\sdks\4.6.0_Air3.8"/>
<property name="SDK_VERSION" value="4.6.0"/>
@yangboz
yangboz / App42API_call_snippet
Created February 10, 2014 14:51
App42 API call with try...catch block
@try{
//App42 service API call here.
}@catch (App42BadParameterException *ex) {
NSLog(@"BadParameterException found,status code:%d",ex.appErrorCode);
}@catch (App42SecurityException *ex) {
NSLog(@"SecurityException found!");
}@catch (App42Exception *ex) {
NSLog(@"App42 Exception found:%@",ex.description);
//NSAlert here.
}