Skip to content

Instantly share code, notes, and snippets.

from redis_data_structures import HashMap
from datetime import datetime
from pydantic import BaseModel
class UserProfile(BaseModel):
name: str
last_active: datetime
preferences: dict[str, Any]
hash_map = HashMap()
@momumi
momumi / tileable_legendary_chip_farm.txt
Created December 25, 2024 08:05
Tileable legendary chip farm blueprint
0eNrtXdtuG0mS/RWCLz0DUJ68RV4M7NM8DbBv+7APbcOgqLJcaIrk8uJub0MfsB+yP7ZfsklKtotiZjEutFplGxi0RyIVURFZGbeMOPnn+Hq+a1brdrEdv/5zfNNsZut2tW2Xi/Hr8X+22w+j1Xo5azabdnE72i3a7f7nm91s235st59GRo1u24/NZjS9Xu62bxZGKfWPu9HtumkWo9mHdrU5/C7/at3cfP7F35brkTv8cs/74bd/f7P4jw/L3Tx/abnYtov8+81sOt9znc7no+2HZvT79NNotxptl/2PNP84H1n16s3in9PFaLNt81/vNs0of226PXyo7Wi6uNk/8cdmMrrebUeflrtf8tcWTX7GTH7drObTWXNg+maxWe1/fZc5zLOcvz+q5Cu/x08ywzeLf21/yaqYb/IjLvPzXc+bPb33ewKZ/+Fv79o/8k//tcuy5T8+yP7wEO37/XOMbpaLX7Z7JWx2dw+PkBW7yp+/n262o2ax3N1+mGRqmdG8/a2Zf9pzmM2Xt6/Gk3G7/7vx61//HG/a28V0vl/SxfSuyWvZzJvZdr1ctLOrWbue7dpt/v7jY+SP581ts7iZrj+N7zOZxU3zx/i1vp8UCE1vPk4Xs+YGTcYUyRzUevWgvCt7loi9fzsZN/nN2LbNg4SHHz69W+zurpt1ftjJZ8qrdtVcbZdXt+vlbnGTKee1aB/e6D/HmdRV1OEVTMaZ1VXQ5hVkLjftOqvn8J24f9wnxM0X4tvd+np5tV1P83uxXG+vrpv5tsjCEVnYLyw2d/mNv5pP71ZFwvaYcIGUQ5JS6iwpoAoeUiIK7pkLp8tPHERLpTBPHJ+wyA/brB8eus7E9jGZjLefVnuC7SJv9XGBZ3rCc7PKm2WbPykK1NXRU07v2/n+79CWYbFc57co/2q2vFtN19PtMv/x+N/2e/PBMr3L3mO5/rx13xcfXyvsO+mf6mk6z4Z/827/ne1615SIf937m931Zjs9UCwRD1/ezPuawTmlbrCPHhiPbhn
{"embeddings": [{"tensorName": "WebVectors", "tensorShape": [300, 14], "tensorPath": "https://gist.githubusercontent.com/akutuzov/d5d7f97d539179c61452eecac252bfd9/raw/5cd7449c4436b04b0130bcc2783115852a172b76/MOD_enwiki_upos_skipgram_300_2_2021_89f4e6737ec8acd858a844399c139d12_tsne_tensor.tsv", "metadataPath": "https://gist.githubusercontent.com/akutuzov/5b69cd98e4dc8d31fc1fc31684cfc915/raw/5b8fa22ca1f88e6a15817900f7c64a38474314b4/MOD_enwiki_upos_skipgram_300_2_2021_89f4e6737ec8acd858a844399c139d12_tsne_metadata.tsv"}]}
word Class
tank NOUN
Russia PROPN
mouse NOUN
new ADJ
Moscow ADV
clean ADJ
transport NOUN
dirty ADJ
France PROPN
0.027471844106912613 0.0018611685372889042 -0.04662322625517845 0.028708206489682198 -0.06886111944913864 0.10032058507204056 0.009522357024252415 -0.00967779103666544 -0.02297978848218918 -0.07206251472234726 0.03187569975852966 0.03114084154367447 0.05577980354428291 0.0732371062040329 -0.05074405297636986 -0.002834941493347287 -0.047944575548172 0.059747252613306046 0.05456548556685448 -0.02438521571457386 -0.025655964389443398 0.0101850014179945 0.012589444406330585 0.07982917129993439 -0.053727198392152786 -0.013183432631194592 -0.08430512249469757 -0.18959060311317444 0.02374807745218277 0.07190459966659546 -0.05054321512579918 -0.07607008516788483 0.07696995884180069 0.04010634124279022 -0.06529197841882706 0.015673186630010605 -0.011104500852525234 -0.009773850440979004 0.041242074221372604 0.014425388537347317 0.14147068560123444 -0.07314205169677734 -0.03444152697920799 0.03443834185600281 0.07640264928340912 -0.0047462573274970055 -0.021064575761556625 -0.04540291428565979 -0.02151305228471756 0.03
Maintainers:
cbrewster: nsc, nsc, nsc, nsc
x86_64-darwin nsc
aarch64-linux nsc
x86_64-linux nsc
aarch64-darwin nsc
from redis_data_structures import RingBuffer, BloomFilter
# Ring Buffer for metrics collection
metrics = RingBuffer(capacity=1000)
metrics.push("system.metrics", {
"cpu_usage": 75.5,
"memory_used": 1024 * 1024 * 1024,
"timestamp": datetime.now()
})
13:01:27.624 E Coroutine couldn't be started because the the game object 'ButtonHint' is inactive!
Doozy.Engine.UI.UIButton:DisableButton(Single)
Doozy.Engine.UI.UIButton:ExecuteClick(Boolean)
Doozy.Engine.UI.<RunOnClickEnumerator>d__107:MoveNext()
UnityEngine.SetupCoroutine:InvokeMoveNext(IEnumerator, IntPtr)
UnityEngine.EventSystems.EventFunction`1:Invoke(T1, BaseEventData)
UnityEngine.EventSystems.ExecuteEvents:Execute(GameObject, BaseEventData, EventFunction`1)
UnityEngine.EventSystems.StandaloneInputModule:ProcessTouchPress(PointerEventData, Boolean, Boolean)
UnityEngine.EventSystems.StandaloneInputModule:ProcessTouchEvents()
UnityEngine.EventSystems.StandaloneInputModule:Process()
@hewliyang
hewliyang / claude-js-repl.md
Created December 25, 2024 08:01
Claude Analysis Tool

Analyzing BP's Total Revenues Over $35K Million

human (Dec 25, 2024, 03:38 PM)

Which quarters and years has Total revenues and other income greater than $35K million?

assistant (Dec 25, 2024, 03:38 PM)