I hereby claim:
- I am jmhobbs on github.
- I am jmhobbs (https://keybase.io/jmhobbs) on keybase.
- I have a public key whose fingerprint is D8E5 99E7 D1FF 62B0 9FD6 016C 2580 C0BE 34EB 9490
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| #!/usr/local/bin/python | |
| import requests | |
| import subprocess | |
| # Configure Your Info Here | |
| DOMAIN = "https://YOU.harvestapp.com" | |
| USERNAME = "" | |
| PASSWORD = "" | |
| # / End Config |
| # Description: | |
| # | |
| # A plugin to track points awarded for good jokes. | |
| # | |
| # Hubot takes transaction fees though. | |
| # | |
| # | |
| # Dependencies: | |
| # A Redis brain is recommended. | |
| # |
| # -*- coding: utf-8 -*- | |
| import socket | |
| import os | |
| print("Connecting...") | |
| if os.path.exists("/tmp/python_unix_sockets_example"): | |
| client = socket.socket(socket.AF_UNIX, socket.SOCK_DGRAM) | |
| client.connect("/tmp/python_unix_sockets_example") | |
| print("Ready.") | |
| print("Ctrl-C to quit.") |
| siblings = {1: 2, 2: 1, 3: 4, 4: 3, 5: 6, 6: 5} | |
| cousins = set(siblings.keys()) | |
| # Start by getting all the possible pairings for each person. | |
| possible_pairings = {1: set(), 2: set(), 3: set(), 4: set(), 5: set(), 6: set()} | |
| for i in cousins: | |
| for j in cousins - set((i, siblings[i])): | |
| possible_pairings[i].add(j) | |
| combinations = [] |
| # -*- coding: utf-8 -*- | |
| BANK_FEE = 0.15 | |
| COINBASE_PCT = 0.01 | |
| def calculate_sale_profit(coins, price, purchase_cost): | |
| value = round(coins * price, 2) | |
| fee = BANK_FEE + round(value * COINBASE_PCT) | |
| return (value - fee) - purchase_cost |
| # -*- coding: utf-8 -*- | |
| import sys | |
| from flask import Flask, url_for | |
| app = Flask(__name__) | |
| @app.route("/") |
| { | |
| "repositories": [ | |
| { | |
| "type": "vcs", | |
| "url": "git://github.com/jmhobbs/Swiftmailer-Transport--AWS-SES.git" | |
| } | |
| ], | |
| "require": { | |
| "jmhobbs/swiftmailer-transport-aws-ses": "dev-master" | |
| } |
| <?php | |
| // This is how many different "random" avatars you have. | |
| $default_avatar_count = 20; | |
| foreach( $comments as $comment ) { | |
| // Normalize the email address so user input differences doesn't change the avatar. | |
| // This is technically against RFC 2821, but in practice it is ok. | |
| $normalized_email_address = trim(strtolower($comment->comment_author_email)); |