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?q=image&page=857&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 9529 results for "image"(5000ms)

wallpapermain.tsx7 matches

@PhaerisUpdated 7 months ago
1export default async function(req: Request): Promise<Response> {
2 const url =
3 "https://global.bing.com/HPImageArchive.aspx?format=js&idx=0&n=9&pid=hp&FORM=BEHPTB&uhd=1&uhdwidth=3840&uhdheight=2160&setmkt=zh-CN&setlang=en";
4
5 try {
11
12 const data = await response.json();
13 const firstImageUrl = "https://cn.bing.com" + data.images[0].url;
14 // 第三步:请求该图片的实际内容
15 const imageResponse = await fetch(firstImageUrl);
16
17 if (!imageResponse.ok) {
18 throw new Error(`Failed to fetch image! status: ${imageResponse.status}`);
19 }
20
21 // 直接返回图片的内容
22 return new Response(imageResponse.body, {
23 headers: {
24 "Content-Type": imageResponse.headers.get("Content-Type") || "image/jpeg", // 默认设置为 image/jpeg
25 },
26 });

lastloginREADME.md1 match

@elliotbraemUpdated 7 months ago
20* Pass the email from the server to the client-side code if using React hydration or similar techniques.
21
22![Screenshot 2024-08-08 at 08.48.41.gif](https://imagedelivery.net/iHX6Ovru0O7AjmyT5yZRoA/36674739-cd88-472c-df16-cd0b3a62bc00/public)
23
24[Live demo](https://stevekrouse-lastlogin_demo.web.val.run/)

iosMobileConfigMultipleWebClipmain.tsx3 matches

@gUpdated 7 months ago
51 <div class="form-group custom-icon-group" style="display: none;">
52 <label for="icon-0">Custom icon:</label>
53 <input type="file" id="icon-0" name="icon" accept="image/gif, image/jpeg, image/png">
54 </div>
55 </div>
273 <div class="form-group custom-icon-group" style="display: none;">
274 <label for="icon-${webClipCount - 1}">Custom icon:</label>
275 <input type="file" id="icon-${webClipCount - 1}" name="icon-${webClipCount - 1}" accept="image/gif, image/jpeg, image/png">
276 </div>
277 `;
430
431 return new Response(favicon, {
432 headers: { 'Content-Type': 'image/png' },
433 });
434});

markdown_downloadmain.tsx1 match

@tarasUpdated 7 months ago
210 "User-Agent":
211 "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36",
212 "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8",
213 "Accept-Language": "en-US,en;q=0.5",
214 "Sec-Fetch-Site": "cross-site",
240 border: 0;
241 height: 3px;
242 background-image: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0));
243 margin: 20px 0;
244 }
1
2![Screenshot 2024-10-17 at 10.09.18 AM.png](https://imagedelivery.net/iHX6Ovru0O7AjmyT5yZRoA/60b7d0a4-b4d9-4906-572c-2ae7cd155100/public)
3Project: Emoji-Based English to French Vocabulary Learner
4

sqlite_adminREADME.md1 match

@notclaytnUpdated 7 months ago
3This is a lightweight SQLite Admin interface to view and debug your SQLite data.
4
5![Screenshot 2023-12-08 at 13.35.04.gif](https://imagedelivery.net/iHX6Ovru0O7AjmyT5yZRoA/ee9a9237-96a0-4276-60b5-aa8c56e49800/public)
6
7It's currently super limited (no pagination, editing data, data-type specific viewers), and is just a couple dozens lines of code over a couple different vals. Forks encouraged! Just comment on the val if you add any features that you want to share.

lastloginREADME.md1 match

@olifrahUpdated 7 months ago
20* Pass the email from the server to the client-side code if using React hydration or similar techniques.
21
22![Screenshot 2024-08-08 at 08.48.41.gif](https://imagedelivery.net/iHX6Ovru0O7AjmyT5yZRoA/36674739-cd88-472c-df16-cd0b3a62bc00/public)
23
24[Live demo](https://stevekrouse-lastlogin_demo.web.val.run/)

VALLEREADME.md1 match

@alanzouUpdated 7 months ago
10* Create a [Val Town API token](https://www.val.town/settings/api), open the browser preview of this val, and use the API token as the password to log in.
11
12<img width=500 src="https://imagedelivery.net/iHX6Ovru0O7AjmyT5yZRoA/7077d1b5-1fa7-4a9b-4b93-f8d01d3e4f00/public"/>

handsomeMagentaStoatREADME.md5 matches

@wangqiao1234Updated 7 months ago
23```
24
25## Images
26
27To send an image to ChatGPT, the easiest way is by converting it to a
28data URL, which is easiest to do with [@stevekrouse/fileToDataURL](https://www.val.town/v/stevekrouse/fileToDataURL).
29
30```ts title="Image Example" val
31import { fileToDataURL } from "https://esm.town/v/stevekrouse/fileToDataURL";
32
44 role: "user",
45 content: [{
46 type: "image_url",
47 image_url: {
48 url: dataURL,
49 },

image_generator1 file match

@affulitoUpdated 5 days ago
placeholdji

placeholdji2 file matches

@jjgUpdated 1 week ago
Placeholder image service with emojis 🖼️
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