Skip to content

Instantly share code, notes, and snippets.

View j-fu's full-sized avatar

Jürgen Fuhrmann j-fu

View GitHub Profile
@j-fu
j-fu / twglmakie2.jl
Created January 12, 2021 17:45
twglmakie #2
### A Pluto.jl notebook ###
# v0.12.18
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))
@j-fu
j-fu / mwe_dataframes.jl
Created February 5, 2021 23:00
mwe_dataframes.jl
### A Pluto.jl notebook ###
# v0.12.20
using Markdown
using InteractiveUtils
# ╔═╡ b902e992-6804-11eb-00c6-09e0e399015d
begin
using Pkg
Pkg.activate(mktempdir())
@j-fu
j-fu / mwe_catarrays.jl
Last active February 5, 2021 23:01
mwe_catarrays.jl
### A Pluto.jl notebook ###
# v0.12.20
using Markdown
using InteractiveUtils
# ╔═╡ 0d1dcea2-6805-11eb-2b36-f5da8bf24fbc
begin
using Pkg
Pkg.activate(mktempdir())
@j-fu
j-fu / vtkjs.jl
Created May 17, 2021 22:39
vtk.js in pluto
### A Pluto.jl notebook ###
# v0.14.5
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))
ERROR: LoadError: type DataType has no field mutable
Stacktrace:
[1] getproperty
@ ./Base.jl:37 [inlined]
[2] _metametaexpr(#unused#::Type{Cassette.Context{nametype(JacobianSparsityContext), Tuple{Sparsity, SparsityDetection.Path}, Cassette.Tag{nametype(JacobianSparsityContext), 0x000000006afb7332, Nothing}, SparsityDetection.var"##PassType#272", IdDict{Module, Dict{Symbol, Cassette.BindingMeta}}, Cassette.DisableHooks}}, #unused#::Type{Tuple{typeof(*), Float64}}, metaexprs::Vector{Any})
@ Cassette ~/.julia/packages/Cassette/FwMN0/src/tagging.jl:272
[3] #s10#22
@ ~/.julia/packages/Cassette/FwMN0/src/tagging.jl:488 [inlined]
[4] var"#s10#22"(C::Any, T::Any, ::Any, context::Any, #unused#::Any, args::Any)
@ Cassette ./none:0
@j-fu
j-fu / mwe.jl
Last active June 28, 2021 09:37
module mwe
using RecursiveArrayTools
abstract type AbstractTransientSolution{T,N,A,B} <: AbstractDiffEqArray{T, N, A} end
mutable struct TransientSolution{T,N,A,B} <: AbstractTransientSolution{T,N,A,B}
u::A
t::B
end
### A Pluto.jl notebook ###
# v0.16.1
using Markdown
using InteractiveUtils
# ╔═╡ 75832ec3-b02c-4822-a516-6b08ff040d0a
md"""
# Plotly + mathjax MWE
"""
### A Pluto.jl notebook ###
# v0.16.4
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))
@j-fu
j-fu / devfree.out
Created December 2, 2021 18:43
devfree.out
julia> Pkg.add(url="https://lab.wias-berlin.de/j-fu/jf-test/devproject.jl")
Updating git-repo `https://lab.wias-berlin.de/j-fu/jf-test/devproject.jl`
Updating registry at `~/.julia/registries/General`
Updating registry at `~/.julia/registries/PackageNursery`
Updating git-repo `git@github.com:j-fu/PackageNursery`
Resolving package versions...
No Changes to `~/Wias/work/julia/test/pkg-devel/Project.toml`
No Changes to `~/Wias/work/julia/test/pkg-devel/Manifest.toml`
Precompiling project...
1 dependency successfully precompiled in 1 seconds
### A Pluto.jl notebook ###
# v0.17.3
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 iv = try Base.loaded_modules[Base.PkgId(Base.UUID("6e696c72-6542-2067-7265-42206c756150"), "AbstractPlutoDingetjes")].Bonds.initial_value catch; b -> missing; end