Skip to content

Instantly share code, notes, and snippets.

@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 / 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 / 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 / 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/[email protected]/dist/leaflet.css" />
<script src="https://unpkg.com/[email protected]/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 / style.json
Last active February 14, 2017 16:23
Default graph style
{
"settings": {
"neo4j": {
"login": "neo4j",
"password": "admin",
"url": "bolt://localhost"
},
"style": {
"labels": {
"City": {
@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"
+-------------------------------+----------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Name | Type | Query |
+-------------------------------+----------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
@sim51
sim51 / test_neo4j.c
Created May 2, 2019 12:44
Neo4j example in C code
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <curl/curl.h>
#include <cjson/cJSON.h>
struct MemoryStruct {
@sim51
sim51 / runNeo4jGqlQuery.ts
Last active November 8, 2021 15:01
Translates a graphql query into a neo4j/graphql query using neo4j/graphql-ogm
import { GraphQLResolveInfo, FieldNode, SelectionNode, SelectionSetNode, print } from "graphql";
import { ResolverContext } from "./index";
/**
*
* Translates a graphql query into a neo4j/graphql query using neo4j/graphql-ogm
* @see https://github.com/neo4j/graphql/issues/227
*
* @param args graphql query args
* @param info GraphQLResolveInfo
@sim51
sim51 / dataset.gexf
Last active January 25, 2023 16:12
A cartography of Wikipedia pages around data visualization
<?xml version="1.0" encoding="UTF-8"?>
<gexf version="1.2" xmlns="http://www.gexf.net/1.2draft" xmlns:viz="http:///www.gexf.net/1.1draft/viz">
<meta/>
<graph defaultedgetype="directed">
<nodes>
<node id="cytoscape"/>
<node id="microsoft excel"/>
<node id="gephi"/>
<node id="microsoft power bi"/>
<node id="qlik"/>