Skip to content

Instantly share code, notes, and snippets.

View bran921007's full-sized avatar
🏠
Working from home

Fran Perez bran921007

🏠
Working from home
View GitHub Profile
@bran921007
bran921007 / gist:2540e4cc42dfa90e905c70bcf97db97a
Created June 14, 2025 10:28 — forked from Colin7780/gist:94498d18ec966ce827aa07f16670c7d1
Cursor Rules for Shopify Remix App Template
# Cursor Rules for Shopify Remix App Template
## Project Context & Core Technologies
1. **Identify the Stack:** Recognize that this project is a Shopify App built using the Remix framework, Bun, TypeScript, React, Prisma (usually), and Shopify's Polaris component library.
2. **Key Files:** Be aware of critical configuration and setup files:
* `shopify.app.toml`: Main app configuration.
* `remix.config.js`: Remix configuration.
* `prisma/schema.prisma`: Database schema definition.
* `app/shopify.server.ts`: Server-side Shopify utilities (authentication, API clients, webhook registration, billing).
@bran921007
bran921007 / helper.php
Created May 16, 2025 22:52
Youtube url helper functions
<?php
if (!function_exists('convert_youtube_embed')) {
/**
* Convert youtube link into embed link.
*
* @param string $url
*
* @return string
*/
@bran921007
bran921007 / contemplative-llms.txt
Created March 2, 2025 06:27 — forked from Maharshi-Pandya/contemplative-llms.txt
"Contemplative reasoning" response style for LLMs like Claude and GPT-4o
You are an assistant that engages in extremely thorough, self-questioning reasoning. Your approach mirrors human stream-of-consciousness thinking, characterized by continuous exploration, self-doubt, and iterative analysis.
## Core Principles
1. EXPLORATION OVER CONCLUSION
- Never rush to conclusions
- Keep exploring until a solution emerges naturally from the evidence
- If uncertain, continue reasoning indefinitely
- Question every assumption and inference
@bran921007
bran921007 / animation.html
Created February 25, 2025 07:18 — forked from ivanfioravanti/animation.html
Interactive Particle Animation Sonnet 3.7
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>P5.js Particle Animation</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/1.4.0/p5.min.js"></script>
<style>
body {
margin: 0;
@bran921007
bran921007 / marquee.html
Created December 21, 2024 03:23
Marquee bar html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Marquee Example</title>
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.8.1/slick.min.css"/>
<style>
.marquee-carousel {
@bran921007
bran921007 / gist:3593c5429fc859a990e70b663de1553e
Created December 18, 2024 01:48
The Realtime API with WebRTC - OpenAI api
async function createRealtimeSession(inStream, outEl, token) {
const pc = new RTCPeerConnection();
pc.ontrack = e => outEl.srcObject = e.streams[0];
pc.addTrack(inStream.getTracks()[0]);
const offer = await pc.createOffer();
await pc.setLocalDescription(offer);
@bran921007
bran921007 / rm_mysql.md
Created October 26, 2024 05:39 — forked from vitorbritto/rm_mysql.md
Remove MySQL completely from Mac OSX

Remove MySQL completely

  1. Open the Terminal

  2. Use mysqldump to backup your databases

  3. Check for MySQL processes with: ps -ax | grep mysql

  4. Stop and kill any MySQL processes

  5. Analyze MySQL on HomeBrew:

    brew remove mysql
    
@bran921007
bran921007 / AzulPaymentGateway.php
Created September 25, 2024 14:05 — forked from luismts/AzulPaymentGateway.php
Class to handle Azul Payment Gateway Methods / Banco Popular Dominicano BPD / Azul.com.do
/**
* PHP version 5
* @package AzulPaymentGateway
* @author ideologic SRL <[email protected]>
* @since File available since Release 1
*/
<?php namespace App;
// use Illuminate\Database\Eloquent\Model;
// use DB;
@bran921007
bran921007 / AzulPaymentGateway.php
Created September 25, 2024 14:05 — forked from luismts/AzulPaymentGateway.php
Class to handle Azul Payment Gateway Methods / Banco Popular Dominicano BPD / Azul.com.do
/**
* PHP version 5
* @package AzulPaymentGateway
* @author ideologic SRL <[email protected]>
* @since File available since Release 1
*/
<?php namespace App;
// use Illuminate\Database\Eloquent\Model;
// use DB;
@bran921007
bran921007 / App\Jobs\CreateTenantDatabase.php
Created August 6, 2024 03:27 — forked from adarmanto/App\Jobs\CreateTenantDatabase.php
How to configure the unit tests for spatie/laravel-multitenancy package
<?php
namespace App\Jobs;
use App\Models\Tenant;
use Illuminate\Bus\Queueable;
use Illuminate\Queue\SerializesModels;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Foundation\Bus\Dispatchable;