Skip to content

Instantly share code, notes, and snippets.

View jordangarcia's full-sized avatar

Jordan Garcia jordangarcia

View GitHub Profile
STREAM_DATA = [
'data: {"id":1,"object":"chat.completion.chunk","created":1693961826,"model":"gpt-35-turbo","choices":[{"index":0,"delta":{"role":"assistant","content":""},"finish_reason":null}]}\n\n',
'data: {"id":2,"object":"chat.completion.chunk","created":1693961826,"model":"gpt-35-turbo","choices":[{"index":0,"delta":{"content":"<section"},"finish_reason":null}]}\n\n',
'data: {"id":3,"object":"chat.completion.chunk","created":1693961826,"model":"gpt-35-turbo","choices":[{"index":0,"delta":{"content":">\\n"},"finish_reason":null}]}\n\n',
'data: {"id":4,"object":"chat.completion.chunk","created":1693961826,"model":"gpt-35-turbo","choices":[{"index":0,"delta":{"content":"<h"},"finish_reason":null}]}\n\n',
'data: {"id":5,"object":"chat.completion.chunk","created":1693961826,"model":"gpt-35-turbo","choices":[{"index":0,"delta":{"content":"1"},"finish_reason":null}]}\n\n',
'data: {"id":6,"object":"chat.completion.chunk","created":1693961826,"model":"gpt-35-turbo","choices":[{"index":0,"
@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)[] = [];