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
/* The dialogue setup - typically at the start of the passage */ | |
<<set _dialogue = { | |
"": { | |
text: "<div>Before you stands a wizard, clad in heavy robes, scarves, and a pointed hat. He gives a cheerful but heavily muffled greeting. <q>Ownt fon?</q> the wizard inquires as he holds out a handful of rings which radiate magical energy.</div><div>Take one?</div>", | |
choices: [ | |
{ text: "One with a shiny jewel on top!", next: "death" }, | |
{ text: "A band with runes glowing around it!", next: "runes" }, | |
{ text: "Mom told me not to accept strange items from people I don't know…", next: "death"}, | |
{ text: "Go away.", next: "death", filter: "$day != 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
#!/usr/bin/env node | |
console.log('v6', process.argv, process.cwd(), __dirname); | |
const {exec} = require('child_process'); | |
const path = require('path'); | |
exec('npm bin', {cwd: __dirname}, (err, stdout, stderr) => { | |
if (err) { | |
console.error(err); | |
} else { |
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
/*************************************************** | |
* Simple and elegant, no code complexity | |
* Disadvantages: Requires warming all data into server memory (could take a long time for MBs of data or millions of records) | |
* (This disadvantage should go away as we add optimizations to the core product) | |
***************************************************/ | |
var fb = firebase.database.ref(); | |
/** | |
* @param {string} emailAddress |
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 serialport = require('node-serialport') | |
var sp = new serialport.SerialPort("/dev/ttyO3", { | |
parser: serialport.parsers.raw, | |
baud: 9600 | |
}) | |
sp.on('data', function(chunk) { | |
console.log(chunk.toString('hex'), chunk.toString(), chunk) | |
}) |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<project default="1. Create directories" name="Deploy AIR 2.6 on iOS"> | |
<tstamp> | |
<format property="timestamp" pattern="yyyy-MM-dd_HH-mm-ss" /> | |
</tstamp> | |
<property environment="env." /> | |
<property name="flex_home" location="${env.FLEX_HOME}_AIR26" /> |