I hereby claim:
- I am jashsu on github.
- I am jashsu (https://keybase.io/jashsu) on keybase.
- I have a public key whose fingerprint is A717 3587 766B 4797 FCD1 5385 B212 DF3B 883D 50F0
To claim this, I am signing this object:
#!/usr/bin/env python | |
# -*- coding: UTF-8 -*- | |
import requests, smtplib, sys, argparse, re | |
from time import sleep, ctime | |
from random import random | |
from email.MIMEMultipart import MIMEMultipart | |
from email.MIMEText import MIMEText | |
from twilio.rest import Client | |
from requests.exceptions import ConnectionError |
#!/usr/bin/env python | |
import requests, json, smtplib, sys | |
from lxml import etree | |
from StringIO import StringIO | |
from time import sleep, ctime | |
from random import random | |
from email.MIMEMultipart import MIMEMultipart | |
from email.MIMEText import MIMEText | |
from getpass import getpass |
>>> def findchildren(chain, tail, used): | |
for move in bogmoves: | |
newtail = tuple(map(operator.add, tail, move)) | |
if newtail[0] > -1 and newtail[0] < bogsize and\ | |
newtail[1] > -1 and newtail[1] < bogsize and\ | |
newtail not in used: | |
#sys.stdout.write(">") | |
#if using isValid() then insert check here | |
bogchains.append(findchildren(chain + bogboard[newtail[0]][newtail[1]], newtail, used + [newtail])) | |
#sys.stdout.write("<") |
Jasons-MBP:git jasonhsu$ python ~/Downloads/kicknotifier.py xxx@gmail.com xxx@gmail.com xxxxyyyyzzzzaaaa smtp.gmail.com 587 https://www.kickstarter.com/projects/poots/kingdom-death-monster-15?ref=user_menu | |
Fetching data... | |
-------------------------------------------------------------------------------- | |
[ 1] $1 : No Reward | |
[ 2] $5 : By pledging $5, you gain access to our Add Ons. Please incre | |
[ 3] $50 : Shipping not included. Please see shipping information for d | |
[ 4] $60 : Shipping not included. Please see shipping information for d | |
[ 5] $185 : Shipping not included. Please see shipping information for d | |
[ 6] $195 : Shipping not included. Please see shipping information for d |
#!/usr/bin/env python | |
import requests, json, smtplib, sys | |
from lxml import etree | |
from StringIO import StringIO | |
from time import sleep, ctime | |
from random import random | |
from email.MIMEMultipart import MIMEMultipart | |
from email.MIMEText import MIMEText | |
from getpass import getpass |
Python 2.7.10 (default, Oct 23 2015, 18:05:06) | |
[GCC 4.2.1 Compatible Apple LLVM 7.0.0 (clang-700.0.59.5)] on darwin | |
Type "copyright", "credits" or "license()" for more information. | |
>>> WARNING: The version of Tcl/Tk (8.5.9) in use may be unstable. | |
Visit http://www.python.org/download/mac/tcltk/ for current information. | |
>>> import requests, json | |
>>> from lxml import etree | |
>>> from StringIO import StringIO | |
>>> from pprint import pprint |
I hereby claim:
To claim this, I am signing this object:
{ | |
"Type":"UnencryptedConfiguration", | |
"NetworkConfigurations":[ | |
{ | |
"GUID":"{%GUID_A%}", | |
"Name":"%NAME%", | |
"Type":"VPN", | |
"VPN":{ | |
"Type":"OpenVPN", | |
"Host":"%HOSTNAME%", |
def is_power_of_three(num): | |
from types import IntType, FloatType | |
assert type(num) in (IntType, FloatType) | |
x = 3 | |
if num in (0, 1): return True | |
elif num < 0: return False | |
elif num > 0 and num < 1: | |
while True: | |
y = 1.0/x #hacky.. | |
#print y, x |