Skip to content

Instantly share code, notes, and snippets.

View abap34's full-sized avatar

abap34 abap34

View GitHub Profile
@astellon
astellon / Doushite.jl
Last active May 29, 2020 03:18 — forked from abap34/Doushite.jl
これは何 -> 今勉強用に作っているkwii名前のDLフレームワークのplot機能の実装です。動きません。どうして...
function plot(to_file = "graph.png")
dot_graph =
"""
digraph graph_name {
hoge -> foo
}
"""
mktempdir() do tmp_dir
dot_file_path = joinpath(tmp_dir, "tmp_graph.dot")
@genkuroki
genkuroki / Avoid fields with abstract type.ipynb
Created July 14, 2020 12:32
Avoid fields with abstract type
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
using JuliaSyntax
using JuliaLowering
const JS = JuliaSyntax
const JL = JuliaLowering
jsparse(s) = JS.build_tree(JL.SyntaxTree, JS.parse!(JS.ParseStream(s); rule=:statement))
function jlower(mod, st0)
ctx1, st1 = JL.expand_forms_1( mod, st0)
ctx2, st2 = JL.expand_forms_2( ctx1, st1)