| title | Cool document |
|---|---|
| template | coolPage.ori |
This document is so cool that it specifies its own template.
| import assert from "node:assert/strict"; | |
| // Return a map of all images in the Cloudinary account | |
| export default async function (API_KEY, API_SECRET) { | |
| assert.ok(API_KEY && API_SECRET, "Cloudinary credentials missing."); | |
| return { | |
| async get(key) { | |
| return Origami.fetch( | |
| `https://res.cloudinary.com/stephanmax/image/upload/f_avif,w_1000,c_limit/${key}`, |
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="utf-8" /> | |
| <meta name="viewport" content="width=device-width, initial-scale=1" /> | |
| <link rel="stylesheet" type="text/css" href="/assets/styles.css" /> | |
| <link rel="alternate" type="application/rss+xml" title="Dispatches from off the grid" href="feed.xml"> | |
| <link rel="alternate" type="application/json" title="Dispatches from off the grid" href="feed.json"> | |
| <title>Solitude</title> | |
| </head> |
| (text) => `<p>${ text }</p>` |
| title | Cool document |
|---|---|
| template | coolPage.ori |
This document is so cool that it specifies its own template.
| # Enable the RewriteEngine | |
| RewriteEngine On | |
| # Match requests for .keys.json at any directory level, including the root | |
| RewriteRule ^(.*)/?\.keys\.json$ /keys.php?dir=$1 [L] |
This is the Read Me file.
| export default function greet(name: string) { | |
| return `Hello, ${name}!`; | |
| } |
| { | |
| // Use IntelliSense to learn about possible attributes. | |
| // Hover to view descriptions of existing attributes. | |
| // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | |
| "version": "0.2.0", | |
| "configurations": [ | |
| { | |
| // This configuration tells VS Code to launch the project via `npm start`. | |
| "type": "node", | |
| "request": "launch", |
| import fs from "node:fs/promises"; | |
| // Create a 1MB string value to a file | |
| const string = "a".repeat(1000000); | |
| const startValue = performance.mark("string"); | |
| await fs.writeFile("1MB.txt", string); | |
| const measureValue = performance.measure("write string value", startValue); | |
| console.log(`${measureValue.name}: ${measureValue.duration}ms`); | |
| // Write the string as a String object |
| a | |
| able | |
| about | |
| above | |
| accept | |
| across | |
| act | |
| actually | |
| add | |
| admit |