この文章は、以下の文章の私的な和訳です。
原文:http://www.reactive-streams.org/
Reactive Streams とは、 JVM上のバックプレッシャーを用いた非同期ストリーム処理の標準を提供するイニシアチブです。
# @root | |
# ================================================ Oracle JDK 7u51 | |
cd /usr/local/src | |
wget --no-cookies --header "Cookie: gpw_e24=xxx" http://download.oracle.com/otn-pub/java/jdk/7u51-b13/jdk-7u51-linux-x64.rpm -O jdk-7u51-linux-x64.rpm | |
rpm -ivh jdk-7u51-linux-x64.rpm | |
alternatives --install /usr/bin/java java /usr/java/default/bin/java 20000 | |
update-alternatives --config java | |
ln -s /usr/java/default/jre /usr/lib/jvm/jre | |
ln -s /usr/share/java /usr/lib/jvm-exports/jre |
この文章は、以下の文章の私的な和訳です。
原文:http://www.reactive-streams.org/
Reactive Streams とは、 JVM上のバックプレッシャーを用いた非同期ストリーム処理の標準を提供するイニシアチブです。
この文章は、以下の文章の私的な和訳です。
原文:http://www.reactivemanifesto.org/
#!/bin/sh | |
# | |
# (1) copy to: ~/bin/ssh-host-color | |
# (2) set: alias ssh=~/bin/ssh-host-color | |
# | |
# Fork from https://gist.github.com/thomd/956095 | |
set_term_bgcolor(){ | |
local R=$1 | |
local G=$2 |
fn main() { | |
let x = 5; | |
// let y = if x == 5 {1;} else {0;}; // compile error | |
let y = if x == 5 {1} else {0}; | |
println!("y is {}", y) | |
} | |
// rustc ./main.rs && main |
// ==UserScript== | |
// @name calc-gumibears-camp-redmine.user.js | |
// @description CAMPのredmineの「チケット一覧」において、グミベア(カスタムフィールド31)の合計値を計算し出力します。 | |
// @version 0.1.1 | |
// @match http://redmine.adsys.local/redmine/projects/camp/issues | |
// @match http://redmine.adsys.local/redmine/projects/camp/issues?* | |
// @match http://redmine.adsys.local/redmine/projects/camp/issues#* | |
// @match http://redmine.adsys.local/redmine/projects/camp/issues/ | |
// @match http://redmine.adsys.local/redmine/projects/camp/issues/?* | |
// @match http://redmine.adsys.local/redmine/projects/camp/issues/#* |
sudo sh -c "echo -e 'ZONE=\"Asia/Tokyo\"\nUTC=false' > /etc/sysconfig/clock" | |
sudo rm /etc/localtime | |
sudo ln -s /usr/share/zoneinfo/Asia/Tokyo /etc/localtime |
irb(main):031:0> foo = 111 | |
=> 111 | |
irb(main):032:0> def foo() 222 end | |
=> :foo | |
irb(main):033:0> foo | |
=> 111 | |
irb(main):034:0> foo() | |
=> 222 |
object Main extends App{ | |
// Scala version 2.11.6 | |
// 組み込みのStringを拡張したMyStringクラスを定義。 | |
class MyString( val str:String ) { | |
def kansaiben:String = { | |
import java.lang.StringBuffer | |
( new java.lang.StringBuffer(str).append("やで")).toString() | |
} | |
} |
// (1) implicit 無しの普通の関数 | |
def repeat(str: String, cnt: Int):String = str * cnt | |
println( repeat("Abc", 3) ) // => AbcAbcAbc | |
println( repeat() ) // => NG: error: not enough arguments for method repeat | |
// (2) パラメータ全体に対して implicit parameter 宣言した関数 |