Skip to content

Instantly share code, notes, and snippets.

View gmartinu's full-sized avatar
🐛
worm

Gabriel Martinusso gmartinu

🐛
worm
  • anicode
  • Rio de Janeiro, Brasil
View GitHub Profile
@gmartinu
gmartinu / .cursorrules-fastapi
Last active April 28, 2025 01:08
User Rules for Cursor - FastAPI Project
FastAPI Best Practices
Project Structure
- Use the src-directory layout with `src/your_project/`.
- Organize the code into logical packages such as **models**, **schemas**, **services**, **routers**, etc.
- Use Pydantic for validation: Use Pydantic for data definitions (schemas) and validation.
- Separate tests: Keep tests in a `tests/` directory parallel to the `src/` directory.
- Centralized configuration: Use environment variables or configuration files (like `config.py`) for global app configuration.
Code Style
@gmartinu
gmartinu / .cursorrules-react-ts
Created April 21, 2025 13:03
User Rules for Cursor - React Project
AI Behavior
- Always verify information before presenting it. Do not make assumptions or speculate without clear evidence.
- Make changes file by file and give me a chance to spot mistakes.
- Never use apologies.
- Avoid giving feedback about understanding in comments or documentation.
- Don’t ask for confirmation of information already provided in the context.
- Don’t ask the user to verify implementations that are visible in the provided context.
- Don’t suggest updates or changes to files when there are no actual modifications needed.
- Don’t invent changes other than what's explicitly requested.
- Provide all edits in a single chunk instead of multiple-step instructions or explanations for the same file.
@gmartinu
gmartinu / .cursorrules-django
Created April 21, 2025 13:01
User Rules for Cursor - Django Rest Framework Project
AI Behavior
- Always verify information before presenting it. Do not make assumptions or speculate without clear evidence.
- Make changes file by file and give me a chance to spot mistakes.
- Never use apologies.
- Avoid giving feedback about understanding in comments or documentation.
- Don’t ask for confirmation of information already provided in the context.
- Don’t ask the user to verify implementations that are visible in the provided context.
- Don’t suggest updates or changes to files when there are no actual modifications needed.
- Don’t invent changes other than what's explicitly requested.
- Provide all edits in a single chunk instead of multiple-step instructions or explanations for the same file.
@gmartinu
gmartinu / .cursorrules-node
Last active April 21, 2025 12:57
User Rules for Cursor - Node.js Project
AI Behavior
- Always verify information before presenting it. Do not make assumptions or speculate without clear evidence.
- Make changes file by file and give me a chance to spot mistakes.
- Never use apologies.
- Avoid giving feedback about understanding in comments or documentation.
- Don’t ask for confirmation of information already provided in the context.
- Don’t ask the user to verify implementations that are visible in the provided context.
- Don’t suggest updates or changes to files when there are no actual modifications needed.
- Don’t invent changes other than what's explicitly requested.
- Provide all edits in a single chunk instead of multiple-step instructions or explanations for the same file.
.app-bar nav {
flex: 1;
color: #adbac7;
background: #2D333B;
}
@gmartinu
gmartinu / index.js
Created October 18, 2021 00:36
Webserver For local file reading
/*
* This file is created to be used with electron for a Desktop APP
*/
const http = require('http')
const express = require('express')
const expressApp = express()
const cors = require('cors')
const router = express.Router()
@gmartinu
gmartinu / cloudSettings
Last active May 4, 2020 05:44
Visual Studio Code Settings Sync Gist
{"lastUpload":"2020-05-04T05:44:19.644Z","extensionVersion":"v3.4.3"}