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'); | |
exports.send = function(message) { | |
var client = net.connect({host: '192.168.0.73', port: 73}, function() { | |
client.write(message); | |
client.end(); | |
}); | |
}; |
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
msgbox("hello message box") | |
msgbox("awesome for the office") |
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
/*** BEGIN software configuration ***/ | |
// CW_TICK_TIME_MILLISECONDS sets the fundamental "tick" time in for the | |
// morse code timing. Esseintially, it sets the words per minute WPM that | |
// it beeps out of the speaker. | |
// | |
// 56 ms is around 19 WPM, which is fairly fast | |
// 220 ms is closer to 6 WPM, better if you do not have prior experience | |
// with CW | |
#define CW_TICK_TIME_MILLISECONDS 56 |
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
$ telnet 192.168.0.73 73 | |
Trying 192.168.0.73... | |
Connected to 192.168.0.73. | |
Escape character is '^]'. | |
HELLO WORLD | |
^] | |
telnet> quit | |
Connection closed. |
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
const int serverPort = 17; | |
EthernetServer server(serverPort); | |
byte mac[] = { 0x90, 0xA2, 0xDA, 0x00, 0xD7, 0xD2 }; | |
IPAddress gateway(192, 168, 0, 1); | |
IPAddress subnet(255, 255, 255, 0); | |
IPAddress ip(192, 168, 0, 33); |
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 controller_hostname = '192.168.0.33'; | |
var controller_port = 17; |
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
// There are some contrived things in here, but if you are talking about putting handlers in aan array, this may help you. | |
var allBleDevices = []; | |
function genericBleEventHanlder(ble_device, event) { | |
// Do something with the event | |
} | |
function makeSpecificBleHandler(bleDevice) { | |
return (function(bleDevice, event) { |
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
# Xcode | |
.DS_Store | |
*/build/* | |
*.pbxuser | |
!default.pbxuser | |
*.mode1v3 | |
!default.mode1v3 | |
*.mode2v3 | |
!default.mode2v3 | |
*.perspectivev3 |
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
[core] | |
editor = vim | |
[alias] | |
co = checkout | |
ct = commit | |
ss = status | |
br = branch | |
me = merge | |
ph = push | |
pl = pull |
OlderNewer