Skip to content

Instantly share code, notes, and snippets.

Avatar

Jershon jylopez

View GitHub Profile
@jylopez
jylopez / stripe_currency_codes.php
Created Jan 17, 2020
Stripe currency codes in php (shoutout to Jeff)
View stripe_currency_codes.php
$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 Sep 17, 2021
Stripe Country Codes
View stripe_country_codes.js
[
{country: 'Australia', code: 'AU'},
{country: 'Austria', code: 'AT'},
{country: 'Belgium', code: 'BE'},
{country: 'Bulgaria', code: 'BG'},
{country: 'Brazil ', code: 'BR'},
{country: 'Canada', code: 'CA'},
{country: 'Cyprus', code: 'CY'},
{country: 'Czech Republic', code: 'CZ'},
{country: 'Denmark', code: 'DK'},
@jylopez
jylopez / stripe_currency_codes.js
Last active Jun 23, 2021
Stripe Currency Codes
View stripe_currency_codes.js
[
{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'},
View postgres_example_distinct.sql
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