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%22Image%20title%22?q=function&page=1&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 18181 results for "function"(645ms)

getFileEmail4 file matches

@shouser•Updated 1 week 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

AutomationFunction1 file match

@saradp•Updated 3 weeks ago

TwilioHelperFunctions

@vawogbemi•Updated 2 months ago

trmnl_plugins2 file matches

@camflan•Updated 2 months ago
Backend functions for TRMNL plugins

exampleTestFunctions1 file match

@willthereader•Updated 3 months ago

generateFunction1 file match

@wolf•Updated 4 months ago

functionExercise2 file matches

@willthereader•Updated 5 months ago

FunctionToHTMLForm1 file match

@dps•Updated 1 year ago

gpt4FunctionCallingExample2 file matches

@stevekrouse•Updated 1 year ago

telegramBotStarterprocessOwnerCommand.tsx3 matches

@asdfg•Updated 37 mins ago
8// import { getActiveUsers, getBlockedUsers, getUserInfo } from "./users.tsx";
9
10export default async function processOwnerCommand(message) {
11 const text = message.text || "";
12
139 * Reply to a specific user
140 */
141async function replyToUser(userId, text) {
142 // Send the message to the user
143 const success = await sendTelegramMessage(userId, text);
169 * Native reply to a specific user using Telegram's reply mechanism
170 */
171async function nativeReplyToUser(userId, originalMessage, text) {
172 try {
173 // Send the message as a reply to the original message

telegramBotStarterindex.ts2 matches

@asdfg•Updated 58 mins ago
1// ============================================================
2// CORE FUNCTIONALITY
3// ============================================================
4
11 * Expose this as an HTTP endpoint in Val.town
12 */
13export default async function handleTelegramWebhook(req) {
14 try {
15 // Ensure the request is a POST request
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": "*",