Skip to content

Instantly share code, notes, and snippets.

@9kopb
Last active August 31, 2023 05:51
Show Gist options
  • Select an option

  • Save 9kopb/c90475ab0ac308451682d91592da988d to your computer and use it in GitHub Desktop.

Select an option

Save 9kopb/c90475ab0ac308451682d91592da988d to your computer and use it in GitHub Desktop.

Revisions

  1. 9kopb revised this gist Sep 28, 2022. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions barcode.json
    Original file line number Diff line number Diff line change
    @@ -21,8 +21,8 @@
    "$vision.onscan": {
    "type": "$util.alert",
    "options": {
    "title": "Scanned content",
    "description": "{{$jason.type}} {{$jason.content}}"
    "title": "Scanned content: {{$jason.type}} ",
    "description": "{{$jason.content}}"
    }
    }
    }
  2. 9kopb created this gist May 18, 2022.
    31 changes: 31 additions & 0 deletions barcode.json
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,31 @@
    {
    "$jason": {
    "head": {
    "templates": {
    "body": {
    "background": {
    "type": "camera",
    "options": {
    "device": "back"
    }
    }
    }
    },
    "actions": {
    "$load": {
    "type": "$render"
    },
    "$vision.ready": {
    "type": "$vision.scan"
    },
    "$vision.onscan": {
    "type": "$util.alert",
    "options": {
    "title": "Scanned content",
    "description": "{{$jason.type}} {{$jason.content}}"
    }
    }
    }
    }
    }
    }