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
data = [ | |
'go_gc_duration_seconds{host="A",cluster="B",quantile="0.5"} 0.0004', | |
'go_gc_duration_seconds{host="A",cluster="B",quantile="0.75"} 0.0005', | |
'go_gc_duration_seconds{host="A",cluster="B",quantile="0.99"} 0.010', | |
'go_gc_duration_seconds{host="A",cluster="B",quantile="1"} 0.023', | |
'go_gc_duration_seconds_sum{host="A",cluster="B"} 1.442', | |
'go_gc_duration_seconds_count{host="A",cluster="B"} 2115', | |
'go_gc_duration_seconds{host="B",cluster="C",quantile="0.5"} 0.0002', | |
'go_gc_duration_seconds{host="B",cluster="C",quantile="0.75"} 0.0004', | |
'go_gc_duration_seconds{host="B",cluster="C",quantile="0.99"} 0.012', |
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
import os | |
import re | |
import requests | |
import urllib | |
from collections import defaultdict | |
from bs4 import BeautifulSoup | |
def parse_table(table, base_url): | |
data = defaultdict(list) |
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
{ | |
"lines.linewidth": 2.0, | |
"examples.download": true, | |
"patch.linewidth": 0.5, | |
"legend.fancybox": true, | |
"axes.color_cycle": [ | |
"#30a2da", | |
"#fc4f30", | |
"#e5ae38", | |
"#6d904f", |
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
Herbert Simon 153 | |
Terrence Sejnowski 123 | |
Hector Garcia-Molina 120 | |
John R Anderson 118 | |
Wil Van Der Aalst 108 | |
Nick Jennings 101 | |
Alon Halevy 88 | |
Amit Sheth 85 | |
Moshe Y. Vardi 85 | |
Sushil Jajodia 82 |
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
import re | |
import requests | |
from bs4 import BeautifulSoup | |
BASE = 'http://www.registrar.ucla.edu/schedule/' | |
def get_dept_url(term, dept): | |
return BASE + 'crsredir.aspx?termsel=%s&subareasel=%s' % (term, dept) | |
def get_course_url(term, dept, id): |
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
import re | |
import requests | |
from bs4 import BeautifulSoup | |
BASE = 'http://www.registrar.ucla.edu/schedule/' | |
def get_dept_url(term, dept): | |
return BASE + 'crsredir.aspx?termsel=%s&subareasel=%s' % (term, dept) | |
def get_course_url(term, dept, id): |