I hereby claim:
- I am syedarehaq on github.
- I am syedarehaq (https://keybase.io/syedarehaq) on keybase.
- I have a public key ASDBn1wJZyLT4H2_N7hJ_flZa2Eprc6sEYbt1Lyb84Sk7Qo
To claim this, I am signing this object:
#!/usr/bin/env python | |
## Source: https://github.com/jamesmishra/mysqldump-to-csv | |
import fileinput | |
import csv | |
import sys | |
# This prevents prematurely closed pipes from raising | |
# an exception in Python | |
from signal import signal, SIGPIPE, SIG_DFL | |
signal(SIGPIPE, SIG_DFL) |
#!/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``. |
I hereby claim:
To claim this, I am signing this object:
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.
import argparse | |
parser = argparse.ArgumentParser() | |
parser = argparse.ArgumentParser(description="go to the line of a specific position") | |
parser.add_argument("input_fname", help = "The input csv file that we will be reading") | |
parser.add_argument("pos", help="position where we will be seeking the line", type=float) | |
args = parser.parse_args() | |
fname = args.input_fname | |
position = args.pos | |
try: | |
with open(fname) as file: # don't you go correcting me on naming it file. we don't call file directly anyway! |