Skip to content

Commit

Permalink
Data, data, everywhere!
Browse files Browse the repository at this point in the history
  • Loading branch information
seth-reeser committed Jun 20, 2017
1 parent d4a27b4 commit ccf47be
Show file tree
Hide file tree
Showing 38 changed files with 94 additions and 96 deletions.
176 changes: 88 additions & 88 deletions README.md

Large diffs are not rendered by default.

Binary file modified data/4ventavis.com.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified data/adcirca.com.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified data/arava.com.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified data/bevespi.com.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified data/celebrex.com.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified data/crestor.com.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified data/cyramza.com.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified data/daliresp.com.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified data/enbrel.com.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified data/erbitux.com.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified data/exelonpatch.com.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified data/gliadel.com-patient.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified data/humira.com.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified data/kevzara.com.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified data/letairis.com.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified data/lipitor.com.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified data/livalorx.com.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified data/mysymbicort.com.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified data/namenda.com.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified data/namzaric.com.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified data/opsumit.com.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified data/orencia.bmscustomerconnect.com.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified data/orenitram.com.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified data/remicade.com-rheumatoid-arthritis.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified data/remodulin.com.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified data/repatha.com.png
Binary file modified data/revatio.com.png
Binary file modified data/startwithanoro.com.png
Binary file modified data/stivarga-us.com.png
Binary file modified data/tracleer.com.png
Binary file modified data/tyvaso.com.png
Binary file modified data/uptravi.com.png
Binary file modified data/us.afinitor.com-sega-tuberous-sclerosis.png
Binary file modified data/veletri.com.png
Binary file modified data/vimovo.com.png
Binary file modified data/zaltrap.com.png
14 changes: 6 additions & 8 deletions moai.py
Original file line number Diff line number Diff line change
Expand Up @@ -514,12 +514,11 @@ def dict_constructor(loader, node):
print('\n' + indication + '\n==============================').upper()

content += '\n<tr>'
content += '<td colspan="8"><strong>' + str(indication) + '</strong></td>'
content += '<td colspan="7"><strong>' + str(indication) + '</strong></td>'
content += '</tr>'
content += '\n<tr>'
content += '<td>Drug<br/>generic<br/>company</td>'
content += '<td><img src="https://placehold.it/15/cc4c02?text=+"> Regulatory code</td>'
content += '<td><img src="https://placehold.it/15/fe9929?text=+"> HTTPS<br/><img src="https://placehold.it/15/fee391?text=+"> server<br/><img src="https://placehold.it/15/ffffe5?text=+"> ASN</td>'
content += '<td>Drug<br/>Generic<br/>Company<br/><img src="https://placehold.it/15/cc4c02?text=+"> Regulatory code</td>'
content += '<td><img src="https://placehold.it/15/fe9929?text=+"> HTTPS<br/><img src="https://placehold.it/15/fee391?text=+"> Server<br/><img src="https://placehold.it/15/ffffe5?text=+"> ASN</td>'
content += '<td>:iphone:<br/><img src="https://placehold.it/15/014636?text=+"></td>'
content += '<td>:wheelchair:<br/><img src="https://placehold.it/15/016c59?text=+"></td>'
content += '<td>:computer:<br/><img src="https://placehold.it/15/02818a?text=+"></td>'
Expand All @@ -533,7 +532,7 @@ def dict_constructor(loader, node):
print('\n' + website + '\n------------------------------').upper()

# set the figure size
ax = plt.figure(figsize=(18,1), dpi=60)
ax = plt.figure(figsize=(20,1), dpi=60)
# set the font size
matplotlib.rcParams.update({'font.size': 8})
# qualitative color palette picker
Expand Down Expand Up @@ -682,8 +681,7 @@ def dict_constructor(loader, node):
break

content += '\n<tr>'
content += '<td><a href="http://{0}" target="_blank">{0}</a><br/><sub>{1}</sub><br/><sub>{2}</sub></td>'.format( website , data[indication][website]['drug']['generic'] , data[indication][website]['drug']['company'] )
content += '<td><sub>{0}</sub></td>'.format( code )
content += '<td><a href="http://{0}" target="_blank">{0}</a><br/><sub>{1}</sub><br/><sub>{2}</sub><br/><sub>{3}</sub></td>'.format( website , data[indication][website]['drug']['generic'] , data[indication][website]['drug']['company'] , code )
content += '<td><a href="https://www.ssllabs.com/ssltest/analyze.html?d={0}" target="_blank">{1}</a><br/><sub>{2}</sub><br/><sub>{3}</sub></td>'.format( website , https, server, asn )
content += '<td><a href="https://developers.google.com/speed/pagespeed/insights/?url={0}&tab=mobile" target="_blank"><sub>{1}</sub></a></td>'.format( website , google_psi_mobile )
content += '<td><a href="https://developers.google.com/speed/pagespeed/insights/?url={0}&tab=mobile" target="_blank"><sub>{1}</sub></a></td>'.format( website , google_psi_mobile_usability )
Expand All @@ -692,7 +690,7 @@ def dict_constructor(loader, node):
content += '<td><sub>{0}</sub></td>'.format( moz_rank )
content += '</tr>'
content += '\n<tr>'
content += '<td colspan="8"><img src="data/{0}.png"/></td>'.format( website.replace("/","-") )
content += '<td colspan="7"><img src="data/{0}.png"/></td>'.format( website.replace("/","-") )
content += '</tr>'

content += '\n</table>'
Expand Down

0 comments on commit ccf47be

Please sign in to comment.