Linked Data Platform notes, ontologies, and resources.
Impetus
| ### PowerShell script to install a minimal Workstation with Chocolatey | |
| # https://chocolatey.org | |
| ## To Run This Script: | |
| # 1. Download this PowerShell script | |
| # * Right-click <> ("View Raw") and "Save As" to %USERPROFILE% (/Users/<username>) | |
| # * If Cocolatey is not already installed, see | |
| # "Uncomment to install Chocolatey" | |
| # * If you would like to also install Anaconda | |
| # (Python, IPython, lots of great libraries) |
| $ time python ./test_islice_performance.py | |
| =============================================================================== | |
| # PERF justification for https://github.com/pydata/pandas/issues/6700 | |
| # 1000 times | |
| # -10% = 10% speedup | |
| # 20% = 20% slowdown | |
| ------------------------------------------------------------------------------- | |
| def get_data(n=100000): | |
| return ((x, x*20, x*100) for x in xrange(n)) |
| #!/usr/bin/env python | |
| # encoding: utf-8 | |
| from __future__ import print_function | |
| from __future__ import division | |
| """ | |
| broadband_cap | |
| ============== | |
| Calculate time to reach broadband cap with specified bandwidth speeds | |
| Usage:: |
| #!/usr/bin/env python | |
| # encoding: utf-8 | |
| from __future__ import print_function | |
| """ | |
| imgcomp -- [re]compress an image multiple times, saving intermediate output | |
| * https://en.wikipedia.org/wiki/JPEG | |
| * https://en.wikipedia.org/wiki/Generation_loss | |
| """ |
| #!/usr/bin/env python | |
| # encoding: utf-8 | |
| from __future__ import print_function | |
| """ | |
| parse_editable_url | |
| """ | |
| import urllib | |
| import urlparse | |
| import logging |
| #!/usr/bin/env python | |
| """ | |
| A utility for modifying ReStructuredText headings by the | |
| specified shift offset. | |
| For example:: | |
| ========== | |
| Title | |
| ========== |
| from pandas import DataFrame, Series, Index | |
| N = 1.7 | |
| index2 = Index(range(0,200)) | |
| uhh = [(n**N) for n in index2[:95]] | |
| uhh.extend( (n**(-N)) for n in index2[95:100] ) | |
| uhh.extend( uhh ) | |
| series = Series(uhh, index=index2) | |
| uhh2 = uhh[:95] | |
| uhh2.extend( (uhh[-6],)*5 ) |
| AMR = {'12.20':12.20} | |
| def calculate_data_mb(minutes=10, kbps=AMR['12.20']): | |
| seconds = minutes*60 | |
| kilobits = (kbps*seconds) / 8.0 | |
| mb = float(kilobits) / 1024.0 | |
| return mb | |
| def data_transfer_in_minutes(transfergb=0.134, kbps=AMR['12.20']): | |
| gbits = transfergb * 1024**3 * 8.0 |