I hereby claim:
- I am makeitjoe on github.
- I am makeitjoe (https://keybase.io/makeitjoe) on keybase.
- I have a public key ASCVMdLww8H_1eEK3Ay9iq8uDMDt3YL1zdQFRS7TgZnJNAo
To claim this, I am signing this object:
// MySQL to Google Spreadsheet By Pradeep Bheron | |
// Support and contact at pradeepbheron.com | |
function myMySQLFetchData() { | |
var conn = Jdbc.getConnection('jdbc:mysql://127.0.0.1:3306/employee_db', 'username', 'pass'); // Change it as per your database credentials | |
var stmt = conn.createStatement(); | |
var start = new Date(); // Get script starting time | |
I hereby claim:
To claim this, I am signing this object:
on alfred_script(q) | |
tell application "iTerm" | |
activate | |
try | |
select first window | |
on error | |
create window with default profile | |
select first window | |
end try |
from apps import app | |
from tornado import autoreload | |
from tornado.wsgi import WSGIContainer | |
from tornado.httpserver import HTTPServer | |
from tornado.ioloop import IOLoop | |
if __name__ == '__main__': | |
http_server = HTTPServer(WSGIContainer(app)) | |
http_server.listen(5000) |
def path_count(x, y): | |
def c_iter(x, y, acc): | |
return acc if x <= 0 or y <= 0 else c_iter(x - 1, y, acc + path_count(x, y -1)) | |
return c_iter(x, y, 1) | |
if __name__ == '__main__': | |
print path_count(2, 2) |
#!/usr/bin/env python | |
#coding:utf-8 | |
import random | |
import hashlib | |
DIGEST_LEN = 16 | |
def generate(password): | |
salt = '%0*d%0*d' % (8, random.randint(0, 99999999), 8, random.randint(0, 99999999)) |
import sys | |
reload(sys) | |
sys.setdefaultencoding('utf-8') |