Skip to content

Instantly share code, notes, and snippets.

View apas's full-sized avatar

apas apas

View GitHub Profile
https://www.gwern.net/docs/borges/1929-borges-thedurationofhell.pdf
https://www.gwern.net/docs/borges/1932-borges-adefenseofthekabbalah.pdf
https://www.gwern.net/docs/borges/1932-borges-thehomericversions.pdf
https://www.gwern.net/docs/borges/1932-borges-adefenseofbasilidesthefalse.pdf
https://www.gwern.net/docs/borges/1933-borges-theartofverbalabuse.pdf
https://www.gwern.net/docs/borges/1936-borges-ahistoryofeternity.pdf
https://www.gwern.net/docs/borges/1936-borges-thedoctrineofcycles.pdf
https://www.gwern.net/docs/borges/1936-borges-thetranslatorsofthethousandandonenights.pdf
https://www.gwern.net/docs/borges/1937-borges-raymondllullsthinkingmachine.pdf
https://www.gwern.net/docs/borges/1938-borges-richardhullexcellentintentions.pdf
sudo vim ~/Library/Containers/com.apple.tonelibraryd/Data/Library/Preferences/com.apple.ToneLibrary.plist
@apas
apas / .vimrc
Last active March 18, 2018 16:05
Usable, minimal vimrc
syntax enable " Enable syntax highlighting
" Enable all Pathogen plugins
execute pathogen#infect()
set encoding=utf8 " Set UTF-8 encoding
set autoread " Reload files changed outside vim
set nocompatible " Use vim rather than vi settings
set backspace=indent,eol,start " Allow backspace in insert mode
set number " Line numbers are good
@apas
apas / getshots.sh
Created May 1, 2017 16:13
Copy latest Dropbox screenshot(s) to current directory
getshots() {
numberOfFiles=${1}
ls -lthUr1 -d -1 ~/Dropbox/Screenshots/{*,.*} \
| tail -n ${numberOfFiles} \
| while read line; do
echo "${line}"; \
cp "${line}" .; \
done
}
@apas
apas / graph paper.tex
Created February 6, 2017 12:30 — forked from mcnees/graph paper.tex
Make your own quadrille, graph, hex, etc paper! Uses the pgf/TikZ package for LaTeX, which should be part of any modern TeX installation.
%%-----------------------------------------------------------------------
%% Make your own quadrille, graph, hex, etc paper!
%% Uses the pgf/TikZ package for LaTeX, which should be part of
%% any modern TeX installation.
%% Email: mcnees@gmail.com
%% Twitter: @mcnees
%%-----------------------------------------------------------------------
\documentclass[11pt]{article}

Keybase proof

I hereby claim:

  • I am apas on github.
  • I am apas (https://keybase.io/apas) on keybase.
  • I have a public key ASDgr7-F7tSOnFd0s_288qvL8X_H-hN90lSsSR5w620fXwo

To claim this, I am signing this object:

@apas
apas / references.bib
Created November 16, 2016 19:01
ops bib
@Inbook{Dorigo2010,
author="Dorigo, Marco
and St{\"u}tzle, Thomas",
editor="Gendreau, Michel
and Potvin, Jean-Yves",
title="Ant Colony Optimization: Overview and Recent Advances",
bookTitle="Handbook of Metaheuristics",
year="2010",
publisher="Springer US",
address="Boston, MA",
@apas
apas / gifcat.sh
Last active November 6, 2016 21:41
use boom and imgcat for a reaction-gif-archive in your terminal
# make sure you're using iTerm 2
#
# download + install imgcat
# https://raw.githubusercontent.com/gnachman/iTerm2/master/tests/imgcat
# (put it in your path and `chmod +x` it)
#
# install @holman's boom
# https://github.com/holman/boom
# $ gem install boom
@apas
apas / ps1.sh
Last active November 6, 2016 04:31
minimal and elegant git aware shell prompt
# download jimeh's git-aware-prompt
# https://github.com/jimeh/git-aware-prompt
export GITAWAREPROMPT=~/.gap/git-aware-prompt
source $GITAWAREPROMPT/main.sh
# change your PS1 accordingly
# that'd normally print: `~ $`
# and in a git repo w/o changes: `/path/to/repo(branch-name) $`
# in git w/ changes: `/path/to/repo(branch-name)* $`
# (the asterisk is in red)