あまり深く理解してないので識者のツッコミ大歓迎
取り敢えず最低限だけ
# 補完を有効にする
import java.io.Serializable; | |
import java.lang.annotation.*; | |
public class Java8 | |
{ | |
@FunctionalInterface | |
private interface F // 関数型インターフェース | |
{ | |
static F concat(F f1, F f2) // staticインターフェースメソッド |
Either copy the aliases from the .gitconfig
or run the commands in add-pr-alias.sh
Easily checkout local copies of pull requests from remotes:
git pr 4
- creates local branch pr/4
from the github upstream
(if it exists) or origin
remote and checks it outgit pr 4 someremote
- creates local branch pr/4
from someremote
remote and checks it out#!/bin/bash | |
foo=${1:-hoge} | |
echo $foo #$1がなかったらhogeをデフォルト値としてfooに代入する | |
#var自身にデフォルト値としてhogeを代入としたいので以下のように書きたい | |
${var:=hoge} #このままでは、hogeが展開されてしまって、hogeなんてコマンドはないとシェル怒られる | |
echo "1:$var" | |
var= |
# patch -p1 <$srcdir/dkms-conf.patch | |
# $Id: PKGBUILD 102331 2013-12-09 03:38:37Z bisson $ | |
# Maintainer: Sergej Pupykin <[email protected]> | |
# Contributor: Krzysztof Raczkowski <[email protected]> | |
pkgbase=open-vm-tools | |
pkgname=('open-vm-tools' 'open-vm-tools-dkms') | |
epoch=6 | |
pkgver=9.4.0 | |
_pkgsubver=1280544 |
スタートアップ企業 Silk が、Haskellを採用した理由。
http://engineering.silk.co/post/31920990633/why-we-use-haskell
As a newly started company, we have a lot of technical decisions to make. One of the important ones is the choice of a programming language. Since we’re building a web application, this goes for both the client (i.e. the web browser) and the server.
新しく始めた会社として、我々はたくさんの技術的決定を行わなければなりません。中でも重要なのは、プログラミング言語の選択です。我々はウェブアプリケーションを作っていたので、この選択がクライアント(Webブラウザなど)とサーバの両方で必要になります。
On the client, there wasn’t much discussion. Javascript is the only viable choice, unless you want to use Flash or similar plugin-based models. But on the server, we had more freedom. Popular choices for web applications are dynamically typed languages like Ruby, Python and PHP, and statically typed languages like Java and C#.
その他の設定 for Arch Linux