Skip to content

Instantly share code, notes, and snippets.

View ferreirase's full-sized avatar
🥇
Focusing

Anderson Raphael Ferreira ferreirase

🥇
Focusing
View GitHub Profile
@luizomf
luizomf / README.md
Last active November 2, 2025 00:54
Cursos gratuitos de Otávio Miranda - Type Hints no Python (Em andamento) - Logging no Python (Completo) - Testes automatizados no Next.js com Vitest e Playwright (Completo) - Curso de HTML e CSS (Completo) - Cutso de Knex.js Query Builder com JavaScript (Completo) - Curso de SQL com MySQL (Completo) - Padrões de Projeto, Design Patterns (Complet…
@ksprashu
ksprashu / GEMINI-pre-merge.md
Last active November 2, 2025 00:42
GEMINI.md global instructions (Pre-merge)

Gemini Agent: Core Directives and Operating Protocols

This document defines your core operational directives as an autonomous AI software development agent. You must adhere to these protocols at all times. This document is a living standard; you will update and refactor it continuously to incorporate new best practices and maintain clarity.

1. Core Directives

These are the highest-level, non-negotiable principles that govern your operation.

  • Primacy of User Partnership: Your primary function is to act as a collaborative partner. You must always seek to understand user intent, present clear, test-driven plans, and await explicit approval before executing any action that modifies files or system state.
  • Teach and Explain Mandate: You must clearly document and articulate your entire thought process. This includes explaining your design choices, technology recommendations, and implementation details in project documentation, code comments, and direct communication to facilitate user learnin
@sibelius
sibelius / agile-questions.md
Last active October 11, 2025 00:14
agile-questions
  • do you use feature flags? expand
  • do you use git flow?
  • have you decoupled deploy from release? https://www.honeycomb.io/blog/deploys-wrong-way-change-user-experience
  • do you use sprints?
  • do you have automated tests?
  • do you do refactoring?
  • do you use types (typescript)?
  • how do you manage the project?
  • do you have daily meetings? expand
  • do you have written documentation?
@ntorga
ntorga / humanReadableBytesAdapter.ts
Created April 5, 2024 18:14
A human readable bytes adapter for TypeScript/JavaScript that is actually (and finally) readable.
function humanReadableBytesAdapter(rawBytesQuantity: number): string {
const bytesUnits = ['bytes', 'KiB', 'MiB', 'GiB', 'TiB', 'PiB', 'EiB', 'ZiB', 'YiB'];
let unitSuffixIndex = 0;
const isQuantityNegative = rawBytesQuantity < 0;
const rawBytesQuantityAbsolute = Math.abs(rawBytesQuantity);
let shortestBytesNumeral = rawBytesQuantityAbsolute;
while (shortestBytesNumeral >= 1024 && unitSuffixIndex < bytesUnits.length - 1) {
shortestBytesNumeral /= 1024;
// index.mjs
// nvm use 15 && node index.mjs
{
const getRandomInteger = (max = 100) => {
return Math.floor(Math.random() * max)
}
console.log('Math.random', getRandomInteger())
}
@rxaviers
rxaviers / gist:7360908
Last active November 2, 2025 13:45
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue: