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
{ | |
"Device": { | |
"externalTypeName": "clouddevices.Device", | |
"properties": { | |
"certFingerprint": { | |
"description": "The HTTPS certificate fingerprint used to secure communication with device..", | |
"type": "string" | |
}, | |
"channel": { | |
"description": "Device notification channel description.", |
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
{ | |
"Event": { | |
"externalTypeName": "clouddevices.Event", | |
"properties": { | |
"commandPatch": { | |
"description": "Command-related changes (if applicable).", | |
"properties": { | |
"commandId": { | |
"description": "ID of the affected command.", | |
"type": "string" |
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
{ | |
"ModelManifest": { | |
"description": "Model manifest info.", | |
"externalTypeName": "clouddevices.ModelManifest", | |
"properties": { | |
"allowedChildModelManifestIds": { | |
"description": "For gateways, a list of device ids that are allowed to connect to it.", | |
"items": { | |
"type": "string" | |
}, |
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
{ | |
"PersonalizedInfo": { | |
"externalTypeName": "clouddevices.PersonalizedInfo", | |
"properties": { | |
"id": { | |
"default": "me", | |
"description": "Unique personalizedInfo ID. Value: the fixed string \"me\".", | |
"type": "string" | |
}, | |
"kind": { |
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
{ | |
"RegistrationTicket": { | |
"externalTypeName": "clouddevices.RegistrationTicket", | |
"properties": { | |
"creationTimeMs": { | |
"description": "Creation timestamp of the registration ticket in milliseconds since epoch UTC.", | |
"format": "int64", | |
"type": "string" | |
}, | |
"deviceDraft": { |
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
{ | |
"Room": { | |
"properties": { | |
"id": { | |
"type": "string" | |
}, | |
"name": { | |
"type": "string" | |
}, | |
"placeId": { |
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
{ | |
"Place": { | |
"properties": { | |
"id": { | |
"type": "string" | |
}, | |
"invitation": { | |
"$ref": "#/definitions/PlaceInvitation" | |
}, | |
"member": { |
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
#!/bin/bash | |
# Tensorflow installation bash for Ubuntu 16.04 for x86_64 - Python 2.7 | |
# Set locale (comment when not needed) | |
sudo sh -c "echo 'LC_ALL=en_US.UTF-8\nLANG=en_US.UTF-8' >> /etc/environment" | |
# Install CUDA | |
sudo apt-get update -y | |
sudo apt-get upgrade -y |
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
#!/bin/sh | |
### | |
# Make sure the locale settings are in order: http://askubuntu.com/a/229512/119583 | |
# Tested on Ubuntu 16.04 LTS | |
### | |
## | |
# Run from /usr/local | |
## |
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
/** | |
* Idea for SPA server instead of NGINX - Dorel IO | |
* | |
* You can run this locally: `$ go run dorel-io-static-server.go` | |
* The concept is that the Wordpress API is asked if the page exsists, if yes, it sends the correct meta data and status code. | |
* If you try: localhost:8080/foobar you will get a 404 | |
* If yountry: localhost:8080/about-us (or another exsisting page) you will get a 200 with the correct metadata | |
* | |
* Bower compontents is always skipped and shown. | |
* |