Skip to content

Instantly share code, notes, and snippets.

@sim51
sim51 / website-down.sh
Last active March 31, 2023 08:51
Bash script that runs a command when a website is done
#!/bin/bash
set -e
#
# Script variables
#
# The url to check
WEBPAGE="https://www.bsimard.com/"
# Timeout
@sim51
sim51 / qsqs.gexf
Last active January 26, 2023 14:54
qsqsq
This file has been truncated, but you can view the full file.
<?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">
<attributes class="node">
<attribute id="Tag" title="Tag" type="string"/>
<attribute id="URL" title="URL" type="string"/>
<attribute id="Cluster" title="Cluster" type="string"/>
<attribute id="Score" title="Score" type="string"/>
</attributes>
@sim51
sim51 / Small.gexf
Last active February 3, 2023 16:50
Small
<?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">
<attributes class="node">
<attribute id="rawSize" title="rawSize" type="integer"/>
</attributes>
<attributes class="edge">
<attribute id="rawSize" title="rawSize" type="integer"/>
</attributes>
@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 {