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/?q=function&page=2&format=json

For typeahead suggestions, use the /typeahead endpoint:

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

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

Found 30159 results for "function"(1030ms)

nicoFunctionScript2 file matches

@stevekrouse•Updated 1 year ago

functionZilla1 file match

@sdan•Updated 1 year ago

chatSampleFunctionExtraction2 file matches

@webup•Updated 1 year ago

chatSampleFunctionMultiple2 file matches

@webup•Updated 1 year ago

chatSampleFunctionSingle2 file matches

@webup•Updated 1 year ago

multiplicationFunctionTest1 file match

@rodrigotello•Updated 1 year ago

chatSampleFunctionTagging2 file matches

@webup•Updated 1 year ago

FunctionToHTMLForm1 file match

@rodrigotello•Updated 1 year ago

GlancergeneratePDF.ts2 matches

@lightweight•Updated 28 mins ago
1// Convert image URL to base64
2async function getImageBase64(url: string): Promise<string> {
3 const res = await fetch(url);
4 const buffer = await res.arrayBuffer();
151};
152
153export default async function (req: Request): Promise<Response> {
154 try {
155 // Test data - modify this directly in the code to test different scenarios

tex-primitivesmain.ts1 match

@aeaton•Updated 29 mins ago
1export default async function(req: Request): Promise<Response> {
2 // fetch tex.web and extract all the lines containing primitive descriptions
3 // e.g. primitive("lineskip",assign_glue,glue_base+line_skip_code);@/
lost1991
import { OpenAI } from "https://esm.town/v/std/openai"; export default async function(req: Request): Promise<Response> { if (req.method === "OPTIONS") { return new Response(null, { headers: { "Access-Control-Allow-Origin": "*",
webup
LangChain (https://langchain.com) Ambassador, KubeSphere (https://kubesphere.io) Ambassador, CNCF OpenFunction (https://openfunction.dev) TOC Member.