⌘T | go to file |
⌘⌃P | go to project |
⌘R | go to methods |
⌃G | go to line |
⌘KB | toggle side bar |
⌘⇧P | command prompt |
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
[global] | |
time_based | |
thread | |
fadvise_hint=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
from random import randint | |
import ucltip | |
def hello_world_cmd(name): | |
"""Execute remote performance test. | |
-n=<str> --name=<str> Hello Name | |
""" | |
print "hello world cmd %s" % name | |
print "Test import random %d" % randint(0, 51) |
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
#include <inttypes.h> | |
#include <unistd.h> | |
#include <fcntl.h> | |
#include <stdio.h> | |
#include <string.h> | |
#include <errno.h> | |
#include <sys/ioctl.h> | |
#include <scsi/sg.h> /* take care: fetches glibc's /usr/include/scsi/sg.h */ | |
/* This is a simple program executing a SCSI INQUIRY command using the |
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
import java.io.File | |
object CreateRepositoryCommand { | |
val PATH = """PATH""" | |
val command = "mvn install:install-file " + | |
"-Dfile=%s " + | |
"-DgroupId=%s " + | |
"-DartifactId=%s " + | |
"-Dversion=%s " + |
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
import org.json.{JSONObject, JSONArray} | |
import java.util.Date | |
/**Result** | |
{ "action_list" : [ { "action_id" : 1, | |
"action_type" : "get-all", | |
"get_deleted" : true | |
} ], | |
"client_version" : 0, | |
"latest_sync_point" : 1303995807749 |
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 tw.epubcoverter.util | |
import java.io.File | |
import java.io.InputStream | |
import java.io.OutputStream | |
object FileUtils { | |
/** | |
* *********************************************** |
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
object FindPrimse { | |
def main(args: Array[String]) { | |
val result = fillPrimeList(10000) | |
result foreach println | |
} | |
def fillPrimeList(max: Int, list: List[Int] = List(3, 2)): List[Int] = { | |
if (list.head < max) | |
fillPrimeList(max, findNextPrime(list, list.head + 2) :: list) |
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 tw.teremolo.example | |
import com.db4o.Db4oEmbedded | |
import scala.collection.JavaConverters._ | |
/** | |
* Date: 2011/10/6 | |
* Time: 下午 5:21 | |
*/ | |
object Hello_db4o { |
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 example.http | |
import java.io._ | |
import java.net.{HttpURLConnection, URL} | |
/** | |
* Date: 2011/9/16 | |
* Time: 上午 8:37 | |
*/ |