Skip to content

Instantly share code, notes, and snippets.

View ikwattro's full-sized avatar

Christophe Willemsen ikwattro

View GitHub Profile
@ikwattro
ikwattro / ws-cli.php
Created October 25, 2015 21:58 — forked from ZiTAL/ws-cli.php
php: simple websocket client
<?php
/*
based on: http://stackoverflow.com/questions/7160899/websocket-client-in-php/16608429#16608429
FIRST EXEC PYTHON SCRIPT TO GET HEADERS
*/
$ws = new ws(array
(
'host' => '127.0.0.1',
'port' => 8080,
@ikwattro
ikwattro / Car Manufacturers.json
Created January 30, 2024 20:33 — forked from pcgeek86/Car Manufacturers.json
Plain-text list of major car manufacturers
[
"Abarth",
"Alfa Romeo",
"Aston Martin",
"Audi",
"Bentley",
"BMW",
"Bugatti",
"Cadillac",
"Chevrolet",
@ikwattro
ikwattro / post.md
Last active December 3, 2023 05:20
Discover Graph Databases with Neo4j & PHP

Discover Graph Databases with Neo4j and PHP

Graph databases are now one of the core technologies of companies dealing with highly connected data.

Business graphs, social graphs, knowledge graphs, interest graphs and media graphs are frequently in the (technology) news. And for a reason. The graph model represents a very flexible way of handling relationships in your data. And graph databases provide fast and efficient storage, retrieval and querying for it.

Neo4j, the most popular graph database, has proven that ability to deal with massive amount of high connected data in many use-cases.

@ikwattro
ikwattro / dummy-web-server.py
Created February 22, 2017 22:00
Dummy Web Server in Python 3
#!/usr/bin/env python
"""
Very simple HTTP server in python.
Usage::
./dummy-web-server.py [<port>]
Send a GET request::
curl http://localhost
@ikwattro
ikwattro / GithubEventAnalysisWithNeo4j.markdown
Last active December 2, 2022 17:49
Github Events Analysis with Neo4j

Github Events Analysis with Neo4j

Imgur

On July 22, Github announced the 3rd Annual Github Data Challenge presenting multiple sources of data available.

This sounded to me a good opportunity to use their available data and import it in Neo4j in order to have a lot of fun at analyzing the data that fits naturally in a graph.

As I work mainly offline or behind military proxies that do not permit me to use the ReST API, I decided to go for the Github Archive available here, you can then download json files representing Github Events on a daily/hour basis.

@ikwattro
ikwattro / README.md
Created March 23, 2022 16:16 — forked from michael-simons/README.md
Filtering contents of fileB.json with information from fileA.json
@ikwattro
ikwattro / schema-generator.py
Created February 24, 2021 20:34 — forked from FxIII/schema-generator.py
Hume Schema Generator
import os
from neo4j import GraphDatabase
import json
import random
import logging
import uuid
# default parameters
URI = "bolt://localhost:7687"
@ikwattro
ikwattro / instructions.md
Last active October 21, 2020 23:58
OS X Downgrade to Ant 1.9.3
@ikwattro
ikwattro / App.java
Created April 13, 2020 13:33 — forked from thomasdarimont/App.java
Simple example for configuring Spring Security's RoleHierarchy via YAML in Spring Boot, compatible with Java 7
package demo;
import static java.util.Arrays.asList;
import static org.springframework.security.core.authority.AuthorityUtils.createAuthorityList;
import java.io.PrintWriter;
import java.io.StringWriter;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
CREATE (n:HumeAction)
SET n.id = 'hume_action_chart'
SET n.data = '{
  "label": "Show Demand",
  "returnType": "CHART",
  "scope": "LOCAL",
  "id": "hume_action_chart",
  "action": {
 "statement": "MATCH (n:Product) WHERE id(n) = $id