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 { log } = actions; | |
const START_CHAR = '-'; | |
const END_CHAR = '-'; | |
const CONTROL_SEQUENCE_COUNT = 3; | |
const CONTROL_SEQUENCE_TIMEOUT = 200; | |
const DATA_TIMEOUT = 2000; | |
const scannerMachine = Machine({ | |
id: 'scannerMachine', |
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 START_CHAR = '-'; | |
const END_CHAR = '-'; | |
const CONTROL_SEQUENCE_COUNT = 3; | |
const CONTROL_SEQUENCE_TIMEOUT = 500; | |
const DATA_TIMEOUT = 2000; | |
const scannerMachine = Machine( |
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
// Available variables: | |
// - Machine | |
// - interpret | |
// - assign | |
// - send | |
// - sendParent | |
// - spawn | |
// - raise | |
// - actions | |
// - XState (all XState exports) |
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
{ | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"name": "Run jasmine", | |
"type": "node", | |
"program": "${workspaceRoot}/node_modules/jasmine/bin/jasmine.js", | |
"stopOnEntry": false, | |
"args": [], | |
"cwd": "${workspaceRoot}", |
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
<?php | |
function printComparationResults($interval, $intervalWeek) { | |
if ($interval < $intervalWeek ) { | |
echo "interval is smaller\n"; | |
} | |
if ($interval == $intervalWeek ) { | |
echo "intervals are equals\n"; | |
} |
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
<?php | |
class SomeService { | |
/** | |
* @param array $saveResult výsledky uložení souborů | |
* @param array $savedFiles | |
* @param array $missedFiles | |
*/ | |
private function _processDataSaveResult($saveResult, &$savedFiles, &$missedFiles) { |