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:
| const TextCarousel: React.FunctionComponent = ({ children }) => { | |
| const [index, setIndex] = React.useState(0); | |
| const max = React.Children.count(children); | |
| const ms = 5000; | |
| React.useEffect( | |
| function () { |
| CREATE OR REPLACE FUNCTION json_merge_objects(a json, b json) RETURNS json | |
| LANGUAGE SQL IMMUTABLE AS $$ | |
| WITH combined AS ( | |
| SELECT pair.key, pair.value FROM json_each(a) AS pair | |
| UNION ALL | |
| SELECT pair.key, pair.value FROM json_each(b) AS pair | |
| ) | |
| SELECT json_object_agg(key, value) | |
| FROM combined | |
| $$; |
| 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: |