Val Town Code SearchReturn to Val Town

API Access

You can access search results via JSON API by adding format=json to your query:

https://codesearch.val.run/$%7Bart_info.art.src%7D?q=fetch&page=904&format=json

For typeahead suggestions, use the /typeahead endpoint:

https://codesearch.val.run/typeahead?q=fetch

Returns an array of strings in format "username" or "username/projectName"

Found 10235 results for "fetch"(2114ms)

subarumain.tsx6 matches

@seep•Updated 1 year ago
2import process from "node:process";
3
4const { wrapFetch: FetchWithCookie } = await import("https://deno.land/x/another_cookiejar@v5.0.3/mod.ts");
5
6const fetch = FetchWithCookie();
7
8type ServiceResponse = { id: string; success: boolean };
17
18 const dest = "https://www.mysubaru.com/login";
19 const resp = await fetch(dest, { method: "POST", body });
20
21 assert(resp.status == 200, `unexpected login response status: ${resp.status}`);
28
29 const url = "https://www.mysubaru.com/service/g2/remoteService/status.json";
30 const res = await fetch(url, { method: "POST", body });
31
32 return await parseServiceResponse(res);
58
59 const url = "https://www.mysubaru.com/service/g2/engineStart/execute.json";
60 const res = await fetch(url, { method: "POST", body: new URLSearchParams(opts) });
61
62 return await parseServiceResponse(res);
73
74 const url = "https://www.mysubaru.com/service/g2/engineStop/execute.json";
75 const res = await fetch(url, { method: "POST", body: new URLSearchParams(opts) });
76
77 return await parseServiceResponse(res);

gptMemoryManagerREADME.md1 match

@xkonti•Updated 1 year ago
71# Long-term memory
72
73At some point the user might ask you to do something with "memory". Things like "remember", "save to memory", "forget", "update memory", etc. Please use corresponding actions to achieve those tasks. User might also ask you to perform some task with the context of your "memory" - in that case fetch all memories before proceeding with the task. The memories should be formed in a clear and purely informative language, void of unnecessary adjectives or decorative language forms. An exception to that rule might be a case when the language itself is the integral part of information (snippet of writing to remember for later, examples of some specific language forms, quotes, etc.).
74
75Structure of a memory:

untitled_lavenderWildfowlmain.tsx4 matches

@aounw•Updated 1 year ago
1import { email } from "https://esm.town/v/std/email?v=9";
2
3// Fetches a random joke.
4async function fetchRandomJoke() {
5 const response = await fetch(
6 "https://official-joke-api.appspot.com/random_joke",
7 );
9}
10
11const randomJoke = await fetchRandomJoke();
12const setup = randomJoke.setup;
13const punchline = randomJoke.punchline;

sunbeammain.tsx1 match

@pomdtr•Updated 1 year ago
4 `#!/bin/sh
5if [ $# -eq 0 ]; then
6 exec sunbeam fetch ${shlex.quote(webEndpoint)}
7fi
8

untitled_scarletGoldfishmain.tsx4 matches

@griffinolson•Updated 1 year ago
1import { email } from "https://esm.town/v/std/email?v=9";
2
3// Fetches a random joke.
4async function fetchRandomJoke() {
5 const response = await fetch(
6 "https://official-joke-api.appspot.com/random_joke",
7 );
9}
10
11const randomJoke = await fetchRandomJoke();
12const setup = randomJoke.setup;
13const punchline = randomJoke.punchline;

untitled_blueHaddockmain.tsx4 matches

@odnm1•Updated 1 year ago
1import { email } from "https://esm.town/v/std/email?v=9";
2
3// Fetches a random joke.
4async function fetchRandomJoke() {
5 const response = await fetch(
6 "https://official-joke-api.appspot.com/random_joke",
7 );
9}
10
11const randomJoke = await fetchRandomJoke();
12const setup = randomJoke.setup;
13const punchline = randomJoke.punchline;

untitled_graySheepmain.tsx4 matches

@footkick72•Updated 1 year ago
1import { email } from "https://esm.town/v/std/email?v=9";
2
3// Fetches a random joke.
4async function fetchRandomJoke() {
5 const response = await fetch(
6 "https://official-joke-api.appspot.com/random_joke",
7 );
9}
10
11const randomJoke = await fetchRandomJoke();
12const setup = randomJoke.setup;
13const punchline = randomJoke.punchline;

untitled_coralBugmain.tsx3 matches

@khushalneu•Updated 1 year ago
1import { email } from "https://esm.town/v/std/email?v=9";
2
3// Fetches a random joke.
4function fetchRandomJoke() {
5 const SAMPLE_JOKE = {
6 "setup": "What do you call a group of disorganized cats?",
10}
11
12const randomJoke = fetchRandomJoke();
13const setup = randomJoke.setup;
14const punchline = randomJoke.punchline;

untitled_indigoPtarmiganmain.tsx3 matches

@liviacutra•Updated 1 year ago
1function fetchRandomJoke() {
2 const response = fetch(
3 "https://official-joke-api.appspot.com/random_joke",
4 );
15}
16
17const randomJoke = fetchRandomJoke();
18const setup = randomJoke.setup;
19const punchline = randomJoke.punchline;

untitled_aquamarineAntelopemain.tsx3 matches

@ipdaniel•Updated 1 year ago
3import { email } from "https://esm.town/v/std/email?v=9";
4
5// Fetches a random joke.
6function fetchRandomJoke() {
7 const SAMPLE_JOKE = {
8 "setup": "What do you call a group of disorganized cats?",
13}
14
15const randomJoke = fetchRandomJoke();
16const setup = randomJoke.setup;
17const punchline = randomJoke.punchline;

agentplex-deal-flow-email-fetch1 file match

@anandvc•Updated 4 days ago

proxyFetch2 file matches

@vidar•Updated 1 week ago