>>> import mraa
>>> led = mraa.Gpio(6) # 初期化
>>> led.dir(mraa.DIR_OUT) # 出力対象としてセット
0
>>> led.getPin() # ピン番号を取得
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
./sphinx-quickstart.expect hoge_dir project_hoge |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
!/bin/bash | |
BASE_URI="https://api.hipchat.com" | |
API_VERSION="v1" | |
# Notification権限を持つAPIトークンを記載します | |
API_TOKEN=**************** | |
COMMON_URI=${BASE_URI}/${API_VERSION} | |
COMMON_PARAMETER="format=json&auth_token=${API_TOKEN}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# home brewをインストールし、caskを有効にします。 | |
xcode-select --install | |
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
brew doctor | |
brew install caskroom/cask/brew-cask | |
brew tap caskroom/versions | |
# brew caskを利用してアプリケーションをインストールします。 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ aws ec2 describe-instances | jq -r '.Reservations[].Instances[] | select(.State.Name == "running") | [.InstanceId, .InstanceType, .Placement.AvailabilityZone, .Tags[].Value] |@csv ' |
PyCon JP 2015 チュートリアル『Python x Edison x AWSではじめる IoT』に参加する方向けのドキュメントです。
Mac OS または Windows(64bit)のインストールされたノートPCをお持ち下さい。Mac と Windows PCの両方をお持ちの方は Mac の持参をお薦めいたします。PC は、USBポートを最低1つ備えている必要があります。
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
npm -g install gulp | |
npm install ejs gulp gulp-ejs gulp-plumber --save-dev |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
npm install babel-plugin-mjsx --save-dev |
OlderNewer