Skip to content

Instantly share code, notes, and snippets.

View geekyayush's full-sized avatar
🎯
Focusing

Ayush Somani geekyayush

🎯
Focusing
View GitHub Profile
@geekyayush
geekyayush / claude_proxy_service.ts
Created January 26, 2025 15:28 — forked from zabirauf/claude_proxy_service.ts
Claude proxy service to support CORS
import { serve } from 'https://deno.land/[email protected]/http/server.ts';
const PORT = 8088;
const ALLOWED_HEADERS = ['x-api-key', 'anthropic-version', 'Content-Type'];
function addCORSHeaders(responseHeaders: Headers) {
responseHeaders.set('Access-Control-Allow-Origin', '*'); // Allow requests from any origin
responseHeaders.set('Access-Control-Allow-Methods', 'GET, POST, PUT, DELETE, OPTIONS'); // Allowed methods
responseHeaders.set('Access-Control-Allow-Headers', '*'); // Allow all headers
}
@geekyayush
geekyayush / meta-tags.md
Created August 11, 2023 09:50 — forked from whitingx/meta-tags.md
Complete List of HTML Meta Tags

Copied from http://code.lancepollard.com/complete-list-of-html-meta-tags/

Basic HTML Meta Tags

<meta charset='UTF-8'>
<meta name='keywords' content='your, tags'>
<meta name='description' content='150 words'>
<meta name='subject' content='your website's subject'>
<meta name='copyright' content='company name'>
@geekyayush
geekyayush / equirectangular.py
Created May 28, 2023 09:25 — forked from jschoormans/equirectangular.py
generate 3D panorama views with stable diffusion
# %%
import replicate
model = replicate.models.get("prompthero/openjourney")
version = model.versions.get("9936c2001faa2194a261c01381f90e65261879985476014a0a37a334593a05eb")
PROMPT = "mdjrny-v4 style 360 degree equirectangular panorama photograph, Alps, giant mountains, meadows, rivers, rolling hills, trending on artstation, cinematic composition, beautiful lighting, hyper detailed, 8 k, photo, photography"
output = version.predict(prompt=PROMPT, width=1024, height=512)
# %%
# download the iamge from the url at output[0]
import requests