Skip to content

Instantly share code, notes, and snippets.

View ryancraigmartin's full-sized avatar
💻
"Always a student, never a master."

Ryan Craig Martin ryancraigmartin

💻
"Always a student, never a master."
View GitHub Profile
@ryancraigmartin
ryancraigmartin / klaviyo.d.ts
Created April 25, 2023 22:35
Klaviyo API TypeScript types based on the version: 2023-02-22 openapi spec using openapi-typescript
/**
* This file was auto-generated by openapi-typescript.
* json source: https://raw.githubusercontent.com/klaviyo/openapi/main/openapi/stable.json
* gemerate command run: npx openapi-typescript klaviyo-api.json --output klaviyo.d.ts
*/
export interface paths {
'/api/campaigns/': {
/**
* Get Campaigns
@ryancraigmartin
ryancraigmartin / rename-files.go
Created January 26, 2024 16:13
rename-files-in-pwd.go
package main
import (
"fmt"
"os"
"path/filepath"
"strings"
)
func renameFiles(root string) error {
#!/bin/bash
if [ $# -ne 2 ]; then
echo "Usage: $0 <source_directory> <destination_directory>"
exit 1
fi
source_dir="$1"
dest_dir="$2"