This file contains hidden or 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
#/usr/bin/python2 | |
from datetime import datetime, timedelta | |
from requests_oauthlib import OAuth1 | |
from email.utils import parsedate_tz | |
import requests | |
import json, time | |
class TwitDumperConfig: | |
RESP_CODE = { | |
400: 'Bad Request', |
This file contains hidden or 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
#!/usr/bin/python2 | |
from sys import argv | |
from os import system | |
CMD = 'autossh -M 0 -o "ServerAliveInterval 30" -o "ServerAliveCountMax 3"' | |
DEF_SERVER = '0.0.0.0' | |
DEF_LOCAL = '127.0.0.1' | |
DEF_TUN = 30000 |
This file contains hidden or 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.model_selection import train_test_split | |
from sklearn.linear_model import LinearRegression | |
from sklearn import metrics | |
import matplotlib.pyplot as plt | |
import pandas as pd | |
import numpy as np | |
dataset = pd.read_csv('machine.csv') | |
X = dataset[['125', '256', '6000','256.1','16','128']] | |
Y = dataset['198'] |
This file contains hidden or 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
#!/usr/bin/env python | |
from __future__ import unicode_literals | |
from __future__ import division | |
import struct | |
import sys | |
import re | |
RULE = re.compile(r'(\d{7,})((\s?\d{6}){0,8})') |