Skip to content

Instantly share code, notes, and snippets.

// challenge: https://s.mita.me/baag
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int conv_from_nos(const char nos_num[]) {
// nos_num: the NOS encoded number ending with a null byte
size_t nos_len = strlen(nos_num);
@Mitame
Mitame / ircd.py
Created December 1, 2015 07:56 — forked from Taiiwo/ircd.py
A library for creating IRC interfaces to messaging services, allowing them to be used via IRC clients.
import socket
import thread
import re
class IRCd:
debug = True
servername = socket.getfqdn("")[:140]
events = []
handlers = {}
def __init__(self, host="127.0.0.1", port=6667):

Keybase proof

I hereby claim:

  • I am mitame on github.
  • I am mitame (https://keybase.io/mitame) on keybase.
  • I have a public key whose fingerprint is D150 6650 E0B9 D5C0 F9F6 8E3A B298 EDEB 5EEB B18C

To claim this, I am signing this object:

@Mitame
Mitame / PowderToySaveSize.py
Created April 5, 2015 19:05
Estimates the average size of a Powder Toy save.
#!/usr/bin/env python3
import urllib.request
import random
sizes = []
try:
for x in range(0,500):
saveID = random.randint(0,1700000)
save = urllib.request.urlopen("http://static.powdertoy.co.uk/%s.cps" % str(saveID)).read()