This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{{- bos_token }} | |
{%- if custom_tools is defined %} | |
{%- set tools = custom_tools %} | |
{%- endif %} | |
{%- if not tools_in_user_message is defined %} | |
{%- set tools_in_user_message = true %} | |
{%- endif %} | |
{%- if not date_string is defined %} | |
{%- if strftime_now is defined %} | |
{%- set date_string = strftime_now("%d %b %Y") %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Usage: ./tmux-parallel.sh "command1" "command2" "command3" ... | |
# Creates a new tmux window with a pane for each command | |
if [ $# -eq 0 ]; then | |
echo "Usage: $0 command1 [command2 ...]" | |
exit 1 | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
algebraic data types | |
- adt | |
- opeltre/fp | |
typechecking: | |
- mypy | |
- dry-python/returns | |
- life4/deal | |
typeclasses: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
State | 2018 Population | |
---|---|---|
California | 39776830 | |
Texas | 28704330 | |
Florida | 21312211 | |
New York | 19862512 | |
Pennsylvania | 12823989 | |
Illinois | 12768320 | |
Ohio | 11694664 | |
Georgia | 10545138 | |
North Carolina | 10390149 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set -g default-shell /usr/bin/zsh | |
set -g default-command /usr/bin/zsh | |
set -g default-terminal "screen-256color" | |
# act like GNU screen | |
unbind C-b | |
set -g prefix C-a | |
set -g base-index 1 | |
set -s escape-time 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# much (some) of this code isn't mine | |
import PIL.Image, numpy, scipy.misc, scipy.ndimage, scipy.spatial | |
import time, sys, random, math, functools, collections | |
# image = PIL.Image.open("4.2.06.tiff") # sailboat on lake | |
# image = PIL.Image.open("lena.tiff") # lena | |
pixel_definition = ["r", "g", "b"] # definition of pixel | |
# neighborhood_kernel = numpy.array([[1, 1, 1], | |
# [1, 1, 1], |