- IRKitの例 -
2014-09-22 BLE Boot Camp
| var request = require("request") | |
| , crypto = require("crypto") | |
| , querystring = require("querystring") | |
| , assert = require("assert") | |
| , l = require("nlogger").logger(module) | |
| , parseString = require("xml2js").parseString | |
| ; | |
| function Client( options ) { | |
| var requiredKeys = [ |
| // | |
| // JSONCoder.swift | |
| // | |
| // Created by Masakazu Ohtsuka on 2015/09/14. | |
| // Copyright © 2015年 maaash.jp. All rights reserved. | |
| // | |
| import Foundation | |
| import SwiftyJSON |
| Freeware Advanced Audio (AAC) Decoder including SBR decoding | |
| http://www.audiocoding.com/ | |
| FAAD2 is a HE, LC, MAIN and LTP profile, MPEG2 and MPEG-4 AAC decoder. | |
| FAAD2 includes code for SBR (HE AAC) decoding. | |
| FAAD2 is licensed under the GPL. | |
| __________ |
| // https://gist.github.com/mhawksey/1276293 | |
| /* | |
| Copyright 2011 Martin Hawksey | |
| 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 | |
| var l = require("nlogger").logger(module), | |
| config = require('./config'), | |
| ifttt = require("./models/ifttt"), | |
| Client = require("../../irkit-client/"), | |
| irkit = new Client({ | |
| apikey : config.apikey | |
| }), | |
| async = require("async") | |
| ; |
| LIBUV_HOME := $(HOME)/src/github.com/joyent/libuv | |
| LIBUV := $(LIBUV_HOME)/build/Release/libuv.a | |
| INC = $(LIBUV_HOME)/include | |
| all: | |
| gcc -o main -I$(INC) -Wall main.c $(LIBUV) | |
| PHONY: all |
| brew install gcc | |
| CXX=g++-4.9 CC=gcc-4.9 ./configure --with-hts-engine-header-path=/usr/local/include --with-hts-engine-library-path=/usr/local/lib --with-charset=UTF-8 --prefix=/usr/local/Cellar/open_jtalk/1.07 | |
| make | |
| make install |
| OUT = ir-state.png ir-learn.png ir-send.png packer.png wifi-morse-setup.png | |
| all: $(OUT) | |
| .SUFFIXES: .png .gv .msc | |
| .gv.png: | |
| dot -Tpng $< -o $@ |
| #include <SoftwareSerial.h> | |
| // Not all pins on the Leonardo support change interrupts, | |
| // so only the following can be used for RX: | |
| // 8, 9, 10, 11, 14 (MISO), 15 (SCK), 16 (MOSI). | |
| SoftwareSerial mySerial(14, 15); // RX, TX | |
| void setup() | |
| { | |
| // Open serial communications and wait for port to open: |