Skip to content

Instantly share code, notes, and snippets.

View madeleineudell's full-sized avatar

Madeleine Udell madeleineudell

View GitHub Profile
@MikeInnes
MikeInnes / startup.jl
Last active February 5, 2023 12:54
Some useful macros for Julia
# Repeat an operation n times, e.g.
# @dotimes 100 println("hi")
macro dotimes(n, body)
quote
for i = 1:$(esc(n))
$(esc(body))
end
end
end