Skip to content

Instantly share code, notes, and snippets.

// The Omegle.com "pervy chat" detection algorithm. (From http://www.omegle.com/static/omegle.js.)
function pervy(s) {
return /^\s*f\s*\?\s*$|horny|slut|(?:rub|touch|lick|suck|finger)\s+(?:my|your|ur)|boner|(am|i'm|so|im|my|your?)\s+(hard|wet|tight)|\bcum|sexy|boob|\btits\b|nipple|penis(?:[^e]|$)|cock(?:[^s]|$)|dick(?:[^s]|$)|\bvag(?:\b|ina)|pussy|\bclit|spank|(?:jack|jerk)\s+off|\bfap|nudes|kink/i.test(s);
}
/*
An expanded version of this regex for readability:
/
^\s*f\s*\?\s*$|
@fletom
fletom / iterzipstream.py
Created October 21, 2014 18:19
Dynamically create a zip archive in Python with iterable input and iterable output.
#!/usr/bin/env python
"""
Iterable ZIP archive generator.
Modified from https://github.com/SpiderOak/ZipStream.
"""
import struct, os, sys
import binascii
p.q:before {
content: "Q: ";
font-weight: bold;
}
p.a:before {
content: "A: ";
font-weight: bold;
}