Since Twitter doesn't have an edit button, it's a suitable host for JavaScript modules.
Source tweet: https://twitter.com/rauchg/status/712799807073419264
const leftPad = await requireFromTwitter('712799807073419264');| After installing it http://sourceforge.net/projects/meld-installer/ | |
| I had to tell git where it was: | |
| git config --global merge.tool meld | |
| git config --global diff.tool meld | |
| git config --global mergetool.meld.path “C:\Program Files (x86)\Meld\meld\meld.exe” | |
| And that seems to work. Both merging and diffing with “git difftool” or “git mergetool” |
Since Twitter doesn't have an edit button, it's a suitable host for JavaScript modules.
Source tweet: https://twitter.com/rauchg/status/712799807073419264
const leftPad = await requireFromTwitter('712799807073419264');| import { format } from 'url'; | |
| import { STATUS_CODES } from 'http'; | |
| import uppercamelcase from 'uppercamelcase'; | |
| class HTTPError extends Error { | |
| constructor(code, message, extras) { | |
| super(message || STATUS_CODES[code]); | |
| if (arguments.length >= 3 && extras) { | |
| Object.assign(this, extras); | |
| } |
| // source: https://paste.zauberfisch.com/d/62871445eda3b/craftjs-frontend.js.txt | |
| import React, {Fragment} from "react" | |
| import Container from "./Container.jsx" | |
| import Text from "./Text.jsx" | |
| import Button from "./Button.jsx" | |
| const contentElements = { | |
| Container, | |
| Text, |
| "use client"; | |
| import { zodResolver } from "@hookform/resolvers/zod"; | |
| import { useForm } from "react-hook-form"; | |
| import MoneyInput from "src/components/custom/money-input"; | |
| import { Button } from "src/components/ui/button"; | |
| import { Form } from "src/components/ui/form"; | |
| import * as z from "zod"; | |
| const schema = z.object({ |