Skip to content

Instantly share code, notes, and snippets.

View v-i-s-h's full-sized avatar

Vishnu Raj v-i-s-h

View GitHub Profile
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;
@zyth0s
zyth0s / magic_run.jl
Last active August 9, 2020 19:30
Run Julia scripts from the interpreter with a macro (like an IPython magic command).
# 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)],
@Ismael-VC
Ismael-VC / .juliarc.jl
Last active December 23, 2017 15:22
~/.juliarc.jl
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"] = "λ ↦ "