- SCMBC #2 Mercurial 入門セッション資料(のたたき台)です。
- TODO たとえ話募集中
(おまけ)分散バージョン管理全般の利点
<span style="font-weight:bold; font-size:110%;">■Sphinx を用いて、 reST の文章を Blogger の原稿に変換する</span> | |
<a href="http://atnd.org/events/3015">BPStudy #30</a> にてSphinx講座があったので、早速それを生かしてreSTでBlogger向けの原稿を作ってみることにします。 | |
<span style="font-weight:bold; font-size:110%;">■見出しのテスト</span> | |
Hello world! | |
foo bar |
/* ~/Library/KeyBindings/DefaultKeyBinding.dict */ | |
{ | |
/* Auto-Paring */ | |
// "(" = ( "insertText:", "()", "moveBackward:" ); | |
// "{" = ( "insertText:", "{}", "moveBackward:" ); | |
// "[" = ( "insertText:", "[]", "moveBackward:" ); | |
"~f" = "moveWordForward:"; /* M-f */ | |
"~b" = "moveWordBackward:"; /* M-b */ | |
"~<" = "moveToBeginningOfDocument:"; /* M-< */ |
#!/usr/bin/env python | |
import csv | |
try: import simplejson as json | |
except: import json | |
from optparse import OptionParser | |
def main(): | |
usage = "usage: csv2json: %prog [options] arg" | |
parser = OptionParser() | |
parser.add_option("-i","--input",dest="input",help="input csv file") |
# Add correct content-type for fonts | |
AddType application/vnd.ms-fontobject .eot | |
AddType font/ttf .ttf | |
AddType font/otf .otf | |
AddType font/x-woff .woff | |
AddType image/svg+xml .svg | |
# Compress compressible fonts | |
AddOutputFilterByType DEFLATE font/ttf font/otf image/svg+xml |
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
""" | |
フレームワークとして Flask(http://flask.pocoo.org/) を、OAuth ライブラリとして oauth2(http://pypi.python.org/pypi/oauth2/) を利用したサンプルプログラムです。 | |
下のコードを保存して (oauth_consumer.py とします)、YOUR_CONSUMER_KEY, YOUR_CONSUMER_SECRET となっている部分を自分の consumer_key, consumer_secret で置き換えます。 | |
$ python oauth_consumer.py | |
... で起動してから http://localhost:5000 に Web ブラウザでアクセスして下さい。 |
// Copyright 2011 Google Inc. All rights reserved. | |
// Use of this source code is governed by the Apache 2.0 | |
// license that can be found in the LICENSE file. | |
package guestbook | |
import ( | |
"http" | |
"io" | |
"os" |
<?xml version="1.0" encoding="UTF-8" ?> | |
<Data> | |
<Series> | |
<id>83462</id> | |
<Actors>|Nathan Fillion|Stana Katic|Molly C. Quinn|Jon Huertas|Seamus Dever|Tamala Jones|Susan Sullivan|Ruben Santiago-Hudson|Monet Mazur|</Actors> | |
<Airs_DayOfWeek>Monday</Airs_DayOfWeek> | |
<Airs_Time>10:00 PM</Airs_Time> | |
<ContentRating>TV-PG</ContentRating> | |
<FirstAired>2009-03-09</FirstAired> | |
<Genre>|Drama|</Genre> |
# -*- encoding: utf-8 -*- | |
try: | |
import pyreadline.rlmain | |
#pyreadline.rlmain.config_path=r"c:\xxx\pyreadlineconfig.ini" | |
import readline,atexit | |
import pyreadline.unicode_helper | |
# | |
# | |
#Normally the codepage for pyreadline is set to be sys.stdout.encoding | |
#if you need to change this uncomment the following line |