Use latest Neo4j for best results, e.g. 2.2.2 or 2.3.0-M02 (http://neo4j.com/download) On a machine with 12 cores use concurrency 24
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
#include <queue> | |
#include <vector> | |
#include <iostream> | |
#include <algorithm> | |
using namespace std; | |
void addEdge(vector<int> *adj, int u, int v) { | |
adj[u].push_back(v); | |
adj[v].push_back(u); | |
} |
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
ffi = require("ffi") | |
julia = ffi.load("/Users/inorton/git/julia/usr/lib/libjulia.dylib", true) | |
ffi.cdef[[ | |
void jl_eval_string(const char*); | |
void jl_init(const char*); | |
]] | |
julia.jl_init("/Users/inorton/git/julia/usr/lib/") | |
julia.jl_eval_string(" println(\"hello, world\") ") | |
-- should print "hello, world" |
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
#include <fstream> | |
#include <scripting/ModException.hpp> | |
#include <sanity.hpp> | |
#include "LuaSecurity.hpp" | |
using namespace scripting; | |
namespace { | |
void copyAll(sol::environment &env, const sol::global_table &globals, |