39 console.log("got pdfData: ", { pdfData });
40 // Check if the PDF has fillable form data
41 const hasFormData = pdfData.formImage.Pages.some((page) =>
42 page.Fields.length > 0
43 );
48 }
49 // Extract the form data and send it as the response
50 const formData = pdfData.formImage.Fields;
51 res.json(formData);
52 })
13 "title",
14 "artist_title",
15 "image_id",
16 "date_display",
17 "thumbnail",
25 filter: [
26 { term: { is_public_domain: true } },
27 { exists: { field: "image_id" } },
28 { exists: { field: "thumbnail.alt_text" } },
29 ],
39 art: resp.data.map((item) => ({
40 ...item,
41 image_url:
42 `${resp.config.iiif_url}/${item.image_id}/full/843,/0/default.jpg`,
43 art_url: `${resp.config.website_url}/artworks/${item.id}`,
44 })),
2
3export async function hootsuiteNasa(req: express.Request, res: express.Response) {
4 const NASA_ROOT = "https://images-api.nasa.gov";
5 const alphaNumericSpaces = new RegExp("^[a-zA-Z0-9\\s-_]+$");
6 const acceptableRedirectUri = new RegExp(
13 res.send('{"data":[],"metadata":{"cursor":{}}}');
14 }
15 var uri = NASA_ROOT + "/search?q=" + query + "&media_type=image";
16 if (req.query.cursor) {
17 uri = decodeURIComponent(req.query.cursor);
24 "id": results.collection.items[i].data[0].nasa_id,
25 "name": results.collection.items[i].data[0].title,
26 "mediaType": "Image",
27 "mimeType": "image/jpeg",
28 "original": {
29 "url": results.collection.items[i].links[0].href,
7 "name": "Thomas Davis",
8 "label": "Web Developer",
9 "image": "https://avatars0.githubusercontent.com/u/416209?s=460&u=38f220a2c9c658141804f881c334c594eb1642ac&v=4",
10 "summary": "I'm a full stack web developer who can build apps from the ground up. I've worked mostly at startups so I am used to wearing many hats. I am a very product focussed developer who priotizes user feedback first and foremost. I'm generally very flexible when investigating new roles. ",
11 "website": "https://lordajax.com",
1import { fetch } from "https://esm.town/v/std/fetch";
2
3export const kbrImage = async () => {
4 const url =
5 "https://viewerd.kbr.be/display/B/9/9/1/2/4/2/1/0000-00-00_00/zoomtiles/BE-KBR00_B-19912421_0000-00-00_00_0001/5-43-7.jpg";
1import { nasaImageDetails } from "https://esm.town/v/wallek/nasaImageDetails";
2
3// View at https://wallek-nasaImage.web.val.run
4export async function nasaImage() {
5 const { html } = await nasaImageDetails();
6 return new Response(html, {
7 headers: { "Content-Type": "text/html" },
7 content: thread.com,
8 replies: thread.replies,
9 images: thread.images,
10 }));
11};
1export function nft(name, description, image) {
2 return {
3 "name": name,
4 "symbol": "Tipstarter",
5 "description": description,
6 "image": image,
7 "external_url": "",
8 "attributes": [],
10 }
11 const { qrcode } = await import("https://deno.land/x/qrcode/mod.ts");
12 const base64Image = await qrcode(url);
13 res.send(
14 `<html><body><img src=${base64Image} height="100px" width="100px" /><p style="font-size:10px">QR Code generated using <a href="https://val.town">val.town</a></p><p style="font-size:10px">Built with 💗 by <a href="https://twitter.com/Ramkarthik">Ramkarthik</a></p></body></html>`,
15 );
16}
72 }
73 form.charsheet ul li {
74 list-style-image: none;
75 display: block;
76 }