I hereby claim:
- I am scottnguyen on github.
- I am scottnguyen (https://keybase.io/scottnguyen) on keybase.
- I have a public key whose fingerprint is 6417 6789 C0BF 1E53 5C74 647C E1CF 90BC 35E2 CCC1
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
public String checkPassword(String password){ | |
//... your previous logic | |
for (int i = 0 ; i < password.length - 3; i++) { | |
if (password.charAt(i) == password.charAt(i+1) && password.charAt(i) == password.charAt(i+2)) { | |
result = "invalid"; | |
} | |
} | |
return result; | |
} |
#!/usr/bin/env python | |
from sh import git,cd | |
import argparse | |
from github import Github | |
def main(args): | |
g = Github(args.username, args.password) | |
urls = [] |
ret_responses = responses | |
ret_responses['foo'] = 'bar value' | |
return render_to_response('auth.html', ret_responses, context_instance=RequestContext(request)) |
def fib(n): | |
a = 1 | |
b = 1 | |
""" | |
Don't try to define everything in one line. | |
K.I.S.S. for now. | |
""" | |
while a < n: | |
temp = a | |
a = b |
/* A DTL Example for reading and printing table data. | |
* Probably doesn't work... I can't test it though for some reason... MakeFile | |
* doesn't recognize Darwin/OSX. Probably gonna try to compile DTL on Linux | |
* tomorrow. | |
* | |
* Create your own ODBC connection string: http://www.connectionstrings.com | |
* | |
* Remember: DTL is a semi-container based on STL. Most STL functions can be | |
* used with DTL. | |
* |