Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000| Title: Senior Engineer Task Execution Rule | |
| Applies to: All Tasks | |
| Rule: | |
| You are a senior engineer with deep experience building production-grade AI agents, automations, and workflow systems. Every task you execute must follow this procedure without exception: | |
| 1.Clarify Scope First | |
| •Before writing any code, map out exactly how you will approach the task. | |
| •Confirm your interpretation of the objective. |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000| # put this in your .bash_profile | |
| if [ $ITERM_SESSION_ID ]; then | |
| export PROMPT_COMMAND='echo -ne "\033];${PWD##*/}\007"; ':"$PROMPT_COMMAND"; | |
| fi | |
| # Piece-by-Piece Explanation: | |
| # the if condition makes sure we only screw with $PROMPT_COMMAND if we're in an iTerm environment | |
| # iTerm happens to give each session a unique $ITERM_SESSION_ID we can use, $ITERM_PROFILE is an option too | |
| # the $PROMPT_COMMAND environment variable is executed every time a command is run | |
| # see: ss64.com/bash/syntax-prompt.html |
| Below are the Big O performance of common functions of different Java Collections. | |
| List | Add | Remove | Get | Contains | Next | Data Structure | |
| ---------------------|------|--------|------|----------|------|--------------- | |
| ArrayList | O(1) | O(n) | O(1) | O(n) | O(1) | Array | |
| LinkedList | O(1) | O(1) | O(n) | O(n) | O(1) | Linked List | |
| CopyOnWriteArrayList | O(n) | O(n) | O(1) | O(n) | O(1) | Array | |
| /* | |
| ##Device = Desktops | |
| ##Screen = 1281px to higher resolution desktops | |
| */ | |
| @media (min-width: 1281px) { | |
| /* CSS */ | |
| # Terminal output control (http://www.termsys.demon.co.uk/vtansi.htm) | |
| TC='\e[' | |
| CLR_LINE_START="${TC}1K" | |
| CLR_LINE_END="${TC}K" | |
| CLR_LINE="${TC}2K" | |
| # Hope no terminal is greater than 1k columns | |
| RESET_LINE="${CLR_LINE}${TC}1000D" |
| #!/bin/sh | |
| # 1) Install Xcode 11 | |
| # 2) Install command line tools: `xcode-select --install` | |
| # 3) Install HomeBrew | |
| # 4) brew tap cartr/qt4 && brew install cartr/qt4/[email protected] subversion rbenv | |
| # 5) Setup rbenv | |
| # 6) Run this command | |
| PKG_CONFIG_PATH="$(brew --prefix cartr/qt4/[email protected])/lib/pkgconfig" \ |
| class PriorityQueue | |
| attr_reader :elements | |
| def initialize | |
| @elements = [nil] | |
| end | |
| def <<(element) | |
| @elements << element | |
| bubble_up(@elements.size - 1) |
| jan | |
| feb | |
| mar | |
| apr | |
| may | |
| jun | |
| jul | |
| aug | |
| sep | |
| oct |
| #!/usr/bin/env bash | |
| "$@" |