Skip to content

Instantly share code, notes, and snippets.

@sim51
sim51 / TEST.gexf
Last active February 5, 2023 11:31
TEST
<?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="0">
<viz:size value="0"/>
<viz:position x="63.29695754804172" y="51.93657398917823"/>
</node>
<node id="1">
@sim51
sim51 / TEST
Created January 25, 2023 15:57
TEST
<?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="0"/>
<node id="1"/>
<node id="2"/>
<node id="3"/>
<node id="4"/>
@sim51
sim51 / TEST
Created January 25, 2023 15:55
TEST
<?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="0"/>
<node id="1"/>
<node id="2"/>
<node id="3"/>
<node id="4"/>
<?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="0"/>
<node id="1"/>
<node id="2"/>
<node id="3"/>
<node id="4"/>
@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"/>
@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 / 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 {
+-------------------------------+----------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Name | Type | Query |
+-------------------------------+----------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
@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 / style.json
Last active February 14, 2017 16:23
Default graph style
{
"settings": {
"neo4j": {
"login": "neo4j",
"password": "admin",
"url": "bolt://localhost"
},
"style": {
"labels": {
"City": {