Skip to content

Instantly share code, notes, and snippets.

View maxcodes's full-sized avatar
🤓
Hire me! hire@maxholzheu.com

Max Holzheu maxcodes

🤓
Hire me! hire@maxholzheu.com
View GitHub Profile
@maxcodes
maxcodes / goodreads_to_roam.rb
Last active April 22, 2020 02:31
Import Goodreads Export into Roam
require "csv"
def roam_bookshelf(shelf)
case shelf
when "favorites"
"Favorite"
when "re-read"
"Re-Read"
when "bios"
"Biography"
@maxcodes
maxcodes / test.php
Created December 1, 2021 06:04
php recurrente
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://app.recurrente.com/api/checkouts');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, "{ \"items\": [{ \"price_id\": \"pr_XXXXX\" }] }");
$headers = array();
$headers[] = 'X-Public-Key: pk_live_XXXXX';
$headers[] = 'X-Secret-Key: sk_live_XXXXX';