documents
- Serving private content with signed URLs and signed cookies
- Create a key pair for a trusted key group
create key group
generate key pair
from typing import List, TypeVar | |
from docutils import nodes | |
from docutils.nodes import Element | |
from sphinx import addnodes | |
from sphinx.application import Sphinx | |
from sphinx.environment.adapters.toctree import TocTree | |
import sphinx.environment.collectors.toctree as toctree_collector | |
from sphinx.transforms import SphinxContentsFilter |
from sphinx.transforms import SphinxTransform | |
import sphinx.environment.collectors.toctree as toctree_collector | |
from sphinx import addnodes | |
from docutils import nodes | |
from typing import Any, Dict, List, Set, Tuple, Type, TypeVar, cast | |
from docutils import nodes | |
from docutils.nodes import Element, Node |
import dis | |
from dataclasses import dataclass | |
from typing import TypedDict | |
@dataclass | |
class MyDataclass: | |
field1: str | |
field2: int | |
class MyTypedDict: |
## See https://github.com/FactoryBoy/factory_boy/issues/836 | |
import inspect | |
from typing import List, get_args, get_origin | |
import factory | |
import factory.fuzzy | |
from dataclasses import dataclass, Field, MISSING, is_dataclass | |
from enum import Enum | |
from datetime import date, datetime | |
from decimal import Decimal |
import { promises } from "fs"; | |
import crypto from "crypto"; | |
import path from "path"; | |
import { print, parse } from "graphql"; | |
const plugin = { | |
name: "relay", | |
setup: build => { | |
build.onLoad({ filter: /\.tsx$/, namespace: "" }, async args => { | |
let contents = await promises.readFile(args.path, "utf8"); |
Electron is tricky to get set up on Windows Subsystem for Linux, but it can work!
Four things needed overall:
apt install
several dependenciesSetup instructions, in order:
Instructions for installing zsh plugins, for a variety of plugin managers
antibody: Add <owner>/<repo>
to your plugins file. If you use static loading update the sh.
Antigen: Add antigen bundle <owner>/<repo>
to your .zshrc
.
import { customElement, LitElement } from 'lit-element'; | |
type UnpackCustomEvent<T> = T extends CustomEvent<infer U> ? U : never; | |
// Define custom event types and details here | |
interface CustomEventMap { | |
/** | |
* Dispatched when an error occurs. | |
*/ | |
'my-error': CustomEvent<{ error: Error }>; |