Skip to content

Instantly share code, notes, and snippets.

View jordangarcia's full-sized avatar

Jordan Garcia jordangarcia

View GitHub Profile
@jordangarcia
jordangarcia / install.sh
Created July 24, 2025 06:41
Gamma Color Picker Raycast Extension Installer
#!/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..."

Gamma API Test Results

Test Summary

  • Total Tests: 10
  • Successful: 10 ✅
  • Failed: 0 ❌
  • Date: 2025-01-21

Gamma API Test Results

Test Summary

  • Total Tests: 10
  • Successful: 10 ✅
  • Failed: 0 ❌
  • Date: 2025-01-21

{
"type": "doc",
"content": [
{
"type": "document",
"attrs": {
"aiOptions": { "imageOptions": {} },
"docId": null,
"background": { "type": "none" },
"docFlags": {},
<!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;
[
[
1,
1,
1,
1,
1,
1,
1,
1,
{
"type": "doc",
"content": [
{
"type": "document",
"attrs": {
"aiOptions": {
"preserveLayouts": false,
"imageOptions": {
"stylePreset": "Custom",
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)[] = [];
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)[] = [];
// 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>,