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 | |
# Used to sync METAR data for Airports I want updates from. | |
# All data can be fetched via FTP but that's a waste of bandwidth. | |
curl --silent "http://weather.noaa.gov/pub/data/observations/metar/stations/{KFTY,KATL}.TXT" -o "/var/www/weather.noaa.gov/pub/data/observations/metar/stations/#1.TXT" |
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
( | |
this[key] = -> | |
return this.attrs[key] | |
) for key in this.attrs |
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
$page-width: 996px; | |
$column-width: 425px; | |
$grid-bottom: 59px; | |
$header-height: 150px; | |
$screen-border: 1em; | |
$background-color: #000; | |
$text-color: #ddd; | |
$social-icon-size: 50px; | |
$header-fonts: "raleway", sans-serif; | |
$body-fonts: "adobe-garamond-pro", Calluna, Georgia, serif; |
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
#!/usr/bin/env bash | |
# Wrap FLAC files in an OGG wrapper (.oga file). | |
# Deletes the original flac file after verifying that the oga file matches. | |
# For safety all warnings are treated as errors (and prevent deletion of flac files). | |
# | |
# WARNING: Does not prompt before overwriting `.oga' files. | |
# | |
# Examples: | |
# | |
# $ flac2ogg flacfile.flac |
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
% !TEX TS-program = pdflatex | |
% !TEX encoding = UTF-8 | |
\documentclass[11pt]{article} | |
% Use UTF-8 | |
\usepackage[utf8]{inputenc} | |
\usepackage[T1]{fontenc} | |
% Use [PoetryTeX](http://www.ctan.org/pkg/poetrytex) and paracol. |
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 9b679e42b946eb140d2c57a7ec4afa6d42d1d097 Mon Sep 17 00:00:00 2001 | |
From: Sam Whited <[email protected]> | |
Date: Sat, 4 Aug 2012 23:27:41 -0400 | |
Subject: [PATCH] Remove titlecase from blockquote | |
--- | |
plugins/blockquote.rb | 5 ++--- | |
1 file changed, 2 insertions(+), 3 deletions(-) | |
diff --git a/plugins/blockquote.rb b/plugins/blockquote.rb |
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
% A few example commands for a more git-aware LaTeX. | |
% Note that this requires you to run pdflatex/xelatex/etc. with the | |
% `--shell-escape' option which is extremely unsafe. Use with care | |
% and *never* use with plain TeX. | |
% Print the short-hash of the current commit | |
\newcommand*{\gitrev}{% | |
\immediate\write18{% | |
rm gitrev.tex 2> /dev/null; git rev-parse --short HEAD > gitrev.tex | |
}% |
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
#!/usr/bin/env bash | |
for i in $(eval echo {$1..$2}) | |
do | |
curl "http://questionablecontent.net/comics/$i.png" > "QuestionableContent/$i.png" | |
done |
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
% !TEX TS-program = xelatex | |
% !TEX encoding = UTF-8 | |
\documentclass[a4paper,11pt]{article} | |
% Use [PoetryTeX](http://samwhited.github.com/poetrytex/). | |
\usepackage{poetrytex} | |
% Use the PA5 paper size | |
\usepackage[paperwidth=140mm,paperheight=210mm]{geometry} |
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
% Because I can never remember how to get rid of the borders on all systems... | |
\usepackage[pdfborder=0, bookmarks, colorlinks=false]{hyperref} |