⌘T | go to file |
⌘⌃P | go to project |
⌘R | go to methods |
⌃G | go to line |
⌘KB | toggle side bar |
⌘⇧P | command prompt |
package tw.epubcoverter | |
import java.util.zip.ZipFile | |
import java.io.FileInputStream | |
import java.io.FileOutputStream | |
import scala.collection.JavaConversions._ | |
import java.io.InputStream | |
import java.io.OutputStream | |
import java.io.File | |
import java.util.zip.ZipEntry |
package tw.epubcoverter.util | |
import java.io.File | |
import java.io.InputStream | |
import java.io.OutputStream | |
object FileUtils { | |
/** | |
* *********************************************** |
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 |
import java.io.File | |
object CreateRepositoryCommand { | |
val PATH = """PATH""" | |
val command = "mvn install:install-file " + | |
"-Dfile=%s " + | |
"-DgroupId=%s " + | |
"-DartifactId=%s " + | |
"-Dversion=%s " + |
#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 |
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) |
[global] | |
time_based | |
thread | |
fadvise_hint=0 |
(by @andrestaltz)
So you're curious in learning this new thing called (Functional) Reactive Programming (FRP).
Learning it is hard, even harder by the lack of good material. When I started, I tried looking for tutorials. I found only a handful of practical guides, but they just scratched the surface and never tackled the challenge of building the whole architecture around it. Library documentations often don't help when you're trying to understand some function. I mean, honestly, look at this:
Rx.Observable.prototype.flatMapLatest(selector, [thisArg])
Projects each element of an observable sequence into a new sequence of observable sequences by incorporating the element's index and then transforms an observable sequence of observable sequences into an observable sequence producing values only from the most recent observable sequence.