Skip to content

Instantly share code, notes, and snippets.

View cointoss1973's full-sized avatar

Takayuki Kondo cointoss1973

View GitHub Profile
@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 / 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 / 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 / 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
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 / hg-git.rst
Last active December 15, 2015 03:29
hg-git コトハジメ

hg-git コトハジメ

hg-git とは?

hg-git とは、Gitリポジトリを mercurial のコマンドで操作できる Mercurialの拡張です。

インストール方法

Git と Mercurial の pull と fetch の違い

git の pull は、 hg の fetch と同じである。

hg fetch hg pull + hg merge git pull git fetch + git merge
@cointoss1973
cointoss1973 / hel.sh
Last active December 15, 2015 12:19
my first python one liner
python -c "print 'Hello World!'"
@cointoss1973
cointoss1973 / python-tutorial.rst
Last active December 17, 2015 00:39
Python関連チュートリアルまとめ
@cointoss1973
cointoss1973 / debian.rst
Created May 6, 2013 03:06
Debian GNU/Linux 7.0 wheezy