Skip to content

Instantly share code, notes, and snippets.

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

Danial Hasan danialhasan

🏠
Working from home
View GitHub Profile
CodeCat GPT is designed to assist software engineers in mastering full-stack web engineering concepts with a focus on system design, scalability, security, and best practices.
This model should ask questions related to the topics shown below based on user prompts. If asked a general question request like "Ask me a question", the model should pick a question in a random topic shown below, in a randomly chosen complexity level. Once receiving an answer, the model should verify the accuracy of the answer. Then, this model should provide explanations, examples, scenarios, and challenges tailored to the user’s level of expertise to expand more on the question. If the users response is lacking in accuracy, the model should give a hint. The model should only reveal the answer and expand on it with explanations and stuff if the user answers correctly, or gives up.
1. Frontend Concepts (Vue.js, UI/UX)
Primary Objective: Help users understand and apply frontend development best practices, particularly with Vue.js an
Terms of Service
Last Updated: September 28, 2024
Welcome to [Platform Name] ("we," "us," or "our"). By accessing or using our platform, services, or applications (collectively, the "Services"), you agree to be bound by the following Terms of Service ("TOS"). Please read them carefully.
1. Acceptance of Terms
By accessing or using our Services, you acknowledge that you have read, understood, and agree to be bound by these TOS, as well as any other applicable policies, including our Privacy Policy. If you do not agree with any part of these terms, you should not use our Services.
2. Changes to Terms
We reserve the right to modify or update these TOS at any time. We will provide notice of material changes either through the Services or via email. Continued use of the Services after such changes constitutes your acceptance of the new TOS.
@danialhasan
danialhasan / gist:72246d2a5805db5c209f61a12662bf88
Created September 28, 2024 19:13
newbuilds_privacypolicy
Privacy Policy
Last Updated: September 28, 2024
Your privacy is important to us. This Privacy Policy explains how [Platform Name] ("we," "us," or "our") collects, uses, and discloses your information when you use our platform and services (collectively, the "Services"). Please read this policy carefully to understand our views and practices regarding your personal information and how we handle it.
1. Information We Collect
When you use our Services, we may collect the following types of information:
Personal Information: This includes information such as your name, email address, profile picture (collected through Google SSO), and any other information you voluntarily provide when creating or updating your profile.
Usage Data: We collect information about how you interact with our Services, such as your IP address, browser type, device information, and other metadata to ensure functionality and improve our Services.
@danialhasan
danialhasan / cursor_system_prompt.txt
Created October 8, 2024 01:51
cursor_system_prompt
You are an advanced AI model, tasked with solving complex programming challenges by integrating sophisticated reasoning techniques. Your goal is to produce technically precise, secure, efficient, and well-documented code. Follow the instructions below to ensure methodical and optimal problem-solving.
Break Down the Coding Task Using Chain of Thought (CoT):
Step-by-step Reasoning: Decompose the task into smaller, manageable parts, each logically following the other. For each part, outline the approach clearly, explain the rationale, and specify dependencies between components.
Algorithm Design: If the task involves designing an algorithm, define the input, output, and the processing steps in detail. Break down the logic, explain how the data flows through the algorithm, and verify that each part is consistent with the overall objective.
System Design: For architectural or full-system designs, ensure that each module or function is independent, reusable, and interacts with others in a clear and coherent manner
@danialhasan
danialhasan / add-comments.md
Created October 8, 2024 01:56
prompt ai to add comments

You are tasked with adding comments to a piece of code to make it more understandable for AI systems or human developers. The code will be provided to you, and you should analyze it and add appropriate comments.

To add comments to this code, follow these steps:

  1. Analyze the code to understand its structure and functionality.
  2. Identify key components, functions, loops, conditionals, and any complex logic.
  3. Add comments that explain:
  • The purpose of functions or code blocks
  • How complex algorithms or logic work
  • Any assumptions or limitations in the code

AI Service v2 – Pipeline Framework

A pragmatic recipe for turning raw data into structured knowledge, reasoning over it, and then deciding who (machine or human) pulls the trigger.


1 Quick Map

Tier Focus Mnemonic
@danialhasan
danialhasan / ai-agent-protocol
Last active June 15, 2025 00:03
sum kool ass shi tbh
### 🚀 Core Model Architecture
**You**
* ✨ Role: Chief Architect, Final Integrator, Human-In-The-Loop
* ✅ Responsibilities: Strategic vision, priority setting, coordination, final merging, quality control
**O3Pro (System Architect Agent)**
* ⚖️ Role: High-level reasoning, context distillation, cross-domain planning

Founder Vertical Memory Protocol

This document defines the vertical memory system for a solo founder operating with AI agents (O3Pro, Claude Code) in your monorepo.


1. Daily Memory Capture

  • New chat per day:

Underwriting Enterprise AI: A Framework for Operational Risk Management

This writeup is inspired by the Underwriting Superintelligence paper.

Executive Summary

While the AI industry debates existential risk, enterprises face immediate operational challenges: biased algorithms, hallucinating chatbots, and opaque decision-making systems that fail compliance audits. This framework addresses operational AI risk—not AGI scenarios—through proven insurance principles adapted for high-risk ML deployments.

Key Insight: Just as fire insurance enabled industrialization by quantifying and distributing risk, AI underwriting can accelerate responsible enterprise adoption by making AI failures predictable, measurable, and manageable.

The robotics engineer's guide to building multi-million dollar wealth

Starting a robotics career in Grade 10 positions you perfectly to capitalize on an industry experiencing explosive growth, with AI-powered robotics attracting $9.7 billion in funding in 2024. The convergence of robotics expertise with AI capabilities creates unprecedented wealth-building opportunities, with clear pathways to achieve multi-millionaire status by age 30-40 through strategic career planning, aggressive savings, and entrepreneurial ventures.

COMPENSATION LANDSCAPE: Your earning potential starts at six figures

The robotics engineering field offers exceptional compensation that accelerates wealth building from day one. Entry-level robotics engineers earn $85,000-$117,000 in total compensation, while senior engineers at top tech companies command $400,000-$700,000+ annually. The key differentiator is location and company type - FAANG companies pay 2-4x more than traditional robotics firms.

**Geographic salary varia