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
/* | |
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 | |
Unless required by applicable law or agreed to in writing, software |
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
/** | |
Filename: wifibox.js | |
//AppLamp.nl Wifi LED light API: wifi box UDP socket, command sender | |
© AppLamp.nl: you can share,modify and use this code (commercially) as long as you | |
keep the referer "AppLamp.nl led light API" in the file header. | |
Usage in Node JS: | |
//load this wifi box class | |
var WifiBoxModule = require('wifibox.js'); |
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
/** | |
Filename: commands.js | |
AppLamp.nl led light API: wifi box byte commands | |
© AppLamp.nl: you can share,modify and use this code (commercially) as long as you | |
keep the referer "AppLamp.nl led light API" in the file header. | |
RESPECT AT LEAST 50 MS BETWEEN EACH SEND COMMAND TO PREVENT PACKAGE LOSS | |
The functions in this file will return the appropriate hex commands as 3 byte array | |
to send to an UDP-socket towards WIFI BOX-IP:8899 (see wifibox.js) | |
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
#!/usr/bin/perl -w | |
# | |
# LED Wifi control script for MiLight, EasyBulb, iBulb, LinkUP, Kepsun | |
# ==================================================================== | |
# | |
# | |
# Copyright (C) 2013, Julian Pawlowski <[email protected]> | |
# All rights reserved. | |
# | |
# License: Simplified BSD / FreeBSD License |
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
### | |
#Step 1 - Generate server certificates etc... (most of this code is horribly ripped off from nodejs docs currently -> http://nodejs.org/docs/latest/api/tls.html) | |
### | |
#Assuming your starting from a clean directory | |
mkdir server | |
cd server | |
#generate private key |
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
var net = require('net'); | |
var five = require('johnny-five'); | |
var firmata = require('firmata'); | |
var options = { | |
host: '192.168.2.5', //whatever host | |
port: 48879 //some port | |
}; | |
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 static java.util.UUID.randomUUID | |
import java.security.MessageDigest | |
import javax.crypto.spec.SecretKeySpec | |
import javax.crypto.Mac | |
import java.security.SignatureException | |
metadata { | |
// Automatically generated. Make future change here. | |
definition (name: "Virtual LED Strip", namespace: "smartthings", author: "SmartThings") { | |
capability "Switch Level" |
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
class HomeduinoPlugin extends env.plugins.Plugin | |
init: (app, @framework, @config) => | |
@framework.deviceManager.on('discover', (eventData) => | |
@framework.deviceManager.discoverMessage( | |
'pimatic-homeduino', 'Press a button on your remote' | |
) | |
setTimeout( ( => | |
config = { |
We can make this file beautiful and searchable if this error is corrected: Unclosed quoted field in line 7.
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
Donald Trump,Quotes | |
Sometimes by losing a battle you find a new way to win the war.,http://www.brainyquote.com/quotes/quotes/d/donaldtrum383171.html | |
I have a great relationship with the Mexican people.,http://www.brainyquote.com/quotes/quotes/d/donaldtrum717755.html | |
"You have to think anyway, so why not think big?",http://www.brainyquote.com/quotes/quotes/d/donaldtrum153798.html | |
"You know the funny thing, I don't get along with rich people. I get along with the middle class and the poor people better than I get along with the rich people.",http://www.brainyquote.com/quotes/quotes/d/donaldtrum414743.html | |
"Our politicians are stupid. And the Mexican government is much smarter, much sharper, much more cunning. And they send the bad ones over because they don't want to pay for them. They don't want to take care of them. Why should they when the stupid leaders of the United States will do it for them?",http://www.brainyquote.com/quotes/quotes/d/donaldtrum714310.html | |
"That's one of the nice things. I mean, part of |
OlderNewer