import mraa
import time
class Counter(object):
count = 0
c = Counter()
This file contains hidden or 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 hidden or 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
# nodebrew のインストール | |
brew install nodebrew | |
# Node.js のインストール | |
mkdir -p ~/.nodebrew && cd ~/.nodebrew | |
nodebrew install-binary stable # stable は v4.2.1 などでも可 | |
# PATH を登録し、アクティブにする | |
echo 'export PATH=$HOME/.nodebrew/current/bin:$PATH' >> ~/.bashrc | |
source ~/.bashrc |
PyCon JP 2015 チュートリアル『Python x Edison x AWSではじめる IoT』に参加する方向けのドキュメントです。
Mac OS または Windows(64bit)のインストールされたノートPCをお持ち下さい。Mac と Windows PCの両方をお持ちの方は Mac の持参をお薦めいたします。PC は、USBポートを最低1つ備えている必要があります。
This file contains hidden or 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 ' |
This file contains hidden or 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 hidden or 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}" |