Skip to content

Instantly share code, notes, and snippets.

View mcnees's full-sized avatar

Robert McNees mcnees

View GitHub Profile
@mcnees
mcnees / phasediagram.tex
Created September 11, 2017 18:21
Toast / Airplane Wine phase diagram
\documentclass[crop=true, border=10pt]{standalone}
\usepackage{xcolor}
\usepackage{tikz}
\usetikzlibrary{arrows.meta}
% Some colors I like. The first six are modified versions of colors from
@mcnees
mcnees / Example4.tex
Last active September 10, 2017 20:54
Shaded hollowed-out sphere
\documentclass[crop=true, border=10pt]{standalone}
\usepackage{xcolor}
\usepackage{tikz}
\usetikzlibrary{arrows.meta}
% Some colors I like. The first six are modified versions of colors from
@mcnees
mcnees / Example3.tex
Created September 10, 2017 20:39
Shaded hemisphere in perspective using PGF/TikZ
\documentclass[crop=true, border=10pt]{standalone}
\usepackage{xcolor}
\usepackage{tikz}
\usetikzlibrary{arrows.meta}
% Some colors I like. The first six are modified versions of colors from
@mcnees
mcnees / Example2.tex
Created September 3, 2017 01:20
Dirac delta example in PGF/TikZ
\documentclass[crop=true, border=10pt]{standalone}
\usepackage{amsmath}
\usepackage{graphicx}
\usepackage{xcolor}
\usepackage{tikz}
\usetikzlibrary{arrows.meta}
@mcnees
mcnees / Example1.tex
Created September 3, 2017 01:17
Shrinking sphere in LaTeX with PGF/TikZ
\documentclass[crop=true, border=10pt]{standalone}
\usepackage{graphicx}
\usepackage{xcolor}
\usepackage{tikz}
\usetikzlibrary{arrows.meta}
\usepackage{tikz-3dplot}
@mcnees
mcnees / Favmoji.css for Twitter
Last active May 11, 2017 14:09
Hack twitter's CSS
/* Install the Stylish extension for your browser, then add this code
as a new Style. Make sure it applies to the domain 'twitter.com' */
/* You can get Stylish here: */
/* Safari - http://sobolev.us/stylish/ */
/* Chrome - https://chrome.google.com/webstore/detail/stylish/fjnbnpbmkenffdnngjfgmeleoegfcffe */
/* Tweet improvements, comments, or corrections to @mcnees. */
/* Thanks to: @pbausch, @mathowie, @blakestacey, @ukuleledan and others! */
@mcnees
mcnees / UAO.tex
Created October 18, 2016 14:13
Spacetime diagrams for uniformly accelerated observers in LaTeX, using PGF/TikZ
%----------------------------------------------------------------------
% Use TikZ/PGF to programmatically draw spacetime diagrams for
% uniformly accelerated observers. Set the acceleration, initial
% conditions, and other paramters below.
%
% Questions/Comments to Robert McNees at rmcnees@luc.edu
% http://jacobi.luc.edu
% @mcnees on Twitter
% January 2015, Updated October 2016
%----------------------------------------------------------------------
@mcnees
mcnees / GaussianSurfaces.tex
Created October 18, 2016 02:35
Gaussian Surfaces with PGF/TikZ
%
% Send comments to rmcnees@luc.edu, or @mcnees on Twitter.
%
\documentclass[11pt]{article}
% ------------------------------------------------
% Specify the margins.
% ------------------------------------------------
\usepackage{vmargin}
\setmargrb{2cm}{1cm}{2cm}{2cm}
@mcnees
mcnees / graph paper.tex
Last active February 16, 2024 08:34
Make your own quadrille, graph, hex, etc paper! Uses the pgf/TikZ package for LaTeX, which should be part of any modern TeX installation.
%%-----------------------------------------------------------------------
%% Make your own quadrille, graph, hex, etc paper!
%% Uses the pgf/TikZ package for LaTeX, which should be part of
%% any modern TeX installation.
%% Email: mcnees@gmail.com
%% Twitter: @mcnees
%%-----------------------------------------------------------------------
\documentclass[11pt]{article}
@mcnees
mcnees / SimpleFavmoji.css
Created January 7, 2016 03:18
A simple version of Favmoji.css that just replaces the heart animation with an emoji.
/* Install the Stylish extension for your browser, then add this code
as a new Style. Make sure it applies to the domain 'twitter.com' */
/* You can get Stylish here: */
/* Safari - http://sobolev.us/stylish/ */
/* Chrome - https://chrome.google.com/webstore/detail/stylish/fjnbnpbmkenffdnngjfgmeleoegfcffe */
/* Tweet improvements, comments, or corrections to @mcnees. */
/* Thanks to: @pbausch, @mathowie, @blakestacey, @ukuleledan and others! */