Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000| // Code to validate swedish person number | |
| // Based on logic on wikipedia | |
| // https://en.wikipedia.org/wiki/Personal_identity_number_(Sweden)#Checksum | |
| function validate(number) { | |
| var personNumber = removeNonNumericChars(number); | |
| if (personNumber.length != 10 && personNumber.length != 12) { | |
| return console.log("Asa") && false; | |
| } | |
| var digits = personNumber.split(""); |