この記事は Scala Advent Calendar 2016(Adventar) 10日目の記事です。
今は 12/10 の 625時です。年明けなんて無かった。いいね?
さてさて、sbt の依存jarのダウンロードが遅い、というのは割とよく言われる事であります。
で、この原因の一旦に、sbtが Apache Ivy を使っている、という点があります。
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> | |
<template encoding-version="1.2"> | |
<description></description> | |
<groupId>8ce97bbb-0162-1000-233e-5c8cc4c3a93f</groupId> | |
<name>DevOps KPI - Change Volume and Lead Time</name> | |
<snippet> | |
<connections> | |
<id>8a0d9e3d-1744-3d97-0000-000000000000</id> | |
<parentGroupId>33980602-0d29-3ae1-0000-000000000000</parentGroupId> | |
<backPressureDataSizeThreshold>1 GB</backPressureDataSizeThreshold> |
function doPost(e) { | |
var url = 'https://hooks.slack.com/services/***************'; //slack webhook url | |
var channel = '***************'; //投稿先チャンネル名 | |
var userName = 'github'; //BOTの名前 | |
var json = e.postData.getDataAsString(); | |
var payload = JSON.parse(json); | |
if (isSendAction(payload)) { | |
sendSlack(url, userName, channel, sendText(payload)) | |
} | |
} |
// 宛名印刷&住所録 テスト用データ | |
/* | |
1000001 ◯◯県◯◯市◯◯◯◯◯,1丁目2−3 ◯山 ◯太郎 様,◯子 様 2000001 ◯◯県◯◯市◯◯ 1丁目2−3,◯◯アパート◯◯◯号室 ◯村 ◯郎 | |
1000002 ◯◯◯県◯◯◯市◯◯◯,2丁目3−4 ◯木 ◯男 様 2000001 ◯◯県◯◯市◯◯ 1丁目2−3,◯◯アパート◯◯◯号室 ◯村 ◯郎 | |
1000003 ◯◯県◯◯◯郡◯◯◯◯,3丁目4−5 ◯村 ◯一 様,◯◯美 様 2000001 ◯◯県◯◯市◯◯ 1丁目2−3,◯◯アパート◯◯◯号室 ◯村 ◯郎 | |
*/ | |
// はがきのシートの設定 | |
function setHagakiSheet(){ | |
var margin_left = 1; // 左側の余白 |
この記事は Scala Advent Calendar 2016(Adventar) 10日目の記事です。
今は 12/10 の 625時です。年明けなんて無かった。いいね?
さてさて、sbt の依存jarのダウンロードが遅い、というのは割とよく言われる事であります。
で、この原因の一旦に、sbtが Apache Ivy を使っている、という点があります。
A complete list of RxJS 5 operators with easy to understand explanations and runnable examples.
<source> | |
type in_tail | |
# ... | |
tag raw.eventlog | |
</source> | |
<match raw.**> | |
type forward | |
log_level "#{ENV['DEBUG'] ? 'debug' : 'info'}" |
#!/bin/sh | |
# | |
# consul - this script manages the consul agent | |
# | |
# chkconfig: 345 95 05 | |
# processname: consul | |
### BEGIN INIT INFO | |
# Provides: consul | |
# Required-Start: $local_fs $network |
#!/bin/bash | |
foo=${1:-hoge} | |
echo $foo #$1がなかったらhogeをデフォルト値としてfooに代入する | |
#var自身にデフォルト値としてhogeを代入としたいので以下のように書きたい | |
${var:=hoge} #このままでは、hogeが展開されてしまって、hogeなんてコマンドはないとシェル怒られる | |
echo "1:$var" | |
var= |
// | |
// ViewController.h | |
// FBSample | |
// | |
#import <UIKit/UIKit.h> | |
#import <FacebookSDK/FacebookSDK.h> | |
@interface ViewController : UIViewController <FBLoginViewDelegate> | |
@end |
import scala.concurrent.Await | |
import scala.concurrent.ExecutionContext | |
import scala.concurrent.Future | |
import scala.concurrent.blocking | |
import scala.concurrent.duration.Deadline | |
import scala.concurrent.duration.Duration | |
import scala.concurrent.duration.DurationInt | |
import scala.concurrent.duration.DurationLong | |
import scala.concurrent.future | |
import scala.concurrent.promise |