This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#implements HTCPCP as per RFC 2324 https://www.ietf.org/rfc/rfc2324.txt | |
from django.http import HttpResponse | |
class HTCPCPMiddleware(object): | |
coffee_list = [ | |
'/coffee/black/', | |
'/coffee/espresso/' | |
] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
charge = stripe.Charge.create( | |
amount=amount, | |
currency="usd", | |
application_fee=application_fee, | |
source=order.payment.token, #card_XXXXXXXX | |
#doesnt work as card='card_XXXXXXX' either | |
customer=order.buyer.token, #cust_XXXXXXXX | |
destination=order.seller.token #acct_XXXXXXXX | |
) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DISTRIB_ID=Ubuntu | |
DISTRIB_RELEASE=14.04 | |
DISTRIB_CODENAME=trusty | |
DISTRIB_DESCRIPTION="Ubuntu 14.04.2 LTS" |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/**************************************************************************************** | |
* FEATURES: * | |
* 1.In a gallery view press ctrl+alt+leftclick (windows,linux?) * | |
* or cmd+alt+leftclick (osx) to open the full sized image in a new tab * | |
* * | |
* 2.In a view page press ctrl+leftclick (windows, linux?) or * | |
* cmd+leftclick (osx) to open the image in a new tab, can also be * | |
* done by default by doing the same to "Download" * | |
* * | |
* 3.Automatically checks for new submissions, will dynamically change the * |
NewerOlder