Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
Confirming my whereabouts

Jeremy Danyow jdanyow

💭
Confirming my whereabouts
View GitHub Profile
View index.html
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>GistRun</title>
</head>
<body>
<h1>Hello world!</h1>
<pre><code id="output"></code></pre>
@jdanyow
jdanyow / index.html
Last active Sep 16, 2020
product directory
View index.html
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>GistRun</title>
<style>
.directory {
columns: 3;
}
View index.html
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>GistRun</title>
<link rel="stylesheet" href="https://static.docs.com/ui/latest/site/en-us/styles/site-ltr.css">
<style>
.example {
display: inline-block !important;
border: 1px solid blue;
View index.html
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>GistRun</title>
<style>
* {
margin: 0;
padding: 0;
}
@jdanyow
jdanyow / index.css
Created Jul 3, 2020 — forked from LeaVerou/dabblet.css
Playing with background-attachment
View index.css
/**
* Playing with background-attachment
*/
pre {
max-height: 150px;
border: 1px solid silver;
overflow: auto;
background: url('http://placekitten.com/200/200');
color: white;
@jdanyow
jdanyow / templating.md
Last active Jun 17, 2020
Templating - Docs Composition Service
View templating.md

Templating - Docs Composition Service

Writing down some thoughts about server-side templating solutions for Docs.

Today

Today Docs.Rendering & docs-render follow roughly the same process. This is by design, for the initial release of docs-render we're prioritizing backwards compatibility, template reuse, time to market.

The heavy parts of handling a request look roughly like this:

View FAQ.md

author: SusanneWindfeldPedersen title: "FAQ" description: "" ms.custom: na ms.date: 04/01/2020 ms.reviewer: na ms.suite: na ms.tgt_pltfrm: na ms.topic: article

@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,
You can’t perform that action at this time.