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
# Create a python3 virtual environment | |
python3 -m venv venv | |
# Activate the virtual env | |
source venv/bin/activate | |
# Install dependencies | |
pip install -r requirements.txt | |
# the sample code is for an environment where you are running a broker |
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
<div> | |
<button (click)="openBridge()">Connect</button> | |
</div> | |
<router-outlet></router-outlet> |
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 imagemin = require('imagemin'), // The imagemin module. | |
webp = require('imagemin-webp'), // imagemin's WebP plugin. | |
outputFolder = './src/assets', // Output folder | |
PNGImages = './src/assets/*.png', // PNG images | |
JPEGImages = './src/assets/*.jpg' // JPEG images | |
imagemin([PNGImages], outputFolder, { | |
plugins: [ | |
webp({ | |
lossless: true // Losslessly encode images |
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
Course;Const;Pyeongchang Slalom | |
Gates Total;Const;79 | |
Race Status;Var;Racing | |
Time;Var;16320 | |
Speed;Var;56 | |
Gates Passed;Var;15 | |
Errors;Var;4 | |
Edging Left;Var;28 | |
Edging Right;Var;0 | |
Gate Edging Left ;Var;0 |
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 layout = await model.getLayout() | |
const matrix = layout.qHyperCube.qDataPages[0].qMatrix[0] | |
const edgingValue = | |
checkNan(matrix[6].qNum) > 0 | |
? -checkNan(matrix[6].qNum) | |
: checkNan(matrix[7].qNum) | |
const lastEdgingValue = | |
checkNan(matrix[11].qNum) > 0 | |
? -checkNan(matrix[11].qNum) | |
: checkNan(matrix[12].qNum) |
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 raceId = uuidv4() | |
const badgePatchProperties = [{ | |
qOp: "replace", | |
qPath: "/badge", | |
qValue: participant.badge | |
}, | |
{ | |
qOp: "replace", | |
qPath: "/raceId", | |
qValue: `"${raceId}"` |
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
if (finishedFound) { | |
... | |
const badgePatchProperties = [ | |
{ | |
qOp: "replace", | |
qPath: "/badge", | |
qValue: "0" | |
}, | |
{ |
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
let results = csvLoad(readDirectory, badgeValue, raceValue) | |
... | |
fs.writeFileSync(unprocessedFile, results.join("\n")) | |
const reload = await qixApp.doReloadEx({ qPartial: true }) | |
await qixApp.doSave() |
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
await qixApp.createObject({ | |
qInfo: { qId: "Badge", qType: "GenericObject" }, | |
badge: "0", | |
raceId: "" | |
}) | |
await qixApp.doSave() | |
badgeObject = await qixApp.getObject("Badge") | |
badgeObject.on("changed", async () => { | |
checkBadge() |
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
Simulator: | |
LOAD | |
* | |
FROM [lib://data/processed/ski-data.csv] | |
(txt, utf8, embedded labels, delimiter is ','); | |
Simulator: | |
ADD LOAD | |
[Race ID], | |
Badge, |
NewerOlder