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/image-url.jpg%20%22Optional%20title%22?q=function&page=1803&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 18900 results for "function"(1147ms)

rimeRateLimitExceededmain.tsx1 match

@stevekrouse•Updated 1 year ago
2import { rimeUsage } from "https://esm.town/v/stevekrouse/rimeUsage";
3
4export function rimeRateLimitExceeded(text: string) {
5 rimeUsage[new Date().toLocaleDateString()] =
6 (rimeUsage[new Date().toLocaleDateString()] || 0) +

testMutateSemantics2main.tsx1 match

@stevekrouse•Updated 1 year ago
2import { fetchJSON } from "https://esm.town/v/stevekrouse/fetchJSON";
3
4export async function testMutateSemantics2({
5 stateName,
6 mutateExpected,

jsPythonmain.tsx2 matches

@brettsmith•Updated 1 year ago
2 const { jsPython } = await import("npm:jspython-interpreter");
3 const script = `
4def mapFunction(r, i):
5 v = r * i
6 return v
8x = [1, 2, 3, 4]
9x
10 .map(mapFunction)
11 .filter(r => r * r)
12 .join(",")

untitled_oliveSwordtailmain.tsx1 match

@hankenstein•Updated 1 year ago
1export const untitled_oliveSwordtail = (async () => {
2 var name = "hank";
3 function myApi(name) {
4 return "hi " + name;
5 }

ruleAndroidAppsCheckmain.tsx1 match

@xuangong•Updated 1 year ago
1export function ruleAndroidAppsCheck(response) {
2 const requiredApps = [
3 "55a54008ad1ba589aa210d2629c1df41",

newendpointmain.tsx1 match

@endingwithali•Updated 1 year ago
1export function newendpoint() {
2 return "hello";
3}

myApimain.tsx1 match

@lazydefi1•Updated 1 year ago
1export function myApi(name) {
2 return "hi " + name;
3}

myApimain.tsx1 match

@M3RCYAJ•Updated 1 year ago
1export function myApi(name) {
2 return "hi " + name;
3}
1import { vonnegutlettercounter } from "https://esm.town/v/politelyinvinciblepointer/vonnegutlettercounter";
2
3export function getvonnegutlettercounter() {
4 return vonnegutlettercounter;
5}

myApimain.tsx1 match

@blackhaj•Updated 1 year ago
1export function myApi(name) {
2 return "hi " + name;
3}

getFileEmail4 file matches

@shouser•Updated 2 weeks ago
A helper function to build a file's email
tuna

tuna8 file matches

@jxnblk•Updated 2 weeks ago
Simple functional CSS library for Val Town
webup
LangChain (https://langchain.com) Ambassador, KubeSphere (https://kubesphere.io) Ambassador, CNCF OpenFunction (https://openfunction.dev) TOC Member.
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": "*",