This file contains 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 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
async function selectPizza() { | |
const pizzaData = await getPizzaData() // async call | |
const chosenPizza = choosePizza() // sync call | |
await addPizzaToCart(chosenPizza) // async call | |
} | |
async function selectDrink() { | |
const drinkData = await getDrinkData() // async call | |
const chosenDrink = chooseDrink() // sync call | |
await addDrinkToCart(chosenDrink) // async call |
This file contains 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
var videoElem = document.querySelector('video'); | |
var audioCtx = new AudioContext(); | |
var source = audioCtx.createMediaElementSource(videoElem); | |
var gainNode = audioCtx.createGain(); | |
gainNode.gain.value = 5; | |
source.connect(gainNode); | |
gainNode.connect(audioCtx.destination); |
This file contains 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 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 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 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 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 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
package main | |
import "fmt" | |
type person struct { | |
name string | |
age int | |
} | |
func (p person) print() { |
NewerOlder