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/?q=function&page=2655&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 31479 results for "function"(11920ms)

web_Uex9zSRfGnmain.tsx3 matches

@dhvanil•Updated 7 months ago
1
2 export async function web_Uex9zSRfGn(req) {
3 return new Response(`<!DOCTYPE html>
4<html>
58
59 <script>
60 function runSpeedTest() {
61 const startTime = performance.now();
62 let sum = 0;
70 }
71
72 function analyzeRandomness() {
73 const numbers = [];
74 for(let i = 0; i < 1000; i++) {

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
tuna

tuna9 file matches

@jxnblk•Updated 2 weeks 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.