1import { fetchBcycleCounts } from "https://esm.town/v/jonbo/fetchBcycleCounts";
2
3export const reactSSRExample = async (req: express.Request, res: express.Response) => {
26 return React.createElement("ul", null, bikeEls);
27 }
28 const data = fetchBcycleCounts;
29 const filtered = data.filter((row) => row.id == 7305 || row.id == 1871);
30 // Get current time in MST
1import { fetch } from "https://esm.town/v/std/fetch";
2
3export let duckdbExample = (async () => {
4 async function createWorker(url: string) {
5 const workerScript = await fetch(url);
6 const workerURL = URL.createObjectURL(await workerScript.blob());
7 return new Worker(workerURL, { type: "module" });
1import process from "node:process";
2import { fetchJSON } from "https://esm.town/v/stevekrouse/fetchJSON";
3import { rimeRateLimitExceeded } from "https://esm.town/v/stevekrouse/rimeRateLimitExceeded";
4
12 if (rimeRateLimitExceeded(text))
13 return "Rime rate limit exceeded";
14 return fetchJSON(
15 "https://rjmopratfrdjgmfmaios.functions.supabase.co/rime-tts",
16 {
1import process from "node:process";
2import { fetchJSON } from "https://esm.town/v/stevekrouse/fetchJSON";
3
4export const testNasa = fetchJSON(
5 `https://api.nasa.gov/planetary/apod?api_key=${process.env.nasa}&date=1995-06-16`,
6);
1import process from "node:process";
2import { fetchJSON } from "https://esm.town/v/stevekrouse/fetchJSON";
3
4export let untitled_scarletHoverfly = fetchJSON(
5 "https://api.val.town/v1/eval",
6 {
1import { fetchJSON } from "https://esm.town/v/stevekrouse/fetchJSON";
2
3export async function testSemantics({
8 api: string;
9}) {
10 const { data: last } = await fetchJSON(
11 `${api}/eval/${stateName}`
12 );
13 const now = Date.now();
14 await fetchJSON(`${api}/eval/${stateName} = ${now}`);
15 const { data: next } = await fetchJSON(
16 `${api}/eval/${stateName}`
17 );
1import { fetchText } from "https://esm.town/v/stevekrouse/fetchText";
2
3export const jsonresumeEx = (async () => {
4 let { render } = await import("npm:jsonresume-theme-standard-resume");
5 return render(
6 await fetchText(
7 "https://gist.githubusercontent.com/thomasdavis/c9dcfa1b37dec07fb2ee7f36d7278105/raw/b7c543a5de99d9bed90ca4fe5e506f8c0b04f77f/resume.json",
8 ),
1import { fetch } from "https://esm.town/v/std/fetch";
2
3export async function getValIp() {
4 let req = await fetch("http://whatismyip.akamai.com");
5 let ip = await req.text();
6 return ip;
1import { fetch } from "https://esm.town/v/std/fetch";
2
3export let getBodyFromURL = async (url) => {
5 "https://deno.land/x/deno_dom/deno-dom-wasm.ts"
6 );
7 // Fetch HTML from the specified URL
8 const response = await fetch(url);
9 const html = await response.text();
10 // Parse the HTML into a new document
8 if (check) {
9 check = Object.assign({
10 fetch_limit: 10,
11 force: false,
12 enable_toggle: Boolean(toggleSubreddits),
18 filters: check.filters,
19 current_state: checkRedditState,
20 fetch_limit: check.fetch_limit,
21 enable_toggle: check.enable_toggle,
22 force: check.force,