12* The email address(es) to send the email to. Only available to Val Town Pro subscribers.
13* Can be a single string, IAddress object, or an array of strings/IAddress objects.
14* @default the email of the logged user calling this function.
15*/
16to?: (IAddress | string)[] | IAddress | string;
reluctantCoffeeGayalmain.tsx10 matches
28"Have the ability to murder anyone without any consequences",
29"Have a tight knit and loyal friend group",
30"Have another set of eyes in the back of your head (they are fully functional)",
31"Have a very physically attractive romantic partner",
32"Be able to spawn pizzas by snapping your fingers (max 2 per 12 hours)",
36];
3738function App() {
39const [user, setUser] = useState<User | null>(null);
40const [answers, setAnswers] = useState<Answer[]>([]);
106}
107108function SplashScreen({ onGetStarted }: { onGetStarted: () => void }) {
109return (
110<div className="splash-screen">
132}
133134function TabBar() {
135const location = useLocation();
136const tabs = [
163}
164165function Game({ user, saveAnswer }: { user: User | null; saveAnswer: (answer: Answer, losingAnswer: string) => void }) {
166const getRandomQuestion = useCallback((): Question => {
167const availableOptions = [...ANSWER_OPTIONS];
198}
199200function Answers(
201{ user, answers, rankings, clearAnswers }: {
202user: User | null;
237}
238239function Profile({ user, setUser }: { user: User | null; setUser: (user: User | null) => void }) {
240const [username, setUsername] = useState("");
241277}
278279function client() {
280createRoot(document.getElementById("root")!).render(<App />);
281}
285}
286287async function server(request: Request): Promise<Response> {
288const { sqlite } = await import("https://esm.town/v/stevekrouse/sqlite");
289const KEY = "reluctantCoffeeGayal";
369}
370371async function updateEloRankings(sqlite: any, KEY: string, winningAnswer: string, losingAnswer: string) {
372const K = 32; // This is the maximum score change per match
373
fancyPlumSquirrelmain.tsx3 matches
9import { createRoot } from "https://esm.sh/react-dom/client";
1011function App() {
12const [panelMembers, setPanelMembers] = useState([]);
13const [newMember, setNewMember] = useState({ name: "", expertise: "" });
116}
117118function client() {
119createRoot(document.getElementById("root")).render(<App />);
120}
124}
125126async function server(request: Request): Promise<Response> {
127const { sqlite } = await import("https://esm.town/v/stevekrouse/sqlite");
128const KEY = "fancyPlumSquirrel";
10import { createRoot } from "https://esm.sh/react-dom/client";
1112function App() {
13const [layoutType, setLayoutType] = useState('flexbox');
14const [flexDirection, setFlexDirection] = useState('row');
126}
127128function client() {
129createRoot(document.getElementById("root")).render(<App />);
130}
134}
135136export default async function server(request: Request): Promise<Response> {
137return new Response(
138`
litepickbetmain.tsx5 matches
296/* events */
297298/* run function on win */
299onWin(func) {
300this.winHandlers.push(func);
301}
302303/* run function on loss */
304onLoss(func) {
305this.lossHandlers.push(func);
306}
307308/* run function on every bet */
309onBet(func) {
310this.betHandlers.push(func);
323/* main app */
324325async function loop() {
326var url = "https://cyrilos-litepickbet.web.val.run";
327await axios({
332333/* bet session */
334async function playDice() {
335const PLATFORM = "litepick.io";
336const cookies = await blob.getJSON("cookies");
neverthrowREADME.md2 matches
4import { Failure, Success } from "https://esm.town/v/pomdtr/neverthrow?v=5";
56const demoFunction = () => {
7const result = Math.random();
8if (result > 0.5) {
14};
1516const res = demoFunction();
17if (res.ok) {
18console.log(res.value);
neverthrowmain.tsx2 matches
9}
1011export function Success<T>(value: T): Success<T> {
12return { ok: true, value };
13}
1415export function Failure<E>(error: E): Failure<E> {
16return { ok: false, error };
17}
masterPancakeCheckermain.tsx3 matches
9const STORAGE_KEY = "alamo_showings";
1011async function fetchShowings() {
12const response = await fetch(THEATER_API);
13return await response.json();
14}
1516async function compareAndNotify(newShowings) {
17const oldShowings = await blob.getJSON(STORAGE_KEY).catch(() => ({})) || {};
18const newMovies = newShowings.data.presentations.filter(presentation => !oldShowings[presentation.slug]);
36}
3738export default async function main() {
39const showings = await fetchShowings();
40await compareAndNotify(showings);
AlgoliaRecordSender2main.tsx3 matches
407"chapterTitle": "A Side Ws",
408"chapterNumber": 1,
409"content": "I believe they have the skills necessary to ensure all systems and networks function normally.\" Daedalus spoke up, saying, \"I can do that now.\" \"Transferring.\" With that, a small look of relief washed over the room. Heroes or not, they couldn't allow unrestricted access to an outside group. It wasn't simply a bad idea, it was also illegal. Dragon was a Protectorate member in practice, so they could let her handle things. Celestial Being on the other hand had none of the appropriate certifications to service a federal agency. Arresting Newtype for some federal charge now would be a nightmare, not that Kamil expected the girl to resist. \"I hope this makes the PRT reflect on things,\" Veda warned. \"I've spent most of the morning trying to fix damage inflicted on your networks by your own technicians in misguided attempts to sever my access.\" Seneca glanced around at the other monitors, scowling. \"Our apologies. Some staff must have become overly eager to protect our network security.\" \"I have begun purging all data gained through these accesses,\" Veda revealed. \"It would be improper to retain the information.\" \"We have no way to verify that,\" Banks accused. \"Then you will have to learn to live with it.\" While Seneca sent a silent warning to Banks, Kamil raised his brow. That was oddly assertive for StarGazer. He'd only spoken to her sparingly over the summer but she always seemed the timid one.",
410"startIndex": 693,
411"endIndex": 713,
657];
658659// Function to add records to Algolia
660const addRecords = async () => {
661const url = `https://${ALGOLIA_APP_ID}-dsn.algolia.net/1/indexes/${ALGOLIA_INDEX_NAME}/batch`;
694};
695696// Serve function to handle the request and return the response
697export default async () => {
698return await addRecords();
egoBoostermain.tsx3 matches
10import { marked } from "https://esm.sh/marked";
1112function App() {
13const [compliments, setCompliments] = useState<string>("");
14const [isLoading, setIsLoading] = useState(false);
160}
161162function client() {
163console.log("Client-side rendering started");
164createRoot(document.getElementById("root")!).render(<App />);
171}
172173async function server(request: Request): Promise<Response> {
174console.log("Server received request:", request.method, new URL(request.url).pathname);
175