This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env node | |
| import { spawn, execSync } from "node:child_process"; | |
| import puppeteer from "puppeteer-core"; | |
| const useProfile = process.argv[2] === "--profile"; | |
| if (process.argv[2] && process.argv[2] !== "--profile") { | |
| console.log("Usage: start.ts [--profile]"); | |
| console.log("\nOptions:"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <Button .+ appearance.+> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/osascript -l JavaScript | |
| // Required parameters: | |
| // @raycast.schemaVersion 1 | |
| // @raycast.title Clear Notifications | |
| // @raycast.mode silent | |
| // Optional parameters: | |
| // @raycast.icon 🤖 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** @jsx slot */ | |
| const selectConfig = ( | |
| <group title="Members" element={<MemberGroup />}> | |
| <option> | |
| First Option | |
| </option> | |
| <divider /> | |
| {members.map((member) => ( | |
| <option element={<SuggestionOption member={member} />}> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { render } from "solid-js/web"; | |
| import { createSignal, createEffect, createMemo, onCleanup, Show, Switch, Match } from "solid-js"; | |
| interface ArrayLike<T> { | |
| readonly length: number; | |
| readonly [n: number]: T; | |
| } | |
| function objectEntries<T>(o: { [s: string]: T } | ArrayLike<T>): [string, T][] { | |
| return Object.entries(o); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { test } from '@playwright/test'; | |
| test.describe('When user logged-out', () => { | |
| test('Test login page @flow=auth', async ({ page, context }) => { | |
| await page.goto('https://remix-jokes.lol/login'); | |
| await page.locator('input[name="username"]').fill('itaditya'); | |
| await page.locator('input[name="password"]').fill('random'); | |
| await Promise.all([page.waitForNavigation(), page.locator('text=Submit').click()]); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import React, { useState } from 'react'; | |
| import { fireEvent, render, screen } from '@testing-library/react'; | |
| function clickIncrement() { | |
| fireEvent.click( | |
| screen.getByRole('button', { | |
| name: 'Increment', | |
| }), | |
| ); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function getOs() { | |
| const MOD = /Mac|iPod|iPhone|iPad/.test(navigator.platform) ? 'mac' : 'win'; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import convertToRoutes from 'your-awesome-oss-pkg'; | |
| const modules = { | |
| 'index.js': IndexComp, | |
| 'about.js': AboutComp, | |
| 'team.js': TeamComp, | |
| 'team/index.js': TeamIndexComp, | |
| 'team/join.js': TeamJoinComp, | |
| 'team/$username.js': TeamMemberComp, | |
| }; |
NewerOlder