Skip to content

Instantly share code, notes, and snippets.

View shimizukawa's full-sized avatar

Takayuki SHIMIZUKAWA shimizukawa

View GitHub Profile
# -*- coding: utf-8 -*-
#
# Sphinx extension for renaming _static/ directory
#
# Author: Takeshi KOMIYA / License: BSD
#
import re
import os
import shutil
cookbook 'build-essential'
cookbook 'openssl'
cookbook 'mysql',
:git => 'https://github.com/9minutesnooze/mysql.git',
:branch => 'mysql56'
@ianlewis
ianlewis / csv_import_magic.js
Last active February 3, 2023 13:16
A Google Apps Script for importing CSV data into a Google Spreadsheet.
// vim: ft=javascript:
/*jslint sloppy: true, vars: true, white: true, nomen: true, browser: true */
/*global SpreadsheetApp, UiApp, UrlFetchApp, Utilities */
/*
* A script to automate requesting data from an external url that outputs CSV data.
*
* Adapted from the Google Analytics Report Automation (magic) script.
* @author nickski15@gmail.com (Nick Mihailovski)
* @author ianmlewis@gmail.com (Ian Lewis)
*/
@voluntas
voluntas / shiguredo.rst
Last active March 31, 2024 02:15
時雨堂コトハジメ
@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_tech.rst
Last active April 11, 2024 08:30
時雨堂を支える技術

時雨堂を支える技術

日時

2024-04-11

時雨堂

バージョン

2024.4

URL

https://shiguredo.jp/

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

reST のいけてないところ。
=========================
普段書くテキストと同じような感じで書いていけるのが reST のいいところなんだけど、
ちょっとした時にインデントで文句を言われることがあるよね。
(例えば、こんなふうに括弧付きで補足を入れたりするときに、
括弧の中で改行したあと、一文字インデントしたくならないかしら...)
@knzm
knzm / gist:5326271
Last active December 15, 2015 21:29
Sphinx で生成した HTML に改ページを埋め込む方法
  1. conf.py に以下の設定を追加する

    html_theme_options = {
        'nosidebar': True,
    }
  2. ドキュメントの先頭に以下の内容を書く
@knzm
knzm / gist:5185369
Last active December 30, 2020 14:34

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

第1世代: distutils

$ python setup.py build
@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"