Skip to content

Instantly share code, notes, and snippets.

View tvorogme's full-sized avatar

Andrey Tvorozhkov tvorogme

View GitHub Profile
@tvorogme
tvorogme / sklearn.ipynb
Created May 27, 2016 16:05
Sklearn diffrent examples
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
fields=0 48 2 38 46 49 1
sort_key=46
sort_direction=1
hide_threads=0
hide_kernel_threads=1
hide_userland_threads=0
shadow_other_users=1
show_thread_names=0
show_program_path=1
highlight_base_name=1
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

Keybase proof

I hereby claim:

  • I am xenx on github.
  • I am xenx (https://keybase.io/xenx) on keybase.
  • I have a public key whose fingerprint is 163D CEDE 9D6F 8812 1F8B C627 1C3C B13B 05AD EC2E

To claim this, I am signing this object:

Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
from urllib.request import urlopen
from concurrent import futures
import pickle
site = "http://www.nnov.kp.ru/daily/1/"
last_publication = 3625745
start = 3527000
answer = []
def get_page(n):
from urllib.request import urlopen
from concurrent import futures
import pickle
site = "http://izvestia.ru/news/"
last_publication = 646946
start = 500000
answer = []
def get_page(n):
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

Keybase proof

I hereby claim:

  • I am xenx on github.
  • I am xenx (https://keybase.io/xenx) on keybase.
  • I have a public key ASCqfMlpx3HWTotzmAGRQxr6m-d9RNp0xWz6qFt10A9F7wo

To claim this, I am signing this object:

@tvorogme
tvorogme / a.py
Last active March 16, 2017 15:47
import re
string = input().rstrip().lstrip()
string = string.lower()
string = re.sub("\.{1}\s*", ". ", string)
tmp_string = string
string = string.split(". ")
string = list(filter(lambda x: len(x), string))