You create a GraphGist by creating a GitHub Gist in AsciiDoc and enter the URL to it in the form on this page.
Click on the Page Source button in the menu to see the source for this GraphGist!
#!/bin/bash | |
end="$((SECONDS+10))" | |
while true; do | |
[[ "200" = "$(curl --silent --write-out %{http_code} --output /dev/null http://localhost:7474)" ]] && break | |
[[ "${SECONDS}" -ge "${end}" ]] && exit 1 | |
sleep 1 | |
done |
data Position = Position Int Int Direction | |
deriving (Show, Eq, Read) | |
data Direction = N | E | W | S | |
deriving (Show, Eq, Enum, Bounded, Read) | |
data Command = L | R | M | |
deriving (Show, Eq, Enum, Bounded, Read) | |
data DeltaPosition = DeltaPosition Int Int deriving (Show) | |
data State = State { |
#!/bin/bash | |
# tiny script to extract the logs of the latest startup sequence in a Neo4j instance | |
# | |
if (( $# == 0 )); then | |
echo "call me: $0 <path_to_messages.log>" | |
exit 1 | |
fi |
library('RCurl') | |
library('RJSONIO') | |
query <- function(querystring) { | |
h = basicTextGatherer() | |
curlPerform(url="http://localhost:7474/db/data/cypher", | |
postfields=paste('query',curlEscape(querystring), sep='='), | |
writefunction = h$update, | |
verbose = FALSE | |
) |
You create a GraphGist by creating a GitHub Gist in AsciiDoc and enter the URL to it in the form on this page.
Click on the Page Source button in the menu to see the source for this GraphGist!
You create a GraphGist by creating a GitHub Gist in AsciiDoc and enter the URL to it in the form on this page.
Click on the Page Source button in the menu to see the source for this GraphGist!
You create a GraphGist by creating a GitHub Gist in AsciiDoc and enter the URL to it in the form on this page.
Click on the Page Source button in the menu to see the source for this GraphGist!
Answer to this Stackoverflow Question