I hereby claim:
- I am mrhanlon on github.
- I am mrhanlon (https://keybase.io/mrhanlon) on keybase.
- I have a public key whose fingerprint is B167 04D8 20F3 7853 0C22 E0E1 BA60 555E 2A65 CCAA
To claim this, I am signing this object:
#!/bin/sh | |
# Converts a mysqldump file into a Sqlite 3 compatible file. It also extracts the MySQL `KEY xxxxx` from the | |
# CREATE block and create them in separate commands _after_ all the INSERTs. | |
# Awk is choosen because it's fast and portable. You can use gawk, original awk or even the lightning fast mawk. | |
# The mysqldump file is traversed only once. | |
# Thanks to and @artemyk and @gkuenning for their nice tweaks. |
I hereby claim:
To claim this, I am signing this object:
{ | |
"name": "projects-running-jobs", | |
"version": "1.0.0", | |
"description": "", | |
"main": "projects-running-jobs.js", | |
"scripts": { | |
"test": "echo \"Error: no test specified\" && exit 1" | |
}, | |
"repository": { | |
"type": "git", |
private static final String[] NUMBERS = {"zero","one","two","three","four","five","six","seven","eight","nine","ten"}; | |
private static final String[] OPERATIONS = {"+", "-", "×"}; | |
private static final Random RAND = new Random(); // not high entropy, but not a big deal here | |
private Map<String,String> generateCaptcha(PortletSession session) { | |
Map<String,String> captcha = new HashMap<String, String>(); | |
int first, second, third, op, pos, solution; | |
op = RAND.nextInt(OPERATIONS.length); |