This file contains 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 { NextApiRequest, NextApiResponse } from "next"; | |
import { validateLemonSqueezyHook } from "@/pages/api/lemon/validateLemonSqueezyHook"; | |
import getRawBody from "raw-body"; | |
import { LemonEventType, ResBody } from "@/pages/api/lemon/types"; | |
import { onOrderCreated } from "@/pages/api/lemon/hooks/onOrderCreated"; | |
import { returnError, returnOkay } from "@/pages/api/lemon/utils"; | |
export const config = { | |
api: { | |
bodyParser: false, |
This file contains 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
from PIL import Image | |
import os | |
input_folder = "./public/old" | |
output_folder = "./public" | |
if not os.path.exists(output_folder): | |
os.makedirs(output_folder) | |
for filename in os.listdir(input_folder): |
This file contains 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 fs = require('fs'); | |
const path = require('path'); | |
// Function to rename files in the given directory | |
const renameFiles = (dir) => { | |
// Read the contents of the directory | |
fs.readdir(dir, (err, files) => { | |
if (err) { | |
// If there is an error, log it and return | |
console.error(err); |
This file contains 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
.kr-column-group { | |
width: 100vw !important; | |
} | |
[data-coda-ui-id="dialog"] > div { | |
max-width: 1600px; | |
width: 90%; | |
} | |
@media (max-height: 900px) { |
This file contains 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
(function() { | |
'use strict'; | |
function onDocReady(fn) { | |
// see if DOM is already available | |
if (document.readyState === "complete" || document.readyState === "interactive") { | |
// call on next available tick | |
setTimeout(fn, 3000); | |
} else { | |
document.addEventListener("DOMContentLoaded", fn); |
This file contains 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
// ==UserScript== | |
// @name Change coda favicon | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description try to take over the world! | |
// @author Kitze | |
// @match https://coda.io/* | |
// @icon data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw== | |
// @grant none | |
// ==/UserScript== |
This file contains 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 Rectangles = ({ | |
cols, | |
defaultBackground, | |
defaultBackgroundEmoji, | |
paints, | |
rows, | |
paint | |
}) => { | |
return ( | |
<L.Vertical> |
This file contains 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
{ | |
"oneOf": [ | |
{ | |
"type": "object", | |
"description": "Success response", | |
"properties": { | |
"success": { | |
"type": "boolean" | |
}, | |
"response": { |
This file contains 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
/* tslint:disable */ | |
/** | |
* This file was automatically generated by json-schema-to-typescript. | |
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, | |
* and run json-schema-to-typescript to regenerate this file. | |
*/ | |
export type Schema = | |
| { | |
success?: boolean; |
This file contains 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
//methods | |
import { BaseSchemaThingie, RawPaddleEvent } from "app/core/paddle/types"; | |
import { filterWebookEvents } from "app/core/paddle/utils/filter-webook-events"; | |
import axios, { AxiosResponse } from "axios"; | |
import { GetPayments } from "./types/getPayments"; | |
import { Schema as GetSubscriptionDetails } from "app/core/paddle/sdk/requests/getSubscriptionDetails/type"; | |
import { GetWebhookEvents, PaddleClientConfig, PaddleRequest } from "./types/types"; |
NewerOlder