Skip to content

Instantly share code, notes, and snippets.

@mlhetland
mlhetland / tikzcards.sty
Created March 4, 2022 12:33
Simple LaTeX code for drawing playing-card like rectangles with numbers
\NeedsTeXFormat{LaTeX2e}[1994/06/01]
\ProvidesPackage{tikzcards}
% Copyright 2019 Magnus Lie Hetland
\RequirePackage{tikz}
\usetikzlibrary{math}
\RequirePackage{options}
\RequirePackage{etoolbox}
@mlhetland
mlhetland / shrinkgrow.jl
Last active August 29, 2015 14:02
Growing a shrunken Array
using Benchmark
const n = 100000
function push_int_any()
a = Array(Any, n)
resize!(a, 0)
for i = 1:n
push!(a, i)
end