Skip to content

Instantly share code, notes, and snippets.

Suman psuman

  • prokarma
  • Hyderabad
View GitHub Profile
psuman / 0_reuse_code.js
Created May 7, 2017
Here are some things you can do with Gists in GistBox.
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
View gist:6fa1c2d48e45937db11e
psuman / gist:3118371
Created Jul 15, 2012
Custom Neo4j Transaction event handler
View gist:3118371
package org.sample
import org.neo4j.graphdb.Node;
import org.neo4j.graphdb.event.TransactionData;
import org.neo4j.graphdb.event.TransactionEventHandler;
import org.neo4j.server.logging.Logger;
public class MyTransactionEventHandler implements
TransactionEventHandler<String> {
psuman / gist:3118359
Created Jul 15, 2012
Neo4j Bootstrapper which registers TransactionEventHandler
View gist:3118359
package org.sample
import java.util.Map;
import org.apache.commons.configuration.Configuration;
import org.neo4j.kernel.EmbeddedGraphDatabase;
import org.neo4j.kernel.GraphDatabaseAPI;
import org.neo4j.server.Bootstrapper;
import org.neo4j.server.NeoServerBootstrapper;
import org.neo4j.server.database.GraphDatabaseFactory;
You can’t perform that action at this time.