Skip to content

Instantly share code, notes, and snippets.

View federicobond's full-sized avatar

Federico Bond federicobond

View GitHub Profile
@federicobond
federicobond / letterpress.py
Last active October 13, 2015 13:48
Small script to give you the longest words you can play in Letterpress for iOS. Used it for demonstration purposes. Cheating spoils the fun.
from collections import Counter
class Letterpress(object):
DICTIONARY = "Words/Words/en.txt"
def __init__(self, available):
"""Inialize letterpress object"""
self.words = self.build_words()
#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
#define MEM_SIZE 30000
#define BUF_SIZE 2000
void execute(const char prg[]);
int read_file(FILE *f, char buf[], const int bufsize);