Skip to content

Instantly share code, notes, and snippets.

View syedarehaq's full-sized avatar

Syed Arefinul Haque syedarehaq

View GitHub Profile
@syedarehaq
syedarehaq / elastic_scroll.py
Created October 22, 2020 04:16 — forked from zobayer1/elastic_scroll.py
Simple generator function to download Elasticsearch index data using scroll query
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import requests
class ElasticScroll(object):
"""Manages scroll contexts for elasticsearch scroll queries.
Args:
host (str): Elasticsearch host url. Example: ``http://localhost:9200``.
index (str): Elasticsearch index name. Example: ``my_index``.
@syedarehaq
syedarehaq / README.md
Created April 14, 2020 04:31 — forked from jrladd/README.md
Marvel Network: A Tricked-Out D3 Implementation

This force-directed graph takes advantage of the new features of D3 version 4 to display and manipulate a network of Marvel Comics characters. Click "open" to use the full suite of tools.

Features

  • Scroll to zoom.
  • Use the slider to change the edge-weight threshold.
  • Click on nodes to see ego networks (click again to see all nodes).
  • Use the dropdown to show three different centrality measures, calculated using NetworkX in Python and imported through the marvel.json file.