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 * |
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
| DISTRIB_ID=Ubuntu | |
| DISTRIB_RELEASE=14.04 | |
| DISTRIB_CODENAME=trusty | |
| DISTRIB_DESCRIPTION="Ubuntu 14.04.2 LTS" |
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
| #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
| #!/usr/bin/env python | |
| import sys | |
| import stripe | |
| email = sys.argv[1] | |
| print(stripe.customer.create(email=email)) |
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
| #!/bin/bash | |
| if [[ -z $(pip3 show scdl) ]]; then | |
| sudo pip3 install scdl | |
| fi | |
| SCDL_TARGET="$1" | |
| shift | |
| SCDL_ADD_ARGS="$@" | |
| SCDL_TARGET_DIR="$(pwd)/$SCDL_TARGET" |
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
| #!/bin/bash | |
| if [[ -z $(pip3 show scdl) ]]; then | |
| sudo pip3 install scdl | |
| fi | |
| SCDL_TARGET="$1" | |
| shift | |
| SCDL_ADD_ARGS="$@" | |
| SCDL_TARGET_DIR="$(pwd)/$SCDL_TARGET" |
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
| from rest_framework import viewsets | |
| from rest_framework.status import HTTP_400_BAD_REQUEST | |
| from rest_framework.response import Response | |
| from mixtape.music import serializers | |
| from mixtape.music.models import Track | |
| from mixtape.music.models import Artist | |
| from mixtape.music.models import Album |
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
| from rest_framework import viewsets | |
| from rest_framework.status import HTTP_400_BAD_REQUEST | |
| from rest_framework.response import Response | |
| from mixtape.music import serializers | |
| from mixtape.music.models import Track | |
| from mixtape.music.models import Artist | |
| from mixtape.music.models import Album |
OlderNewer