I hereby claim:
- I am nijave on github.
- I am nickv (https://keybase.io/nickv) on keybase.
- I have a public key ASCkIUu0f3ypx3tws9wDMmnVWVYzgUm5tn2gXx_KWI56_Qo
To claim this, I am signing this object:
| import json | |
| import re | |
| with open("AARON1.DAT", "r") as f: | |
| workoutfile = f.read().strip() | |
| workouts_json = "[" + workoutfile.replace(" }\n}\n{", "},\n{").replace("}\n{", "},\n{").strip()[0:-1] + "]" | |
| try: | |
| workouts = json.loads(workouts_json) |
| from concurrent import futures | |
| import collections | |
| import time | |
| def job(job_id): | |
| time.sleep(job_id) | |
| return job_id | |
| from multiprocessing import Pool | |
| import time | |
| import random | |
| import collections | |
| def job(job_id): | |
| time.sleep(job_id) | |
| return job_id |
| import pandas as pd | |
| from pandas.io.json import json_normalize | |
| import json | |
| import boto3 | |
| client = boto3.client('ec2') | |
| data = client.describe_spot_instance_requests() | |
| df = pd.DataFrame(json_normalize(data['SpotInstanceRequests'])).set_index('InstanceId') | |
| df['RequestFailed'] = df['Status.Message'].apply(lambda x: str("unused capacity" in x)) |
| # Containers | |
| docker inspect $(docker ps -a --format "{{.ID}}") | python -c ' | |
| from __future__ import print_function | |
| import sys | |
| import json | |
| from datetime import datetime as dt | |
| EXPIRATION_HOURS = 4 | |
| containers = json.loads(sys.stdin.read()) |
I hereby claim:
To claim this, I am signing this object:
| [void][Windows.Networking.Connectivity.NetworkInformation, Windows, ContentType = WindowsRuntime] | |
| $cost = [Windows.Networking.Connectivity.NetworkInformation]::GetInternetConnectionProfile().GetConnectionCost() | |
| $cost.ApproachingDataLimit -or $cost.OverDataLimit -or $cost.Roaming -or $cost.BackgroundDataUsageRestricted -or ($cost.NetworkCostType -ne "Unrestricted") |
| import csv | |
| import logging | |
| import requests | |
| from bs4 import BeautifulSoup | |
| logger = logging.getLogger(__name__) | |
| logging.basicConfig(level=logging.INFO) | |
| job_list = {} | |
| url = "http://www.techlifecolumbus.com/jobs/" |
| # escape=` | |
| # ----------------------------------------------------------------------------------------- | |
| # This file describes the standard way to build Docker in a container on Windows | |
| # Server 2016 or Windows 10. | |
| # | |
| # Maintainer: @jhowardmsft | |
| # ----------------------------------------------------------------------------------------- | |
| import pickle | |
| import numpy as np | |
| import csv | |
| out = csv.writer(open('modem_stats.csv', 'w'), lineterminator='\n') | |
| out.writerow(['time','type','label','power(dBmV)','SNR(dB)']) | |
| def process_event(item): | |
| date = ' '.join(item['status']['Time and Date'].split(' ')[1:]) | |
| down_stats = [ |