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 | |
| # Average runs looks like this: | |
| # $ ./serialization.py | |
| # Starting json... | |
| # done: 5.75292301178 | |
| # Starting simplejson... | |
| # done: 6.66689586639 | |
| # Starting cjson... | |
| # done: 2.09307098389 |
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
| Jquick7490MLA:force jquick$ mkvirtualenv force | |
| Traceback (most recent call last): | |
| File "/usr/local/bin/virtualenv", line 8, in <module> | |
| load_entry_point('virtualenv==1.5.1', 'console_scripts', 'virtualenv')() | |
| File "/Library/Python/2.6/site-packages/virtualenv.py", line 558, in main | |
| prompt=options.prompt) | |
| File "/Library/Python/2.6/site-packages/virtualenv.py", line 647, in create_environment | |
| site_packages=site_packages, clear=clear)) | |
| File "/Library/Python/2.6/site-packages/virtualenv.py", line 771, in install_python | |
| copy_required_modules(home_dir) |
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
| license: gpl-3.0 |
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 numpy import linspace, cos, pi, absolute | |
| from numpy.fft import fft, fftfreq, fftshift | |
| import matplotlib.pyplot as plt | |
| # Sampling rate | |
| fs = 64 # Hz | |
| # Time is from 0 to 1 seconds, but leave off the endpoint, so | |
| # that 1.0 seconds is the first sample of the *next* chunk | |
| length = 1 # second |
NewerOlder