This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CALL apoc.schema.assert({Character:['name']},{Comic:['id'], Character:['id'], Event:['id'], Group:['id']}); | |
LOAD CSV WITH HEADERS FROM "https://raw.githubusercontent.com/tomasonjo/blog-datasets/main/Marvel/heroes.csv" as row | |
CREATE (c:Character) | |
SET c += row; | |
LOAD CSV WITH HEADERS FROM "https://raw.githubusercontent.com/tomasonjo/blog-datasets/main/Marvel/groups.csv" as row | |
CREATE (c:Group) | |
SET c += row; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Run Julia files from the REPL with the following syntax: | |
# > @run "../file.jl" <-- String (any rel/abs path) [si autocompletion] | |
# > @run file.jl <-- Expr (no ./ or ../ etc) [no autocompletion] | |
# > @run file <-- Symbol (no ./ or ../ etc) [no autocompletion] | |
macro run(filename) | |
if filename isa String | |
include(filename) | |
elseif filename isa Expr | |
include(join([string(filename.args[1]), | |
string(filename.args[2].value)], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Compat | |
# using Suppressor | |
using OhMyREPL | |
const SEPARATOR = "\n\n" * "#"^80 * "\n\n" | |
ENV["PYTHON"] = "" | |
ENV["JULIA_WARN_COLOR"] = :yellow | |
ENV["JULIA_INFO_COLOR"] = :cyan | |
# ENV["LISP_PROMPT_TEXT"] = "λ ↦ " |