Skip to content

Instantly share code, notes, and snippets.

---- Minecraft Crash Report ----
// Don't be sad, have a hug! <3
Time: 2/11/25 4:41 PM
Description: Ticking memory connection
java.lang.NullPointerException: Ticking memory connection
at java.lang.invoke.DirectMethodHandle$Interface.checkReceiver(DirectMethodHandle.java:407) ~[?:1.8.0_275] {}
at java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:627) ~[?:1.8.0_275] {}
at me.shedaniel.architectury.event.EventFactory.invokeMethod(EventFactory.java:71) ~[architectury:?] {re:classloading}
@pavor24
pavor24 / index.html
Created February 11, 2025 19:41
Untitled
<div class="container">
<div class="valentines">
<div class="envelope"></div>
<div class="front"></div>
<div class="card">
<div class="text">Will you</br>Be my</br>Valentine</br>Gwenita my love?</div>
<div class="heart"></div>
</div>
<div class="hearts">
<div class="one"></div>
@Brizzlem
Brizzlem / llm_samplers_explained.md
Created February 11, 2025 19:41 — forked from kalomaze/llm_samplers_explained.md
LLM Samplers Explained

LLM Samplers Explained

Everytime a large language model makes predictions, all of the thousands of tokens in the vocabulary are assigned some degree of probability, from almost 0%, to almost 100%. There are different ways you can decide to choose from those predictions. This process is known as "sampling", and there are various strategies you can use which I will cover here.

OpenAI Samplers

Temperature

  • Temperature is a way to control the overall confidence of the model's scores (the logits). What this means is that, if you use a lower value than 1.0, the relative distance between the tokens will become larger (more deterministic), and if you use a larger value than 1.0, the relative distance between the tokens becomes smaller (less deterministic).
  • 1.0 Temperature is the original distribution that the model was trained to optimize for, since the scores remain the same.
  • Graph demonstration with voiceover: https://files.catbox.moe/6ht56x.mp4
@MAX25M
MAX25M / 5-vertex-polygon.markdown
Created February 11, 2025 19:41
5 Vertex Polygon
namespace Lesson;
internal class Program
{
static void Main(string[] args)
{
Random rnd = new Random();
int N = rnd.Next(10, 26);
Console.WriteLine($"Сгенерировано N = {N}");
int minK = 1;
# Generate SSH key pair
ssh-keygen
# Read SSH public key
Get-Content "$env:USERPROFILE\.ssh\faiyan.pub"
# Start SSH agent
Set-Service -Name ssh-agent -StartupType Automatic
Start-Service ssh-agent
@HugsLibRecordKeeper
HugsLibRecordKeeper / output_log.txt
Created February 11, 2025 19:38
Rimworld output log published using HugsLib
Log uploaded on Tuesday, February 11, 2025, 4:38:28 PM
Loaded mods:
Prepatcher(zetrith.prepatcher): 0Harmony(2.3.3), 0PrepatcherAPI(1.2.0), 0PrepatcherDataAssembly(1.0.0), PrepatcherImpl(1.0.0), Prestarter(1.0.0)
Harmony(brrainz.harmony)[mv:2.3.1.0]: 0Harmony(2.3.3), HarmonyMod(2.3.1)
Fishery - Modding Library(bs.fishery): 0PrepatcherAPI(1.2.0), 1Fishery(0.6.1), System.Runtime.CompilerServices.Unsafe(av:6.0.0,fv:6.0.21.52210)
Core(Ludeon.RimWorld): (no assemblies)
Performance Fish(bs.performance): PerformanceFish(0.6.2)
Royalty(Ludeon.RimWorld.Royalty): (no assemblies)
Ideology(Ludeon.RimWorld.Ideology): (no assemblies)
Biotech(Ludeon.RimWorld.Biotech): (no assemblies)
SET
SET
SET
SET
SET
set_config
------------
(1 ligne)
@nelhage
nelhage / pyperf.md
Created February 11, 2025 19:38
LTO+PGO pyperformance run

Benchmarks with tag 'apps':

Benchmark 2025-02-11_15-23-computed-goto-247b50dec8af 2025-02-11_16-19-tailcall-10c138c179ba 2025-02-11_16-15-computed-goto-nomerge-3178d094669b
2to3 295 ms 288 ms: 1.02x faster 293 ms: 1.01x faster
docutils 2.86 sec 2.83 sec: 1.01x faster not significant
html5lib 64.3 ms 63.9 ms: 1.01x faster 64.9 ms: 1.01x slower
Geometric mean (ref) 1.01x faster 1.00x slower
@eduardofx
eduardofx / go-pointers.md
Created February 11, 2025 19:37
go-pointers

Pointers in Golang

Introduction

Pointers in Go (Golang) are variables that store the memory address of another variable. They are useful for modifying variables inside functions, optimizing memory usage, and handling large data structures efficiently.


1. Declaring and Initializing Pointers

A pointer is declared using the * (asterisk) symbol before the type.