This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Main { | |
public static void main(String[] args) { | |
Timer timer = new Timer(); | |
ShowCurrentTimeTask task = new ShowCurrentTimeTask(); | |
timer.scheduleAtFixedRate(task, 0, 2000); | |
} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.stanley; | |
import java.io.IOException; | |
import com.fasterxml.jackson.core.JsonProcessingException; | |
import com.fasterxml.jackson.databind.JsonNode; | |
import com.fasterxml.jackson.databind.ObjectMapper; | |
import com.fasterxml.jackson.databind.ObjectReader; | |
public class ReadStringToJsonNode { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.stanley; | |
import java.io.IOException; | |
import com.fasterxml.jackson.core.JsonProcessingException; | |
import com.fasterxml.jackson.databind.JsonNode; | |
import com.fasterxml.jackson.databind.ObjectMapper; | |
import com.fasterxml.jackson.databind.ObjectReader; | |
public class ReadStringToJsonNodeAndUpdateIt { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.stanley; | |
import java.util.Date; | |
import java.util.Timer; | |
import java.util.TimerTask; | |
public class ShortExecutionTimeTask { | |
public static void main(String[] args) { | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
my-app/ | |
|-- pom.xml | |
|-- src | |
| |-- main | |
| | |-- assembly | |
| | |-- config | |
| | |-- filters | |
| | |-- java | |
| | |-- resources | |
| | `-- webapp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class StringEquals { | |
public static void main(String[] args) { | |
jack(); | |
jill(); | |
jeff(); | |
john(); | |
} | |
public static void jack() { | |
String s1 = "hill5"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git init | |
git add . | |
git commit -m "initial commit" | |
git remote add origin https://github.com/ucheng/your-repos.git | |
git push -u origin master |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git rm --cached fileName | |
git rm -r --cached folderName |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int diam = 10; | |
void setup() { | |
size(400, 400); | |
frameRate(24); | |
noStroke(); | |
fill(255,0,0); | |
background(255,255,0); | |
} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int diam = 10; | |
float centX, centY; | |
void setup() { | |
size(400, 400); | |
frameRate(24); | |
smooth(); | |
centX = width/2; | |
centY = height/2; | |
stroke(0); |
OlderNewer