I hereby claim:
- I am brianmc on github.
- I am brianmc (https://keybase.io/brianmc) on keybase.
- I have a public key whose fingerprint is 5A46 1540 3662 D3FC EE8D 1549 EC6F 5E84 8243 AC44
To claim this, I am signing this object:
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
<?xml version="1.0"?> | |
<purchaseOrder orderDate="1999-10-20"> | |
<shipTo country="US"> | |
<name>Alice Smith</name> | |
<street>123 Maple Street</street> | |
<city>Anytown</city><state>AK</state><zip>12341</zip> | |
</shipTo> | |
<billTo country="US"> | |
<name>Robert Smith</name> | |
<street>8 Oak Avenue</street> |
# ./po1.py | |
# -*- coding: utf-8 -*- | |
# PyXB bindings for NM:e92452c8d3e28a9e27abfc9994d2007779e7f4c9 | |
# Generated 2016-04-20 09:42:19.579706 by PyXB version 1.2.4 using Python 2.7.10.final.0 | |
# Namespace AbsentNamespace0 | |
from __future__ import unicode_literals | |
import pyxb | |
import pyxb.binding | |
import pyxb.binding.saxer |
from __future__ import print_function | |
import po1 | |
import pyxb | |
import inspect | |
import sys | |
import pyxb.binding.basis | |
xml = open('po2.xml').read() |
<?xml version="1.0"?> | |
<purchaseOrder orderDate="1999-10-20"> | |
<shipTo country="US"> | |
<name>Alice Smith</name> | |
<street>123 Maple Street</street> | |
<city>Anytown</city><state>AK</state><zip>12341</zip> | |
</shipTo> | |
<billTo country="US"> | |
<name>Robert Smith</name> | |
<street>8 Oak Avenue</street> |
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"> | |
<xsd:element name="purchaseOrder" type="PurchaseOrderType"/> | |
<xsd:element name="comment" type="xsd:string"/> | |
<xsd:complexType name="PurchaseOrderType"> | |
<xsd:sequence> | |
<xsd:element name="shipTo" type="USAddress"/> | |
<xsd:element name="billTo" type="USAddress"/> | |
<xsd:element ref="comment" minOccurs="0"/> | |
<xsd:element name="items" type="Items"/> | |
</xsd:sequence> |
func callVDAPIGET(payload: String) { | |
println("CAlling REST API") | |
let urlPath = "https://rich-archery-782.appspot.com/touchpay" | |
let url = NSURL(string: urlPath) | |
let session = NSURLSession.sharedSession() | |
let task = session.dataTaskWithURL(url!, completionHandler: {data, response, error -> Void in | |
println("Task completed") | |
if(error != nil) { |
require 'cybs_client' | |
auth_request = { | |
"amount" => "0", | |
"currency" => "USD", | |
"payment" => { | |
"cardNumber" => "4111111111111111", | |
"cardExpirationMonth" => "10", | |
"cardExpirationYear" => "2016" |
I hereby claim:
To claim this, I am signing this object: