This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
from math import floor, log10 | |
from digits import bacherikow, intlen, bordum, stephen, bisect | |
def python_strlen(n, str=str, len=len): | |
return len(str(n)) | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import collections | |
import inspect | |
import curio | |
from curio import socket | |
User = collections.namedtuple("User", ["nick", "user", "host"]) | |
Server = collections.namedtuple("Server", ["name"]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdint.h> | |
#include <complex.h> | |
#define MAX_ITERATIONS 80 | |
#define REAL_START -2 | |
#define REAL_END 1 | |
#define IMAG_START -1 | |
#define IMAG_END 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdint.h> | |
#include <complex.h> | |
#define MAX_ITERATIONS 255 | |
#define REAL_START -2 | |
#define REAL_END 1 | |
#define IMAG_START -1 | |
#define IMAG_END 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apcztdj (61) | |
ulovosc (61) -> buzjgp, iimyluk | |
awpvs (88) | |
ykbjhi (14) | |
gxvketg (49) | |
gpmvdo (78) -> jjixrr, zacrh, smylfq, fdvtn | |
nwpmqu (6025) -> aytrde, grokih, pjqaa, nzzved | |
keiakhg (50) | |
vkrlz (22) | |
myzkj (40) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
UP = (0, -1) | |
DOWN = (0, 1) | |
LEFT = (-1, 0) | |
RIGHT = (1, 0) | |
NEXT_DIRECTION = { | |
RIGHT: UP, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import functools | |
import itertools | |
import math | |
def prime_factors(n, sqrt=math.sqrt): | |
limit = sqrt(n) + 1 | |
i = 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#[derive(Debug, Clone)] | |
enum Instruction { | |
Unary(String, String), | |
Binary(String, String, String) | |
} | |
#[derive(Debug)] | |
struct CPU { | |
a: isize, | |
b: isize, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import json | |
import random | |
import curio | |
from nettirely import IrcBot, NO_SPLITTING | |
bot = IrcBot(state_path="jeopardy_state.json") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define _GNU_SOURCE | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#define ever (;;) | |
typedef struct { | |
size_t size; | |
char *names; |
OlderNewer