This file contains 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
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCtsX9AMEbLJWzJ/XYj/SqDRz7KBxlzd6J/Rhx56BDGmSGUeiU/DiA6uFsquRxmnTAERsq3SnxhnZ4/fLyd0YFCnqaky9465E353zklbXvLBRBv90zgedbIOpJBR4Y2sg0njgjlTTXY+8fOQYM/JP4FOexp6kycqgkOSziDBveEmS1tTdMxTB0IUwxIr80XrG9PBTodv8L1Y5DyI4qaymyVDKNf5PvcRr1mc5fatg1OoL0q8slzvEP3FUYEQTjDzMqkL4tE8SBRA0SlbIooTRTse94Do+EskmC+FOCoQpDsCu9m8eIxPNiNyogSNv9s5UaPf3M02c33y/OI/fMo5eSxQfg+/Rvss0FRKuIWIuTD+deCkw4A7Fb4jLR1HTENZnXe4GCS6BxrI32O8Fdyk7eC2+5XKUJ5OB6Xk8N0BMlqmzxh5NSFa2ga8AiTDeVgRYJbuXChefresZvxSkQFngk1WPv3Dk4n1NtSnFoDHnRimoucMe4K5MB2oHwwDEvwQA9+LmvMI9bNgWadVwSFtfer+9U6GCcJNzevLgcF8z2Won8w50EL/jau0da0FpqCuaPliTAanhueEedVbPGy0Q71K7568yxmM5LYJ3+DTcMuiEvTGhY1Qt4WfgqdOwB3h7oUU5QDF0mHKWcOhrSrbqf57xNGka+infRvu2BPW5MbKQ== michael@Michaels-MacBook-Pro.local |
This file contains 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
// To run, paste the below into your Chrome console on | |
// https://www.nytimes.com/games/wordle/index.html from an incognito window | |
// | |
// Tile `evaluation` options are: | |
// - absent: grey, not in word | |
// - present: yellow, in word but wrong position | |
// - correct: green | |
const answers = [ | |
[ |
This file contains 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
const answers = [ | |
['H', 'A', 'P', 'P', 'Y'], | |
['B', 'I', 'R', 'T', 'H'], | |
[' ', 'D', 'A', 'Y', ' '], | |
['B', 'R', 'A', 'I', 'N'], | |
['B', 'R', 'I', 'A', 'N'], | |
['!', '!', '!', '!', '!'] | |
]; | |
const rows = document.querySelectorAll('game-app')[0].shadowRoot.querySelectorAll('game-row'); |
This file contains 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
const answers = [ | |
['H', 'A', 'P', 'P', 'Y'], | |
['B', 'I', 'R', 'T', 'H'], | |
[' ', 'D', 'A', 'Y', ' '], | |
['B', 'R', 'A', 'I', 'N'], | |
['B', 'R', 'I', 'A', 'N'], | |
['!', '!', '!', '!', '!'] | |
]; | |
const rows = document.querySelectorAll('game-app')[0].shadowRoot.querySelectorAll('game-row'); |
This file contains 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
> curl https://api.stripe.com/v1/customers \ | |
-u [apikey]: \ | |
-d "card[number]=4000000000000002" \ | |
-d "card[exp_month]=12" \ | |
-d "card[exp_year]=2015" \ | |
-d "card[cvc]=123" \ | |
> -d validate=false | |
{ | |
"object": "customer", | |
"created": 1388967139, |
This file contains 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
var key = 'pk_test_czwzkTp2tactuLOEOqbMTRzG'; | |
var params = { | |
'card[number]': '4242 4242 4242 4242', | |
'card[exp_month]': '01', | |
'card[exp_year]': '2050' | |
}; | |
$.ajax({ | |
url: 'https://api.stripe.com/v1/tokens', | |
method: 'POST', |
This file contains 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
API_KEY = 'SECRET_API_KEY' | |
CSV_FILE = 'refunds.csv' | |
require 'stripe' | |
require 'CSV' | |
Stripe.api_key = API_KEY | |
# Retrieves all refund events from Stripe, handling pagination | |
def all_refund_events(count=50, offset=0) |
This file contains 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
<?php | |
require __DIR__ . '/lib/Stripe.php'; | |
if ($_POST) { | |
Stripe::setApiKey("sk_test_OXXXXXXXXXXXXXXXXXXX9"); | |
try { | |
// Use Stripe's bindings... | |
} catch(Stripe_CardError $e) { | |
// Since it's a decline, Stripe_CardError will be caught | |
$body = $e->getJsonBody(); |
This file contains 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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta http-equiv="Content-type" content="text/html; charset=utf-8" /> | |
<title>Payment Form</title> | |
<link rel="stylesheet" type="text/css" href="https://fxsupport.org/consolidated_common.css" /> | |
<link rel="stylesheet" type="text/css" href="https://fxsupport.org/css/reset-fonts-grids.css" /> | |
<link href='https://fonts.googleapis.com/css?family=Fjalla+One' rel='stylesheet' type='text/css'> | |
<script type="text/javascript" src="https://js.stripe.com/v1/"></script> | |
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script> |
This file contains 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
<?php | |
require 'path-to-Stripe.php'; | |
if ($_POST) { | |
Stripe::setApiKey("YOUR-API-KEY"); | |
$error = ''; | |
$success = ''; | |
try { | |
if (!isset($_POST['stripeToken'])) | |
throw new Exception("The Stripe Token was not generated correctly"); |
NewerOlder