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
| # -*- coding: utf-8 -*- | |
| ''' | |
| TODO | |
| ''' | |
| # keep lint from choking on _get_conn and _cache_id | |
| #pylint: disable=E0602 | |
| # Import Python libs | |
| from __future__ import absolute_import |
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
| include: | |
| # for backports | |
| - apt | |
| openssh6.6: | |
| pkg.installed: | |
| # backports; this number *will* change | |
| - pkgs: | |
| - openssh-server: 1:6.6p1-4~bpo70+1 | |
| - openssh-client: 1:6.6p1-4~bpo70+1 |
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 random | |
| data = list() | |
| for i in range(10000): | |
| data.append(random.randint(0, 2**32)) | |
| bits_set = {0: 0} | |
| for i in range(256): | |
| bits_set[i] = (i & 1) + bits_set[i / 2] |