git-svn の使い方をメモする。他によいプラクティスがあれば指摘していただけるとありがたい。
SVN のブランチと git のブランチが混在しているため、ここではブランチという語を以下のように区別する。
- ブランチ、 SVN ブランチ:$SVN_REPO/branches 以下にあるディレクトリ
- ローカルブランチ:git のローカルブランチ
- リモートブランチ:git のリモートブランチ
@startuml | |
' uncomment the line below if you're using computer with a retina display | |
' skinparam dpi 300 | |
!define Table(name,desc) class name as "desc" << (T,#FFAAAA) >> | |
' we use bold for primary key | |
' green color for unique | |
' and underscore for not_null | |
!define primary_key(x) <b>x</b> | |
!define unique(x) <color:green>x</color> | |
!define not_null(x) <u>x</u> |
// this is the background code... | |
// listen for our browerAction to be clicked | |
chrome.browserAction.onClicked.addListener(function (tab) { | |
// for the current tab, inject the "inject.js" file & execute it | |
chrome.tabs.executeScript(tab.ib, { | |
file: 'inject.js' | |
}); | |
}); |
from datetime import datetime | |
class LRUCacheItem(object): | |
"""Data structure of items stored in cache""" | |
def __init__(self, key, item): | |
self.key = key | |
self.item = item | |
self.timestamp = datetime.now() |
>>> import boto.dynamodb | |
>>> boto.dynamodb.regions() | |
[RegionInfo:us-east-1, RegionInfo:ap-northeast-1, RegionInfo:eu-west-1] | |
>>> boto.dynamodb.regions()[1] | |
RegionInfo:ap-northeast-1 | |
>>> type(boto.dynamodb.regions()[1]) | |
<class 'boto.regioninfo.RegionInfo'> | |
>>> region_info = boto.dynamodb.regions()[1] | |
>>> conn = region_info.connect(aws_access_key_id='', aws_secret_access_key='') | |
>>> conn |