Skip to content

Instantly share code, notes, and snippets.

View mmiinnovations's full-sized avatar
🦄
I'm always on vacation. Mostly.

The Reverend mmiinnovations

🦄
I'm always on vacation. Mostly.
View GitHub Profile
@NN1985
NN1985 / gist:a0712821269259061177c6abb08e8e0a
Last active January 19, 2024 01:04
ElevenLabs Text Input Streaming demo for LLMs
import openai
import elevenlabs
# Uncomment the following lines to set the API keys
openai.api_key = "key_here"
elevenlabs.set_api_key("key_here")
def write(prompt: str):
for chunk in openai.ChatCompletion.create(
model="gpt-3.5-turbo-0301",
import puppeteer from 'puppeteer';
import { BingChat } from 'bing-chat'
async function example() {
const api = new BingChat({
cookie: process.env.BING_COOKIE
})
const res = await api.sendMessage('Hello World!')
console.log(res.text)
@timohausmann
timohausmann / how-to-use.ts
Last active April 5, 2023 16:45
💣 Extention for theatre.js Studio to clear the local state
import studio from '@theatre/studio';
import { studioResetExtention } from './studioResetExtention';
// just extend studio
studio.extend(studioResetExtention);
studio.initialize();

Astrologer API Timezones

Here's a list of all the available timezones for the Astrologer API

Africa/Abidjan
Africa/Accra
Africa/Addis_Ababa
Africa/Algiers
Africa/Asmara
@awrowse
awrowse / html5_stub.html
Created February 16, 2012 15:14
HTML5 Page Stub
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Page Title</title>
<meta name="description" content="Webpage for xxxx">
<!-- http://meyerweb.com/eric/tools/css/reset/ -->
<link rel="stylesheet" href="css/reset/reset.css">
<!--[if lt IE 9]>
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js" type="text/javascript"></script>