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
# Jupyter notebook環境で実行するときは、以下の「%matplotlib inline」の | |
# コメントアウトを解除すると、プロット結果がインラインで表示されます。 | |
# %matplotlib inline | |
import matplotlib.pyplot as plt | |
import matplotlib.cm as cm | |
import numpy as np | |
# Set script-wide font size |
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
# -*- coding: utf-8 -*- | |
import Adafruit_GPIO.SPI as SPI | |
import Adafruit_SSD1306 | |
import Image | |
import ImageDraw | |
import ImageFont | |
# Raspberry Pi pin configuration |
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 | |
PREFIX=$HOME/work/install | |
cd $HOME | |
if [ ! -d $PREFIX ]; then | |
mkdir -p $PREFIX | |
fi |
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 | |
PREFIX=$HOME/work/install | |
cd $HOME | |
if [ ! -d $PREFIX ]; then | |
mkdir -p $PREFIX | |
fi |
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 | |
PREFIX=$HOME/work/install | |
cd $HOME | |
if [ ! -d $PREFIX ]; then | |
mkdir -p $PREFIX | |
fi |
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
### CreateSwigRuby | |
### 2013-06-02 | Hirokazu Odaka | |
### | |
### message | |
message("-- CreateSwigRuby: ${TARGET_EXT_LIBRARY}") | |
message("-- SWIG interface file: ${SWIG_IF_FILE}") | |
message("-- INCLUDE_DIRS: ${RUBY_EXT_INCLUDE_DIRS}") | |
message("-- LIBRARY_DIRS: ${RUBY_EXT_LIBRARY_DIRS}") | |
message("-- LIBRARIES: ${RUBY_EXT_LIBRARIES}") |
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
####### CMakeLists.txt for RubySpaceWire | |
cmake_minimum_required(VERSION 2.8) | |
### Initial definition of cmake variables | |
set(CMAKE_INSTALL_PREFIX $ENV{HOME} CACHE PATH "install prefix") | |
set(CMAKE_BUILD_TYPE Release CACHE STRING "build type") | |
set(CMAKE_CXX_FLAGS_DEBUG "-g -W -Wall" CACHE STRING "CXX_FLAGS for debug") | |
set(CMAKE_C_FLAGS_DEBUG "-g -W -Wall" CACHE STRING "C_FLAGS for debug") | |
set(CMAKE_CXX_FLAGS_RELEASE "-O3 -W -Wall" CACHE STRING "CXX_FLAGS for release") |
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 | |
PREFIX=$HOME/work/install | |
cd $HOME | |
if [ ! -d $PREFIX ]; then | |
mkdir -p $PREFIX | |
fi |
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 | |
PREFIX=$HOME/work/install | |
cd $HOME | |
if [ ! -d $PREFIX ]; then | |
mkdir -p $PREFIX | |
fi |
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 | |
############################################## | |
#yum-related things | |
############################################## | |
sudo yum update | |
sudo yum groupinstall -y "GNOME Desktop" "Graphical Administration Tools" "Console Internet Tools" "Scientific Support" "Development Tools" "System Administration Tools" | |
sudo yum install -y zsh | |
sudo yum install -y openssl-devel readline-devel zlib-devel curl-devel expat expat-devel ImageMagick ImageMagick-devel bzip2-devel python-devel ruby-devel | |
sudo yum install -y dbus-python-devel.x86_64 gstreamer-python-devel.x86_64 lvm2-python-libs.x86_64 python-backports-lzma.x86_64 python-brlapi.x86_64 |