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
import json | |
import requests | |
class PaymentInfo(object): | |
def __init__(self, credit_card, transaction): | |
self.credit_card = credit_card | |
self.transaction = transaction | |
class CreditCard(object): | |
def __init__(self, number, type, expire_month, expire_year, cvv2, first_name, last_name, billing_address): |
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 | |
ENDPOINT="api.sandbox.paypal.com" | |
CLIENT_ID="" | |
SECRET="" | |
#ENDPOINT="api.paypal.com" | |
#CLIENT_ID="" | |
#SECRET="" |
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
OSNAME=Linux | |
ARCH=x86_64 | |
C_COMPILER=GCC | |
BINARY32= | |
BINARY64=1 | |
CEXTRALIB=-L/usr/lib/gcc/x86_64-linux-gnu/4.7 -L/usr/lib/gcc/x86_64-linux-gnu/4.7/../../../x86_64-linux-gnu -L/usr/lib/gcc/x86_64-linux-gnu/4.7/../../../../lib -L/lib/x86_64-linux-gnu -L/lib/../lib -L/usr/lib/x86_64-linux-gnu -L/usr/lib/../lib -L/usr/lib/gcc/x86_64-linux-gnu/4.7/../../.. -lc | |
F_COMPILER=GFORTRAN | |
FC=gfortran | |
BU=_ | |
FEXTRALIB=-L/usr/lib/gcc/x86_64-linux-gnu/4.7 -L/usr/lib/gcc/x86_64-linux-gnu/4.7/../../../x86_64-linux-gnu -L/usr/lib/gcc/x86_64-linux-gnu/4.7/../../../../lib -L/lib/x86_64-linux-gnu -L/lib/../lib -L/usr/lib/x86_64-linux-gnu -L/usr/lib/../lib -L/usr/lib/gcc/x86_64-linux-gnu/4.7/../../.. -lgfortran -lm -lquadmath -lm -lc |
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
USE_SYSTEM_LLVM=0 | |
USE_SYSTEM_ARPACK=1 | |
USE_ATLAS=1 | |
USE_BLAS64=0 | |
USE_SYSTEM_BLAS=1 | |
USE_SYSTEM_LAPACK=1 | |
ATLAS_LIBDIR=/usr/lib | |
LIBBLAS=-L$(ATLAS_LIBDIR) -latlas | |
LIBLAPACK=$(LIBBLAS) | |
LIBBLASNAME = libatlas |
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
"""Run PEP8 on all Python files in this directory and subdirectories as part of the tests.""" | |
__author__ = 'Christopher Swenson' | |
__email__ = '[email protected]' | |
__license__ = 'CC0 http://creativecommons.org/publicdomain/zero/1.0/' | |
import os | |
import os.path | |
import unittest |
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
In [35]: def a(): | |
a = yield 4 | |
print a | |
....: | |
In [36]: b = a() | |
In [37]: b.next() | |
Out[37]: 4 |
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
Using local scripts to install givaro-3.7.1 | |
Found local sources at upstream/givaro-3.7.1.tar.bz2 | |
givaro-3.7.1 | |
==================================================== | |
Setting up build directory for givaro-3.7.1 | |
Finished set up | |
**************************************************** | |
Host system: | |
Linux sagedev 3.5.0-17-generic #28-Ubuntu SMP Tue Oct 9 19:31:23 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux | |
**************************************************** |
NewerOlder