Skip to content

Instantly share code, notes, and snippets.

View 4ndr01d3's full-sized avatar

Gustavo Salazar 4ndr01d3

View GitHub Profile
@4ndr01d3
4ndr01d3 / tests_elastic.py
Created January 25, 2017 14:20
python scripts to compare solr vs elasticsearch
import unittest
import http.client
import json
import urllib.parse
class InterproSolrTest(unittest.TestCase):
server = "hmmer-prod-db01"
port = 9200
response_times = []
@4ndr01d3
4ndr01d3 / README.md
Last active July 17, 2019 06:01 — forked from mbostock/.block
Clustering a Force layout with a Quadtree

#Clustering a Force layout with a quadtree#

This is an example of how to use a Quadtree to cluster the nodes that are close to each other in a Force Layout.

With the slider you can select how deep you want to explore the quadtree, and it creates cluster-nodes representing the points that are not going to be displayed.

@4ndr01d3
4ndr01d3 / README.md
Last active November 23, 2016 05:25
How a Quadtree is created

How a Quadtree is created

This demo shows an animation explaining how a Quadtree is created using D3: "A quadtree is a two-dimensional recursive spatial subdivision. This implementation uses square partitions, dividing each square into four equally-sized squares."

The demo was inspired by the article on Visualizing Algorithms. To draw the points and the quadtree squares I took some code from this Example. The tree basically reuses the code of this Example.