Skip to content

Instantly share code, notes, and snippets.

View vojtech-cerveny's full-sized avatar
🦊
Foxy fox

Vojtěch Červený vojtech-cerveny

🦊
Foxy fox
  • Sequenex
  • Ostrava, Czech Republic
View GitHub Profile
[
{
"time": "2024-08-21T17:25:32.000Z",
"timezoneOffset": -300,
"clockDriftOffset": 0,
"conversionOffset": 0,
"deviceTime": "2024-08-21T12:25:32",
"deviceId": "-16140367",
"type": "smbg",
"value": 67,
{
"_deduplicator": {
"hash": "QQ6feU4Lko6DtunH/O74/9FQEFdsocLxH+8GehEcl3s="
},
"annotations": [
{
"code": "bg/out-of-range",
"threshold": 20,
"value": "low"
}
@vojtech-cerveny
vojtech-cerveny / smbg.json
Created August 21, 2024 12:38
ReliOn Platinum - same values from Bluetooth, USB
{
"_deduplicator": {
"hash": "ew3zPhvm8O6GCRKPgqqwMdoQ5Uc4RHhNGfaCupu0+js="
},
"annotations": [
{
"code": "bg/out-of-range",
"value": "low"
},
{
@vojtech-cerveny
vojtech-cerveny / collection.json
Created May 2, 2023 14:10
Czechitas collection
{
"info": {
"_postman_id": "dcab6bbd-a770-48b7-980a-a3f2ded1ef31",
"name": "DATOJ23 API tests",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
"_exporter_id": "2294419",
"_collection_link": "https://web.postman.co/workspace/e9052594-972b-45e0-b6b0-7e7aff2f415f/collection/2294419-dcab6bbd-a770-48b7-980a-a3f2ded1ef31?action=share&creator=2294419&source=collection_link"
},
"item": [
{
{"version":2,"data":[{"title":"REMOTE","description":"REMOTE","image":"","imageUrl":"","date":"2021-07-09T14:35:30.702Z"},{"title":"REMOTE1","description":"REMOTE1","image":"","imageUrl":"","date":"2021-07-09T14:35:30.702Z"},{"title":"REMOTE2","description":"REMOTE3","image":"","imageUrl":"","date":"2021-07-09T14:35:30.702Z"},{"title":"REMOTE3","description":"REMOTE2","image":"","imageUrl":"","date":"2021-07-09T14:35:30.702Z"},{"title":"REMOTE3","description":"REMOTE2","image":"","imageUrl":"","date":"2021-07-09T14:35:30.702Z"},{"title":"REMOTE3","description":"REMOTE2","image":"","imageUrl":"","date":"2021-07-09T14:35:30.702Z"},{"title":"REMOTE3","description":"REMOTE2","image":"","imageUrl":"","date":"2021-07-09T14:35:30.702Z"},{"title":"REMOTE3","description":"REMOTE2","image":"","imageUrl":"","date":"2021-07-09T14:35:30.702Z"},{"title":"REMOTE","description":"REMOTE","image":"","imageUrl":"","date":"2021-07-09T14:35:30.702Z"},{"title":"REMOTE1","description":"REMOTE1","image":"","imageUrl":"","date":"2021
const loginMachine = Machine({
initial: "login_opened",
context: {
username: false,
password: false,
registration_done: false,
registration_filled: false,
},
states: {
login_opened: {
@vojtech-cerveny
vojtech-cerveny / machine.js
Last active December 7, 2020 16:24
Generated by XState Viz: https://xstate.js.org/viz
const incrementBack = (context) => context.back + 1;
const isAnonymous = (context) => context.anonymous === true;
const isLoggedIn = (context) => context.anonymous === false;
const adcoMachine = Machine({
id: 'wizard',
initial: 'buying_stuff',
context: {
back: 0,
modal_confirmed: null,
@vojtech-cerveny
vojtech-cerveny / machine.js
Last active November 20, 2020 15:16
Generated by XState Viz: https://xstate.js.org/viz
const adcoMachine = Machine({
id: 'wizard',
initial: 'start',
context: {
back: false,
},
states: {
start: {
on: {
BOM_UPLOAD: 'uploaded_bom',
@vojtech-cerveny
vojtech-cerveny / machine.js
Created November 20, 2020 14:53
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@vojtech-cerveny
vojtech-cerveny / gist:c57391969a2b8682fcfe2c164d44728d
Created June 16, 2020 12:28
gist log wdio multiremote + devTools
$ yarn test:e2e
yarn run v1.21.1
$ npx wdio wdio.conf.js
Execution of 1 spec files started at 2020-06-16T11:59:11.824Z
2020-06-16T11:59:12.031Z INFO @wdio/cli:launcher: Run onPrepare hook
2020-06-16T11:59:12.035Z INFO @wdio/cli:launcher: Run onWorkerStart hook
2020-06-16T11:59:12.036Z INFO @wdio/local-runner: Start worker 0-0 with arg: wdio.conf.js
[0-0] 2020-06-16T11:59:12.281Z INFO @wdio/local-runner: Run worker command: run