Skip to content

Instantly share code, notes, and snippets.

View cointoss1973's full-sized avatar

Takayuki Kondo cointoss1973

View GitHub Profile
Copyright (c) <year> <copyright holders>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
@cointoss1973
cointoss1973 / gist:5133794
Created March 11, 2013 12:06
sphinx make target list
$ make
Please use `make <target>' where <target> is one of
html to make standalone HTML files
dirhtml to make HTML files named index.html in directories
singlehtml to make a single large HTML file
pickle to make pickle files
json to make JSON files
htmlhelp to make HTML files and a HTML help project
qthelp to make HTML files and a qthelp project
devhelp to make HTML files and a Devhelp project
@cointoss1973
cointoss1973 / gist:5131606
Created March 11, 2013 02:57
pySerial API Parity
$ ipython
Python 2.7.3 (default, Apr 10 2012, 23:31:26) [MSC v.1500 32 bit (Intel)]
Type "copyright", "credits" or "license" for more information.
IPython 0.13 -- An enhanced Interactive Python.
? -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help -> Python's own help system.
object? -> Details about 'object', use 'object??' for extra details.
@cointoss1973
cointoss1973 / checkvdnfw.cmd
Last active March 17, 2017 02:06
レジストリを自動的に参照して.NET Frameworkのバージョンを検出・表示するバッチ・ファイル http://www.atmarkit.co.jp/ait/articles/1210/26/news086.html
@echo off
REM ------------------------------------------------------------------------------
REM .NET Frameworkバージョン自動検出用バッチ・ファイル(2012年10月26日版)
REM
REM Windows TIPS: .NET Frameworkのバージョンを確認する方法
REM http://www.atmarkit.co.jp/ait/articles/1210/26/news086.html
REM Copyright (C) 2000-2012 Digital Advantage Corp.
REM ------------------------------------------------------------------------------
@cointoss1973
cointoss1973 / which.bat
Created February 15, 2013 12:12
which command for Windows
@echo off
for %%I in (%1 %1.com %1.exe %1.bat %1.cmd %1.vbs %1.js %1.wsf) do if exist %%~$path:I echo %%~$path:I
@cointoss1973
cointoss1973 / gist:4264309
Created December 12, 2012 02:17
Zシステム基本設計書議事録 (textile)

Zシステム 基本設計書議事録

議事内容

議題

Zシステム基本設計書レビュー

出席者

@cointoss1973
cointoss1973 / sphinx-ready-to-go.rst
Last active October 12, 2015 14:57
sphinx-ready-to-go

sphinx-ready-to-go

clone(またはコマンド実行) しただけで、すぐに使えることを目指す

外部拡張を同梱する

下記の拡張を documentsに同梱する

  • sphinxcontrib-plantuml
@cointoss1973
cointoss1973 / gist:4043822
Created November 9, 2012 05:08
sphinx theme.conf not found, include zipped bizstyle
$ make html
sphinx-build -b html -d _build/doctrees . _build/html
Running Sphinx v1.1.3
loading translations [ja]... done
loading pickled environment... not yet created
Theme error:
no theme named 'bizstyle' found (missing theme.conf?)
make: *** [html] Error 1
@cointoss1973
cointoss1973 / gist:3826614
Created October 3, 2012 12:10
Emacsで快適Python開発!
@cointoss1973
cointoss1973 / conf.py
Created September 28, 2012 02:17 — forked from tk0miya/conf.py
Define original roles and styles in Sphinx docs
sys.path += ['.']
extensions += ['sphinxcontrib_roles']
# configuration case.1: define roles as list (define only roles)
roles = ['strike', red]
# configuration case.2: define roles as dict (define roles and its style on HTML)
roles = {'strike': "text-decoration: line-through;",
'red': "color: red;" }