Skip to content

Instantly share code, notes, and snippets.

from sqlalchemy import create_engine
from collections import namedtuple
import re
from tqdm.auto import tqdm
Tag = namedtuple('Tag', 'id name count regex')
USERNAME = ''
PASSWORD = ''
URL = 'localhost'
@estasney
estasney / README.md
Created December 6, 2019 14:17 — forked from robschmuecker/README.md
D3.js Drag and Drop, Zoomable, Panning, Collapsible Tree with auto-sizing.

This example pulls together various examples of work with trees in D3.js.

The panning functionality can certainly be improved in my opinion and I would be thrilled to see better solutions contributed.

One can do all manner of housekeeping or server related calls on the drop event to manage a remote tree dataset for example.

Dragging can be performed on any node other than root (flare). Dropping can be done on any node.

Panning can either be done by dragging an empty part of the SVG around or dragging a node towards an edge.

@estasney
estasney / manifest.json
Created September 9, 2018 18:20 — forked from siumeiman/manifest.json
Download LinkedIn
{
  "manifest_version": 2,
  "name": "LinkedIn Profile Saver",
  "version": "1.0.0",
  "content_scripts": [{
    "matches": [
      "http://*.linkedin.com/in/*",
      "https://*.linkedin.com/in/*",
      "http://*.linkedin.com/profile/*",
      "https://*.linkedin.com/profile/*"
# -*- coding: utf-8 -*-
import itertools
import re
import urlparse
import boto
import warc
from boto.s3.key import Key
from gzipstream import GzipStreamFile
@estasney
estasney / rebuild_search_indices.py
Last active May 21, 2018 23:55 — forked from davebarkerxyz/rebuild_search_indices.py
Rebuild Flask-WhooshAlchemy search indices (Python 3, Mega-Tutorial Style)
#!/usr/bin/env python
import datetime
import sys
sys.path.append("mysite")
from app_folder import create_app
from app_folder.models import YOUR_MODEL
app = create_app()
@estasney
estasney / d3.json
Last active February 28, 2018 16:50 — forked from emeeks/d3.layout.orbit.js
Orbit Layout 4
{
"name": "cisco",
"children": [
{
"children": [
{
"name": "learn"
},
{
"name": "play"
@estasney
estasney / .block
Created February 12, 2018 03:27 — forked from mbostock/.block
Modifying a Force Layout
license: gpl-3.0
@estasney
estasney / .block
Created February 12, 2018 01:03 — forked from mbostock/.block
Link Nodes by Name
license: gpl-3.0
@estasney
estasney / .block
Last active February 12, 2018 02:21 — forked from mbostock/.block
Force Layout from CSV
license: gpl-3.0
@estasney
estasney / .block
Last active October 13, 2017 16:14 — forked from kerryrodden/.block
Sequences sunburst (d3 v4)
license: apache-2.0