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
# -*- 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
# 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 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
require "gnuplot" | |
data=<<EOS | |
2016-07-19T23:47:53.432Z 33.2 | |
2016-07-19T23:41:59.558Z 33.1 | |
2016-07-19T23:36:06.183Z 32.9 | |
2016-07-19T23:30:09.101Z 32.7 | |
2016-07-19T23:24:15.936Z 32.6 | |
2016-07-19T23:18:19.082Z 32.4 | |
2016-07-19T23:12:20.944Z 32.4 |
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
all: crc_example | |
crc_example: crc_example.cc | |
clang++ -std=c++11 -stdlib=libc++ $^ -o $@ |
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
#include <stdio.h> | |
#include <Wire.h> | |
#include <ESP8266WiFi.h> | |
#include <BME280.h> | |
#include <Adafruit_GFX.h> | |
#include <Adafruit_SSD1306.h> | |
// WiFi configuration | |
const char* ssid = "WIFI_SSID"; | |
const char* password = "WIFIT_PASSWORD"; |
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
FROM cern/slc6-base | |
# Instll prerequisites - yum | |
RUN yum install -y wget zlib zlib-devel bzip2 bzip2-devel readline-devel git cmake tar gzip | |
RUN yum groupinstall -y "Development Tools" | |
RUN wget https://gist.githubusercontent.com/mustafaturan/8290150/raw/a85c6194f36d7b08b7b97bdf676fa5f945815b70/ruby.2.4.0-setup.sh; \ | |
bash ruby.2.4.0-setup.sh | |
RUN wget ftp://ftp.pbone.net/mirror/ftp5.gwdg.de/pub/opensuse/repositories/Openwsman/CentOS_CentOS-6/x86_64/swig-3.0.2-5.1.x86_64.rpm; \ |