- Total Tests: 10
- Successful: 10 ✅
- Failed: 0 ❌
- Date: 2025-01-21
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
#!/bin/bash | |
set -e | |
GIST_URL="https://gist.githubusercontent.com/USER/GIST_ID/raw/gamma-color-picker.tar.gz" | |
RAYCAST_EXTENSIONS_DIR="$HOME/.config/raycast/extensions" | |
TEMP_DIR=$(mktemp -d) | |
EXTENSION_NAME="gamma-color-picker" | |
echo "Installing Gamma Color Picker extension..." |
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
{ | |
"type": "doc", | |
"content": [ | |
{ | |
"type": "document", | |
"attrs": { | |
"aiOptions": { "imageOptions": {} }, | |
"docId": null, | |
"background": { "type": "none" }, | |
"docFlags": {}, |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>80x80 Pixel Weight Physics Simulation</title> | |
<style> | |
body { | |
margin: 0; | |
padding: 20px; |
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
[ | |
[ | |
1, | |
1, | |
1, | |
1, | |
1, | |
1, | |
1, | |
1, |
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
{ | |
"type": "doc", | |
"content": [ | |
{ | |
"type": "document", | |
"attrs": { | |
"aiOptions": { | |
"preserveLayouts": false, | |
"imageOptions": { | |
"stylePreset": "Custom", |
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
class CustomPromise<R> { | |
private status: 'awaiting' | 'resolved' | 'rejected' = 'awaiting'; | |
private resolvedValue: R | undefined = undefined; | |
private rejectedReason: unknown = undefined; | |
private successFns: ((val: R) => void)[] = []; | |
private rejectFns: ((reason: unknown) => void)[] = []; |
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
class CustomPromise<R, R2 = unknown> { | |
public status: 'awaiting' | 'resolved' | 'rejected' = 'awaiting'; | |
public resolvedValue: R | undefined = undefined; | |
public rejectedReason: R2 | undefined = undefined; | |
private successFns: ((val: R) => void)[] = []; | |
private rejectFns: ((reason: R2) => void)[] = []; |
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
// Type for a value that might be a Promise | |
type MaybePromise<T> = T | Promise<T>; | |
// Async pipe with proper type inference for up to 10 functions | |
function asyncPipe<A, B>( | |
ab: (a: A) => MaybePromise<B> | |
): (a: A) => Promise<B>; | |
function asyncPipe<A, B, C>( | |
ab: (a: A) => MaybePromise<B>, |
NewerOlder