Skip to content

Instantly share code, notes, and snippets.

View jagot's full-sized avatar
💭
[i∂ₜ - ℋ]|Ψ(t)⟩ = 0

Stefanos Carlström jagot

💭
[i∂ₜ - ℋ]|Ψ(t)⟩ = 0
View GitHub Profile
@simonbyrne
simonbyrne / ccallmacro.jl
Created January 26, 2017 09:57
A julia ccall macro
@eval macro $(Symbol("ccall"))(expr)
expr.head == :(::) && expr.args[1].head == :call || error("Invalid use of @ccall")
rettype = expr.args[2]
fname = expr.args[1].args[1]
cargs = expr.args[1].args[2:end]
arglist = []
typlist = []
tupexpr = :(())
ccexpr = :(ccall($(esc(fname)), $(esc(rettype)), $(esc(tupexpr))))
@hlissner
hlissner / codesign_gdb.md
Last active March 11, 2024 07:09
Codesign gdb on OSX