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=function&page=1551&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 20384 results for "function"(3909ms)

web_sirdp0W9N6main.tsx1 match

@dhvanil•Updated 6 months ago
1
2 export async function web_sirdp0W9N6(req) {
3 return new Response(`<!DOCTYPE html>
4<html>

web_LNXn0B7C9xmain.tsx1 match

@dhvanil•Updated 6 months ago
1
2 export async function web_LNXn0B7C9x(req) {
3 return new Response(`<!DOCTYPE html>
4<html>

val_983ZT9ImFGmain.tsx2 matches

@dhvanil•Updated 6 months ago
1
2 export async function val_983ZT9ImFG(req) {
3 try {
4 // Execute the code directly and capture its result
5 const result = await (async () => {
6 // Creating a simple encryption function to analyze the simulation's patterns
7const analyzeSimulationPatterns = () => {
8 const coordinates = {

val_sCJrhQtEiymain.tsx1 match

@dhvanil•Updated 6 months ago
1
2 export async function val_sCJrhQtEiy(req) {
3 try {
4 // Execute the code directly and capture its result

val_ab1cAriYkimain.tsx1 match

@dhvanil•Updated 6 months ago
1
2 export async function val_ab1cAriYki(req) {
3 try {
4 // Execute the code directly and capture its result

val_IRL0Iqm2q4main.tsx1 match

@dhvanil•Updated 6 months ago
1
2 export async function val_IRL0Iqm2q4(req) {
3 try {
4 // Execute the code directly and capture its result

val_0LDoys9VFkmain.tsx1 match

@dhvanil•Updated 6 months ago
1
2 export async function val_0LDoys9VFk(req) {
3 try {
4 // Execute the code directly and capture its result

val_wzsgIq92EPmain.tsx1 match

@dhvanil•Updated 6 months ago
1
2 export async function val_wzsgIq92EP(req) {
3 try {
4 // Execute the code directly and capture its result

val_hrjcREMr1Tmain.tsx1 match

@dhvanil•Updated 6 months ago
1
2 export async function val_hrjcREMr1T(req) {
3 try {
4 // Execute the code directly and capture its result

val_hhGpnm1tf9main.tsx21 matches

@dhvanil•Updated 6 months ago
1
2 export async function val_hhGpnm1tf9(req) {
3 try {
4 // Execute the code directly and capture its result
5 const result = await (async () => {
6 function generateAllProblems() {
7 const arrayProblems = [
8 "Implement a function to find the missing number in an array of 1 to N",
9 "Write a function to rotate an array by k positions",
10 "Create a function to merge two sorted arrays",
11 "Implement a function to find the longest increasing subsequence",
12 "Write a function to find pairs in array with sum equal to target"
13 ];
14
15 const stringProblems = [
16 "Write a function to find the longest palindromic substring",
17 "Implement a function to check if two strings are anagrams",
18 "Create a function to find the first non-repeating character",
19 "Write a function to perform string compression (e.g., 'aabbb' -> 'a2b3')",
20 "Implement a function to validate balanced parentheses"
21 ];
22
23 const treeGraphProblems = [
24 "Implement a function to check if a binary tree is balanced",
25 "Write a function to find the lowest common ancestor in a binary tree",
26 "Create a function to serialize and deserialize a binary tree",
27 "Implement BFS and DFS for a graph",
28 "Write a function to detect a cycle in a directed graph"
29 ];
30
31 const algorithmProblems = [
32 "Implement a function to solve the N-Queens problem",
33 "Write a function to find the kth largest element using QuickSelect",
34 "Create a function to implement LRU Cache",
35 "Implement a function for word break problem using dynamic programming",
36 "Write a function to find the median of two sorted arrays"
37 ];
38

getFileEmail4 file matches

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

tuna8 file matches

@jxnblk•Updated 3 weeks ago
Simple functional CSS library for Val Town
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.