This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
kill $(ps aux | grep 'ssh -f -N -L' | awk '{print $2}') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"[python]": { | |
"editor.formatOnSave": true, | |
"editor.codeActionsOnSave": { | |
"source.organizeImports": true | |
} | |
}, | |
"editor.rulers": [ | |
79 | |
], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from sklearn.feature_extraction.text import CountVectorizer | |
import six | |
class UpdateableCountVectorizer(CountVectorizer): | |
def update(self, text, stop_words=[]): | |
require_sort = False | |
for word in text.split(): | |
if (word not in self.vocabulary_) and \ | |
(word not in stop_words): | |
self.vocabulary_[word] = word |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# coding: utf-8 | |
#!/usr/bin/env python | |
# | |
# Based on https://github.com/TyVik/YaDiskClient | |
# Author: Kirill Vasin | |
import json | |
from requests import request | |
import os | |
disk_cred = ("user", "password") |