PythonのContext Managerの使い方
Context Managerとは Pythonのwithブロックだけで行う処理を定義する際に利用する. 例: withブロックなし f = open('hoge.txt', 'w') f.wr...
19 search resultsShowing 1~19 results
You need to log-in
Context Managerとは Pythonのwithブロックだけで行う処理を定義する際に利用する. 例: withブロックなし f = open('hoge.txt', 'w') f.wr...
svn for git user. git-svn is tool to use git as svn client. Official Documentation https://git=sc...
Use Old GitHub Header Motivation before after How To Download {.sourceCode .sh} git clone https:/...
$ apt-cyg install lua $ apt-cyg install vim $ vim --version | grep lua
OpenCVのインストール OpenCVのダウンロードページより__OpenCV for Windows__をダウンロード。 ダウンロードしたインストーラを実行。 opencvフォルダがインスト...
以下がWindowsでの環境準備で最も簡単だと思われる方法です。 環境 Windows7 64bit インストーラによるPythonのインストール Cygwinを入れて、apt-cyg, eas...
Build ARToolkit on Mac OSX 10.9 Download ARToolkit Download ARToolKit-XXX.tgz from here Run Confi...
On any platform Download binay from here. Each platform OS X $ brew install hub Ubuntu $ sudo apt...
$ brew install gist $ gist --login # type username & password $ gist test.md # this publish t...
Generate gh-pages $ cd repo $ git checkout --orphan gh-pages $ git rm -rf . $ echo "First commit"...
Setup ssh Install openssh-server $ sudo apt-get install openssh-server .ssh directory $ mkdir ~/....
目標 Emacsを使ったタイピングソフトTRR をHomebrewで簡単に入れられるようにする。 Homebrewについて Homebrew は「ユーザが自らパッケージをビルドして使用する」こと...
ものすごくありそうなのに見つからなかったので、作りました。 → pycd: cd to python modules Pythonのパッケージを書いていると他のパッケージから持ってくればすぐ終わ...
コード # コンパイラを指定 CC :=g++ # インクルードファイル等 CFLAGS :=`pkg-config opencv --cflags` `pkg-config opencv --...
nkf: 文字コード変換 インストール $ brew install nkf 使用例 $ # 文字列コードを調べる $ nkf -g data1.sjis.csv Shift_JIS $ # U...
コード import cv2 def capture_camera(mirror=True, size=None): """Capture video from camera""" # カメラを...
目標 C言語でOpenCVライブラリを用いて、ビデオキャプチャを行う。 準備 環境 MacOSX Marvericks(10.9) Homebrew インストール brew install op...
コード import numpy import matplotlib.pyplot as plt import matplotlib.animation as animation import ...
MySQLからデータを取り出す """Get data from MySQL with pandas library.""" import MySQLdb import pandas.io.sq...
19 search resultsShowing 1~19 results
Qiita is a knowledge sharing service for engineers.