# start GremlinServer | |
# bin/gremlin-server.sh -i org.apache.tinkerpop gremlin-python 3.2.2-SNAPSHOT | |
# bin/gremlin-server.sh conf/gremlin-server-modern-py.yaml | |
from gremlin_python.process.graph_traversal import GraphTraversal | |
from gremlin_python.process.graph_traversal import GraphTraversalSource | |
from gremlin_python.process.graph_traversal import __ | |
from gremlin_python.process.traversal import Operator | |
from gremlin_python.structure.io.graphson import GraphSONReader |
// Code for Michael Malak's Spark Summit 2016 presentation | |
// "Finding Graph Isomorphisms in GraphX and GraphFrames | |
// Additional code can be downloaded from | |
// https://www.manning.com/books/spark-graphx-in-action | |
// * readRdf() for GraphX | |
// * EXAMPLE: Missing <exports> for Canada (using GraphX SVD++) | |
// * EXAMPLE: Missing <influences> for well-known philosophers (using GraphFrames) | |
// Shell command to launch Spark Shell with GraphFrames jar |
export NEO4J_HOME=${NEO4J_HOME-~/Downloads/neo4j-community-3.0.1} | |
if [ ! -f data-csv.zip ]; then | |
curl -OL https://cloudfront-files-1.publicintegrity.org/offshoreleaks/data-csv.zip | |
fi | |
export DATA=${PWD}/import | |
rm -rf $DATA |
import sys | |
import requests | |
URL_BASE = "https://gis.arlingtonva.us:6443/arcgis/rest/services/" | |
TIMEOUT = 5 | |
def find_address_candidate(single_line): | |
path = "geoproc/Composite_Add_loc/GeocodeServer/findAddressCandidates" | |
params = { |
This is an example Shiny app to use a dynamic Leaflet map like a selectInput. To run the app, install the necessary packages then enter the command shiny::runGist('4988b5164258917687cb')
.
Unless you are using Safari on OSX, most browsers will have some kind of free plugin that you can use to export the browser's history. So that's probably the easiest way. The harder way, which seems to be what Safari wants is a bit more hacky but it will also work for other browsers. Turns out that most of them, including Safari, have their history saved in some kind of sqlite database file somewhere in your home directory.
The OSX Finder cheats a little bit and doesn't show us all the files that actually exist on our drive. It tries to protect us from ourselves by hiding some system and application-specific files. You can work around this by either using the terminal (my preferred method) or by using the Cmd+Shft+G in Finder.
Once you locate the file containing the browser's history, copy it to make a backup just in case we screw up.
Today I came across a really interesting StackOverflow question:
Given a forest of trees in a Neo4j REST server, I`m trying to return a single tree given the root vertex. Being each tree quite large, I need a de-duplicated list of all vertices and edges in order to be able to reconstruct the full tree on the client side.
library(RCurl) | |
val <- getURL('ldap://ldap.domain.net/DC=domain,DC=net?sAMAccountName?sub?(employeeID=0123456)', | |
.opts=list(userpwd = "DOMAIN\\domainid:password")) |