Skip to content

Instantly share code, notes, and snippets.

View greenlaw110's full-sized avatar
🏠
Working from home

Gelin Luo greenlaw110

🏠
Working from home
  • @AWS/Redshift/CP
  • Sydney Australia
View GitHub Profile
@greenlaw110
greenlaw110 / act-release-notes-20170911.md
Last active September 10, 2017 21:39
ACT Release Notes - 1.4.11

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 September 9, 2017 20:32
ACT and plugin version configuration
act 1.3.x 1.4.x
act-morphia 1.1.x 1.2.x
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 August 22, 2017 00:15
Sort an int array so that all even numbers be positioned at the left hand side of the array
/**
* 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});
package testapp;
import com.alibaba.fastjson.JSON;
import java.math.BigInteger;
import java.util.HashMap;
import java.util.Map;
public class FastJson37IssueWithOverflowFloatParsing {
package testapp;
import com.alibaba.fastjson.JSON;
import java.math.BigInteger;
import java.util.HashMap;
import java.util.Map;
public class FastJson37IssueWithLongParsing {
package testapp;
import com.alibaba.fastjson.JSON;
public class FastJson37Issue {
public static class Foo {
private boolean v;
public void setV(boolean v) {
this.v = v;
package org.osgl.util;
import org.osgl.$;
import org.osgl.util.S;
public class SConcatBenchmark {
public static void main(String[] args) {
final int WARMUP = 1000000;
final int LOOP = 100000000;
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<statusListener class="ch.qos.logback.core.status.NopStatusListener" />
<!-- Send debug messages to System.out -->
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<!-- By default, encoders are assigned the type ch.qos.logback.classic.encoder.PatternLayoutEncoder -->
<withJansi>true</withJansi>
<encoder>
@greenlaw110
greenlaw110 / act-project-logback.xml
Created June 2, 2017 06:57
Sample logback.xml file for Act application with color output support
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<statusListener class="ch.qos.logback.core.status.NopStatusListener" />
<!-- Send debug messages to System.out -->
<appender name="OUTPUT" class="ch.qos.logback.core.ConsoleAppender">
<withJansi>true</withJansi>
<encoder>
<pattern>%date %highlight(%-5level) %cyan(%logger{5}@[%-4.30thread]) - %msg%n</pattern>