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:
| #!/bin/bash | |
| # | |
| # Mobile Claude - One-command setup for running Claude Code remotely | |
| # Supports: Arch, Ubuntu/Debian, Fedora, macOS | |
| # | |
| # Usage: curl -fsSL https://gist.github.com/thomasht86/86f0f8f62db1839054abd8a7e501ff7d/raw/935bbfa0957cd5926751742189441cf10fbe2ba0/setup.sh | bash | |
| # | |
| set -e |
George Polya (1887-1985) was a Hungarian mathematician and educator who revolutionized our understanding of problem-solving and teaching. While he made significant contributions to mathematics, his most enduring legacy is his insights into how people learn and solve problems. His 1945 book "How to Solve It" has influenced educators across numerous fields, extending far beyond mathematics.
Polya's approach centered on three key principles. First, he championed active learning, believing students learn best by discovering solutions themselves rather than being told answers. Second, he emphasized heuristic thinking - the art of guided discovery and learning from experience, viewing problem-solving as a skill that can be developed through practice. Third, he developed sophisticated questionin
| # First let's update all the packages to the latest ones with the following command | |
| sudo apt update -qq | |
| # Now we want to install some prerequisite packages which will let us use HTTPS over apt | |
| sudo apt install apt-transport-https ca-certificates curl software-properties-common -qq | |
| # After that we will add the GPG key for the official Docker repository to the system | |
| curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - | |
| # We will add the Docker repository to our APT sources |
| from org.apache.nifi.processors.script import ExecuteScript | |
| from org.apache.nifi.processor.io import InputStreamCallback | |
| from java.io import BufferedReader, InputStreamReader | |
| class ReadFirstLine(InputStreamCallback) : | |
| __line = None; | |
| def __init__(self) : | |
| pass |
tree-sitter. This will be enabled by default quite soon now. It is theoretically faster and more powerful than regex based grammars (the one described in this guide), but requires a steeper learning curve. My understanding is that regex based grammars will still be supported however (at least until version 2), so this guide can still be useful.
To enable it yourself, go to Settings -> Core and check Use Tree Sitter ParsersLinks for tree-sitter help:
tree-sitter: the main repotree-sitter-cli: converts a JavaScript grammar to the required C/C++ filesnode-tree-sitter: module to use Tree-sitter parsers in NodeJS