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 HEARING_AIDS_SERVICE_ID = 'hearingAids'; | |
| const HearingAidEventTypes = { | |
| CheckReady: 'CHECK_HEARING_AIDS_READY', | |
| Ready: 'HEARING_AIDS_READY', | |
| SetProgram: 'SET_PROGRAM', | |
| CurrentProgramChanged: 'PROGRAM_UPDATE', | |
| ProgramListChanged: 'PROGRAM_LIST_UPDATE', | |
| InstrumentUpdate: 'INSTRUMENT_UPDATE', | |
| ConnectionUpdate: 'CONNECTION_UPDATE', |
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
| // Available variables: | |
| // - Machine | |
| // - interpret | |
| // - assign | |
| // - send | |
| // - sendParent | |
| // - spawn | |
| // - raise | |
| // - actions |
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
| /* description: Parses Biblionarrator queries. */ | |
| /* lexical grammar */ | |
| %lex | |
| %% | |
| \s+ /* skip whitespace */ | |
| "(" return 'GS'; | |
| ")" return 'GE'; // Group End | |
| (keyword|author|title)\: return 'INDEX' |
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
| === CODE === | |
| var g = require('gremlin'); | |
| app.initializeDB = function () { | |
| var T = g.Tokens, | |
| Direction = g.Direction, | |
| Type = g.ClassTypes; | |
| //Get a reference to Titan specific Enum | |
| var UniqCon = g.java.import("com.thinkaurelius.titan.core.TypeMaker$UniquenessConsistency"); |