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=2419&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 29123 results for "function"(7555ms)

val_754eiyUd9rmain.tsx2 matches

@dhvanil•Updated 7 months ago
1
2 export async function val_754eiyUd9r(req) {
3 try {
4 // Execute the code directly and capture its result
5 const result = await (async () => {
6 // Test 1: Precision and floating point arithmetic
7function testMathPrecision() {
8 const result = {
9 infinityTest: 1 / 0,

val_TJmKk47yejmain.tsx2 matches

@dhvanil•Updated 7 months ago
1
2 export async function val_TJmKk47yej(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_Fc67MCb2Qkmain.tsx2 matches

@dhvanil•Updated 7 months ago
1
2 export async function val_Fc67MCb2Qk(req) {
3 try {
4 // Execute the code directly and capture its result
5 const result = await (async () => {
6 // Test 1: Precision and floating point arithmetic
7function testMathPrecision() {
8 const pi = Math.PI;
9 let sum = 0;

val_nXuOLJjN1Omain.tsx2 matches

@dhvanil•Updated 7 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 7 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 7 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 7 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 7 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 7 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 7 months ago
1
2 export async function val_PJEj4CadkM(req) {
3 try {
4 // Execute the code directly and capture its result
tuna

tuna9 file matches

@jxnblk•Updated 1 day ago
Simple functional CSS library for Val Town

getFileEmail4 file matches

@shouser•Updated 1 month ago
A helper function to build a file's email
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.