I hereby claim:
- I am sourceless on github.
- I am sourceless (https://keybase.io/sourceless) on keybase.
- I have a public key whose fingerprint is 11EB 27D5 F80E 625B C383 0AB3 3D9D D96A 0340 667C
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
my_name = # Oh dear, this is a SyntaxError! | |
my_year = # Same here! And these variables are never used! | |
crawl = [ | |
"Glasshouse", | |
"Lowther", | |
"Yates's", | |
"Parish", | |
"Society", |
Verifying I am +sourceless on my passcard. https://onename.com/sourceless |
def columns(list_of_lists): | |
# Assumes all lists are same length as first, or longer | |
columns = len(list_of_lists[0]) | |
list_of_lists = [iter(list_) for list_ in list_of_lists] | |
for _ in xrange(columns): | |
yield [list_iter.next() for list_iter in list_of_lists] |
import BaseHTTPServer | |
class OhaiHandler(BaseHTTPServer.BaseHTTPRequestHandler): | |
def do_GET(self): | |
self.send_response(200, 'OHAI') | |
self.end_headers() | |
self.wfile.write('OHAI') | |
if __name__ == '__main__': |
# Disclaimer: this is terrible and bad. | |
# Directory structure: | |
# bin/ | |
# fragman/ | |
# __init__.py | |
# fragments/ | |
# __init__.py | |
# some_awesome_func.py | |
# | |
# |
from twilio.rest import TwilioRestClient | |
import sys | |
account_sid = 'my-account-sid' | |
auth_token = 'my-auth-token' | |
client = TwilioRestClient(account_sid, auth_token) | |
message = client.sms.messages.create(body=sys.argv[1], | |
to="my-number", | |
from_="twilio-number") |
from twilio.rest import TwilioRestClient | |
import sys | |
account_sid = 'my-account-sid' | |
auth_token = 'my-auth-token' | |
client = TwilioRestClient(account_sid, auth_token) | |
message = client.sms.messages.create(body=sys.argv[1], | |
to="my-number", | |
from_="twilio-number") |
from twilio.rest import TwilioRestClient | |
import sys | |
account_sid = 'your-account-sid' | |
auth_token = 'your-auth-token' | |
client = TwilioRestClient(account_sid, auth_token) | |
message = client.sms.messages.create(body=sys.argv[1], | |
to="your-number", | |
from_="your-twilio-number") |