2014-02-01
@maaash
| var PORT = 5353; | |
| var MULTICAST_GROUP = "224.0.0.251"; | |
| var dgram = require("dgram"); | |
| var client = dgram.createSocket("udp4"); | |
| var name = "IRKitD2A8"; | |
| // | |
| var payload = new Buffer( |
| #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: |
| 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 $@ |
| 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 |
| 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") | |
| ; |
| // 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 | |
| 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. | |
| __________ |
| int a; | |
| for ( a=0; a<4; a++ ) { | |
| } |