Skip to content

Instantly share code, notes, and snippets.

@abisuq
abisuq / nuts.js
Created February 6, 2024 16:39
Nuts LP API
/**
* Welcome to Cloudflare Workers! This is your first worker.
*
* - Run "npm run dev" in your terminal to start a development server
* - Open a browser tab at http://localhost:8787/ to see your worker in action
* - Run "npm run deploy" to publish your worker
*
* Learn more at https://developers.cloudflare.com/workers/
*/
// Name: Escape Backticks
import "@johnlindquist/kit"
const text = await arg("Paste text to escape backticks");
await copy(text.replace(/`/g, '\\`'));
/*
## Open [https://scriptkit.com](https://scriptkit.com) in your browser
*/
// Name: ScriptKit.com
// Description: Launch scriptkit.com in your browser
// Author: John Lindquist
// Twitter: @johnlindquist
// Note: Feel free to delete this script!
@abisuq
abisuq / payjs.api.js
Last active December 28, 2017 06:54
NODE_KOA_PAYJS_DEMO
const uuid = require('uuid')
const md5 = require('md5')
const qs = require('query-string')
const Router = require('koa-router')
const apiRoute = new Router()
const NOTIFY_URL = ''
const CALLBACK_URL = ''
const MCHID = '🆔'
const KEY = '🗝'