Skip to content

Instantly share code, notes, and snippets.

View ssghost's full-sized avatar
🏠
Working from home

Stardustclub ssghost

🏠
Working from home
View GitHub Profile
{
"name": "My Global Avatar",
"symbol": "AVATAR",
"description": "This cNFT features Stardust Kei's global social profile picture.",
"image": "https://gravatar.com/userimage/100300968/570467f280b16e07a342eef7641735fc.jpeg",
"attributes": [
{ "trait_type": "Platform", "value": "Social App" },
{ "trait_type": "Type", "value": "Avatar" }
],
"properties": {
/*
Poincare Disc Animation
-----------------------
A CSG polygon driven Poincare tiling with an animated pattern overlay.
This simple animation has been sitting around in my account for way too
long. I made it at the same time as one of my other hyperbolic related
postings. There are not a great deal of animated Poincare disc examples
@ssghost
ssghost / lora_trainer.ipynb
Created December 11, 2025 05:17
Lora_Trainer.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ssghost
ssghost / -gemma_3-rag_with_embeddinggemma.ipynb
Created October 7, 2025 03:24
[Gemma_3]RAG_with_EmbeddingGemma.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
.DATA
IMAGE DQ ?
SYSTEMTABLE DQ ?
INDEX DQ ?
CONIN DQ ?
WAITFORKEY DQ ?
WAITFOREVENT DQ ?
CONOUT DQ ?
OUTPUTSTRING DQ ?
BOOTSERVICES DQ ?
vec3 pallete( float t )
{
vec3 a = vec3(0.500, 0.500, 0.500);
vec3 b = vec3(0.500, 0.500, 0.500);
vec3 c = vec3(1.000, 1.000, 1.000);
vec3 d = vec3(0.000, 0.333, 0.667);
return a + b*cos(6.28318*(c*t+d));
}
@ssghost
ssghost / partialdata.sh
Last active August 12, 2025 06:36
Partial clone Github repo data folder
!mkdir my_data
%cd my_data
!git init
!git remote add origin https://github.com/username/reponame.git
!git config core.sparsecheckout true
!echo "tests/data" >> .git/info/sparse-checkout
name: My Continue Configuration
version: 1.0.18
models:
- name: Ollama Mistral Nemo
provider: ollama
model: mistral-nemo:latest
apiBase: http://localhost:11434
defaultCompletionOptions:
contextLength: 8192
- name: Ollama CodeGemma
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
import requests
from collections import OrderedDict
import logging
import re
import json
from time import sleep
def count_xml(text) -> float:
count = 0.0
if text.count("<reasoning>\n") == 1: