Principles and resources for writing concise professional updates.
URL: https://paulgraham.com/simply.html
Core idea: The less energy readers spend on your prose, the more they have for your ideas.
Key points:
Principles and resources for writing concise professional updates.
URL: https://paulgraham.com/simply.html
Core idea: The less energy readers spend on your prose, the more they have for your ideas.
Key points:
| package llm | |
| import "context" | |
| type Llm interface { | |
| CompleteStreaming(ctx context.Context, c Conversation, pch chan string, ch chan string) error | |
| } | |
| type Conversation interface { | |
| Messages() []Message |
| extends CharacterBody2D | |
| const floor_move_speed_max: float = 400.0 | |
| const floor_move_acceleration: float = 2000 | |
| const floor_friction: float = 2000 | |
| const jump_min_height: float = 50 | |
| const jump_max_height: float = 200 | |
| const jump_time_to_apex: float = 0.5 | |
| const air_move_speed_max: float = 400.0 |
| curl -s "https://www.archlinux.org/mirrorlist/?country=DE&protocol=https&ip_version=4&use_mirror_status=on" | sed -e 's/^#Server/Server/' -e '/^#/d' > /etc/pacman.d/mirrorlist |
| def func(event:, context:) | |
| nil[] | |
| end |
| #!/usr/bin/env bash | |
| set -e | |
| time="$1" | |
| (sleep "$((time * 60))" && terminal-notifier -message "There you go." -title "Hi") & |
| typeset -F SECONDS start | |
| precmd () { | |
| start=$SECONDS | |
| } | |
| zle-line-init () { | |
| PREDISPLAY="[$(( $SECONDS - $start ))] " | |
| } | |
| zle -N zle-line-init |
| #!/usr/bin/env bash | |
| cr=`echo $'\n.'` | |
| cr=${cr%.} | |
| read -p "Do you want to run $*? [N/y]${cr}${cr}" -s -N 1 REPLY | |
| if test "$REPLY" = "y" -o "$REPLY" = "Y"; then | |
| exec "$@" | |
| else |
| #!/usr/bin/env bash | |
| # | |
| # Download an index of posts from a blogger blog | |
| # | |
| # Example usage: ./blogger-index techblog.netflix.com | |
| # | |
| # Dependencies: xml2json, jq | |
| set -e |
| #lang racket | |
| (define (to-function format acc) | |
| (match format | |
| [(list #\% #\d rest ...) (lambda (i) (to-function rest (string-append acc (number->string i))))] | |
| [(list #\% #\s rest ...) (lambda (s) (to-function rest (string-append acc s)))] | |
| [(cons c rest) (to-function rest (string-append acc (string c)))] | |
| [null acc])) | |
| (define (printf format) |