- presto 0.60
- [
QueryResource
,TaskResource
)
なんかそのまま mvn clean install eclipse:eclipse -DskipTests
コマンド叩いても checkstyle で落ちたので:
mvn clean install -DskipTests
mvn eclipse:eclipse -Dcheckstyle.skip
# coding=utf-8 | |
import sys | |
import socket | |
import select | |
from urlparse import urlparse, parse_qs | |
import word2vec | |
argvs = sys.argv | |
port = 8000 |
http://docs.aws.amazon.com/AmazonVPC/latest/GettingStartedGuide/GetStarted.html
phpMyAdmin
Type | Protocol | Port Range | Destination |
---|---|---|---|
SSH | TCP | 22 | 0.0.0.0/0 |
# -*- coding: utf-8 -*- | |
# answer_q684.py | |
# ===== DEFINITIONS ===== | |
# メモ化再帰のためのキャッシュ | |
cache = {} | |
# 与えられた数値のリストから、各文字がその数だけある場合の全パターン総数を計算(メモ化再帰) | |
def calc_count(num_list): |
更新: | 2014-11-20 |
---|---|
バージョン: | 0.0.5 |
作者: | @voluntas |
URL: | http://voluntas.github.io/ |
概要
更新: | 2014-05-14 |
---|---|
バージョン: | 0.0.12 |
作者: | @voluntas |
URL: | http://voluntas.github.io/ |
とても詳しいまとめがありますので、ますはそちらを見ることをオススメします。
coordinator=true | |
datasources=jmx | |
http-server.http.port=8080 | |
presto-metastore.db.type=h2 | |
presto-metastore.db.filename=var/db/MetaStore | |
task.max-memory=1GB | |
discovery-server.enabled=true | |
discovery.uri=http://example.net:8080 |
import Control.Monad | |
charToInteger c = toInteger (fromEnum c - fromEnum '0') | |
cutDown x | |
| x >= fromIntegral 0 = floor x | |
| otherwise = ceiling x | |
-- cards scores | |
solve :: String -> [Integer] -> [Integer] |
この記事はScala Advent Calendar 2013の7日目の記事です。
昨日は @shogogg さんのScala + sbt-android + IntelliJ で快適Androidアプリ開発でした。
明日は @takezoux2 さんのScalaのParserCombinator実践入門+です。
継続モナドを調べていたら、@terazzo さんのJavaで継続モナドという記事が非常に判りやすかったんですが、サンプルコードがJavaのボイラープレートの嵐でちょっと読むのが辛い感じだったのでScalaで翻訳してみました、というのがこの記事です。