This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function getRandomPassword(length) { | |
var charset = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"; | |
var result = ""; | |
if (window.crypto && window.crypto.getRandomValues) { | |
values = new Uint32Array(length); | |
window.crypto.getRandomValues(values); | |
for(var i=0; i<length; i++) { | |
result += charset[values[i] % charset.length]; | |
} | |
return result; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import urllib2 | |
import re | |
import sys | |
from collections import defaultdict | |
from random import random | |
import json | |
from collections import namedtuple | |
""" | |
Introducing: Face-Smash! |