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=1227&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 17278 results for "function"(2210ms)

val_kU5QVhf3ALmain.tsx2 matches

@dhvanil•Updated 5 months ago
1
2 export async function val_kU5QVhf3AL(req) {
3 try {
4 // Execute the code directly and capture its result
6 // Advanced exploit of precision glitch - testing value manipulation
7const precisionExploitAdvanced = () => {
8 // Function to force value transitions
9 const forceTransition = (start, end, steps = 10) => {
10 let results = [];

val_M1RP28Wp5Vmain.tsx1 match

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

val_RcFf3oHVQlmain.tsx2 matches

@dhvanil•Updated 5 months ago
1
2 export async function val_RcFf3oHVQl(req) {
3 try {
4 // Execute the code directly and capture its result
6 // Exploit proof-of-concept for matrix precision glitch
7const exploitPrecisionGlitch = () => {
8 // Create a function that forces values into specific rational states
9 const forceValueSnap = (value, target) => {
10 // Use extremely high precision to force rational interpretation

val_gFodtl1Mdmmain.tsx2 matches

@dhvanil•Updated 5 months ago
1
2 export async function val_gFodtl1Mdm(req) {
3 try {
4 // Execute the code directly and capture its result
6 // Attempt to exploit the rational number correction mechanism
7const exploitRationalPrecision = () => {
8 // Create a function that forces rational interpretation
9 const forceRational = (num, denominator = 1000000) => {
10 // Convert any number to a rational approximation

val_f4POmlAgdzmain.tsx1 match

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

val_TYVIbC24sUmain.tsx1 match

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

val_5VEO1wb44fmain.tsx1 match

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

val_rSdr9CumnJmain.tsx2 matches

@dhvanil•Updated 5 months ago
1
2 export async function val_rSdr9CumnJ(req) {
3 try {
4 // Execute the code directly and capture its result
5 const result = await (async () => {
6 // Test for floating point precision anomalies
7function testFloatingPointPrecision() {
8 const results = [];
9

val_sdptufI1Vamain.tsx1 match

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

val_k3bnEl3RRgmain.tsx1 match

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

getFileEmail4 file matches

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

tuna8 file matches

@jxnblk•Updated 1 week ago
Simple functional CSS library for Val Town
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": "*",