Skip to content

Instantly share code, notes, and snippets.

Avatar

Oliver Schulz oschulz

  • Max Planck Institute for Physics
  • Munich
View GitHub Profile
View cxx_class_init_test.jl
using Cxx
cxx"""
#include <iostream>
class MyClass {
public:
int i = 0;
MyClass() { std::cerr << "INFO: MyClass()" << std::endl; }
MyClass(int j) : i(j) { std::cerr << "INFO: MyClass(" << i << ")" << std::endl; }
@oschulz
oschulz / plots-contours-viridis.ipynb
Created April 13, 2016 14:50
Plots.jl contour plot with viridis color map
View plots-contours-viridis.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@oschulz
oschulz / cxx_root_gui.jl
Last active January 13, 2016 23:19
Using CERN ROOT GUI features from Julia
View cxx_root_gui.jl
# Copyright (C) 2016 Oliver Schulz <oschulz@mpp.mpg.de>
# Licensed under the MIT License: http://opensource.org/licenses/MIT
# Note: Currently only works with ROOT-5, not ROOT-6, due to LLVM clashes
# between Cling and Julia.
using Cxx
using Distributions
incdir = strip(readall(`root-config --incdir`))
@oschulz
oschulz / cxx_root_ttree.jl
Last active January 13, 2016 23:19
Writing a CERN ROOT TTree from Julia using Cxx.jl
View cxx_root_ttree.jl
# Copyright (C) 2016 Oliver Schulz <oschulz@mpp.mpg.de>
# Licensed under the MIT License: http://opensource.org/licenses/MIT
# Note: Currently only works with ROOT-5, not ROOT-6, due to LLVM clashes
# between Cling and Julia.
using Cxx
using Distributions
incdir = strip(readall(`root-config --incdir`))