Skip to content

Instantly share code, notes, and snippets.

@mujsdev
mujsdev / Button.tsx
Created December 11, 2022 06:45
Button.tsx for Storybook
import React from "react";
export interface ButtonProps extends React.HTMLAttributes<HTMLButtonElement> {
children: React.ReactNode;
color: "black" | "white";
size?: "sm";
hasBorder?: boolean;
disabled?: boolean;
isLoading?: boolean;
}
@tito
tito / refactor.py
Created March 8, 2023 16:51
Using OpenAI/ChatGPT as refactoring tool
"""
Refactoring tool using ChatGPT from Vue 2 to Vue 3
$ export OPENAPI_APIKEY=sk.........
$ python refactor.py MyView.vue
"""
import os
import re
import sys