Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
Confirming my whereabouts

Jeremy Danyow jdanyow

💭
Confirming my whereabouts
View GitHub Profile
@jdanyow
jdanyow / static-middleware.ts
Created May 26, 2020
Cloudflare workers static asset middleware using @cfworker/web
View static-middleware.ts
import { Middleware } from '@cfworker/web';
import { KVNamespace } from '@cloudflare/workers-types';
declare const __STATIC_CONTENT_MANIFEST: string | undefined;
declare const __STATIC_CONTENT: KVNamespace | undefined;
export class MissingStaticAssetError extends Error {
constructor(
public readonly pathname: string,
public readonly key: string,
@jdanyow
jdanyow / README.md
Created Oct 11, 2018
Instructions for creating a bookmarklet to display JSLL data-bi-name tags.
View README.md

JSLL Content Tag Viewer

This document contains the steps for creating a bookmark enabling you to view any page’s JSLL “data-bi-name" tags. The instructions are chrome specific, similar steps will work in other browsers.

  1. In Chrome, press CTRL+SHIFT+B to display the bookmark bar.

  2. Right click on the bookmark bar and choose Add page....

  3. In the Edit bookmark dialog, clear the contents of the Name field and enter something like Show JSLL Content Tags.

View app.html
<template>
<div repeat.for="thumb of thumbs">
<img
alt.one-time="thumb.name"
src.one-time="server + '/' + thumb.uri"
load.trigger="$event.target.classList.add('loaded') & oneTime"
class="thumbnail"
/>
</div>
</template>
@jdanyow
jdanyow / index.html
Created Apr 16, 2020 — forked from maschad96/index.html
another poc
View index.html
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>GistRun</title>
<link rel="stylesheet" href="styles.css">
<style>
* {
outline-color: inherit;
}
View index.html
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>GistRun</title>
<link rel="stylesheet" href="styles.css">
<style>
*:focus {
outline-color: inherit;
outline-style: dashed;
View api-changes.diff
diff --git a/vcurrent.json b/vnext.json
index cd5256fe0..869f016d2 100644
--- a/vcurrent.json
+++ b/vnext.json
@@ -1,553 +1,562 @@
{
"docs.microsoft.com": {
"apiBrowser": "https://docs.microsoft.com/api/apibrowser",
"assessments": "https://docs.microsoft.com/api/assessments",
+ "assessmentsBranch": "https://review.docs.microsoft.com/api/assessments/branches",
View apis-by-hostname.json
{
"docs.microsoft.com": {
"apiBrowser": "https://docs.microsoft.com/api/apibrowser",
"assessments": "https://docs.microsoft.com/api/assessments",
"assessmentsBranch": "https://review.docs.microsoft.com/api/assessments/branches",
"auth": {
"docs": "https://docs.microsoft.com/api/profiles/auth",
"github": "https://docs.microsoft.com/api/githubauth",
"identityPlatform": "https://login.microsoftonline.com/common/oauth2/v2.0/authorize",
"signOut": "https://docs.microsoft.com/api/profiles/signout",
View index.html
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>GistRun</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bulma@0.8.1/css/bulma.css">
</head>
<body>
<a href="https://bulma.io/documentation/elements/image/">Bulma image docs</a>
<figure class="image is-fullwidth">
View index.html
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>GistRun</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bulma@0.8.1/css/bulma.css">
</head>
<body>
<a href="https://bulma.io/documentation/elements/image/">Bulma image docs</a>
<figure class="image is-2by1">
You can’t perform that action at this time.