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=1546&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 20407 results for "function"(3721ms)

val_nXuOLJjN1Omain.tsx2 matches

@dhvanil•Updated 6 months ago
1
2 export async function val_nXuOLJjN1O(req) {
3 try {
4 // Execute the code directly and capture its result
5 const result = await (async () => {
6 // Test 1: Check for patterns in random number generation
7function testRandomness() {
8 const samples = 1000;
9 const numbers = [];

val_2ndWr7OczVmain.tsx1 match

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

val_AIvQijAexnmain.tsx1 match

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

val_DDlHRsQXxjmain.tsx1 match

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

val_qRrZf6Lxcxmain.tsx1 match

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

val_M2RuLeNjIxmain.tsx1 match

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

val_PJEj4CadkMmain.tsx1 match

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

val_282e3mL94Amain.tsx1 match

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

val_wGlPXo8a3ymain.tsx1 match

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

val_tBJyCZliwemain.tsx1 match

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

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.