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 |
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"
}
### 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=name
or
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
using UnityEngine; | |
using System.Collections; | |
[ExecuteInEditMode] | |
public class ShowTransforms : MonoBehaviour { | |
private const float radius = 0.02f; | |
void OnDrawGizmosSelected() { | |
Vector3 origin, axisRight, axisForward, axisUp; |
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)); | |
} |
# 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 |
## | |
# 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) |
## | |
# Utility function to measure time intervals. Polymorphic return value: | |
# | |
# * returns either the current high-resolution real time, given no argument; | |
# * or the time elapsed since a given high-resolution real time, that was | |
# retrieved from a previous call to this function. | |
# | |
# Usage: | |
# t0 = hrtime() | |
# duration = hrtime( t0) # expressed in milliseconds |
## | |
# Minimum number added to one that makes the result different than one | |
# | |
EPSILON = Number.EPSILON ? 2.2204460492503130808472633361816e-16 | |
## | |
# Given two floating point numbers and the maximum relative difference | |
# between the two, returns true if the two numbers are nearly equal, | |
# false otherwise. If the maximum relative difference (aka _epsilon_) | |
# is undefined, the function will test whether x and y are exactly equal. |