Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
| import collections | |
| from operator import xor | |
| class PRBS(object): | |
| """Generates PRBS sequences. | |
| E.g.:: | |
| # Generate a single period of a prbs7 sequence with |
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 winsound import Beep | |
| import time | |
| nationalhymne = [ | |
| (704, 750), | |
| (792, 250), | |
| (880, 500), | |
| (792, 500), | |
| (940, 500), | |
| (880, 500), |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
| $([IPython.events]).on('notebook_loaded.Notebook', function(){ | |
| IPython.toolbar.add_buttons_group([ | |
| { | |
| 'label' : 'toggle input cells', | |
| 'icon' : 'icon-refresh', | |
| 'callback': function(){$('.input').slideToggle()} | |
| } | |
| ]); | |
| }); |