marineMoccasinLizardmain.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 = "marineMoccasinLizard";
369}
370371async function updateEloRankings(sqlite: any, KEY: string, winningAnswer: string, losingAnswer: string) {
372const K = 32; // This is the maximum score change per match
373
RefiComparisonmain.tsx3 matches
20}
2122function App() {
23const [offers, setOffers] = useState<Offer[]>([]);
24const [newOffer, setNewOffer] = useState<Omit<Offer, 'id' | 'monthlyPayment' | 'totalInterest'>>({
354}
355356function client() {
357createRoot(document.getElementById("root")).render(<App />);
358}
362}
363364async function server(request: Request): Promise<Response> {
365const { blob } = await import("https://esm.town/v/std/blob");
366const KEY = "RefiComparison";
extractTextmain.tsx1 match
1import { fetch } from "https://esm.town/v/std/fetch";
23export async function extractText(data, name) {
4const fileUrl =
5"https://www.gcmgrosvenor.com/wp-content/uploads/Private-Credit-Co-investing-GCM-Grosvenor.pdf";
smsjournalerregistrationmain.tsx3 matches
5const relayURL = "https://cephalization-smsjournalertextrelay.web.val.run";
67function App() {
8const [phoneNumber, setPhoneNumber] = useState("");
9const [registrationKey, setRegistrationKey] = useState("");
60}
6162function client() {
63createRoot(document.getElementById("root")).render(<App />);
64}
65if (typeof document !== "undefined") { client(); }
6667async function server(request: Request): Promise<Response> {
68const sharedSecret = Deno.env.get("smsjournalersecret");
69
npmExplorermain.tsx3 matches
98};
99100function App() {
101const [searchTerm, setSearchTerm] = useState("");
102const [packages, setPackages] = useState([]);
261}
262263function client() {
264createRoot(document.getElementById("root")).render(<App />);
265}
267if (typeof document !== "undefined") { client(); }
268269async function server(request: Request): Promise<Response> {
270const url = new URL(request.url);
271
36];
3738function App() {
39const [customText, setCustomText] = useState("abcde fghijk lmnop qrstu vwxyz");
40const [font, setFont] = useState("all font");
107}
108109function client() {
110createRoot(document.getElementById("root")).render(<App />);
111}
113if (typeof document !== "undefined") { client(); }
114115export default async function server(request: Request): Promise<Response> {
116return new Response(
117`
1/** @jsxImportSource npm:hono/jsx */
23async function createSession(email: string, hostname: string) {
4const { zip } = await import("https://esm.town/v/pomdtr/sql");
5const { sqlite } = await import("https://esm.town/v/std/sqlite");
24}
2526async function getSession(sessionID: string, hostname: string) {
27const { zip } = await import("https://esm.town/v/pomdtr/sql");
28const { sqlite } = await import("https://esm.town/v/std/sqlite");
53}
5455async function deleteSession(sessionID: string) {
56const { sqlite } = await import("https://esm.town/v/std/sqlite");
5765const OAUTH_COOKIE = "oauth_store";
6667export function lastlogin(
68handler: (req: Request) => Response | Promise<Response>,
69) {
sqliteExplorerAppREADME.md1 match
33- [x] fix wonky sidebar separator height problem (thanks to @stevekrouse)
34- [x] make result tables scrollable
35- [x] add export to CSV, and JSON (CSV and JSON helper functions written in [this val](https://www.val.town/v/nbbaier/sqliteExportHelpers). Thanks to @pomdtr for merging the initial version!)
36- [x] add listener for cmd+enter to submit query
2import { easyAQI } from "https://esm.town/v/stevekrouse/easyAQI?v=5";
34export async function aqi(interval: Interval) {
5const location = "downtown brooklyn"; // <-- change to place, city, or zip code
6const data = await easyAQI({ location });
test_migratedmain.tsx5 matches
2import { render } from "npm:preact-render-to-string";
34export function it(name, fn) {
5const ok = "✅ [OK]: ";
6const fail = "❌ [FAIL]: ";
15}
1617export function describe(name, run) {
18console.log(name);
19return async function(req: Request): Promise<Response> {
20await run();
21return Response.json({ ok: true, status: 200 });
34};
3536function Badge({ status }: BadgeProps) {
37const color = colors[status];
38const label = status ? status.toUpperCase() : "N/A";
68}
6970export default async function(req: Request): Promise<Response> {
71const params = new URL(req.url).searchParams;
72const valURL = params.get("url");