This file contains 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
Source | |
======= | |
* item 1 | |
* item 1-1 | |
* item 1-2 | |
* item 2 | |
Before: without ext. | |
===================== | |
<bullet_list bullet="*"> |
This file contains 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
.. remoteinclude:: http://www.yahoo.co.jp/ |
This file contains 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
sys.path += ["."] | |
extensions += ["markdown"] | |
markdown_title = 'hello world' | |
source_suffix = '.md' |
This file contains 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
sys.path.insert(0, 'lib/') | |
extensions += ['sphinxcontrib_phpautodoc'] |
This file contains 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
# rvm setting | |
require "rvm/capistrano" | |
set :rvm_ruby_string , "ruby-1.9.3-p374@#{application}" | |
before 'deploy:setup', 'rvm:install_rvm' | |
before 'deploy:setup', 'rvm:install_ruby' | |
namespace :rvm do | |
desc "Install build dpendencies of Ruby" | |
task :install_build_depends do |
This file contains 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
# rbenv setting | |
require 'capistrano-rbenv' | |
set :rbenv_ruby_version, '1.9.3-p374' | |
namespace :rbenv do | |
task :setup_shellenv do | |
set :default_environment, { | |
'RBENV_ROOT' => "#{rbenv_path}", | |
'PATH' => "#{rbenv_path}/shims:#{rbenv_path}/bin:$PATH" |
This file contains 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
# for roundsman | |
set :default_environment, { | |
'PATH' => "/opt/chef/bin:/opt/chef/embedded/bin:$PATH" | |
} | |
namespace :chef do | |
namespace :omnibus do | |
task :install do | |
run "curl -L http://www.opscode.com/chef/install.sh | #{sudo} bash" | |
end |
This file contains 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
# -*- coding: utf-8 -*- | |
import re | |
import sys | |
from collections import namedtuple | |
Status = namedtuple('Status', 'code message') | |
status_list = [ | |
Status("100", "Continue"), |
This file contains 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 Image | |
from urllib import urlopen | |
from cStringIO import StringIO | |
from pptx import Presentation | |
from pptx.util import Inches, Px | |
from pptx.oxml import _SubElement, qn | |
def set_textbox_bgcolor(textbox, color): |
This file contains 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
// Transaction 1. | |
BEGIN; | |
INSERT INTO users values(1, "tk0miya"); | |
// Transaction 2. | |
BEGIN; | |
INSERT INTO users values(1, "suzuki"); | |
// Transaction 1. が commit or rollback されるまでブロックされる. (なぜ?) |