This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# # Making animated and interactive scientific | |
# # visualizations in Makie.jl | |
# Alrighty, in this short tutorial I'll teach you how to make | |
# animated scientific such as this video, or this application. | |
# Prerequisitives: | |
# * Basic familiarity with Julia (obviously) | |
# * Basic familiarity with Makie.jl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module TraceCalls | |
using Cassette | |
mutable struct Trace | |
level::Int | |
cutoff::Int | |
end | |
Cassette.@context TraceCtx |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
growth(🐇, 🥕) = 🐇 * 🥕 * (1.0 - 🐇) | |
function orbitdiagram(growth, r1, r2, n = 500, a = zeros(1000, n); T = 1000) | |
rs = range(r1, stop = r2, length = 1000) | |
for (j, r) in enumerate(rs) | |
x = 0.5 | |
for _ in 1:T; x = growth(x, r); end | |
for i in 1:n | |
x = growth(x, r) | |
@inbounds a[j, i] = x | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Remove the history from | |
rm -rf .git | |
-- recreate the repos from the current content only | |
git init | |
git add . | |
git commit -m "Initial commit" | |
-- push to the github remote repos ensuring you overwrite history | |
git remote add origin [email protected]:<YOUR ACCOUNT>/<YOUR REPOS>.git |