Skip to content

Instantly share code, notes, and snippets.

View HJulio's full-sized avatar
🙃

HJulio

🙃
View GitHub Profile

Keybase proof

I hereby claim:

  • I am hjulio on github.
  • I am hjulio (https://keybase.io/hjulio) on keybase.
  • I have a public key ASBsNOy9ZTLnP0y83gw3OsGMa0R05rfQ6GpbJVLfQ4F-Ggo

To claim this, I am signing this object:

@HJulio
HJulio / async.py
Last active September 16, 2016 15:42
asycn flask decorator
#@async
from threading import Thread
def async(f):
def wrapper(*args, **kwargs):
thr = Thread(target=f, args=args, kwargs=kwargs)
thr.start()
return wrapper
@HJulio
HJulio / markdown.md
Last active August 29, 2016 11:51 — forked from jonschlinkert/markdown-cheatsheet.md
A better markdown cheatsheet. I used Bootstrap's Base CSS documentation as a reference.

Typography

Headings

Headings from h1 through h6 are constructed with a # for each level:

# h1 Heading
## h2 Heading
### h3 Heading
@HJulio
HJulio / OAuth.py
Created May 4, 2016 15:10
Tweepy auth saving tokens
import tweepy, os
def login():
#Tokens
CONSUMER_TOKEN = ''
CONSUMER_SECRET = ''
auth = tweepy.OAuthHandler(CONSUMER_TOKEN, CONSUMER_SECRET)
ACC_TOKEN_SV = os.path.expanduser('./._twitter_keys')
@HJulio
HJulio / knock.py
Created January 29, 2016 12:18
knock knock
import os
import sys
import io
import socket
import time
import struct
TIMEOUT = 10
PORT = "5900"
@HJulio
HJulio / pssw.py
Created November 19, 2015 14:26
Python passwords generator
def random_password(length=8):
chars = string.ascii_uppercase + string.digits + string.ascii_lowercase
password = ''
for i in range(length):
password += chars[ord(os.urandom(1)) % len(chars)]
return password