- Scott Chacon on the Interwebs(リンク切れ)
- Scott Chacon on the Interwebs
- GitHub Flow - The best way to use Git and GitHub
31 Aug 2011
#!/bin/bash | |
# Installation: | |
# 1. Save this script to /some/bin/ssh-background | |
# 2. chmod 755 /some/bin/ssh-background | |
# 3. alias ssh=/some/bin/ssh-background | |
# 4. Configure your host colors below. | |
set_color() { | |
local HEX_FG=$1 | |
local HEX_BG=$2 |
http { | |
include /etc/nginx/mime.types; | |
default_type application/octet-stream; | |
log_format ltsv 'domain:$host\t' | |
'host:$remote_addr\t' | |
'user:$remote_user\t' | |
'time:$time_local\t' | |
'method:$request_method\t' | |
'path:$request_uri\t' |
require "mechanize" | |
require "yaml" | |
# 設定ファイル | |
config = YAML.load_file("config.yml") | |
# スクレイピング準備 | |
agent = Mechanize.new | |
agent.user_agent = "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/28.0.1500.52 Safari/537.36" | |
agent.max_history = 1 |
<?php | |
// sorted array must be a 0 indexed | |
// left most index, right most index all inclusive | |
// finds all of the elements coming from the left to the right that is less or equal to the key | |
function bisect_right($sorted_array, $key, $left = null, $right = null){ | |
if(is_null($left)){ | |
reset($sorted_array); | |
$left = key($sorted_array); |
クラウドファンディングサービス
awsで下記あたり。
<?php // resources/lang/ja/validation.php | |
return [ | |
/* | |
|-------------------------------------------------------------------------- | |
| Validation Language Lines | |
|-------------------------------------------------------------------------- | |
| | |
| The following language lines contain the default error messages used by |
これを読んでる。
この本の中で「トランザクティブ・メモリー」という話がでてきた。概要は以下のコラムに書いてる。