Run two Claude Code accounts simultaneously on macOS without re-authenticating by using separate configuration directories.
- Create Separate Config Directories
mkdir ~/.claude-account1 mkdir ~/.claude-account2
| const callElevenLabsTextToSpeechAPI = async (text) => { | |
| if (!text) return "Text parameter can't be null"; | |
| const [rachel, anntoni] = ["21m00Tcm4TlvDq8ikWAM", "ErXwobaYiN019PkySvjV"]; | |
| const url = `https://api.elevenlabs.io/v1/text-to-speech/${rachel}`; | |
| const apiKey = process.env.ELEVENLABS_KEY; | |
| const headers = { |
| import "./styles.css"; | |
| import { Person } from "./types"; | |
| import { Listbox } from "./listbox/listbox"; | |
| import { useForm } from "react-hook-form"; | |
| const people: Person[] = [ | |
| { id: 1, name: "Durward Reynolds", unavailable: false }, | |
| { id: 2, name: "Kenton Towne", unavailable: false }, | |
| { id: 3, name: "Therese Wunsch", unavailable: false }, | |
| { id: 4, name: "Benedict Kessler", unavailable: true }, |
A collection of links to the excellent "Composing Software" series of medium stories by Eric Elliott.
Edit: I see that each post in the series now has index, previous and next links. However, they don't follow a linear flow through all the articles with some pointing back to previous posts effectively locking you in a loop.
| var array = []; | |
| function closest(array,num){ | |
| var i=0; | |
| var minDiff=1000; | |
| var ans; | |
| for(i in array){ | |
| var m=Math.abs(num-array[i]); | |
| if(m<minDiff){ | |
| minDiff=m; |