原題:Dynamo: Amazon’s Highly Available Key-value Store
原文: Amazon's Dynamo - All Things Distributed (PDF Version)
This article is translated by @ono_matope. Please contact me if any problem.
原題:Dynamo: Amazon’s Highly Available Key-value Store
原文: Amazon's Dynamo - All Things Distributed (PDF Version)
This article is translated by @ono_matope. Please contact me if any problem.
############################## | |
# Formatting | |
############################## | |
# Date を "2013年8月31日 (土)" の形式に | |
Handlebars.registerHelper "d", (date) -> | |
return "" unless date | |
weekdays = ["日", "月", "火", "水", "木", "金", "土"] | |
"#{date.getFullYear()}年#{date.getMonth() + 1}月#{date.getDate()}日 (#{weekdays[date.getDay()]})" |
val buildFiles = SettingKey[Map[File, Seq[Byte]]]("build-files") | |
buildFiles := getBuildFiles((baseDirectory in ThisBuild).value) | |
def getBuildFiles(base: File) = | |
((base * "*.sbt") +++ ((base / "project") ** ("*.scala" | "*.sbt"))).get.map{ | |
f => f -> collection.mutable.WrappedArray.make[Byte](Hash(f)) | |
}.toMap | |
def changed(base: File, files: Map[File, Seq[Byte]]): Boolean = |
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 がリリースされました)
package jp.seraphyware.javalangtest; | |
import java.beans.Expression; | |
/** | |
* リフレクションを直接使うよりも簡単にメソッド名で | |
* オブジェクトにアクセスする方法の例.<br> | |
*/ | |
public class ExpressionTest { |
PG::ConnectionBad at /
could not connect to server: Connection refused
Is the server running on host "localhost" (::1) and accepting
TCP/IP connections on port 5432?
could not connect to server: Connection refused
Is the server running on host "localhost" (127.0.0.1) and accepting
TCP/IP connections on port 5432?
Simply put, destructuring in Clojure is a way extract values from a datastructure and bind them to symbols, without having to explicitly traverse the datstructure. It allows for elegant and concise Clojure code.
import java.io.IOException; | |
import com.google.api.client.http.GenericUrl; | |
import com.google.api.client.http.HttpRequest; | |
import com.google.api.client.http.HttpRequestFactory; | |
import com.google.api.client.http.HttpResponse; | |
import com.google.api.client.http.HttpTransport; | |
import com.google.api.client.http.javanet.NetHttpTransport; | |
public class GoogleHttpJavaClientExample { |