Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View affans's full-sized avatar

AffanA affans

View GitHub Profile
@Seelengrab
Seelengrab / fast.jl
Last active November 18, 2023 22:26
gotta load fast
using BenchmarkTools
using StarWarsArrays
only_bench(x) = only(x)
one_idx_bench(x) = x[1]
deref_bench(x) = x[]
first_bench(x) = first(x)
twod_one_idx_bench(x) = x[1,1]
splat_bench(x) = x[ones(Int, 100)...]
end_bench(x) = x[end]
@gizmaa
gizmaa / Plot_Examples.md
Last active April 12, 2024 14:18
Various Julia plotting examples using PyPlot