Skip to content

Instantly share code, notes, and snippets.

View jongan69's full-sized avatar
🎯
WEB3D

Jongan69 jongan69

🎯
WEB3D
View GitHub Profile
{
"version": "0.1.0",
"name": "pump",
"instructions": [
{
"name": "initialize",
"docs": [
"Creates the global state."
],
"accounts": [
@jongan69
jongan69 / .env
Last active October 30, 2024 01:07
Lockin Bot??? RSI??? someone plz shoot me
OX_API_KEY=
OX_API_SECRET=
@t3dotgg
t3dotgg / try-catch.ts
Last active December 25, 2025 02:05
Theo's preferred way of handling try/catch in TypeScript
// Types for the result object with discriminated union
type Success<T> = {
data: T;
error: null;
};
type Failure<E> = {
data: null;
error: E;
};
@devnamipress
devnamipress / expo-rules.md
Last active September 2, 2025 04:03
cursor-rules-expo-react-native

Cursor Rules for Expo and React Native Projects

This document outlines the standardized rules and guidelines for developing mobile applications using Expo and React Native. These rules are designed to ensure consistency, maintainability, performance, accessibility, and error-free development across all projects. They apply to all Expo-based React Native apps and are crafted to minimize troubleshooting efforts and enforce best practices.

Cursor Adherence

  • Mandatory Compliance: Cursor must read and strictly follow all rules in this document for every Expo and React Native project.
  • Self-Check: Before generating code or modifying a project, Cursor must verify that its actions align with these guidelines.
  • Error Prevention: If Cursor detects a potential violation of these rules (e.g., creating a new project inside an existing one), it must halt and prompt the user for clarification instead of proceeding.
  • Documentation Reference: Cursor must reference this document (cursor-rules.md) w
@jongan69
jongan69 / cleanup.sh
Created July 25, 2025 19:50
clean up on mac
#!/bin/bash
echo "🔧 Starting Mac dev cleanup..."
# 1. Clear User & System Cache
echo "🧹 Clearing system and user caches..."
sudo rm -rf ~/Library/Caches/* /Library/Caches/*
# 2. Xcode Derived Data
echo "🧹 Removing Xcode Derived Data..."