I hereby claim:
- I am simon-engledew on github.
- I am hotdogknight (https://keybase.io/hotdogknight) on keybase.
- I have a public key ASAgtfxSK9B6HOaDQ5d24zVPIew7t0ey_VboaxjNYX8ALgo
To claim this, I am signing this object:
unsigned int intpow(unsigned int a, unsigned int b) | |
{ | |
unsigned int p = 1; | |
for (; b > 0;) | |
{ | |
if ((b & 1) != 0) | |
{ | |
p *= a; | |
} | |
b >>= 1; |
import ( | |
"bytes" | |
"errors" | |
"fmt" | |
"github.com/gorilla/csrf" | |
"golang.org/x/net/html" | |
"io" | |
"io/ioutil" | |
"net/http" |
import itertools | |
import functools | |
import collections | |
class StatisticsError(ValueError): | |
pass | |
def _key(pair): |
I hereby claim:
To claim this, I am signing this object:
#include <signal.h> | |
#include <unistd.h> | |
#include <stdlib.h> | |
#include <stdio.h> | |
#include <sys/wait.h> | |
volatile sig_atomic_t pid = 0; | |
static void restart(int sig) | |
{ |
import hashlib | |
import getpass | |
from urllib.request import urlopen, Request | |
def check(password): | |
digest = hashlib.sha1(password.encode('utf-8')).hexdigest().upper() | |
head, tail = digest[:5], digest[5:] |
# -*- coding: utf-8 -*- | |
import os | |
import sys | |
import select | |
import errno | |
import threading | |
import Queue | |
from functools import wraps, partial | |
from contextlib import contextmanager, closing | |
import logging |
from multiprocessing import Process, Queue | |
from multiprocessing.reduction import reduce_handle, rebuild_handle | |
from contextlib import closing | |
import socket | |
def process_sockets(queue): | |
while True: | |
fd = rebuild_handle(queue.get()) | |
with closing(socket.fromfd(fd, socket.AF_INET, socket.SOCK_STREAM)) as connection: |
# -*- coding: utf-8 -*- | |
""" | |
Generates a requirements.txt from any packages | |
in the current working directory. | |
""" | |
import os | |
import glob | |
import contextlib | |
import functools |
""" | |
functional library for generating xml documents | |
""" | |
import xml.dom.minidom as xml | |
class Document(object): | |
""" | |
XML Document Builder |