Skip to content

Instantly share code, notes, and snippets.

Avatar

Tzu-Yin Hong lili668668

View GitHub Profile
@lili668668
lili668668 / index.html
Created Aug 30, 2017
下載檔案的 html 範例檔
View index.html
<html>
<head>
<meta charset="UTF-8">
</head>
<body>
<a href="Behavior.xml" download="Behavior.xml">下載行為檔案</a>
</body>
</html>
@lili668668
lili668668 / C3.java
Last active Apr 12, 2016
itsa46測試第三題
View C3.java
import java.math.BigInteger;
import java.util.Scanner;
public class C3 {
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner input = new Scanner(System.in);
int n = input.nextInt();
BigInteger[][] p = new BigInteger[n+1][n+1];
View autoChangeColor2.java
public static void autoChangeColors(final ImageView bg, int time, final int[] colors) {
final int size = colors.length;
final long milltime = time * 1000;
final Handler handler = new Handler() {
int count = 0;
@Override
public void handleMessage(Message msg) {
switch (msg.what) {
View autoChangeColor.java
// 第一種結果手機當掉
public static void autoChangeColors(final ImageView bg, int time, final int[] colors) {
final int size = colors.length;
final long milltime = time * 1000;
Thread timer = new Thread(new Runnable() {
int count = 0;
@Override
public void run() {
while (true) {