Skip to content

Instantly share code, notes, and snippets.

View hmmhmmhm's full-sized avatar
๐Ÿงฏ
BURNING!!

<hmmhmmhm/> hmmhmmhm

๐Ÿงฏ
BURNING!!
View GitHub Profile
@hmmhmmhm
hmmhmmhm / korean.json
Created February 27, 2025 11:16
์ƒ์„ฑํ˜• AI๋กœ ์ข…ํ•ฉํ•œ 5639 ๊ฐœ ํ•œ๊ตญ์–ด ๋‹จ์–ด
[
"์„ธ๋ฏธ",
"๋ชจ์ž„",
"ํŒ€",
"๊ฐ•์˜",
"ํ† ํฌ",
"์ˆ˜์—…",
"๊ฐ•์‚ฌ",
"์ฒญ์ค‘",
"์ฃผ์ œ",
Jan 29, 04:45:44 INFO
fields: {"message":"Args {\n model_id: \"/repository\",\n revision: None,\n validation_workers: 2,\n sharded: None,\n num_shard: None,\n quantize: None,\n speculate: None,\n dtype: None,\n kv_cache_dtype: None,\n trust_remote_code: false,\n max_concurrent_requests: 128,\n max_best_of: 2,\n max_stop_sequences: 4,\n max_top_n_tokens: 5,\n max_input_tokens: None,\n max_input_length: None,\n max_total_tokens: None,\n waiting_served_ratio: 0.3,\n max_batch_prefill_tokens: None,\n max_batch_total_tokens: None,\n max_waiting_tokens: 20,\n max_batch_size: None,\n cuda_graphs: None,\n hostname: \"r-hmmhmmhm-ko-r1-1-5b-preview-vfo-5bhrf51u-8b392-7k2jm\",\n port: 80,\n shard_uds_path: \"/tmp/text-generation-server\",\n master_addr: \"localhost\",\n master_port: 29500,\n huggingface_hub_cache: Some(\n \"/repository/cache\",\n ),\n weights_cache_override: None,\n disable_custom_kernels: false,\n
@hmmhmmhm
hmmhmmhm / README.md
Created January 24, 2025 06:09
MeloTTS Docker Gradio API Script (Typescript)

๐Ÿ’ฌ What I experienced

I tried to use MeloTTS as an API in a hurry, but it didn't install properly on my Mac environment.

So I built my environment with Docker and tried to use MeloTTS, which resulted in a Gradio Local Web UI with no API.

It looks like MeloTTS is still working on creating an official API, so I created my own local fetch code that mimics the Gradio client's call to make it work and be usable.

๐Ÿค” What is this?

@hmmhmmhm
hmmhmmhm / backlight.css
Created October 2, 2024 00:05
Backlight Pure CSS, ๋ฐฑ๋ผ์ดํŠธ ํšจ๊ณผ๋ฅผ CSS๋กœ ๊ตฌํ˜„ํ•œ ๊ฐ„๋‹จ ์ฝ”๋“œ
.backlight:after {
content: "";
width: 100%;
height: 100%;
top: 0;
position: absolute;
background: inherit;
filter: blur(20px);
z-index: -1;
}
@hmmhmmhm
hmmhmmhm / avoid-in-app.js
Created August 19, 2024 05:38 — forked from vzts/avoid-in-app.js
์นด์นด์˜คํ†ก ์ธ์•ฑ ๋ธŒ๋ผ์šฐ์ € ํƒˆ์ถœํ•˜๊ธฐ ์ฝ”๋“œ ๊ฐ€์žฅ ์‹ฌํ”Œํ•˜๊ฒŒ ์ •๋ฆฌ (2023.10.27 ๋™์ž‘ ํ™•์ธ)
const userAgent = navigator.userAgent.toLowerCase()
if (/kakaotalk/.test(userAgent)) {
location.href =
'kakaotalk://web/openExternal?url=' + encodeURIComponent(location.href)
setTimeout(() => {
location.href = /ipad|iphone|ipod/.test(userAgent)
? 'kakaoweb://closeBrowser'
: 'kakaotalk://inappbrowser/close'
})
@hmmhmmhm
hmmhmmhm / tailwind.config.ts
Created April 28, 2024 22:59
Tailwind Responsive Config (xs, 2xs, 3xs, 4xs, 5xs, 6xs, 7xs)
import type { Config } from "tailwindcss";
import { theme } from "tailwindcss/defaultConfig";
const config: Config = {
theme: {
screens: {
...theme?.screens,
xs: "375px",
"2xs": "320px",
"3xs": "280px",
// Copy-paste into your console (or minify and save as a bookmarklet) to see any DOM in an almost-sorta-working 3D stack of DOM elements.
// The front faces are colored for debugging, if this gist can be fixed, they can return to their normal styling.
(function () {
const MAX_ROTATION = 180;
const DEPTH_INCREMENT = 25;
const PERSPECTIVE = 1000;
const SIDE_FACE_CLASS = 'side-face';
const MAX_DOM_DEPTH = getMaxDepth(document.body);
// Calculate color based on depth, ensuring lighter colors for deeper elements
@hmmhmmhm
hmmhmmhm / gpt-numbers-station.js
Last active March 8, 2024 05:37
Random Numbers Broadcasting by GPT
const encodingTable = {
"A": "ํ€", "a": "ํš", "B": "ํ", "b": "ํ›", "C": "ํ‚", "c": "ํœ", "D": "ํƒ", "d": "ํ",
"E": "ํ„", "e": "ํž", "F": "ํ…", "f": "ํŸ", "G": "ํ†", "g": "ํ ", "H": "ํ‡", "h": "ํก",
"I": "ํˆ", "i": "ํข", "J": "ํ‰", "j": "ํฃ", "K": "ํŠ", "k": "ํค", "L": "ํ‹", "l": "ํฅ",
"M": "ํŒ", "m": "ํฆ", "N": "ํ", "n": "ํง", "O": "ํŽ", "o": "ํจ", "P": "ํ", "p": "ํฉ",
"Q": "ํ", "q": "ํช", "R": "ํ‘", "r": "ํซ", "S": "ํ’", "s": "ํฌ", "T": "ํ“", "t": "ํญ",
"U": "ํ”", "u": "ํฎ", "V": "ํ•", "v": "ํฏ", "W": "ํ–", "w": "ํฐ", "X": "ํ—", "x": "ํฑ",
"Y": "ํ˜", "y": "ํฒ", "Z": "ํ™", "z": "ํณ"
};
@hmmhmmhm
hmmhmmhm / gpt.js
Created December 5, 2023 06:23
Massive JSON Convert GPT
import fs from "fs";
import OpenAI from "openai";
const openai = new OpenAI({
apiKey: "์—ฌ๊ธฐ์— ์ฝ”๋“œ๋ฅผ ๋„ฃ์œผ์‹œ์˜ค",
});
const prompt = `์•„๋ž˜ ์ฃผ์–ด์ง€๋Š” ์˜์–ด JSON์„ ์ผ๋ณธ์–ด๋กœ ๋ฒˆ์—ญํ•ด์ค˜`
export const chunk = (arr, size) => {
@hmmhmmhm
hmmhmmhm / mangoMotion.ts
Created July 28, 2023 04:00
๋ง๊ณ ๋ณด๋“œ ์•„์ดํ”„๋ ˆ์ž„ ๋‚ด ๋ชจ์…˜ ํšจ๊ณผ
import { RefObject, useEffect, useRef } from 'react'
export const applyMangoMotion = (iframeRef: RefObject<HTMLIFrameElement>) => {
if (!iframeRef.current) return
const iframe = iframeRef.current
const iframeWin = iframe.contentWindow || iframe
const iframeDoc = iframe.contentDocument || (iframeWin as any).document
const style = iframeDoc.createElement('style')