Skip to content

Instantly share code, notes, and snippets.

@normalhuman
Last active November 12, 2021 18:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save normalhuman/bfc442e569676b48952a to your computer and use it in GitHub Desktop.
Save normalhuman/bfc442e569676b48952a to your computer and use it in GitHub Desktop.
SO moderator timeline, from a template by Najib Idrissi. See http://meta.stackoverflow.com/a/311059
\documentclass[tikz]{standalone} % last update March 2016
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\title{Moderator chart}
\begin{document}
\definecolor{rows}{rgb}{0.95,0.95,0.95}
\definecolor{myblue}{rgb}{0.1,0.3,0.9}
\definecolor{mypurple}{rgb}{0.5,0.3,0.7}
\begin{tikzpicture}[scale=0.5]
% 1 horizontal unit = 1 month, 0 = january 2010
% "present" = 65 = May 2016 (two months into the future)
\foreach \i in {1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,37}
{
\fill[color=rows] (0,\i+1) rectangle (103,{\i+2});
}
\foreach \i in {6,9,16,17,18,19,22,23,24,28,30,31,32,33,34,35,36,37,38}
{
% for cosmetic reasons I extended beyond present with a gradient for
% current moderators
% this has to be drawn BEFORE the black lines
\shade [left color=myblue, right color=white] (92,\i) rectangle (95,{\i+1});
}
\foreach \mod/\mtha/\yra/\mthb/\yrb/\i in
{Marc Gravell/6/10/11/15/1, Tim Post/3/13/11/15/8, Adam Lear/1/12/11/15/12,
animuson/3/15/11/15/25, bluefeet/6/15/11/15/26}
{
\shade [left color=mypurple, right color=white] (92,\i) rectangle (95,{\i+1});
}
% format : moderator name/month start/year start/month end/year end
% months start at 1, year 0 = 2000
\foreach \mod/\mtha/\yra/\mthb/\yrb/\i in
{Marc Gravell/6/10/3/16/1, Tim Post/3/13/3/16/8, Adam Lear/1/12/3/16/12,
animuson/3/15/3/16/25, bluefeet/6/15/3/16/26}
{
\fill[fill=mypurple]
({\mtha + 12*(\yra-8.5) - 1}, \i) rectangle
({\mthb + 12*(\yrb-8.5) - 1}, {\i+1});
\draw (0, \i) -- (103, \i);
}
\foreach[count=\i] \mod/\mtha/\yra/\mthb/\yrb in
{Marc Gravell/5/9/6/10,
Bill the Lizard/5/9/4/15,
Gumbo/2/10/11/11,
Jonathan Sampson/2/10/3/13,
Will/7/10/7/13,
Michael Myers/7/10/3/16, % continuing
SLaks/2/11/11/11,
Tim Post/2/11/3/13,
Robert Harvey/2/11/3/16, %
Lasse V. Karlsen/5/11/3/13,
Kev/5/11/5/13,
Adam Lear/11/11/1/12,
NullUserException/11/11/2/14,
jjnguy/11/11/2/14,
casperOne/11/11/11/15,
BoltClock/11/11/3/16, %
Brad Larson/6/12/3/16, %
ThiefMaster/6/12/3/16, %
George Stocker/6/12/3/16, %
Andrew Barber/3/13/3/15,
Gordon/3/13/11/15,
Flexo/3/13/3/16, %
ChrisF/3/13/3/16, %
minitech/5/13/3/16, %
animuson/7/13/3/15,
bluefeet/2/14/6/15,
0x7fffffff/2/14/3/16,
Bohemian/2/14/3/16, %
Jeremy Banks/4/15/11/15,
meagar/4/15/3/16, %
Martijn Pieters/4/15/3/16, %
Matt/6/15/3/16, %
Jon Clements/6/15/3/16, %
Ed Cottrell/11/15/3/16, %
josilber/11/15/3/16, %
Madara Uchiha/11/15/3/16, %
Undo/3/16/3/16, %
TheLostMind/3/16/3/16 %
} %
{
\draw (5, {\i+0.5}) node {\mod};
\draw (98, {\i+0.5}) node {\mod};
\fill[fill=myblue]
({\mtha + 12*(\yra-8.5) - 1}, \i) rectangle
({\mthb + 12*(\yrb-8.5) - 1}, {\i+1});
\draw (0, \i) -- (103, \i);
}
\foreach \txt/\x in
{May 2009/10, May 2010/22, May 2011/34, May 2012/46, May 2013/58,
May 2014/70, May 2015/82}
{
\draw (\x, 0) node {|} node[below=0.3cm] {\txt};
}
\end{tikzpicture}
\end{document}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment