Skip to content

Instantly share code, notes, and snippets.

View suzp1984's full-sized avatar
🏢
Office time

Jacob Su suzp1984

🏢
Office time
View GitHub Profile
@suzp1984
suzp1984 / FlipAnimation.kt
Last active March 5, 2017 14:41
FlipAnimation
package suzp1984.github.io.exapidemo.animation
import android.graphics.Camera
import android.view.animation.Animation
import android.view.animation.Transformation
class FlipAnimation(fromDegre: Float, toDegre: Float, centerX : Float, centerY : Float) : Animation() {
var fromDegree : Float = 0.0f
var toDegree : Float = 0.0f
@suzp1984
suzp1984 / main.java
Created May 19, 2016 12:54
java multi-threading synchronization
public class Main {
public static void main(String[] args) {
Printer p = new Printer();
Thread t1 = new NumberPrinter(p);
Thread t2 = new LetterPrinter(p);
t1.start();
t2.start();
}