Skip to content

Instantly share code, notes, and snippets.

@chi-feng
chi-feng / preamble
Created September 17, 2013 01:38
Latex Listings language definition/style for Julia
\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,
@asika32764
asika32764 / get-pr
Last active June 12, 2017 08:36
An easy way to help you get single Pull-Request from GitHub
#!/usr/bin/env bash
git fetch $1 refs/pull/$2/head:pr-$2
@brookst
brookst / git_branch.sh
Created November 3, 2016 14:35
Demo using a hook to restrict branch names
#!/bin/bash
# Demo using a hook to restrict branch names
# !Run in a temp dir!
set -ue
main () {
echo \> Setup
mkdir work
cd work