Skip to content

Instantly share code, notes, and snippets.

@j-fu
j-fu / capture.jl
Last active September 10, 2020 11:05
Example for code control
### A Pluto.jl notebook ###
# v0.11.14
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 / capture2.jl
Last active September 10, 2020 16:16
update for 05b919d
### A Pluto.jl notebook ###
# v0.11.14
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.11.14
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.11.14
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.11.14
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 / meshcat2.jl
Created September 21, 2020 21:26
A Pluto notebook with MWE
### A Pluto.jl notebook ###
# v0.11.14
using Markdown
using InteractiveUtils
# ╔═╡ fc86a902-f46d-11ea-15ac-d3a989493e19
begin
using Pkg
Pkg.add("MeshCat")
@j-fu
j-fu / ttet.jl
Created December 9, 2020 19:28
CPU eating notebook
### 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))
@j-fu
j-fu / trimakie.jl
Created December 9, 2020 23:26
Test Makie functionality on changing meshes
module trimakie
using Triangulate
using Makie
using GeometryBasics
"""
Create triangular mesh
"""
function trimesh(;vol=0.1)
@j-fu
j-fu / MultiScene.jl
Created December 26, 2020 23:24
conceptual design of interactive multiscene handling based on Makie/Makielayout
module MultiScene
# (c) Julius Krummbiegel, Jürgen Fuhrmann
using GLMakie
###############################################################
#
# Generic part
"""
@j-fu
j-fu / twglmakie.jl
Created January 12, 2021 16:20
new WGLMakie test
### A Pluto.jl notebook ###
# v0.12.18
using Markdown
using InteractiveUtils
# ╔═╡ 09d65712-4bba-11eb-3f63-cfeb0925bb64
begin
using Pkg
Pkg.activate(mktempdir())