This file contains hidden or 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
\documentclass{beamer} | |
% http://tex.stackexchange.com/q/217628/1402 | |
\begin{document} | |
\begin{frame}{Uncover} | |
\begin{itemize} | |
\item<1> a really long item, which takes up almost the entire page | |
\item<2> another item | |
\item<3> yet another one | |
\end{itemize} |
This file contains hidden or 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
settings.outformat="png"; | |
settings.render=16; | |
size (10cm,0); | |
pair O = (0,0); | |
pair A = (sqrt(3),1); | |
pair B = (-sqrt(3),1); | |
pen surfacepen=rgb(0,0,0.8)+opacity(0.75); | |
pen notthere=opacity(0.5); |
This file contains hidden or 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
\documentclass[png]{standalone} | |
\usepackage{tikz} | |
\usetikzlibrary{calc} | |
% See http://tex.stackexchange.com/questions/276935/tikz-projection-parallel-to-given-line | |
\makeatletter | |
\tikzset{/tikz/parallel cs/.cd, | |
to line initial coordinate/.store in=\tikz@parallelcs@toA, | |
to line final coordinate/.store in=\tikz@parallelcs@toB, |
This file contains hidden or 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
use File::Basename qw(dirname); | |
use FindBin qw($Bin); | |
use lib dirname($Bin) . '/lib'; |
This file contains hidden or 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 | |
# Install version 1.2.8 of auto-multiple-choice, with some patches | |
# (C) 2018 Akim Demaille and Matthew Leingang | |
# | |
# See https://project.auto-multiple-choice.net/boards/2/topics/6301 | |
# | |
# UNTESTED | |
cd /tmp | |
git clone --single-branch https://github.com/macports/macports-ports.git |
This file contains hidden or 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
/** | |
* Duration and Lap Calculations | |
* Matthew Leingang (https://github.com/leingang) | |
* 2018-09-15 | |
* | |
* I want to be able to enter the number of laps and get the duration, | |
* or the duration and get the number of laps. To go one way only | |
* requires a formula, but to go both ways requires a script. | |
*/ |
This file contains hidden or 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
build/ | |
*.log | |
*.aux | |
foo.pdf |
This file contains hidden or 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 -x | |
# Splits video to separate scenes files when full black frames are found in the video | |
# Forked from https://gist.github.com/davidwebca/e26186b8f4c6795b19c043fffb6f9861 | |
# Inspired by https://gist.github.com/achesco/4dc2ebf13378a0a61fc26c7fe01f539e | |
# Who got inspired by https://stackoverflow.com/a/38205105 | |
file="" | |
out="." | |
dur=2.00 |
This file contains hidden or 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
alias sshlpr='ssh [email protected] lpr -P mf-07 -o sides=two-sided-long-edge -o StapleLocation=UpperLeft' |
This file contains hidden or 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
from pydrive2.auth import GoogleAuth | |
from pydrive2.drive import GoogleDrive | |
from google.colab import auth | |
from oauth2client.client import GoogleCredentials | |
auth.authenticate_user() | |
gauth = GoogleAuth() | |
gauth.credentials = GoogleCredentials.get_application_default() | |
drive = GoogleDrive(gauth) |
OlderNewer