Skip to content

Instantly share code, notes, and snippets.

Green Luo greenlaw110

Block or report user

Report or block greenlaw110

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
View FastJsonIssue.java
public class FastJsonIssue {
public static class Record {
@JSONField(format = "yyyy-MMM-dd")
public Date date1 = new Date();
@JSONField(format = "yyyyMMdd")
public Date date2 = date1;
@JSONField(format = "yyyy_MM_dd hh:mm")
public DateTime dateTime = DateTime.now();
@greenlaw110
greenlaw110 / routes.conf
Created Jan 4, 2018
A complex route table for routing benchmark
View routes.conf
# Routes
# This file defines all application routes (Higher priority routes first)
# ~~~~
#Runtime
GET /yemian/{yemianId}/ CMYingyong.jiazaiYemian
* /tuiguang/{tuiguangId}/ CMYingyong.jiazaiTuiguang
GET /jilu/{jiluId} CMYingyong.jilu
GET /toupiao CMYingyong.toupiao
GET /tandcdialog CMYingyong.tAndCDialog
@greenlaw110
greenlaw110 / create-act-app.sh
Created Jan 3, 2018
Simple way to create actframework app project skeleton
View create-act-app.sh
wget https://github.com/actframework/act-starter-kit/archive/master.zip && unzip master.zip && ./act-starter-kit-master/act-new.sh
@greenlaw110
greenlaw110 / javadoc.css
Last active Sep 17, 2017
my javadoc stylesheet
View javadoc.css
body {
background-color:#222222;
color:#D2DECA;
font-family: serif;
font-size:16px;
margin:0;
}
a:link, a:visited {
text-decoration:none;
color:#999;
View xyz.md
head1 head 2
3 5
  • list 1
  • list 2
Hello Markdown

...

@greenlaw110
greenlaw110 / act-release-notes-20170911.md
Last active Sep 10, 2017
ACT Release Notes - 1.4.11
View act-release-notes-20170911.md

ActFramework Release notes for 1.4.11

Change log

  • catch up update to 1.3.14-LTS
  • Support running CLI Job in background #267
  • job.list CLI command failure #355

The followings are catch up from 1.3.14-LTS

@greenlaw110
greenlaw110 / act-version-table.md
Created Sep 9, 2017
ACT and plugin version configuration
View act-version-table.md
act 1.3.x 1.4.x
act-morphia 1.1.x 1.2.x
View jenkins_output
Skipping 928 KB.. Full Log
old/leasehold.ts, line: 19 �[39m
Property 'alertCtrl' cannot be declared in the constructor
�[2m L19: �[22mlic navCtrl: NavController, public navParams: NavParams, �[41mp�[49m�[41mu�[49m�[41mb�[49m�[41ml�[49m�[41mi�[49m�[41mc�[49m alertCtrl: AlertController, public auth: Aut
�[2m L20: �[22m super(navCtrl, navParams, alertCtrl, auth, onboardService, null, null, null, null, null);
�[33m[21:23:15] tslint: src/pages/leasehold/leasehold.ts, line: 19 �[39m
Property 'auth' cannot be declared in the constructor
@greenlaw110
greenlaw110 / OddEvenSort.java
Created Aug 22, 2017
Sort an int array so that all even numbers be positioned at the left hand side of the array
View OddEvenSort.java
/**
* The class sort int array by odd and even.
*
* The requirement is: all even number shall be at the left hand side of the array
*/
public class OddEvenSort {
public static void main(String[] args) throws Exception {
//Act.start("Hello World");
sort(new int[]{0});
View FastJson37IssueWithOverflowFloatParsing.java
package testapp;
import com.alibaba.fastjson.JSON;
import java.math.BigInteger;
import java.util.HashMap;
import java.util.Map;
public class FastJson37IssueWithOverflowFloatParsing {
You can’t perform that action at this time.