- 互換性の影響を最小限にしつつ、文字列を透過的に扱えるようにする方法を提供する
- MessagePackから分離された上位レイヤーが、MessagePackの仕様に変更を加えずに、独自の型を定義できるようにする
- 将来的にMessagePackに新たな機能が追加されても、既存のコードに影響を与えないようにする
This document is obsolete, all the docs for porting are now at https://github.com/mitsuhiko/pocoo-sprint-18052013
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"labix.org/v1/pipe" | |
"log" | |
) | |
func main() { | |
output, err := pipe.CombinedOutput( | |
pipe.Line( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Call virtualenvwrapper's "workon" if .venv exists. This is modified from-- | |
# http://justinlilly.com/python/virtualenv_wrapper_helper.html | |
# which is linked from-- | |
# http://virtualenvwrapper.readthedocs.org/en/latest/tips.html#automatically-run-workon-when-entering-a-directory | |
check_virtualenv() { | |
if [ -e .venv ]; then | |
env=`cat .venv` | |
echo "Found .venv in directory. Calling: workon ${env}" | |
workon $env | |
fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!perl | |
use 5.10.0; | |
use strict; | |
use warnings; | |
my $localhost = join '|', map { quotemeta } 'localhost', '127.0.0.1'; | |
my $s = "http://localhost/foo http://127.0.0.1/bar http://127_0_0_1/foo/bar/baz"; | |
my @matched = $s =~ m{ http:// (?:$localhost) / \S+ }xg; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import json | |
import httplib | |
import time | |
VERSION = "0.1.0" | |
class ClientSession: | |
def __init__(self, server, user, source=None, catalog=None, schema=None, debug=False): | |
self.server = server |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# Copyright (c) Twisted Matrix Laboratories. | |
# See LICENSE for details. | |
from twisted.internet.protocol import ClientFactory | |
from twisted.protocols.basic import LineReceiver | |
from twisted.internet import reactor | |
import sys |
更新: | 2022-03-18 |
---|---|
作者: | @voluntas |
バージョン: | 2022.1 |
URL: | http://voluntas.github.io/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# GCEでUbuntu 15.04 | |
sudo su - | |
apt-get update && apt-get -y install ansible jq | |
git clone https://github.com/isucon/isucon5-qualify.git | |
cd isucon5-qualify/ | |
cd gcp/bench/ansible/ | |
sed -i 's/- copy/#- copy/' 00_devel.yml | |
sed -i 's@key_file=.*@@' 06_deploy_bench_tool.yml | |
sed -i 's@repo=.*@repo=https://github.com/isucon/isucon5-qualify.git@' 06_deploy_bench_tool.yml |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## | |
## Syntax | |
## | |
# Define a type: | |
# | |
# <MessageName>: | |
# <fieldIndex>: [<fieldName>, <type>, <options...>] | |
# ... | |
# | |
# Typedef (type alias): |