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
| const Recipient = require('mailersend').Recipient; | |
| const EmailParams = require('mailersend').EmailParams; | |
| const BulkEmails = require('mailersend').BulkEmails; | |
| const MailerSend = require('mailersend'); | |
| const users = require('./users'); | |
| const MAILERSEND_API_KEY = process.env.MAILERSEND_API_KEY; | |
| if (!MAILERSEND_API_KEY) { | |
| console.error('MAILERSEND_API_KEY is required'); |
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
| addEventListener('fetch', (event) => { | |
| event.respondWith(handleRequest(event.request)); | |
| }); | |
| async function handleRequest(request) { | |
| const url = new URL(request.url); | |
| const { pathname, search } = url; | |
| var newPathname = pathname; | |
| if (pathname.startsWith('/docs')) { | |
| newPathname = pathname.replace('/docs', ''); |
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
| CANNY_API_KEY=<your_canny_api_key> |
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
| <windows> | |
| <instructions> | |
| You are being provided with textfield content from windows the user has asked you to focus on. | |
| User-selected text is enclosed within <user__selection> tags (these tags are not part of the original content and should never be included in your response). When the user has selected text, focus your response on that text. For example, if the user asks about "this," they are likely referring to the selected text. | |
| </instructions> | |
| <window> | |
| <title>NotesGPT — Constants.swift</title> | |
| <app_name>Xcode</app_name> | |
| <textfields> | |
| <textfield id="0"> |
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 SwiftUI | |
| import Combine | |
| class FPSCounter: ObservableObject { | |
| @Published var fps: Double = 0.0 | |
| private var timer: Timer? | |
| private var lastUpdateTime: Date = Date() | |
| private var frameCount: Int = 0 | |
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 Foundation | |
| import Collaboration | |
| func getMacUserProfileImage() -> NSImage? { | |
| // Get the current user's profile picture using CBIdentity | |
| let username = NSUserName() | |
| // Create CBIdentity for the current user | |
| if let identity = CBIdentity(name: username, authority: .default()) { | |
| // Get the user's profile image |
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
| #!/usr/bin/env node | |
| import crypto from 'node:crypto'; | |
| const env = process.env; | |
| function printHelp() { | |
| console.log(` | |
| Usage: | |
| node verify-setapp-streaming.mjs [options] |
OlderNewer