Skip to content

Instantly share code, notes, and snippets.

Avatar

Daniel P. Gettings dpgettings

View GitHub Profile
View test_vine_dl.sh
#!/bin/bash
# single vine tweet no replies
echo "[single vine tweet no replies]"
echo "------------------------------"
bash vine_dl.sh https://twitter.com/PAPPADEMAS/status/791841723869605888
echo "---------"
echo "EXPECTED:"
echo "https://v.cdn.vine.co/r/videos/CE5DC8F9B71171654998891827200_3e673f8096e.1.5.14155013907193044834.mp4?versionId=29Q5Sdr1sY1OewhC42OL8ZZgJDdTElAy"
echo "*****************************"
@dpgettings
dpgettings / dummyfig.tex
Created Mar 19, 2014
Fancy placeholder figures in LaTeX
View dummyfig.tex
%% This part goes in preamble
\newcommand{\dummyfig}[1]{
\centering
\fbox{
\begin{minipage}[c][0.33\textheight][c]{0.5\textwidth}
\centering{#1}
\end{minipage}
}
}
View osascript_bg.sh
#!/usr/bin/env bash
osascript -e 'tell application "Finder"
Activate
delay 3
make new Finder window
end tell' &
You can’t perform that action at this time.