I hereby claim:
- I am keddad on github.
- I am keddad (https://keybase.io/keddad) on keybase.
- I have a public key whose fingerprint is 5147 C93F 6B1E 53AF FF50 1A78 3C39 C662 028A 1C4F
To claim this, I am signing this object:
class Kasper: | |
def __init__(self, v): | |
self.v = v | |
def __eq__(self, other): | |
return self.v == other.v | |
d = {} | |
d[Kasper(4)] = 5 # TypeError: unhashable type: 'Kasper' |
-----BEGIN PGP PUBLIC KEY BLOCK----- | |
mQINBGDguOEBEADq999Y6B67Dkb7Ok4C6N5BqDY5djQE4b2CUcHq5mHbqLvg++iO | |
Xg6dL0YnbGpFMedFdfA/AJ0c7JEz9HqrMg/1wT672LciHt8ar5Am0Q4vy6r5cGOD | |
vlIeuPgBjxtzFihE8LYDuPFMz3YejQI8iYNMUvIfwH1IG2CUg8GfY+oZJsTeswDO | |
EfeMyySU++JAdr1PgCBHCUJ33fJKFi7+MrojO7gwFaArSnrfX8TzDKRkmLOKH0If | |
VEa6CZHphSp15VhQvzC8VIriLpNBDqQ3/HSt3CM0YlyevobXiF86E6cQSr5w7BSY | |
8Vqq4Wu2Sn7FlrtneRNcBzJBB1XEYPvz614w/1pWEj0fen3uOPvPescbnGReZybJ | |
RCOcXZDv7IgHFx2o6HpN6w2sbWG3IThWcjSuLIQg8V2KRLCTxzaw/AvolSWNoS+C | |
F5QrLn8oZXomj/eAew3wHYOhLUAqBZ+6AyR5YIKFLfBd+T5e8d0yt3Mp01Tg6GBy |
with open("27-29b.txt", "rt") as f: | |
n = int(f.readline()) | |
data = [] | |
for line in f.readlines(): | |
data.append(sorted(list(map(int, line.split())), reverse=True)) | |
sum = 0 | |
df = 1000000000001 |
with open("in.txt", "rt") as f: | |
data = list(map(int, f.readlines())) | |
cnt = 0 | |
for i in range(len(data)): | |
for j in range(i + 5, len(data)): | |
if (data[i] + data[j]) % 2 == 1 and (data[i] * data[j]) % 13 == 0: | |
cnt += 1 |
#include <cstdio> | |
#include <sys/socket.h> | |
#include <netdb.h> | |
#include <arpa/inet.h> | |
int main() { | |
struct addrinfo *res = nullptr; | |
getaddrinfo("google.com", "443", nullptr, &res); | |
struct addrinfo *i; |
#include <iostream> | |
#include <algorithm> | |
#include <vector> | |
#include <chrono> | |
#include <numeric> | |
#include <thread> | |
template<typename It, typename T> | |
void accumulate_block(It first, It last, T &res) { | |
res = std::accumulate(first, last, res); |
from multiprocessing import Queue | |
from fetchers.base import Fetcher | |
from typing import List | |
import schedule | |
import time | |
import signal | |
from utils import signal_handler | |
signal.signal(signal.SIGINT, signal_handler) |
#include <iostream> | |
#include <vector> | |
#include <algorithm> | |
#include <map> | |
using namespace std; | |
struct Record | |
{ | |
int id; |
I hereby claim:
To claim this, I am signing this object:
import psycopg2 | |
import random | |
from timeit import default_timer as timer | |
def setup_db(db): | |
db = db.cursor() | |
db.execute("create extension if not exists cube;") | |
db.execute("drop table if exists vectors") | |
db.execute( |