Skip to content

Instantly share code, notes, and snippets.

View senyoltw's full-sized avatar
:octocat:
Programming as a hobby

senyoltw senyoltw

:octocat:
Programming as a hobby
View GitHub Profile
start
test
end

###ソフトウェアアップデート

sudo apt-get update
sudo apt-get upgrade

Wi-Fiを使ってのインターネットへの接続

Raspberry PiをWi-Fiに接続する sudo vi /etc/network/interfaces

// エラー処理は終了にしているのでforeverなどでプロセス監視してください
var keyword = 'せにょ|セニョ'
var device = '通知するデバイス。登録したメールアドレスならすべてのデバイスに通知'
var PushBullet = require('pushbullet');
var pusher = new PushBullet('PushBulletのAccess Token');
var twitter = require('ntwitter');
var twit = new twitter({
consumer_key: 'dev.twitter.comで作ったconsumer_key',
consumer_secret: 'dev.twitter.comで作ったconsumer_secret',
access_token_key: 'dev.twitter.comで作ったaccess_token_key',
sudo yum update -y
# ひとまず
sudo yum install epel-release
sudo rpm -ivh http://packages.groonga.org/centos/groonga-release-1.1.0-1.noarch.rpm
# 必要なレポジトリを登録
sudo yum install -y R mecab mecab-ipadic mecab-devel
# 解析環境をインストール 依存環境含めていろいろインストールされる。
@senyoltw
senyoltw / call.xml
Last active December 3, 2015 07:47
<?xml version="1.0" encoding="UTF-8"?>
<Response>
<Say voice="woman" language="ja-jp">
サーバーに障害が発生しました。
</Say>
</Response>
@senyoltw
senyoltw / snowboydecoder.py
Last active December 7, 2017 20:54
snowboydecoder.py for raspberry pi voice kit maybework!
#!/usr/bin/env python
import collections
import snowboydetect
import time
import wave
import os
import logging
import aiy.audio
@senyoltw
senyoltw / demo.py
Created December 7, 2017 21:17
voicekit + snowboy
#!/usr/bin/env python3
# Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
@senyoltw
senyoltw / detect_intent_stream.py
Created December 11, 2017 17:03
voice kit class
#!/usr/bin/env python
# Copyright 2017 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
@senyoltw
senyoltw / file0.sh
Created April 2, 2018 22:40 — forked from YukiYamashina/file0.sh
shellスクリプトでタイピングゲーム書いてみた ref: http://qiita.com/Yuki_Yamashina/items/a9edcdfc500747d5081a
#!/bin/sh
#
# Reference Web sites:
# http://d.hatena.ne.jp/anmino/20091029/1256806944
# http://www.geocities.jp/abandonment_cat/cygwin/bshell/read.html
# http://www.ibm.com/developerworks/jp/aix/library/au-learningtput/
#
declare -i x_position=`expr \`tput lines\` / 3`
declare -i y_position=`expr \`tput cols\` / 3`