Skip to content

Instantly share code, notes, and snippets.

View lionelbarrow's full-sized avatar

Lionel Barrow lionelbarrow

View GitHub Profile
@lionelbarrow
lionelbarrow / sql_primer.md
Last active August 12, 2024 01:16
SQL primer

SQL Primer

While there are plenty of good tutorials for SQL on the Internet, I didn't find anything that set the up the historical context and "assumed understanding" of SQL very well, so I decided to write a short primer on the topic. Here's what we'll cover:

  • What is SQL?
  • The SQL programmng language
  • Databases and SQL
  • Schemas and queries

What is SQL?

@lionelbarrow
lionelbarrow / gist:7751833
Created December 2, 2013 16:07
Braintree subscription create XML with add-ons and discounts
The type="array" is necessary
<subscription>
<payment-method-token>the_payment_method_token</payment-method-token>
<plan-id>the_plan_id</plan-id>
<add-ons>
<add type="array">
<item>
<inherited-from-id>add_on_id_1</inherited-from-id>
<amount>20.00</amount>