Skip to content

Instantly share code, notes, and snippets.

View atuanpham's full-sized avatar

Tuan Pham atuanpham

View GitHub Profile

CLAUDE.md - Universal Development Principles

This document contains universal development principles and practices for AI assistants working on any project. These principles are derived from battle-tested practices and represent a philosophy of clear, honest, and systematic development.

Required Tools and Research Methods

1. Mandatory MCP Tool Usage

BEFORE ANY ACTION, you MUST use these tools. Tool names use double underscores between segments.

@transitive-bullshit
transitive-bullshit / claude-code-prompts.js
Last active January 9, 2026 15:09
Unminified prompts and tool definitions for Claude Code
// Claude Code is a Beta product per Anthropic's Commercial Terms of Service.
// By using Claude Code, you agree that all code acceptance or rejection decisions you make,
// and the associated conversations in context, constitute Feedback under Anthropic's Commercial Terms,
// and may be used to improve Anthropic's products, including training models.
// You are responsible for reviewing any code suggestions before use.
// (c) Anthropic PBC. All rights reserved. Use is subject to Anthropic's Commercial Terms of Service (https://www.anthropic.com/legal/commercial-terms).
// Version: 0.2.9
@MawKKe
MawKKe / nanobind-notes.md
Last active January 10, 2026 07:41
My notes and observations about python nanobind + scikit-build-core usage

My notes and observations about python nanobind + scikit-build-core usage

nanobind is a tool and a library for implementing native C/C++ extensions for python. You can implement such extensions in many ways, but nanobind makes life a bit more easier, especially if you write C++ and use CMake to build your native code.

nanobind recommends using the scikit-build-core as the build backend; it handles the heavy lifting of building stuff through CMake during python package build process. It even supports using Ninja. And as a cherry on top, it is able to download CMake and Ninja from pypi if they are not available locally.

@GhostofGoes
GhostofGoes / pyproject.toml
Last active January 5, 2026 08:03
Example pyproject.toml
# This example pyproject.toml is for a basic pip+setuptools setup.
# If you use a project management tool (like Poetry), then
# those tools will have slightly different configurations or additions.
# I highly recommend using a project management tool for your project.
# Project management is a highly opinionated subject.
# There are a lot of good, robust tools in this space now (as of 2023)
# Two that I've used and recommend are Poetry and PDM.
# Poetry is more mature, PDM is recent, both work well.
# - Poetry: https://python-poetry.org/
@devinschumacher
devinschumacher / cloud-gpus.md
Last active January 8, 2026 12:14
Cloud GPU Hosting // The Best Servers, Services & Providers [RANKED!]
title tags
The Best Cloud GPU Providers for Artificial Intelligence & Machine Learning
cloud gpu providers
cloud gpu
artificial intelligence

Cloud GPUs: Servers, Providers & Everything You Would Ever Need

#################################################################
# _` #
# _ooOoo_ #
# o8888888o #
# 88" . "88 #
# (| -_- |) #
# O\ = /O #
# ____/`---'\____ #
# .' \\| |// `. #
# / \\||| : |||// \ #
@TomyJaya
TomyJaya / spring-data-rest-notes.md
Last active August 13, 2025 22:52
Spring Data REST - Useful notes

How To change baseUri:

in application.properties add:

spring.data.rest.basePath=/api
  • or -

in application.yml add:

@matthiasg
matthiasg / gist:2b8748cfdf919ce77c3fd0438613cee6
Created April 12, 2016 21:11 — forked from robinloxley1/gist:7ea7c4f37a3413b1ca16
sample elasticsearch query to sort parent based on child field
{
"query":{
"has_child":{
"query":{
"function_score":{
"functions":[
{
"field_value_factor":{
"factor":1,
"field":"count"
@idelsink
idelsink / .clang-format
Last active January 10, 2026 12:11
Clang format file.
# clang-format
# Made by: Ingmar Delsink
# https://ingmar.dels.ink
# See http://clang.llvm.org/docs/ClangFormatStyleOptions.html
# Tested with: clang-format version 3.7.1
# General
#########
# The style used for all options not specifically set in the configuration.
@geshan
geshan / scope-and-steps-outlines.md
Last active January 5, 2021 23:38
user system ticket

Scope and steps for user system ticket - PX-4

Proposed steps to develop the ticket:

  1. Add new table to the main db users table, with needed columns (id, email, password, first_name, last_name, restore_key, created_at, updated_at)
  2. Add a migration for the columns mentioned above
  3. Tests the migration on local and also record the time it takes to run locally.
  4. Add form to create new user and make persist it in the db table. Password will be encrypted using SHA512.
  5. Do basic validation like required
  6. Enhance validation to accept only email in email field, accept only alphabets (not numbers) for first name and last name.