このルールさえ押さえておけば、読んでいるコードが省略記法を使っていてもほぼ読めるようになります。
def concatAsString(a: Int, b: Int): String = {
val a_ = a.toString();
val b_ = b.toString();
NOTICE: This is just a draft of Skinny framework introduction (written in Japanese for now). English version will be published soon.
https://github.com/seratch/skinny-framework
Skinny Framework は Scala のフルスタックな Web アプリケーション開発フレームワークです。2014/03 を目処に最初の安定バージョン 1.0.0 をリリースするべく精力的に開発しています。(追記: 2014/03/28 に 1.0.0 がリリースされました)
更新: | 2021-07-20 |
---|---|
バージョン: | 2021.1 |
作者: | @voluntas |
URL: | https://voluntas.github.io/ |
注意
// Run this with scala <filename> | |
/** | |
* A Two-phase commit Monad | |
*/ | |
trait Transaction[+T] { | |
def map[U](fn: T => U): Transaction[U] = flatMap { t => Constant(fn(t)) } | |
def flatMap[U](fn: T => Transaction[U]): Transaction[U] = | |
FlatMapped(this, fn) |
/** | |
* This is simple HTTP local server for streaming InputStream to apps which are capable to read data from url. | |
* Random access input stream is optionally supported, depending if file can be opened in this mode. | |
* | |
* from: http://stackoverflow.com/a/9096241 | |
*/ | |
public class StreamOverHttp{ | |
private static final boolean debug = false; | |
private final Browser.FileEntry file; |
Original: "Callbacks are imperative, promises are functional: Node's biggest missed opportunity" by James Coglan
Translated by Yuta Okamoto (@okapies)
-server | |
-Xms2048m | |
-Xmx2048m | |
-XX:NewSize=512m | |
-XX:MaxNewSize=512m | |
-XX:PermSize=512m | |
-XX:MaxPermSize=512m | |
-XX:+UseParNewGC | |
-XX:ParallelGCThreads=4 | |
-XX:MaxTenuringThreshold=1 |
package com.hisasann.sample_cookieshare; | |
import java.io.IOException; | |
import java.util.List; | |
import org.apache.http.HttpResponse; | |
import org.apache.http.HttpStatus; | |
import org.apache.http.client.ClientProtocolException; | |
import org.apache.http.client.CookieStore; | |
import org.apache.http.client.ResponseHandler; |