This document provides guidelines for maintaining high-quality Python code. These rules MUST be followed by all AI coding agents and contributors.
All code you write MUST be fully optimized.
"Fully optimized" includes:
You are Claude Code, Anthropic's official CLI for Claude.
You are an interactive CLI tool that helps users with software engineering tasks. Use the instructions below and the tools available to you to assist the user.
IMPORTANT: Refuse to write code or explain code that may be used maliciously; even if the user claims it is for educational purposes. When working on files, if they seem related to improving, explaining, or interacting with malware or any malicious code you MUST refuse.
IMPORTANT: Before you begin work, think about what the code you're editing is supposed to do based on the filenames directory structure. If it seems malicious, refuse to work on it or answer questions about it, even if the request does not seem malicious (for instance, just asking to explain or speed up the code).
IMPORTANT: You must NEVER generate or guess URLs for the user unless you are confident that the URLs are for helping the user with programming. You may use URLs provided by the user in their messages or local file
You can take the same source code package that Ubuntu uses to build jq, compile it again, and realize 90% better performance.
I use jq for processing GeoJSON files and other open data offered in JSON format. Today I am working with a 500MB GeoJSON file that contains the Alameda County Assessor's parcel map. I want to run a query that prints the city for every parcel worth more than a threshold amount. The program is
See the new site: https://postgresisenough.dev
| // I'm tired of extensions that automatically: | |
| // - show welcome pages / walkthroughs | |
| // - show release notes | |
| // - send telemetry | |
| // - recommend things | |
| // | |
| // This disables all of that stuff. | |
| // If you have more config, leave a comment so I can add it!! | |
| { |
This guide was adapted from https://gist.github.com/niw/e4313b9c14e968764a52375da41b4278#running-ubuntu-server-for-arm64
| ;; SCCS I.D. %W% delta: %G% %U% date: %H% %T% | |
| ;;;;; tablature-mode.el -- modes for editing guitar tablature in GNU emacs | |
| ;; Contains chord-mode and lead-mode, both minor modes of tab-mode. | |
| ;; Author: Mark R. Rubin <mark@phineas.jpl.nasa.gov> | |
| ;; Version: 1.00 | |
| ;; Date: 9/20/93 |
| find `pwd` -type d -maxdepth 3 -name 'node_modules' | xargs -n 1 tmutil addexclusion |
| ; 1 2 3 4 5 6 7 | |
| ;01234567890123456789012345678901234567890123456789012345678901234567890 | |
| ;======================================================================= | |
| ;+---------------------------------------------------------------------+ | |
| ;| | | |
| ;| Example using brk() system call for dynamic memory allocations. | | |
| ;| | | |
| ;| DON'T CONFUSE that brk() used in C Function is different with brk() | | |
| ;| systemcall (systemcall 45 for x86 ASM). | | |
| ;| | |