56export const resumeConfig = {
7// URL to fetch the resume JSON data. This should point to your raw resume JSON.
8// If you want to host your resume JSON somewhere I recommend a setup like this on val town (https://www.val.town/v/iamseeley/resumeDetails) or a github gist.
9// You can test out the resume view using my resume: https://iamseeley-resumedetails.web.val.run
turquoiseSkunkmain.tsx1 match
56export const resumeConfig = {
7// URL to fetch the resume JSON data. This should point to your raw resume JSON.
8// If you want to host your resume JSON somewhere I recommend a setup like this on val town (https://www.val.town/v/iamseeley/resumeDetails) or a github gist.
9// You can test out the resume view using my resume: https://iamseeley-resumedetails.web.val.run
purpleKangaroomain.tsx2 matches
3334// Post the message so we can deal with large text data.
35await fetch(`/post-message?threadId=${input.getAttribute("data-thread-id")}`, {
36method: "post",
37body: msgDiv.textContent,
147return new Response(body, { headers: { "Content-Type": "text/event-stream" } });
148});
149export default app.fetch;
chocolateCanidmain.tsx2 matches
32// Post the message so we can deal with large text data.
33try {
34await fetch(`/post-message?threadId=${input.getAttribute("data-thread-id")}`, {
35method: "post",
36body: msgDiv.textContent,
169});
170171export default app.fetch;
133return new Response(body, { headers: { "Content-Type": "text/event-stream" } });
134});
135export default app.fetch;
emeraldRaccoonmain.tsx1 match
133return new Response(body, { headers: { "Content-Type": "text/event-stream" } });
134});
135export default app.fetch;
valTownChatGPTmain.tsx1 match
133return new Response(body, { headers: { "Content-Type": "text/event-stream" } });
134});
135export default app.fetch;
1import { fetchText } from "https://esm.town/v/stevekrouse/fetchText";
23const EMOJI_DATA_URL = "https://unicode.org/Public/emoji/15.1/emoji-zwj-sequences.txt";
45export async function getCompoundEmojis(): Promise<string[]> {
6const data = await fetchText(EMOJI_DATA_URL);
7let result: string[] = [];
8const lines = data.split("\n");
getContentFromUrlmain.tsx4 matches
12}
13url = "https://r.jina.ai/" + url
14const response = await fetch(url);
15if (!response.ok) {
16throw new Error(`HTTP error! Status: ${response.status}`);
19return data;
20} catch (error) {
21console.error('Error fetching the URL:', error);
22return 'Error fetching the content.';
23}
24};
129});
130131export default app.fetch;
132
10const gitHubAPI = new GitHubAPI(GITHUB_TOKEN);
1112async function fetchVals() {
13const response = await valTownAPI.getAllVals();
14return response.data;
1617async function getExistingFiles() {
18console.log(`Fetching existing files from repo: ${GITHUB_REPO}, branch: ${GITHUB_BRANCH}`);
19try {
20const response = await gitHubAPI.getRepoContent(GITHUB_REPO, "", GITHUB_BRANCH);
22return response.map(file => file.path);
23} catch (error) {
24console.error(`Error fetching repo content: ${error.message}`);
25throw error;
26}
48const shaResponse = await gitHubAPI.getRepoContent(GITHUB_REPO, filePath, GITHUB_BRANCH);
49const sha = shaResponse.sha;
50console.log(`Fetched SHA for ${filePath}: ${sha}`);
51if (!sha) {
52throw new Error(`Failed to fetch SHA for ${filePath}`);
53}
54await gitHubAPI.updateFile(GITHUB_REPO, filePath, fileContent, sha, commitMessage, GITHUB_BRANCH);
7273async function backupVals() {
74const vals = await fetchVals();
75const lastBackupDates = await getLastBackupDates();
76const allValsDetails = [];
105106export async function runBackupIfChanged() {
107const vals = await fetchVals();
108const lastBackupDates = await getLastBackupDates();
109