Skip to content

Instantly share code, notes, and snippets.

@sim51
sim51 / neo4j-reset-load.ps1
Created April 22, 2018 08:03
Reset and Load Neo4j script
###############################################################################
### SCRIPT VARIABLES : change them !!!
###############################################################################
$NEO4J_PATH="c:\neo4j-enterprise-3.3.4"
$NEO4J_LOGIN="neo4j"
$NEO4J_PASSWORD="letmein"
$CYPHER_PATH="c:\cypher"
$CSV_PATH="c:\data"
@sim51
sim51 / index.html
Last active February 7, 2017 13:15
Neo4j and JCDecaux opendata API
<html>
<head>
<title>Neo4j and JCDecaux API</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.0.3/dist/leaflet.css" />
<script src="https://unpkg.com/leaflet@1.0.3/dist/leaflet.js"></script>
<script src="https://cdn.rawgit.com/neo4j/neo4j-javascript-driver/1.1/lib/browser/neo4j-web.min.js"></script>
<style>
@sim51
sim51 / keybase.md
Created January 30, 2017 21:46
keybase.md

Keybase proof

I hereby claim:

  • I am sim51 on github.
  • I am sim51 (https://keybase.io/sim51) on keybase.
  • I have a public key whose fingerprint is F6A4 75B0 DAAE B1E7 8B47 B623 14BD 4B4E 4B3E C6BA

To claim this, I am signing this object:

@sim51
sim51 / 00_index.adoc
Last active October 13, 2015 12:45
Graph Gist : Analyse des participants au Graph Day Paris 2015

Analyse des participants au Graph Day Paris 2015

Introduction

Suite au Graph Day qui s’est tenu à Paris, j’ai récupéré en interne le tableur contenant la liste des inscriptions et des présents à l’évènement. Vu qu’on est à l’heure des bilans, je me suis dit que j’allais le faire avec l’outil mis à l’honneur : Neo4j.

Dans la suite de cette documentation, vous allez voir les différentes étapes de l’analyse de ce fichier.

Le graph

@sim51
sim51 / config.js
Last active May 31, 2017 15:05
Tiny Neo4j angular service
'use strict';
// Neo4j configuration
app.constant('NEO4J_USER', 'neo4j');
app.constant('NEO4J_PASSWORD', 'admin');
app.constant('NEO4J_URL', 'http://localhost:7474/db/data/transaction/commit');
@sim51
sim51 / generate.sh
Created July 14, 2015 15:57
Neo4j generate node/relation with lot of property,label & relation type
#!bin/bash
echo "CREATE CONSTRAINT ON (n:Test) ASSERT n.node IS UNIQUE;"
for i in {1..1000}
do
echo "create (:Test:Test$i {"
for j in {1..20}
do
echo "property$i$j : 'test',"
done
echo " node:'$i'});"
@sim51
sim51 / README
Last active August 29, 2015 14:24
graphgist
= Graph gist n°1
:neo4j-version: 2.1.0
:author: Benoit Simard
:twitter: @logisima
:labels: Customer,City,Activity,Product
== Initialisation
//hide
@sim51
sim51 / gist:bb4bba220b28ad2276bf
Created November 11, 2014 12:19
Esigate init.d script
#!/bin/sh
### BEGIN INIT INFO
# Provides: esigate
# Required-Start: $remote_fs $syslog
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start esigate server.
# Description: Enable esigate by daemon.
@sim51
sim51 / Formation GIT.css
Last active August 29, 2015 14:04
Formation GIT#hype
@charset "UTF-8";
/* =============================================================================== */
/* COMMON STYLE
/* =============================================================================== */
body {
background: #FFFFFF;
color : #556F7C;
}
@sim51
sim51 / nutch.sh
Created December 8, 2013 13:29
Bash script for nutch 2
#!/bin/bash
NUTCH_HOME=/opt/apache-nutch-2.2.1/runtime/local
# depth in the web exploration
nbLoop=10
# number of selected urls for fetching
maxUrls=50
nbThread=2
# solr server
solrUrl=http://localhost:8983/solr/nutch