I hereby claim:
- I am Ivoah on github.
- I am ivoah (https://keybase.io/ivoah) on keybase.
- I have a public key whose fingerprint is 7012 B9C3 2C55 FE6A 4051 DB4B B02D E557 4793 31C3
To claim this, I am signing this object:
all_cards = { | |
{0, 3}, | |
{0, 0}, {0, 0}, {0, 0}, {0, 0}, | |
{0, 1}, {0, 1}, {0, 1}, {0, 1}, | |
{0, 2}, {0, 2}, {0, 2}, {0, 2}, | |
{1, 0}, {2, 0}, {3, 0}, {4, 0}, {5, 0}, {6, 0}, {7, 0}, {8, 0}, {9, 0}, | |
{1, 1}, {2, 1}, {3, 1}, {4, 1}, {5, 1}, {6, 1}, {7, 1}, {8, 1}, {9, 1}, | |
{1, 2}, {2, 2}, {3, 2}, {4, 2}, {5, 2}, {6, 2}, {7, 2}, {8, 2}, {9, 2}, | |
} |
# Change PREFIX to C-a | |
unbind C-b | |
set -g prefix C-a | |
bind C-a send-prefix | |
# Move around panes with vim keys | |
bind j select-pane -D | |
bind k select-pane -U | |
bind h select-pane -L | |
bind l select-pane -R |
import subprocess | |
import re | |
CC = 'gcc' | |
FILE = 'main.c' | |
OUTPUT = 'fbcp' | |
error_re = re.compile(r'main\.c:(\d+):\d+: (?:(?:fatal )?error|warning)') | |
def comment_line(l): |
I hereby claim:
To claim this, I am signing this object:
from PIL import Image, ImageDraw, ImageFont | |
baskerville = ImageFont.truetype('Baskerville.ttf', 72) | |
size = ImageDraw.Draw(Image.new('RGBA', (1, 1))).multiline_textsize('WorldviewAcademy\nForum', font = baskerville) | |
background = (240, 236, 224, 0) | |
col1 = (101, 76, 34) | |
col2 = (199,150,57) | |
img = Image.new('RGBA', size, background) | |
draw = ImageDraw.Draw(img) |
import time | |
try: | |
import numpy | |
def image_to_data(image): | |
pb = numpy.array(image.convert('RGB')).astype('uint16') | |
color = ((pb[:,:,2] >> 3) << 11) | ((pb[:,:,1] >> 2) << 5) | (pb[:,:,0] >> 3) | |
return numpy.dstack(((color >> 8) & 0xFF, color & 0xFF)).flatten().tolist() | |
except ImportError: | |
def image_to_data(image): |
from requests import get | |
from bs4 import BeautifulSoup | |
import re | |
import os | |
def make_filename(fname): | |
for c in ',! ().': | |
fname = fname.replace(c, '_') | |
while fname != fname.replace('__', '_'): | |
fname = fname.replace('__', '_') |
import turtle, sys, math | |
def dragon_curve(t, n, l): | |
sqrt2over2 = math.sqrt(2)/2 | |
i = [1 for i in range(n)] | |
def r(n, l): | |
if n == 0: | |
t.forward(l) | |
else: | |
_ = 1 |
# -*- coding: utf-8 -*- | |
from requests import get | |
from bs4 import BeautifulSoup | |
import time | |
import Foundation | |
import objc | |
NSUserNotification = objc.lookUpClass('NSUserNotification') | |
NSUserNotificationCenter = objc.lookUpClass('NSUserNotificationCenter') |
public class Evaluator { | |
public class ParseException extends Exception { | |
public ParseException () { | |
super("Error parsing string"); | |
} | |
public ParseException(String msg) { | |
super(msg); | |
} | |
} |