Skip to content

Instantly share code, notes, and snippets.

View Symbitic's full-sized avatar

Alex Symbitic

View GitHub Profile
@Symbitic
Symbitic / sensor-discovery-api.md
Last active September 17, 2024 16:50
Sensor Discovery API

Sensor Discovery API

This describes a generic framework for discovering and using sensors and devices. It is composed primarily of two parts: a new SensorBackend class for providing sensor values, and a SensorRegistry class for registering backends. It also proposes several related interfaces: SensorReading, SensorBackend, SensorBackendConstructor, and extensions to the Generic Sensor API to support backends.

This is a follow-up to my previous Sensor Discovery API proposal which should no longer be actively considered.

Names

Naming things is considered one of the hardest problems in computer science, and this preliminary spec was no exception. I had to decide on a name for the API, whether or not to use Sensor to mean any device and not just a sensor, whether to create a separate Device interface and use a term that unifies Sensor and Device, and if so, what its name should be.

@Symbitic
Symbitic / yodakenobi-revelations-review.md
Created November 10, 2021 23:19
YodaKenobi explains why Karen Traviss should never write Star Wars and Jedi.

Post by YodaKenobi on https://boards.theforce.net/ Original: http://boards.theforce.net/literature/b10003/28128642/p5 Wayback: https://web.archive.org/web/20090917025847/http://boards.theforce.net/literature/b10003/28128642/p5 Post tagline: Date Posted: 3/2/08 6:50pm Subject: RE: The JC Lit Reviews Special: LEGACY OF THE FORCE: REVELATION (Spoilers) - Date Edited: 3/2/08 8:03pm (2 edits total) Edited By: YodaKenobi

Original post content follows (with several spelling and grammar corrections)


I'll apologize now for the length of this post, but I have a lot I wanted to say and I want to explain this as clearly as possible. I've divided this review up in more sections than I normally would, simply because I'm afraid it becomes a jumble otherwise.

@Symbitic
Symbitic / strapi-demo.tsx
Created July 30, 2021 13:34
Strapi Deno example.
/// <reference path="https://raw.githubusercontent.com/denoland/deployctl/main/types/deploy.fetchevent.d.ts" />
/// <reference path="https://raw.githubusercontent.com/denoland/deployctl/main/types/deploy.window.d.ts" />
import * as React from "https://esm.sh/react@17.0.2";
import * as ReactDOMServer from "https://esm.sh/react-dom@17.0.2/server";
import { createElement as h } from "https://esm.sh/react@17.0.2";
// @ts-ignore VSCode occasionally complains that Deno is not defined.
const STRAPI_API_URL = Deno.env.get("STRAPI_API_URL") ||
@Symbitic
Symbitic / strapi-demo-mock.tsx
Created July 30, 2021 13:32
Strapi Deno example with mock data.
/// <reference path="https://raw.githubusercontent.com/denoland/deployctl/main/types/deploy.fetchevent.d.ts" />
/// <reference path="https://raw.githubusercontent.com/denoland/deployctl/main/types/deploy.window.d.ts" />
import * as React from "https://esm.sh/react@17.0.2";
import * as ReactDOMServer from "https://esm.sh/react-dom@17.0.2/server";
import { createElement as h } from "https://esm.sh/react@17.0.2";
interface Package {
name: string;
https://spotifyxr.ngrok.io/
https://webuildxr.github.io/app/
https://tyrovr.com/gtfo/
https://daydev.itch.io/xrpunch
https://customvr.wsjbarrons.com/lobby/landing
https://moonrider.xyz/
https://hubs.mozilla.com/yenzhCn/museum-of-the-fossilized-internet/
https://cadenzavr.com/
// https://deno.com/deploy/docs/serve-static-assets
// https://deno.land/x/sift@0.3.2
// https://deno.com/deploy/docs/tutorial-faunadb
// https://deno.com/deploy/docs/example-post-request
// https://deno.com/deploy/docs/runtime-request
// https://deno.com/deploy/docs/runtime-response
import querystring from 'https://cdn.skypack.dev/querystring@0.2.1?dts';
const CLIENT_ID = Deno.env.get('SPOTIFY_CLIENT_ID');
@Symbitic
Symbitic / spotify-token-app.js
Created May 22, 2021 22:09
Example of obtaining a Spotify token
/*
Make sure to download spotify-token-index.html and rename it to public/index.html
Before running this application, make sure to replace CLIENT_ID and CLIENT_SECRET below.
Also, make sure to register http://localhost:8989/ and http://localhost:8989/callback/ as callbacks in your developer console.
THE TRAILING SLASHES ARE IMPORTANT!
Run this with:
deno run -A spotify-token-app.js
*/