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
@yangboz
yangboz / AS3ClassFileTemplate.xml
Created February 16, 2013 04:10
A template fie(*.xml) for customize the default information contained in new AS3 class. More: http://help.adobe.com/en_US/Flex/4.0/UsingFlashBuilder/WS52085436-ABD3-4d4d-B5E2-41C668CF6847.html
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<templates>
<template autoinsert="true" context="new_actionscript_class"
deleted="false" description="Newly created ActionScript Class file"
enabled="true"
id="com.adobe.flexide.as.core.filetemplates.new_actionscript_class"
name="ActionScript Class">/**&#13;
* GODPAPER Confidential,Copyright ${year}. All rights reserved.&#13;
*&#13;
* Permission is hereby granted, free of charge, to any person
@yangboz
yangboz / NeuronNetWorkTest.as3
Created February 2, 2013 13:37
AS3 Artificial Neuron Network test code
package
{
import com.lookbackon.AI.ANN.NeuralNetWork;
import flash.display.Sprite;
public class NeuronNetWorkTest extends Sprite
{
private var inputDataArray:Array;
private var outputDataArray:Array;
@yangboz
yangboz / Ant_JMeter_xml
Created December 17, 2012 04:34
Ant_JMeter_xml
<project default="all" basedir="../">
<!--
Define an environment variable pointing to JMETER folder or change this
-->
<property environment="env"/>
<property name="jmeter-tools" location="${basedir}/tools/jmeter"/>
<property name="jmeter-home" location="xxx/Downloads/apache-jmeter-2.8"/>
<!--
ant-jmeter.jar comes with jmeter, be sure this is the release you have
-->
@yangboz
yangboz / Ant_PHP_phpcs_test_phpmd_phpcpd_pdepend_phpdoc_phpcb_phploc_lint
Created December 7, 2012 08:13
Ant xml for PHP project with CI feature,include phpcs,test, phpmd, phpcpd, pdepend,phpdoc,phpcb,phploc,lint
This XML file does not appear to have any style information associated with it. The document tree is shown below.
<!--
@see:http://agile.dzone.com/news/continuous-integration-php
-->
<project name="XXX/Jenkins" default="build" basedir=".">
<!-- $Id: build.xml 102 2012-01-19 14:39:10Z abtris $ -->
<property name="output" location="${basedir}/build/"/>
<property name="src" location="${basedir}/application/"/>
<property name="basedir" value="."/>
<!-- Clean dirs -->
@yangboz
yangboz / Ant_Android_lint_release
Created December 7, 2012 08:09
Ant xml for Anroid release and lint check.
This XML file does not appear to have any style information associated with it. The document tree is shown below.
<project name="XXXActivity" default="help">
<!--
The local.properties file is created and updated by the 'android' tool.
It contains the path to the SDK. It should *NOT* be checked into
Version Control Systems.
-->
<property file="local.properties"/>
<!--
The ant.properties file can be created by you. It is only edited by the
@yangboz
yangboz / FLEX_metrics.xml
Last active October 11, 2015 23:38
Ant xml example for FLEX/AS3 code metrics.
<project name="XXX_Flex_Metrics"
default="run">
<description>
Example Of Flex Metrics
</description>
<property name="projecthome"
value="${basedir}"/>
<property name="flexMetrics.version"
@yangboz
yangboz / FLEX_CPD.xml
Last active October 11, 2015 23:38
Ant xml example for FLEX/AS3 code CPD.
<project name="XXX_Flex_CPD"
default="run">
<description>
Example Of Flex CPD
</description>
<property name="projecthome"
value="${basedir}"/>
<property name="flexcpd.version"
@yangboz
yangboz / PHP_phpcs,test, phpmd, phpcpd, pdepend,phpdoc,phpcb,phploc,lint.xml
Created October 23, 2012 07:17
Ant xml example for PHP code check style/PMD/CPD/pdepend/doc/lint/test.
<?xml version="1.0" encoding="UTF-8"?>
<!--@see:http://agile.dzone.com/news/continuous-integration-php -->
<project name="AutoPhotobookContinuousIntegrationInPHP/Jenkins"
default="build" basedir=".">
<!-- $Id: build.xml 102 2012-01-19 14:39:10Z abtris $ -->
<property name="output" location="${basedir}/build/" />
<property name="src" location="${basedir}/application/" />
<property name="basedir" value="." />
<!-- Clean dirs -->
<target name="clean">
@yangboz
yangboz / JAVA_PMD.xml
Created October 23, 2012 06:54
Ant xml example for JAVA code PMD.
<?xml version="1.0"?>
<project name="XXX Application Build with PMD" default="run"
basedir="../">
<description>
Ant build sample for running
- PMD,
</description>
<!-- Change the paths to your individual installation directories -->
@yangboz
yangboz / JAVA_CPD.xml
Created October 23, 2012 06:53
Ant xml example for JAVA code CPD.
<?xml version="1.0"?>
<project name="XXX Application Build with CPD" default="run"
basedir="../">
<description>
Ant build sample for running
- CPD,
</description>
<!-- Change the paths to your individual installation directories -->