This file contains hidden or 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
/* Helper function to extract plain text from a rich_text array */ | |
function parseRichText(richTextArray) { | |
if (!richTextArray || !Array.isArray(richTextArray)) return ""; | |
return richTextArray.map(rt => rt.plain_text).join(""); | |
} | |
/* Recursively convert a list of notion blocks into a Markdown string */ | |
function convertNotionBlocksToMarkdown(blocks, indentLevel = 0) { | |
const indent = " ".repeat(indentLevel); // two spaces per indent level | |
let md = ""; |
This file contains hidden or 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
{ | |
"name": "Get Notion Page as Markdown", | |
"nodes": [ | |
{ | |
"parameters": { | |
"workflowInputs": { | |
"values": [ | |
{ | |
"name": "id" | |
} |
This file contains hidden or 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
-- OBS Timestamp Marker Script | |
-- Allows marking timestamps during recording and saves them to a CSV file | |
-- Set a hotkey to mark moments in your recording that you can review later | |
obs = obslua | |
local marks = {} | |
local recording_start_time = 0 | |
local settings_hotkey = "" | |
local settings_directory = "" |
This file contains hidden or 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
import "jsr:@supabase/functions-js/edge-runtime.d.ts"; | |
import Stripe from "npm:stripe"; | |
import { createClient } from "jsr:@supabase/supabase-js@2"; | |
import headers from "../_shared/headers.ts"; | |
import type { Database } from "../_shared/database.types.ts"; | |
type CheckoutRequest = { | |
price?: string; | |
}; |
OlderNewer