Split: O(1)
Join: O(1)
Access: O(log(n))
Append: O(log(n)) ?? *
| def match_licenses(self): | |
| """Match license text against loaded licenses.""" | |
| margin = min(20, len(self._known_licenses) / 20) | |
| found = 0 | |
| test_ratio = 103 | |
| while found < margin and test_ratio > 0: | |
| to_check = [] | |
| test_ratio -= 3 | |
| for digest in self._known_licenses.keys(): | |
| license = self._known_licenses[digest] |
| chirp/exec_test.py::test_ssl src/encryption.c:100 Initializing the OpenSSL library. ch_chirp_t:0x7ffd4e952480 | |
| src/encryption.c:187 Created SSL context for chirp. ch_chirp_t:0x7ffd4e952480 | |
| src/chirp.c:429 Chirp initialized. ch_chirp_t:0x7ffd4e952480, uv_loop_t:0x7ffd4e952130 | |
| src/protocol.c:161 Accepted connection. ch_connection_t:0xba8650, ch_chirp_t:0x7ffd4e952480 | |
| 139999378810512:error:1408A0C1:SSL routines:SSL3_GET_CLIENT_HELLO:no shared cipher:s3_srvr.c:1440: | |
| src/protocol.c:249 Error:SSL operation fatal error. ch_chirp_t:0x7ffd4e952480, ch_connection_t:0xba8650 | |
| src/connection.c:265 Shutdown connection. ch_connection_t:0xba8650, ch_chirp_t:0x7ffd4e952480 | |
| src/connection.c:151 Shutdown callback called. ch_connection_t:0xba8650, ch_chirp_t:0x7ffd4e952480 | |
| src/connection.c:186 Closing connection after shutdown. ch_connection_t:0xba8650, ch_chirp_t:0x7ffd4e952480 | |
| src/connection.c:352 Shutdown semaphore (1). ch_connection_t:0xba8650, ch_chirp_t:0x7ffd4e952480 |
| Plugin 'altercation/vim-colors-solarized' | |
| colorscheme solarized |
| pcm.!default plug:pboth | |
| pcm.pboth { | |
| type plug | |
| slave { | |
| pcm "both" | |
| } | |
| } | |
| pcm.both { |
| int i = 0; | |
| while( | |
| i < sizeof(tmp_conf->IDENTITY) && | |
| tmp_conf->IDENTITY[i] == 0 | |
| ) i += 1; | |
| if(tmp_conf->IDENTITY[i] == 0) | |
| _ch_random_ints_to_bytes(ichirp->identity, 16); | |
| else | |
| *ichirp->identity = *tmp_conf->IDENTITY; |
| C:\Users\admin\c4irp>python chirp_cffi/high_level.py || exit /B 1 | |
| _chirp_cffi.c | |
| fatal error C1007: unrecognized flag '-FitObjData' in 'p2' | |
| LINK : fatal error LNK1257: code generation failed | |
| Traceback (most recent call last): | |
| File "chirp_cffi/high_level.py", line 164, in <module> | |
| ffi.compile() | |
| File "C:\Python27\lib\site-packages\cffi\api.py", line 672, in compile | |
| compiler_verbose=verbose, **kwds) | |
| File "C:\Python27\lib\site-packages\cffi\recompiler.py", line 1461, in recompile |
| # You can start qutebrowser without sudo or entering a password | |
| # as root | |
| apt-get install schroot | |
| mkdir /srv/chroot/sid | |
| debootstrap sid /srv/chrrot/sid | |
| cp -r /etc/schroot/desktop /etc/schroot/merge | |
| # edit /etc/schroot/merge/fstab | |
| # edit /etc/schroot/schroot.conf | |
| # create /usr/local/bin/qb |
| import timeit | |
| # Why we need concs | |
| for x in [10, 100, 1000, 10000]: | |
| print(timeit.timeit( | |
| "ll = len(l) // 2; a = l[:ll]; b = l[ll:]", | |
| "l = [0] * %d" % x | |
| )) |
| import sh | |
| import re | |
| evtest = sh.evtest("/dev/input/event9", _bg=True) | |
| cur_slot = 0 | |
| slots = [0] * 10 | |
| tools = set() | |
| slots.append(tools) |