Skip to content

Instantly share code, notes, and snippets.

View dralletje's full-sized avatar
🛰️
😱🦁🤨

Michiel Dral dralletje

🛰️
😱🦁🤨
View GitHub Profile
### A Pluto.jl notebook ###
# v0.14.0
using Markdown
using InteractiveUtils
# This Pluto notebook uses @bind for interactivity. When running this notebook outside of Pluto, the following 'mock version' of @bind gives bound variables a default value (instead of an error).
macro bind(def, element)
quote
local el = $(esc(element))
### A Pluto.jl notebook ###
# v0.14.0
using Markdown
using InteractiveUtils
# ╔═╡ 46b1e7b2-8460-11eb-3454-f7fa9542f903
begin
import Pkg
Pkg.add([
### A Pluto.jl notebook ###
# v0.12.17
using Markdown
using InteractiveUtils
# ╔═╡ 232fcca6-412f-11eb-02d9-9d1fca0a05c7
md"""
# Weird Pluto Performance Case
### A Pluto.jl notebook ###
# v0.12.16
using Markdown
using InteractiveUtils
# This Pluto notebook uses @bind for interactivity. When running this notebook outside of Pluto, the following 'mock version' of @bind gives bound variables a default value (instead of an error).
macro bind(def, element)
quote
local el = $(esc(element))
### A Pluto.jl notebook ###
# v0.12.15
using Markdown
using InteractiveUtils
# ╔═╡ d07a2949-f621-4714-9edf-33660d83ee0a
md"""
# Experiments with Garbage Collection
# ╔═╡ 8dcf6da4-b05c-4cb3-a566-0a03180d3554
function to_expr(x::T) where T <: Union{
AttributeDoubleQuoted,
AttributeSingleQuoted,
AttributeUnquoted,
BeforeAttributeName,
StateData,
}
:($(T)($(to_expr(x.value))))
end
@dralletje
dralletje / htl.jl
Last active November 14, 2020 17:02
### A Pluto.jl notebook ###
# v0.12.10
using Markdown
using InteractiveUtils
# ╔═╡ 14bec8b8-13b2-11eb-2a31-5f0544ad5b56
function displayonly(m::Module)
if isdefined(m, :PlutoForceDisplay)
return m.PlutoForceDisplay
### A Pluto.jl notebook ###
# v0.12.1
using Markdown
using InteractiveUtils
# ╔═╡ 0b727cd8-17bf-11eb-336e-2be32fb05968
md""" [Jump to anchor](#myanchor) """
# ╔═╡ 7cb468ca-17bf-11eb-2182-e5f225f17e18
@dralletje
dralletje / meta_lower_and_code_lowered.jl
Last active October 21, 2020 14:24
Meta.@lower and @code_lowered.jl
### A Pluto.jl notebook ###
# v0.12.4
using Markdown
using InteractiveUtils
# ╔═╡ 2b19a632-139f-11eb-357e-d5458c7cf647
md"# Meta.@lower and @code_lowered"
# ╔═╡ 40ba8faa-139f-11eb-273c-739e6265410e