I hereby claim:
- I am jleclanche on github.
- I am jleclanche (https://keybase.io/jleclanche) on keybase.
- I have a public key whose fingerprint is 1697 04C6 FB49 0C68 92C7 F23C 37E0 AF1F DA48 F373
To claim this, I am signing this object:
#!/usr/bin/env python | |
import csv | |
import datetime | |
import re | |
import sys | |
import fireplace.cards | |
from io import StringIO | |
from fireplace.enums import CardSet, CardType, Rarity | |
#!/usr/bin/env python | |
import re | |
import sys | |
REGEX = re.compile(r"^RewriteRule ([^ ]+) (.+?) \[([^\]]+)]") | |
def process_line(line): | |
if not line: | |
return |
import hmac | |
import hashlib | |
import json | |
import logging | |
import os | |
import subprocess | |
import sys | |
from http.server import BaseHTTPRequestHandler, HTTPServer | |
try: |
I hereby claim:
To claim this, I am signing this object:
#!/usr/bin/env python | |
import json | |
import logging | |
import os | |
import re | |
import string | |
import sys | |
import requests | |
from datetime import datetime |
function twitch { | |
if [[ $1 == "--check" ]]; then | |
streams=("day9tv" "totalbiscuit" "trumpsc" "noxious_hs") | |
for s in $streams; do | |
offline=$(curl --silent "https://api.twitch.tv/kraken/streams/$s/" | grep '"stream":null') | |
if [[ $offline == "" ]]; then | |
echo "$s is online" | |
fi | |
done | |
return |
function patchnotes { | |
ua="Battle.net/1.0.8.4217" | |
_baseurl="https://us.battle.net/connect/en/app" | |
usage="usage: $0 <product> [live|ptr|beta]\nproduct is one of wow, s2, d3, wtcg" | |
hash lynx 2>/dev/null || { | |
echo "You need to install Lynx first." | |
return 1 | |
} |
#!/usr/bin/env python | |
import json | |
import sys | |
try: | |
from urllib.request import urlopen | |
except ImportError: | |
from urllib2 import urlopen | |
input = raw_input |
from django.contrib.auth.models import User | |
from tastypie.authorization import Authorization, Unauthorized | |
class SameUserAuthorization(Authorization): | |
""" | |
Authorizes user to create, read and modify resources if they match | |
a specific or a set of users. | |
By default, this checks the user against the "user" attribute of the object. | |
To modify that behaviour, pass a custom `user` argument to |