Skip to content

Instantly share code, notes, and snippets.

View cohenor1112's full-sized avatar

Or Cohen cohenor1112

View GitHub Profile
@cohenor1112
cohenor1112 / chess.py
Created September 19, 2021 18:41 — forked from rsheldiii/chess.py
chess program for python
"""CONVENTIONS:
positions are done row-column from the bottom left and are both numbers. This corresponds to the alpha-number system in traditional chess while being computationally useful. they are specified as tuples
"""
import itertools
WHITE = "white"
BLACK = "black"
@cohenor1112
cohenor1112 / .gitconfig
Created August 30, 2021 13:22 — forked from barzik/.gitconfig
Recommended git alias list
#Based on http://haacked.com/archive/2014/07/28/github-flow-aliases/
[alias]
co = checkout
ec = config --global -e
up = !git pull --rebase --prune $@ && git submodule update --init --recursive
cob = checkout -b
cm = !git add -A && git commit -m
save = "!f(){ ARG1=${1:-SAVEPOINT}; git add -A && git commit -m \"$ARG1\"; };f"
wip = !git add -u && git commit -m "WIP"