Skip to content

Instantly share code, notes, and snippets.

View FarisHijazi's full-sized avatar
:shipit:
ඞඞඞ

Faris Hijazi FarisHijazi

:shipit:
ඞඞඞ
View GitHub Profile
from __future__ import annotations
import logging
import warnings
from collections.abc import Callable, Sequence
from typing import Any, Dict, List, Literal, Optional, Set, Tuple, Union
import numpy as np
import requests
from langchain.pydantic_v1 import BaseModel, Extra, Field, root_validator
// ==UserScript==
// @name Civitai Blocked Image Revealer
// @namespace http://tampermonkey.net/
// @version 1.1
// @description Unblocks blocked inapropriate images in https://civitai.com/generate
// @updateUrl https://gist.github.com/FarisHijazi/4538aa9ddc0fb93ee826a4d76458c285
// @author You
// @match https://civitai.com/*
// @connect orchestration.civitai.com
// @grant GM_xmlhttpRequest
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@FarisHijazi
FarisHijazi / openai_streaming_pure_js.html
Created November 23, 2025 05:58
LLM text OpenAI with pure HTML+JS
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Web Streams Demo</title>
<link rel="stylesheet" href="https://unpkg.com/mvp.css" />
</head>
<body>
<main>