dependentHarlequinTigermain.tsx6 matches
1import puppeteer from "https://deno.land/x/puppeteer@16.2.0/mod.ts";
23async function scrapeForumThread(url) {
4try {
5const browser = await puppeteer.connect({
14// Reveal hidden content and load tabs
15await page.evaluate(() => {
16// Threadmark Revealer function
17async function clickThreadmarkButtons() {
18let clickedButtons = new Set();
19let totalClicked = 0;
59}
6061// Tab Loader function
62function clickTabsAndLoadContent() {
63console.log("Starting to click tabs...");
6485}
8687// Run both functions
88return Promise.all([clickThreadmarkButtons(), clickTabsAndLoadContent()]);
89});
growingFuchsiaFleamain.tsx2 matches
2"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAApgAAAKYB3X3/OAAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAANCSURBVEiJtZZPbBtFFMZ/M7ubXdtdb1xSFyeilBapySVU8h8OoFaooFSqiihIVIpQBKci6KEg9Q6H9kovIHoCIVQJJCKE1ENFjnAgcaSGC6rEnxBwA04Tx43t2FnvDAfjkNibxgHxnWb2e/u992bee7tCa00YFsffekFY+nUzFtjW0LrvjRXrCDIAaPLlW0nHL0SsZtVoaF98mLrx3pdhOqLtYPHChahZcYYO7KvPFxvRl5XPp1sN3adWiD1ZAqD6XYK1b/dvE5IWryTt2udLFedwc1+9kLp+vbbpoDh+6TklxBeAi9TL0taeWpdmZzQDry0AcO+jQ12RyohqqoYoo8RDwJrU+qXkjWtfi8Xxt58BdQuwQs9qC/afLwCw8tnQbqYAPsgxE1S6F3EAIXux2oQFKm0ihMsOF71dHYx+f3NND68ghCu1YIoePPQN1pGRABkJ6Bus96CutRZMydTl+TvuiRW1m3n0eDl0vRPcEysqdXn+jsQPsrHMquGeXEaY4Yk4wxWcY5V/9scqOMOVUFthatyTy8QyqwZ+kDURKoMWxNKr2EeqVKcTNOajqKoBgOE28U4tdQl5p5bwCw7BWquaZSzAPlwjlithJtp3pTImSqQRrb2Z8PHGigD4RZuNX6JYj6wj7O4TFLbCO/Mn/m8R+h6rYSUb3ekokRY6f/YukArN979jcW+V/S8g0eT/N3VN3kTqWbQ428m9/8k0P/1aIhF36PccEl6EhOcAUCrXKZXXWS3XKd2vc/TRBG9O5ELC17MmWubD2nKhUKZa26Ba2+D3P+4/MNCFwg59oWVeYhkzgN/JDR8deKBoD7Y+ljEjGZ0sosXVTvbc6RHirr2reNy1OXd6pJsQ+gqjk8VWFYmHrwBzW/n+uMPFiRwHB2I7ih8ciHFxIkd/3Omk5tCDV1t+2nNu5sxxpDFNx+huNhVT3/zMDz8usXC3ddaHBj1GHj/As08fwTS7Kt1HBTmyN29vdwAw+/wbwLVOJ3uAD1wi/dUH7Qei66PfyuRj4Ik9is+hglfbkbfR3cnZm7chlUWLdwmprtCohX4HUtlOcQjLYCu+fzGJH2QRKvP3UNz8bWk1qMxjGTOMThZ3kvgLI5AzFfo379UAAAAASUVORK5CYII=";
34function base64ToUint8Array(base64: string): Uint8Array {
5const binaryString = atob(base64.split(",")[1]);
6const len = binaryString.length;
12}
1314export default async function(req: Request): Promise<Response> {
15const imageData = base64ToUint8Array(image);
16return new Response(imageData, {
Badge_Generatormain.tsx3 matches
4import { renderToString } from "https://esm.sh/react-dom/server";
56function Badge({ username, title }) {
7return (
8<div style={{ display: "inline-block", fontFamily: "Inter, sans-serif" }}>
38}
3940function App() {
41const [username, setUsername] = React.useState("");
42const [title, setTitle] = React.useState("");
128}
129130export default async function server(request: Request): Promise<Response> {
131return new Response(
132`
Whatsapp_Sendmain.tsx3 matches
3import { createRoot } from "https://esm.sh/react-dom/client";
45function App() {
6const [title, setTitle] = useState("");
7const [embedCode, setEmbedCode] = useState("");
60}
6162function client() {
63createRoot(document.getElementById("root")).render(<App />);
64}
68}
6970export default async function server(request: Request): Promise<Response> {
71return new Response(
72`
freesoundSearchmain.tsx2 matches
25* Get the nth sound for a search string.
26*/
27async function search(query: string, nth: number = 0): Promise<Sound> {
28const queryString = qs.stringify({
29query: query,
44}
4546export default async function(req: Request): Promise<Response> {
47const { pathname, searchParams } = new URL(req.url);
48let index = parseInt(searchParams.get("i"));
7const cacheKey = location => "easyAQI_locationID_cache_" + encodeURIComponent(location);
89export async function easyAQI({ location }: {
10location: string;
11}) {
iframeGridInfinitemain.tsx7 matches
8import { createRoot } from "https://esm.sh/react-dom/client";
910function Modal({ onClose }) {
11return (
12<div style={{
28}
2930function IframeCell({ cellKey, url, onUrlSubmit, isLoading }) {
31const [inputUrl, setInputUrl] = useState(url || '');
3259}
6061function App() {
62const [position, setPosition] = useState({ x: 0, y: 0 });
63const [isDragging, setIsDragging] = useState(false);
206}
207208function client() {
209createRoot(document.getElementById("root")).render(<App />);
210}
212if (typeof document !== "undefined") { client(); }
213214async function handleSubmitUrl(request: Request): Promise<Response> {
215const { cellKey, url } = await request.json();
216const { sqlite } = await import("https://esm.town/v/stevekrouse/sqlite");
236}
237238async function handleLoadUrls(): Promise<Response> {
239const { sqlite } = await import("https://esm.town/v/stevekrouse/sqlite");
240const KEY = "iframeGridInfinite";
255}
256257async function server(request: Request): Promise<Response> {
258if (request.method === 'POST' && new URL(request.url).pathname === '/api/submit-url') {
259return handleSubmitUrl(request);
drumMachinemain.tsx8 matches
9const searchUrl = "https://sedson-freesoundsearch.web.val.run";
1011function WaveformPreview({ buffer, start, end }) {
12const canvasRef = useRef(null);
1356}
5758function trimAudioBuffer(originalBuffer, maxDurationInSeconds = 1) {
59const sampleRate = originalBuffer.sampleRate;
60const numberOfChannels = originalBuffer.numberOfChannels;
78}
7980function ControlRow({ track, onVolumeChange, onSpeedChange, onStartChange, onEndChange, onSearchChange }) {
81return (
82<div className="control-row">
152}
153154function MelodySequencer({ melodySequence, setMelodySequence, currentStep }) {
155const noteNames = ['C', 'D', 'E', 'F', 'G', 'A', 'B', 'C'];
156182}
183184function BeatSequencer({ beatSequence, setBeatSequence, currentStep }) {
185const patternNames = ['Kick', 'Snare', 'Hi-hat', 'Clap'];
186212}
213214function App() {
215const [sequence, setSequence] = useState(Array(TRACKS).fill().map(() => Array(STEPS).fill(false)));
216const [melodySequence, setMelodySequence] = useState(Array(STEPS).fill(null));
459}
460461function client() {
462createRoot(document.getElementById("root")).render(<App />);
463}
465if (typeof document !== "undefined") { client(); }
466467async function server(request: Request): Promise<Response> {
468return new Response(
469`
1function applyPDFStyles() {
2const style = document.createElement("style");
3style.textContent = `
77}
7879export function saveAsPDF() {
80const saveButton = document.getElementById("saveAsPDFButton");
81if (saveButton) {
RobotBackupCallGraphmain.tsx15 matches
2import { thisWebURL } from "https://esm.town/v/stevekrouse/thisWebURL?v=2";
34export default async function server(req: Request): Promise<Response> {
5// Handle GET requests
6if (req.method === "GET") {
288layout: {
289name: 'preset',
290positions: function(node) {
291return { x: 0, y: 0 }; // Initial positions, will be overwritten
292}
297});
298299// Custom layout function
300function customLayout() {
301const mainGraph = cy.elements().not('#isolated, #isolated > node');
302const isolatedGraph = cy.getElementById('isolated');
349350// Add event listeners for highlighting
351cy.on('mouseover', 'node', function(e) {
352const node = e.target;
353highlightNodeChildrenAndParents(node);
354});
355356cy.on('mouseout', 'node', function(e) {
357unhighlightAll();
358});
359360cy.on('click', 'node', function(e) {
361const node = e.target;
362if (node.hasClass('highlighted') || node.hasClass('parent-highlighted')) {
368});
369370function highlightNodeChildrenAndParents(node) {
371const children = node.outgoers();
372const parents = node.incomers();
376}
377378function unhighlightAll() {
379cy.elements().removeClass('highlighted');
380cy.elements().removeClass('parent-highlighted');
529let match;
530while ((match = callRegex.exec(line)) !== null) {
531const calledFunction = match[1].toLowerCase();
532relationships.get(caller).add(calledFunction);
533allNodes.add(calledFunction);
534}
535});
545546const edges = [];
547relationships.forEach((calledFunctions, file) => {
548calledFunctions.forEach(calledFunction => {
549edges.push({
550data: {
551source: file,
552target: calledFunction,
553},
554});