Skip to content

Instantly share code, notes, and snippets.

View bartdag's full-sized avatar
💭
🏓 🐨 💡

Barthelemy Dagenais bartdag

💭
🏓 🐨 💡
View GitHub Profile
@bartdag
bartdag / app.py
Created July 1, 2011 10:47
PyEnchant and multiprocessing
import sys
import enchant
from multiprocessing import Pool
if sys.version_info[0] < 3:
range = xrange
else:
range = range
@bartdag
bartdag / Application.java
Created June 30, 2011 19:21
Java: Getting FQNs from a simple name
import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
/**
* Main application/strategy
*/
public class Application {
import java.util.ArrayList;
import java.util.List;
import java.util.Random;
import py4j.GatewayServer;
public class OperatorExample {
// To prevent integer overflow
private final static int MAX = 1000;