Resume of the build instructions found in the Neo4j project page on GitHub.
### Compiling
$ export MAVEN_OPTS="-Xmx512m"
$ cd neo4j/community/
$ mvn [clean] install -Dlicense.skip=true -DskipTests| ## | |
| # Given two sets A and B, returns a triple with the set of elements | |
| # in A only, in both and in B only. | |
| # | |
| symmetricDiff = (setA, setB) -> | |
| [inAOnly, inBoth, inBOnly] = [new Set(), new Set(), new Set()] | |
| setA.forEach (eid) -> | |
| (if setB.has( eid) then inBoth else inAOnly).add eid | |
| setB.forEach (eid) -> | |
| inBOnly.add( eid) unless inBoth.has( eid) |
| # Defines and exports a custom GraphQL scalar type that represents date and time, | |
| # which, while serialized as a string, promises to conform to ISO‐8601 format. | |
| # (adapted from https://github.com/soundtrackyourbrand/graphql-custom-datetype) | |
| graphql = require 'graphql' | |
| graphql_language = require 'graphql/language' | |
| graphql_error = require 'graphql/error' | |
| GraphQLScalarType = graphql.GraphQLScalarType | |
| GraphQLError = graphql_error.GraphQLError |
| using System.Reflection; | |
| System.Type type = System.Type.GetType( "Mono.Runtime"); | |
| if( type != null) { | |
| MethodInfo displayName = type.GetMethod( "GetDisplayName", BindingFlags.NonPublic|BindingFlags.Static); | |
| if( displayName != null) | |
| Debug.Log( "Mono Runtime version" + displayName.Invoke(null,null)); | |
| } |
| using UnityEngine; | |
| using System.Collections; | |
| [ExecuteInEditMode] | |
| public class ShowTransforms : MonoBehaviour { | |
| private const float radius = 0.02f; | |
| void OnDrawGizmosSelected() { | |
| Vector3 origin, axisRight, axisForward, axisUp; |
Resume of the build instructions found in the Neo4j project page on GitHub.
### Compiling
$ export MAVEN_OPTS="-Xmx512m"
$ cd neo4j/community/
$ mvn [clean] install -Dlicense.skip=true -DskipTests### Running the Neo4j GraphViz module
The quotes around the nodeTitle, relationshipTitle and nodePropertyFilter must be escaped on the shell command-line, to get them to the graphviz main class:
$ ./graphviz ~/neo4j/data/graph.db \
relationshipTitle=\"@type\" nodePropertyFilter=nameor
To transform the currently opened Graphviz source file (in DOT Language) into a PNG:
{
"cmd": [ "dot", "-Tpng", "-o", "$file_base_name.png", "$file"],
"selector": "source.dot"
}| (ns accounting.factory.transaction | |
| (:require [accounting.model.transaction :as transaction] | |
| [accounting.model.document :as document] | |
| [accounting.model.movement :as movement]) | |
| (:import [accounting.model.transaction Transaction] | |
| [accounting.model.document Document] | |
| [org.joda.time LocalDate])) | |
| (defn create-exchange-difference | |
| ^Transaction |