- References
- Dependency
unittest2
unittest2
ssh が繋がらないときのトラブルシューティングまとめ
OpenSSH_6.2p2, OSSLShim 0.9.8r 8 Dec 2011
debug1: Reading configuration data /Users/xxx/.ssh/config
debug1: Reading configuration data /etc/ssh_config
debug1: /etc/ssh_config line 20: Applying options for *
debug1: /etc/ssh_config line 53: Applying options for *
/** Immutable 0-indexed Binary Index Tree (BIT) */ | |
case class BinaryIndexedTree[A](size: Int, cumulatives: Vector[A])(implicit num: Numeric[A]) { | |
require(cumulatives.size == size + 1) | |
/** Return the sum of the values indexed from 0 to index (time: O(log(size))) */ | |
def sum(until: Int): A = { | |
@annotation.tailrec | |
def f(n: Int, sofar: A): A = | |
if (n == 0) | |
sofar |
#!/bin/bash | |
GIT=/usr/local/bin/git | |
SCRIPT_DIR=$( cd "$( dirname "$0" )" && pwd -P ) | |
if [ "$1" = "clone" ]; then | |
origin_url="$2" | |
else | |
# check if current directory is under git repository | |
origin_url=$("$GIT" config --get remote.origin.url) || { |