Skip to content

Instantly share code, notes, and snippets.

💭
Confirming my whereabouts

Jeremy Danyow jdanyow

💭
Confirming my whereabouts
View GitHub Profile
@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 / app.html
Last active Jul 1, 2020
Aurelia Gist
View app.html
<template>
<h1>${message}</h1>
</template>
@jdanyow
jdanyow / app.html
Last active Jun 19, 2020
Aurelia Validation Demo
View app.html
<template>
<require from="./registration-form"></require>
<registration-form></registration-form>
</template>
@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:

@jdanyow
jdanyow / app.html
Last active Jun 5, 2020
Aurelia Gist
View app.html
<template>
<h1>${message}</h1>
</template>
@jdanyow
jdanyow / app.html
Last active Jun 5, 2020
Aurelia Skeleton
View app.html
<template>
<require from="nav-bar.html"></require>
<nav-bar router.bind="router"></nav-bar>
<div class="container">
<router-view></router-view>
</div>
</template>
@jdanyow
jdanyow / app.html
Last active Jun 5, 2020
Aurelia Validation Demo
View app.html
<template>
<form submit.delegate="submit()">
<!--<ul><li repeat.for="error of controller.errors">${error.message}</li></ul>-->
<div class="form-group">
<label class="control-label" for="first">First Name</label>
<input type="text" class="form-control" id="first" placeholder="First Name"
value.bind="firstName & validate">
</div>
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.