Skip to content

Instantly share code, notes, and snippets.

View jylopez's full-sized avatar

Jershon jylopez

View GitHub Profile
@jylopez
jylopez / stripe_currency_codes.php
Created January 17, 2020 15:50
Stripe currency codes in php (shoutout to Jeff)
$currency_array = array(
array('currency' => 'Afghan Afghani', 'code' => 'AFN'),
array('currency' => 'Albanian Lek', 'code' => 'ALL'),
array('currency' => 'Algerian Dinar', 'code' => 'DZD'),
array('currency' => 'Angolan Kwanza', 'code' => 'AOA'),
array('currency' => 'Argentine Peso', 'code' => 'ARS'),
array('currency' => 'Armenian Dram', 'code' => 'AMD'),
array('currency' => 'Aruban Florin', 'code' => 'AWG'),
array('currency' => 'Australian Dollar', 'code' => 'AUD'),
array('currency' => 'Azerbaijani Manat', 'code' => 'AZN'),
@jylopez
jylopez / stripe_country_codes.js
Last active January 14, 2025 23:46
Stripe Country Codes
[
{ code: 'AU', name: 'Australia' },
{ code: 'AT', name: 'Austria' },
{ code: 'BE', name: 'Belgium' },
{ code: 'BR', name: 'Brazil' },
{ code: 'BG', name: 'Bulgaria' },
{ code: 'CA', name: 'Canada' },
{ code: 'HR', name: 'Croatia' },
{ code: 'CY', name: 'Cyprus' },
{ code: 'CZ', name: 'Czech Republic' },
@jylopez
jylopez / stripe_currency_codes.js
Last active September 3, 2024 15:25
Stripe Currency Codes
[
{currency: 'Afghan Afghani', code: 'AFN'},
{currency: 'Albanian Lek', code: 'ALL'},
{currency: 'Algerian Dinar', code: 'DZD'},
{currency: 'Angolan Kwanza', code: 'AOA'},
{currency: 'Argentine Peso', code: 'ARS'},
{currency: 'Armenian Dram', code: 'AMD'},
{currency: 'Aruban Florin', code: 'AWG'},
{currency: 'Australian Dollar', code: 'AUD'},
{currency: 'Azerbaijani Manat', code: 'AZN'},
@jylopez
jylopez / postgres_example_distinct.sql
Created April 5, 2017 22:43
Postgres example distinct
WITH cohorts_join AS (SELECT
cohorts.id,
cohorts.name,
cohorts.settings,
cohorts.created_at,
cohorts.updated_at,
registrations.product_id,
products.type AS product_type
FROM cohorts, cohorts_registrations, registrations, products
WHERE