I hereby claim:
- I am subsetpark on github.
- I am zdsmith (https://keybase.io/zdsmith) on keybase.
- I have a public key whose fingerprint is 1418 37FB 75F4 70F9 B465 E89E 8135 42F3 EB9A C1F7
To claim this, I am signing this object:
proc recv*(connection: Connection): int = | |
var | |
socket = connection.socket.get() | |
data = newString(FRAME_MAX_SIZE) | |
try: | |
result = socket.recv(addr data[0], FRAME_MAX_SIZE, timeout = 10) | |
data.setLen(result) | |
except TimeoutError: | |
discard |
proc recv*(connection: Connection): int = | |
var | |
socket = connection.socket.get() | |
buffer = newSeq[byte]() | |
b: byte | |
while true: | |
try: | |
let bytesReceived = socket.recv(addr(b), 1, 1) |
$ sudo apt-get install -y gcc-multilib g++-multilib libffi-dev libffi6 libffi6-dbg python-crypto python-mox3 python-pil python-ply libssl-dev zlib1g-dev libbz2-dev libexpat1-dev libbluetooth-dev libgdbm-dev dpkg-dev quilt autotools-dev libreadline-dev libtinfo-dev libncursesw5-dev tk-dev blt-dev libssl-dev zlib1g-dev libbz2-dev libexpat1-dev libbluetooth-dev libsqlite3-dev libgpm2 mime-support netbase net-tools bzip2 | |
$ wget https://www.python.org/ftp/python/2.7.10/Python-2.7.10.tgz | |
$ tar xvf Python-2.7.10.tgz | |
$ cd Python-2.7.10/ | |
$ ./configure --prefix /usr/local/lib/python2.7.10 --enable-ipv6 | |
$ make | |
$ sudo make install |
def full_clean(self, exclude=None, validate_unique=True): | |
""" | |
Calls clean_fields, clean, and validate_unique, on the model, | |
and raises a ``ValidationError`` for any errors that occurred. | |
""" | |
errors = {} | |
if exclude is None: | |
exclude = [] | |
else: | |
exclude = list(exclude) |
# coding=utf-8 | |
from sys import argv | |
import random, time | |
def bold(s): | |
return '\033[1m'+s+'\033[0m' | |
def italic(s): |
I hereby claim:
To claim this, I am signing this object: