Skip to content

Instantly share code, notes, and snippets.

View kenchris's full-sized avatar
🏠
Working from home

Kenneth Rohde Christiansen kenchris

🏠
Working from home
  • Intel Corporation
  • Denmark
View GitHub Profile
<html>
<script type="module">
import { html, render } from '/lit-html.js';
class MyGreater extends HTMLElement {
static get observedAttributes() { return ['data-name']; }
constructor() {
super();
this.attachShadow({mode: 'open'});

Shortcuts API Specification

This explainer is for the Shortcut API

Introduction

Some platforms like Windows and Android have ways to add menu items to the app launcher icon itself, here after called shortcuts. These can perform certain app actions. On Android in addition, you can drag these shortcuts to the homescreen.

function parseColor(colorStr) {
if (!this.div) {
this.div = document.createElement('div');
this.div.style.hidden = true;
document.body.appendChild(this.div)
}
this.div.style.color = colorStr;
if (this.div.style.color === "")
this.div.style.color = `#${colorStr}`;
function parseColor(colorStr) {
if (!this.div) {
this.div = document.createElement('div');
this.div.style.hidden = true;
document.body.appendChild(this.div)
}
this.div.style.color = colorStr;
if (this.div.style.color === "")
Connecting...
(index):101 Sending to serial: [set transfer ihex
]
(index):114 Reply: [HEX]
set transfer ihex
[BCMD]
ihex
[ECMD]
Sending to serial: [set transfer ihex
]
(index):114 Reply: � � Zephyr.js DEV MODE Nov 7 2016 11:01:12
'A Shell' bash
Commands list:
acm> set transfer ihex
ihex
Sending to serial: [set transfer ihex
]
(index):114 Reply: � � Zephyr.js DEV MODE Nov 7 2016 11:01:12
'A Shell' bash
Commands list:
acm> set transfer ihex
ihex
Sending to serial: [set transfer ihex
]
(index):112 reply: s
(index):112 reply: e
(index):112 reply: t
(index):112 reply:
(index):112 reply: t
(index):112 reply: r
(index):112 reply: a
Sending to serial: [set transfer ihex
]
(index):109 [HEX]
(index):109 s
(index):109 e
(index):109 t
(index):109
(index):109 t
Sending to serial: [set transfer ihex
]
(index):107 � 
(index):101 Sending to serial: [stop
]
(index):107 � 
(index):101 Sending to serial: [load
]