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/sh | |
BUILD_DIR=build | |
usage_exit() { | |
echo "run_crops.sh [-b build] [commands]" | |
echo " -b: a build directory of poky" | |
exit 0 | |
} |
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
;; ricty font | |
(set-default-font "Ricty Diminished-10.5") | |
(set-fontset-font nil 'japanese-jisx0208 (font-spec :family "Ricty Diminished" :size 10.5)) | |
(add-to-list 'default-frame-alist '(font . "Ricty Diminished-10.5")) | |
;; the additional load paths | |
(add-to-list 'load-path "~/.emacs.d/site-lisp") | |
;; package | |
(require 'package) |
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
diff --git a/include/netutils/mqtt.h b/include/netutils/mqtt.h | |
new file mode 100644 | |
index 00000000..b2077e67 | |
--- /dev/null | |
+++ b/include/netutils/mqtt.h | |
@@ -0,0 +1,1509 @@ | |
+#ifndef __MQTT_H__ | |
+#define __MQTT_H__ | |
+ | |
+#include "mqtt_pal.h" |
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
# coding=utf-8 | |
import os | |
import subprocess | |
import RPi.GPIO as GPIO | |
import dht11 | |
def talk(s): | |
model = '/usr/share/Voice/mei/mei_happy.htsvoice' | |
dic = '/usr/share/dic' |
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
# coding=utf-8 | |
import os | |
import subprocess | |
def talk(s): | |
model = '/usr/share/Voice/mei/mei_happy.htsvoice' | |
dic = '/usr/share/dic' | |
wav = '/tmp/talk.wav' | |
txt = '/tmp/talk.txt' |
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
これはテストデータです。 |
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
import RPi.GPIO as GPIO | |
class Led: | |
def __init__(self, pin): | |
self.pin = pin | |
self.s = 0 | |
GPIO.setmode(GPIO.BOARD) | |
GPIO.setup(self.pin, GPIO.OUT) |
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 | |
## | |
# make sdcard for meta-panda-es-rev-b3 | |
# This script create partition for PandaBoard SD Card. | |
# SD Card device detect automatically. | |
# | |
MOUNT_POINT=/media/${USER}/* | |
DISK=/dev/`cd /sys/block && grep ^ */removable | grep :1 | cut -d'/' -f1 | grep sd` |
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 | |
filename=$1 | |
theme=$2 | |
transition=$3 | |
exec_pandoc() { | |
pandoc ${filename} -s -t revealjs --slide-level=2 --self-contained -o ${filename%.*}.html | |
} |
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
cmake_minimum_required(VERSION 2.8) | |
set(PROJ_NAME first_window) | |
# find opengl via pkg-config | |
find_package(PkgConfig) | |
pkg_check_modules(EGL REQUIRED egl) | |
pkg_check_modules(GLES2 REQUIRED glesv2) | |
# Include directories for this project | |
set(INCLUDE_PATH |
NewerOlder