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"; |
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
import React from 'react'; | |
import {Provider} from 'mobx-react'; | |
const stub = () => true; | |
export const exampleStore = { | |
app: {}, | |
auth: { | |
checkAuth: stub | |
}, |
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
module.exports = function (plop) { | |
/* Helpers */ | |
plop.addHelper('upperCase', function (text) { | |
return text.toUpperCase(); | |
}); | |
/* Files */ | |
var createIndex = { | |
type: 'add', |
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
import produce from 'immer'; | |
import {createStore} from 'redux'; | |
const handleActions = (actionsMap, defaultState) => ( | |
state = defaultState, | |
{type, payload} | |
) => | |
produce(state, draft => { | |
const action = actionsMap[type]; | |
action && action(draft, payload); |
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
import { useDisclosure } from "@chakra-ui/react"; | |
import ConfirmDialog from "app/core/chakra-prompts/ConfirmDialog"; | |
import FormPrompt from "app/core/chakra-prompts/FormPrompt"; | |
import React, { useContext, useState } from "react"; | |
const ChakraPromptsContext = React.createContext<any>(null); | |
export const useChakraPrompts = () => useContext(ChakraPromptsContext); | |
const Manager = ({ children }) => { | |
const [config, setConfig] = useState<any>({}); |
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 Head from 'next/head'; | |
import React from 'react'; | |
import { isDev } from 'utils/is-prod'; | |
const prefix = isDev ? 'http://localhost:3004' : 'https://kitze.io'; | |
const getImage = (url) => `${prefix}/${url}`; | |
const Meta: React.FC<{ | |
title?: string; |