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/$%7Bsuccess?q=image&page=733&format=json

For typeahead suggestions, use the /typeahead endpoint:

https://codesearch.val.run/typeahead?q=image

Returns an array of strings in format "username" or "username/projectName"

Found 8198 results for "image"(1483ms)

madPinkCardinalREADME.md1 match

@test_account_001•Updated 8 months ago
3This is a lightweight Blob Admin interface to view and debug your Blob data.
4
5![b7321ca2cd80899250589b9aa08bc3cae9c7cea276282561194e7fc537259b46.png](https://imagedelivery.net/iHX6Ovru0O7AjmyT5yZRoA/311a81bb-18d8-4583-b7e3-64bac326f700/public)
6
7Use this button to install the val:

gptMemoryManagerREADME.md2 matches

@toowired•Updated 8 months ago
5First conversation:
6
7![FirstConversation.png](https://imagedelivery.net/iHX6Ovru0O7AjmyT5yZRoA/78c48b8b-8a1b-4caf-ef23-2ad78be3a100/public)
8
9What GPT sent do the API:
20Separate conversation somewhere in the future:
21
22![Second Conversation.png](https://imagedelivery.net/iHX6Ovru0O7AjmyT5yZRoA/bae24fd1-cec7-49b1-ac16-74b9f5aa4c00/public)
23
24# Setup

gpt_memoryREADME.md2 matches

@toowired•Updated 8 months ago
5First conversation:
6
7![FirstConversation.png](https://imagedelivery.net/iHX6Ovru0O7AjmyT5yZRoA/78c48b8b-8a1b-4caf-ef23-2ad78be3a100/public)
8
9What GPT sent do the API:
20Separate conversation somewhere in the future:
21
22![Second Conversation.png](https://imagedelivery.net/iHX6Ovru0O7AjmyT5yZRoA/bae24fd1-cec7-49b1-ac16-74b9f5aa4c00/public)
23
24# Setup

gptMemoryManagerREADME.md2 matches

@amoz1•Updated 8 months ago
5First conversation:
6
7![FirstConversation.png](https://imagedelivery.net/iHX6Ovru0O7AjmyT5yZRoA/78c48b8b-8a1b-4caf-ef23-2ad78be3a100/public)
8
9What GPT sent do the API:
20Separate conversation somewhere in the future:
21
22![Second Conversation.png](https://imagedelivery.net/iHX6Ovru0O7AjmyT5yZRoA/bae24fd1-cec7-49b1-ac16-74b9f5aa4c00/public)
23
24# Setup

lightGrayCrowREADME.md1 match

@jeffreyyoung•Updated 8 months ago
4
5
6<img width="400px" src="https://imagedelivery.net/iHX6Ovru0O7AjmyT5yZRoA/2661d748-d7a7-4d1e-85a4-f60fae262000/public" />
7

hackerNewsDigestREADME.md1 match

@jeffreyyoung•Updated 8 months ago
4
5
6<img width="400px" src="https://imagedelivery.net/iHX6Ovru0O7AjmyT5yZRoA/2661d748-d7a7-4d1e-85a4-f60fae262000/public" />
7

zottifymain.tsx3 matches

@rapfl•Updated 8 months ago
34
35 // Run generative model
36 const generatedImage = await replicate.run(
37 "rapfl/sdxl-zottify:caf6f0e13ef741de9353b0a06146797a4a55fbff3f5f4013e7fe755756a346e1",
38 {
47 );
48
49 const result = generatedImage[0];
50 // Sending a card with the image in it
51 return new Response(
52 render(

imagesToPDFmain.tsx17 matches

@g•Updated 8 months ago
1/**
2 * This application creates a client-side interface for uploading multiple image files
3 * and generating a PDF containing those images. It uses the following approach:
4 *
5 * 1. Create a simple HTML form for file input
6 * 2. Use JavaScript to handle file selection and PDF generation
7 * 3. Utilize the jsPDF library for PDF creation
8 * 4. Use the FileReader API to read image files
9 *
10 * The application will not modify or convert the images, and each PDF page
11 * will be sized according to the corresponding image dimensions.
12 */
13
22 <meta charset="UTF-8">
23 <meta name="viewport" content="width=device-width, initial-scale=1.0">
24 <title>Image to PDF Converter</title>
25 <link rel="stylesheet" href="/styles.css">
26 <script src="https://cdnjs.cloudflare.com/ajax/libs/jspdf/2.5.1/jspdf.umd.min.js"></script>
29<body>
30 <div class="container">
31 <h1>Image to PDF Converter</h1>
32 <input type="file" id="imageInput" accept="image/*" multiple>
33 <button id="convertBtn">Convert to PDF</button>
34 </div>
86const { jsPDF } = window.jspdf;
87
88const imageInput = document.getElementById('imageInput');
89const convertBtn = document.getElementById('convertBtn');
90
92
93async function convertToPDF() {
94 const files = imageInput.files;
95 if (files.length === 0) {
96 alert('Please select at least one image file.');
97 return;
98 }
99
100 const [file0] = files;
101 const img0 = await loadImage(file0);
102
103 const pdf = new jsPDF({
112 for (let i = 0; i < files.length; i++) {
113 const file = files[i];
114 const img = await loadImage(file);
115
116 if (i) pdf.addPage([img.width, img.height]);
117 pdf.addImage(img, 'AVIF', 0, 0, img.width, img.height);
118 }
119
120 pdf.save('images.pdf');
121}
122
130}
131
132function loadImage(blob) {
133 return new Promise((resolve, reject) => {
134 const src = URL.createObjectURL(blob);
135 const img = new Image();
136 img.onload = () => resolve(img);
137 img.onerror = (e) => reject(e);

bedtimeStoryMakermain.tsx8 matches

@dthyresson•Updated 8 months ago
124 role: "system",
125 content:
126 `Describe an image that depicts the ${adjective} children's story about a ${color} colored ${animal}: ${summary}.
127 The description should be descriptive, but three short sentences.
128 Just give me the instructions, don't make an image.`,
129 },
130 ],
143 // fast-lightning-sdxl
144 const options = {
145 "image_size": "square",
146 "num_images": 1,
147 "num_inference_steps": 6,
148 "enable_safety_checker": true,
149 };
150 // {"num_images": 1,
151 // "guidance_scale": 9.5,
152 // "num_inference_steps": 20,
153 // "expand_prompt": true }
154 const result: any = await fal.run(`fal-ai/${falModel}`, { input: { prompt }, options });
155 const url = result.images[0].url;
156
157 return url;
162 title: ogData?.title || "Bedtime Story Maker",
163 description: ogData?.description || "",
164 image: ogData?.image || "",
165 url: ogData?.url || `https://dthyresson-bedtimestorymaker.web.val.run/bedtime_stories}`,
166 };
480 title,
481 description: summary,
482 image: pictureUrl,
483 url: `https://dthyresson-bedtimestorymaker.web.val.run/bedtime_stories/read/${id}`,
484 };

generativeFillmain.tsx6 matches

@jeffreyyoung•Updated 8 months ago
10 const lastMsg = req.query.at(-1);
11 if (lastMsg && lastMsg.attachments.length !== 2) {
12 yield events.replace("No image recieved");
13 yield html;
14 yield events.done();
15 return;
16 }
17 yield events.replace("Generating image");
18 let success = null;
19 let error = null;
20 const input = {
21 image: lastMsg.attachments.at(0).url,
22 mask: lastMsg.attachments.at(1).url,
23 prompt: lastMsg.content.trim() || "cute kitty",
36 let i = 0;
37 while (!success && !error) {
38 yield events.replace("Generating image (" + (i++) + ")");
39 await sleep(1000);
40 }
43 if (success && Array.isArray(success)) {
44 for (const url of success) {
45 // yield markdown image
46 yield `![image](${url})\n`;
47 }
48 }

image_proxy

@oops•Updated 4 days ago

ImageExplorer10 file matches

@carmi•Updated 1 week ago
Chrimage
Atiq
"Focal Lens with Atig Wazir" "Welcome to my photography journey! I'm Atiq Wazir, a passionate photographer capturing life's beauty one frame at a time. Explore my gallery for stunning images, behind-the-scenes stories, and tips & tricks to enhance your own