Skip to content

Instantly share code, notes, and snippets.

lifelong learner

Knight.zhou yangboz

lifelong learner
Block or report user

Report or block yangboz

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
yangboz / App42API_call_snippet
Created Feb 10, 2014
App42 API call with try...catch block
View App42API_call_snippet
//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.
yangboz / FLEX4.6.0_Air3.8_build_swc.xml
Last active Aug 29, 2015
FLEX ant file with as3 library project feature
View FLEX4.6.0_Air3.8_build_swc.xml
<?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 / Obj-C_Singleton.m
Created Mar 25, 2014
Obj-C_Singleton.m example code
View Obj-C_Singleton.m
// 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 /
Created Mar 25, 2014
free-transform-manager sample code
import com.ryan.geom.FreeTransformManager;
import flash.display.Bitmap;
import flash.display.Sprite;
public class Main extends Sprite
View 8vELHLAE#.json
[ [ 21.596119999999999,
yangboz / iOS view life circle code snippet
Created May 17, 2014
iOS view life circle code example
View iOS view life circle code snippet
- (void)setup {
// Non-UI initialization goes here. It will only ever be called once.
- (id)initWithNibName:(NSString *)nibName bundle:(NSString *)bundle {
if ((self = [super initWithNibName:nibName bundle:bundle])) {
[self setup];
yangboz / pylint.xml
Created Jun 29, 2015
Ant Pylint with Jenkins
View pylint.xml
<project default="all" basedir="../">
Define an environment variable pointing to PyLint folder or change this
<property environment="env"/>
yangboz / linux_find_folder_name_before_timestamp
Created Sep 30, 2015
Linux find folder name before timestamp(20150930)
View linux_find_folder_name_before_timestamp
$> find ./dingding_bonus -type d -print | sed -n -e '/[0-9]\{8,8\}$/p' | sed -n -e 's/\(.*\)\/\([0-9]\{8,8\}\)$/\1\/\2##\2/gp;' | awk -F '##' '{if(int($2) < cmpVl)print $1}' cmpVl="20150910"
View Flare3dP2pExample
// Imports
import flash.display.Sprite;
yangboz / java_checkstytle.xml
Created Oct 18, 2012
Ant xml for JAVA check style.
View java_checkstytle.xml
<?xml version="1.0"?>
<project name="XXX Application Build with check style" default="run" basedir="../">
Ant build sample for running
- checkstyle,
<!-- Change the paths to your individual installation directories -->
<property name="checkstyle.home.dir" location="${basedir}/tools/checkstyle/"/>
You can’t perform that action at this time.