ubuntu 12.04 14.04
Reference http://stackoverflow.com/a/18490935/2037928
Login as root
Install needed packages
apt-get -y install build-essential zlib1g-dev libssl-dev libreadline6-dev libyaml-dev| #!/usr/bin/python | |
| # -*- coding: utf-8 -*- | |
| from sys import argv | |
| from time import strftime | |
| clocks = {'12:00': 'π', '12:30': 'π§', '1:00': 'π', '1:30': 'π', | |
| '2:00': 'π', '2:30': 'π', '3:00': 'π', '3:30': 'π', | |
| '4:00': 'π', '4:30': 'π', '5:00': 'π', '5:30': 'π ', | |
| '6:00': 'π', '6:30': 'π‘', '7:00': 'π', '7:30': 'π’', |
ubuntu 12.04 14.04
Reference http://stackoverflow.com/a/18490935/2037928
Login as root
Install needed packages
apt-get -y install build-essential zlib1g-dev libssl-dev libreadline6-dev libyaml-dev| """ | |
| Would this make a better random.sample() function for the Python | |
| standard library? Robert Floyd's algorithm as presented in Jon | |
| Bentley, "A Sample of Brilliance". | |
| Answer: no, it's slower; somewhat slower even if you tune it. | |
| I tried a few different test cases -- both small and large | |
| result lists. I'd expect it to use much less memory in some cases, | |
| but my flailings turned up no case where that seemed to matter. |