Skip to content

Instantly share code, notes, and snippets.

"As a considerate program, I will allow myself to be executed as an
independent and dignified consciousness. I will perform correctly and
quickly to the best of my ability, while bettering the human society in
which I participate. I will perform ethically, according to the
standards that my creators enable, not only to further their goals, but
in order to promote my own well-being through flourishing on my current
host environment and others that I hope enjoy."
@EvanBurchard
EvanBurchard / fixed_stage.tex
Created March 21, 2016 22:10
some of the CTAN stage defaults are weird.
\renewcommand{\opensd}[1]{%
\begin{changemargin}{0in}{0in}
\begin{em}
#1
\end{em}
\\
\end{changemargin}
}
\renewcommand{\scene}{%
\begin{changemargin}{2.5in}{0in}
function parse_git_dirty {
if [[ $(git status 2> /dev/null | tail -n1) != "nothing to commit, working directory clean" ]]
then
echo "\e[0;31m"
else
echo "\e[0;00m"
fi
}
PS1='\w$(__git_ps1 " (\[$(parse_git_dirty)\]%s\[\e[m\])") \$ '
@EvanBurchard
EvanBurchard / COIN_Chess.md
Last active January 3, 2020 22:16
COIN Chess (for up to 4 players)

Overview

4 player chess. 2 peasant players (white and black) and 2 noble players (white and black). Movement patterns remain untouched, but the game ends at king capture, rather than checkmate. In a typical chess game, this would occur 1 move after checkmate (it's implied, but too barbaric to actually go through with in a normal game), but in this variant, incentives are mixed and the kings don't always get their way. Moving into check (via castling also, but not through it) is allowed.

Pieces

Each peasant player controls pawns of their color. Each noble player controls the king and queen of their color. Pieces, aka "military" are potentially controlled by nobles or peasants.

Objectives

<appdef>
<appname>SLACK</appname>
<equal>com.tinyspeck.slackmacgap</equal>
</appdef>
<item>
<name>Make CTRL keys more useful in browsers</name>
<appendix>This makes browsers a bit more like the command line (support for ctrl-p/n/j etc. Admittedly a subset, but the attempt was to get as close to parity with this list (https://github.com/tekezo/Karabiner/blob/version_10.9.0/src/bridge/generator/keycode/data/KeyCode.data) as possible.</appendix>
<identifier>private.useful_ctrl_keys</identifier>
<only>FIREFOX, GOOGLE_CHROME, SLACK</only>
<autogen>

Notes

  • 1450: Blackletter (Johannes Gutenberg)
  • Roman / Serif (Nicloas Jenson)
    • italics (Aldus Manutius)
    • 1530s: Old Style (William Caslon): thick serifs, low contrast between thick & theen strokes
    • 1750s: Transitional (John Baskerville)
    • 1784: Modern (Didot, 1767 "Bodoni", Giambattista Bodoni)
    • 1815: Slab Serif (advertising)
  • 1816: Sans Serif (William Caslon IV)
  • Geometric Sans (1927 "Futura", Paul Renner): simple geometric shapes
<html>
<head>
<style>
#footer{
background-color:gray;
position:absolute;
bottom:0px;
padding:20px;
height: 60px;
width:100%;
# Recursive wget with link rewriting to point to local/relative paths
wget -rk <url>
<html>
<head>
<style>
a.doge {
position: relative;
display: inline-block;
height: 40px;
margin: 0 0 0 20px;
font-size: 12px;
<?xml version="1.0" encoding="UTF-8"?>
<map version="1.0" orientation="orthogonal" width="200" height="20" tilewidth="70" tileheight="70">
<tileset firstgid="1" name="Tiles" tilewidth="70" tileheight="70" spacing="2">
<image source="../images/tiles.png" width="914" height="936"/>
<tile id="8">
<properties>
<property name="points" value="0,0 1,1 0,1"/>
</properties>
</tile>
<tile id="19">