-
install GNU screen: apt-get update apt-get upgrade apt-get install screen
-
type "screen". this will open up a new screen - kind of similar in look & feel to what "clear" would result in.
-
run the process (e.g.: ./init-dev.sh to fire up a ChicagoBoss erlang server)
-
type: Ctrl + A, and then Ctrl + D. This will detach your screen session but leave your processes running!
gcloud config set project mysql-remote-access-267116
gcloud compute instances create my-client --zone us-central1-f --image-project ubuntu-os-cloud --image-family ubuntu-1804-lts --scopes https://www.googleapis.com/auth/cloud-platform
gcloud compute instances create my-server --zone us-central1-f --image-project ubuntu-os-cloud --image-family ubuntu-1804-lts --scopes https://www.googleapis.com/auth/cloud-platform
This file contains hidden or 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
| //CareerCup 1.2 Reverse a string by StringBuilder. | |
| class StringReverse { | |
| public static void main(String args[]) { | |
| System.out.println("before: " + args[0]); | |
| String s = new StringBuilder(args[0]).reverse().toString(); | |
| System.out.println("after: " + s); | |
| } | |
| } |
This file contains hidden or 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
| //test if a string is consist of a sequence of all unique characters | |
| public class UniqueChar { | |
| public static boolean isUnique(String x) { | |
| if (x.length() > 256) | |
| return false; | |
| boolean[] b = new boolean[256]; | |
| for(int i=0; i<x.length(); i++) { |
NewerOlder