Skip to content

Instantly share code, notes, and snippets.

View theotheo's full-sized avatar
🌴
On vacation

theotheo

🌴
On vacation
View GitHub Profile
@theotheo
theotheo / run_grep.py
Created January 23, 2018 01:56 — forked from kuk/run_grep.py
import re
import sys
from subprocess import Popen, PIPE
from multiprocessing import Pool
PDS_BASE = 'http://aws-publicdatasets.s3.amazonaws.com/'
WARC_PATHS = {
'2014-12': 'common-crawl/crawl-data/CC-MAIN-2014-52/warc.paths.gz',
'2015-07': 'common-crawl/crawl-data/CC-MAIN-2015-32/warc.paths.gz'
# encoding: utf-8
"""
@author: BrikerMan
@contact: eliyar917@gmail.com
@blog: https://eliyar.biz
@version: 1.0
@license: Apache Licence
@file: w2v_visualizer.py
@time: 2017/7/30 上午9:37
"""
from bs4 import BeautifulSoup
import requests
import html5lib
import lxml
import urllib3
NUMBERS = ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23", "24", "25", "26", "27", "28", "29", "30", "31", "32", "33", "34", "35", "36", "37", "38", "39", "40", "41", "42", "43", "44", "45", "46", "47", "48", "49", "50", "51", "52", "53", "54", "55", "56", "57", "58", "59"]
ICOBENCH_URL = "https://icobench.com/icos?page={num}"
#loop for getting all the ongoing, past and future ico links
@theotheo
theotheo / 0_reuse_code.js
Last active August 29, 2015 14:23
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
body {
font-family: Helvetica, Verdana
}
p {
padding: 7px 10px;
}
#demo {
border: 1px solid #999;
}