Skip to content

Instantly share code, notes, and snippets.

View shimizukawa's full-sized avatar

Takayuki SHIMIZUKAWA shimizukawa

View GitHub Profile
@shimizukawa
shimizukawa / PIL_build.rst
Last active December 11, 2015 17:28
PIL (Pillow) build procedure

PIL(Pillow) build on Windows (32bit)

If you want to build PIL on Windows, you need to prepare few external libraries. Although some libraries did not provide static library for windows 32/64 bits then you need to build these libraries by your hand too. Also, PIL will load by python at last then you are recommended to use same compiler with python to build libraries.

Target PIL and versions

PIL:1.1.7 for Python 2.4 (or Pillow-1.7.8)

PIL(Pillow) build on Windows (32bit & 64bit)

If you want to build PIL on Windows, you need to prepare few external libraries. Although some libraries did not provide static library for windows 32/64 bits then you need to build these libraries by your hand too. Also, PIL will load by python at last then you are recommended to use same compiler with python to build libraries.

Target PIL and versions

Pillow:1.7.8 for Python 2.7: src
@vsajip
vsajip / pyvenvex.py
Last active May 18, 2024 23:13
A script which demonstrates how to extend Python 3.3's EnvBuilder, by installing setuptools and pip in created venvs. This functionality is not provided as an integral part of Python 3.3 because, while setuptools and pip are very popular, they are third-party packages.The script needs Python 3.3 or later; invoke it using"python pyvenvex.py -h"fo…
#
# Copyright (C) 2013-2020 Vinay Sajip. New BSD License.
#
import os
import os.path
from subprocess import Popen, PIPE
import sys
from threading import Thread
from urllib.parse import urlparse
from urllib.request import urlretrieve
@tk0miya
tk0miya / deploy.rb
Created February 8, 2013 11:06
Setup rbenv and Ruby using capistrano-rbenv. To install them, use "cap deploy:setup" !
# 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"
@knzm
knzm / gist:5185369
Last active December 30, 2020 14:34

Python パッケージングのこれまでとこれから

第1世代: distutils

$ python setup.py build
@knzm
knzm / gist:5326271
Last active December 15, 2015 21:29
Sphinx で生成した HTML に改ページを埋め込む方法
  1. conf.py に以下の設定を追加する

    html_theme_options = {
        'nosidebar': True,
    }
    
  2. ドキュメントの先頭に以下の内容を書く

reST のいけてないところ。
=========================
普段書くテキストと同じような感じで書いていけるのが reST のいいところなんだけど、
ちょっとした時にインデントで文句を言われることがあるよね。
(例えば、こんなふうに括弧付きで補足を入れたりするときに、
括弧の中で改行したあと、一文字インデントしたくならないかしら...)
@voluntas
voluntas / shiguredo_tech.rst
Last active April 11, 2024 08:30
時雨堂を支える技術

時雨堂を支える技術

日時:2024-04-11
作:時雨堂
バージョン:2024.4
URL:https://shiguredo.jp/

時雨堂クラウドサービスを支える技術

@shirou
shirou / README
Last active November 22, 2016 03:36
add these lines to conf.py
How to write
1. pip install sphinxjp.themecore
2. pip install <なにか新しいtinkererのテーマ> 例: sphinxjp.themes.newtinker
3. 'sphinxjp.themecore' をextentionsに追加する
例: extensions = ['tinkerer.ext.blog', 'tinkerer.ext.disqus', 'sphinxjp.themecore']
4. html_theme = "<なにか新しいtinkererのテーマ>" と書く
5. ヽ(゚∀゚ヽ 三 ノ゚∀゚)ノ ワーイ
@voluntas
voluntas / shiguredo.rst
Last active June 6, 2024 02:04
時雨堂コトハジメ