Skip to content

Instantly share code, notes, and snippets.

View majorgreys's full-sized avatar

Tahir H. Butt majorgreys

  • Brooklyn, NY
  • 13:56 (UTC -12:00)
View GitHub Profile
@majorgreys
majorgreys / test.md
Last active April 4, 2016 02:15
tufteify pandocfilter

% An appealing title % Tahir

Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper.^[See the following note.] Aenean ultricies mi vitae est. Mauris placerat eleifend leo. Quisque sit amet est et sapien ullamcorper pharetra. Vestibulum erat wisi, condimentum sed, commodo vitae, ornare sit amet, wisi. Aenean fermentum, elit eget tincidunt condimentum, eros ipsum rutrum orci, sagittis tempus lacus enim ac dui. Donec non enim in turpis pulvinar facilisis. Ut felis. Praesent dapibus, neque id cursus faucibus, tortor neque egestas augue, eu vulputate magna eros eu erat. Aliquam erat volutpat. Nam dui mi, tincidunt quis, accumsan porttitor, facilisis luctus, metus.

@majorgreys
majorgreys / stopcunycuts.tex
Created March 23, 2016 19:06
Latex file for generating PDF that I used to create posters for a rally. I projected the PDF onto a wall using an LCD projector and then traced the letters onto poster board.
\documentclass{article}
\usepackage[letterpaper,margin=1.0in]{geometry}
\usepackage[T1]{fontenc}
\usepackage[sfdefault]{universalis}
% \usepackage{fontspec}
% \usepackage{xunicode}
% \usepackage{xltxtra}
% \setmainfont[Mapping=tex-text]{Lucida Sans Unicode}
\usepackage{tikz}
\usetikzlibrary{matrix,shapes.misc}
@majorgreys
majorgreys / index.html
Created October 29, 2012 18:25
Experiment using D3.js to create a logo for HMNY 2013. View at http://bl.ocks.org/majorgreys/31e48e69bdbc98acd99a
<html>
<script src="http://d3js.org/d3.v2.js"></script>
<link href='http://fonts.googleapis.com/css?family=Arvo' rel='stylesheet' type='text/css'>
<style>
body { font-family: 'Arvo', serif; }
div#logo1 { font-family: 'Helvetica'; }
div#logo2 { font-family: 'Arvo'; }
</style>
<body>
@majorgreys
majorgreys / Makefile
Last active August 29, 2015 14:25
pandoc bibliography formatting issues
all: pandocpdf pandoctexcsl pandoctexbiblatex
pandocpdf: test.md
pandoc -s -S --bibliography=test.bib -o pandocpdf.pdf test.md
pandoctexcsl: test.md
pandoc -s -S --bibliography=test.bib -o pandoctexcsl.tex test.md
pdflatex pandoctexcsl.tex
pandoctexbiblatex: test.md
@majorgreys
majorgreys / grapevine.yaml
Last active August 29, 2015 13:57
The Grapevine dataset (http://education.illinoisstate.edu/grapevine/) dataset in YAML format
# Grapevine Project state-level summary data on state appropriations FY1960 to FY2014
# Transcribed by Tahir Butt <tahir.butt@gmail.com>
- fiscalyear: 2014
sourcefile: tables/FY14/Table6f_GPV14.xlsx
note: Column E Total State Support (Less Returns and Portions of Multi-Year Appropriations
total: 76238167052
states:
-
AL: 1440862304
AK: 383128100