- API key for OpenAI.
- API key for Picovoice
- API key for ElevenLabs
- mpg123 installed
- node 18+
git clone https://gist.github.com/ericlewis/ccd3f0b7a17fcbe2473121a473082c8f
- edit .env with your keys
import * as React from "react"; | |
const CopyToClipboard:React.FC<{text:string} & React.HTMLAttributes<HTMLButtonElement>> = ({text, ...props}) => { | |
const copyToClipboard = (event:React.MouseEvent<HTMLButtonElement>, str:string) => { | |
const el = Object.assign(document.createElement('textarea'),{value:str}); | |
document.body.appendChild(el); | |
el.select(); | |
document.execCommand('copy'); | |
document.body.removeChild(el); | |
This is a proposal for a lightning talk at the Reactive 2015 conference.
NOTE: If you like this, star ⭐ the Gist - the amount of stars decides whether it makes the cut!
Relay makes data fetching in React apps simpler, by letting you declare the data needs of your components instead of writing complex imperative code. React, Relay, GraphQL and the other complementary tools are changing how apps are built.
[program:appname-0] | |
command=/usr/bin/node /appname | |
process_name: appname-0 | |
directory=/appname/ | |
environment=NODE_ENV='prod' | |
user=user | |
autostart=true | |
autorestart=true | |
redirect_stderr=False | |
stopwaitsecs=30 |