This file contains hidden or 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
// Named constants with unique integer values | |
var C = {}; | |
// Tokenizer States | |
var START = C.START = 0x11; | |
var TRUE1 = C.TRUE1 = 0x21; | |
var TRUE2 = C.TRUE2 = 0x22; | |
var TRUE3 = C.TRUE3 = 0x23; | |
var FALSE1 = C.FALSE1 = 0x31; | |
var FALSE2 = C.FALSE2 = 0x32; | |
var FALSE3 = C.FALSE3 = 0x33; |
This file contains hidden or 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
app.listen(process.env.NODE_ENV === 'production' ? 80 : 8000, function() { | |
console.log('Ready'); | |
// if run as root, downgrade to the owner of this file | |
if (process.getuid() === 0) | |
require('fs').stat(__filename, function(err, stats) { | |
if (err) return console.log(err) | |
process.setuid(stats.uid); | |
}); | |
}); |
This file contains hidden or 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 uint8_t PROGMEM digital_pin_to_port_PGM[] = { | |
PD, /* 0 */ | |
PD, | |
PD, | |
PD, | |
PD, | |
PD, | |
PD, | |
PD, | |
PB, /* 8 */ |
NewerOlder