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
\usepackage{inconsolata} % very nice fixed-width font included with texlive-full | |
\usepackage[usenames,dvipsnames]{color} % more flexible names for syntax highlighting colors | |
\usepackage{listings} | |
\lstset{ | |
basicstyle=\ttfamily, | |
columns=fullflexible, % make sure to use fixed-width font, CM typewriter is NOT fixed width | |
numbers=left, | |
numberstyle=\small\ttfamily\color{Gray}, | |
stepnumber=1, |
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
#!/usr/bin/env bash | |
git fetch $1 refs/pull/$2/head:pr-$2 |
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 | |
# Demo using a hook to restrict branch names | |
# !Run in a temp dir! | |
set -ue | |
main () { | |
echo \> Setup | |
mkdir work | |
cd work |
OlderNewer