- 佐藤 太一
- ryushi@twitter
- taichi@github
- taichi#1881 @battle.net
- Koshinuke
- Gitフロントエンド(実装済)
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
#!/usr/bin/env python2.6 | |
# encoding: utf-8 | |
import sys | |
import sqlite3 | |
from collections import namedtuple | |
conn = sqlite3.connect("wnjpn-0.9.db") | |
Word = namedtuple('Word', 'wordid lang lemma pron pos') | |
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
#!/usr/bin/env python | |
# -*- coding:utf-8 -*- | |
import re | |
import MeCab | |
class Word(object): | |
def __init__(self,surface,feature): | |
self.surface = surface | |
self.feature = feature |
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
u""" | |
sudo pip install docutils pygments # システム Python に docutils インストール | |
rvm use 1.8.7 | |
gem install RbST | |
/var/www/vhosts/redmine/script/plugin install git://github.com/alphabetum/redmine_restructuredtext_formatter.git | |
RbST はなんと! 日本語に対応しません! orz (幸いなことに、 docutils の部分は Python で書かれている) |
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
## mysql::master | |
ruby_block "store_mysql_master_status" do | |
block do | |
node.set[:mysql][:master] = true | |
m = Mysql.new("localhost", "root", node[:mysql][:server_root_password]) | |
m.query("show master status") do |row| | |
row.each_hash do |h| | |
node.set[:mysql][:master_file] = h['File'] | |
node.set[:mysql][:master_position] = h['Position'] | |
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
======================================== | |
In defense of zope libraries 翻訳 | |
======================================== | |
Pyramid が Zope ライブラリを使っていることについての非常に長い defence | |
---------------------------------------------------------------------- | |
freenode の #pyramid IRC チャンネルで、以下のような質問に私は | |
うんざりするほど多くの時間を割いてきた。 |
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 colander as c | |
import deform.widget as w | |
from deform.form import Form | |
from deform.schema import FileData | |
import os | |
here = os.path.dirname(__file__) | |
class Store(dict): | |
def preview_url(self, name): |
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
app = node[:rails][:app] | |
rails_base app[:name] do | |
ruby_ver app[:ruby_ver] | |
gemset app[:gemset] | |
end | |
%w{config log pids cached-copy bundle system}.each do |dir| | |
directory "#{app[:app_root]}/shared/#{dir}" do | |
owner app[:deploy_user] |
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
diff -r c9910fd022fc -r 0cc743bd3a6d Doc/library/ssl.rst | |
--- a/Doc/library/ssl.rst Tue Apr 10 10:59:35 2012 -0400 | |
+++ b/Doc/library/ssl.rst Tue May 29 14:31:16 2012 -0700 | |
@@ -218,14 +218,6 @@ | |
Note that use of this setting requires a valid certificate validation file | |
also be passed as a value of the ``ca_certs`` parameter. | |
-.. data:: PROTOCOL_SSLv2 | |
- | |
- Selects SSL version 2 as the channel encryption protocol. |
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
module Vagrant | |
module Provisioners | |
class Fabric < Base | |
class Config < Vagrant::Config::Base | |
attr_accessor :fabfile_path | |
attr_accessor :fabric_path | |
attr_accessor :python_path | |
attr_writer :tasks | |
def _default_fabfile_path |
OlderNewer