Skip to content

Instantly share code, notes, and snippets.

@forkyau
forkyau / hourly_rainfall_data-2025-02-08|05-45.csv
Created February 7, 2025 22:01
GIST created by python code
id station stationid value unit obstime date
0 流浮山 RF001 0 mm 2025-02-08T05:45:00+08:00 2025-02-08
1 湿地公园 RF002 0 mm 2025-02-08T05:45:00+08:00 2025-02-08
2 水边围 N12 0 mm 2025-02-08T05:45:00+08:00 2025-02-08
3 石岗 RF003 0 mm 2025-02-08T05:45:00+08:00 2025-02-08
4 大美督 RF004 0 mm 2025-02-08T05:45:00+08:00 2025-02-08
5 大埔墟 RF005 0 mm 2025-02-08T05:45:00+08:00 2025-02-08
6 北潭涌 RF006 0 mm 2025-02-08T05:45:00+08:00 2025-02-08
7 滘西洲 RF007 0 mm 2025-02-08T05:45:00+08:00 2025-02-08
8 西贡 N15 0 mm 2025-02-08T05:45:00+08:00 2025-02-08
@Lucrecious
Lucrecious / gol.c
Created February 7, 2025 22:00
c99 IR produced by orso compiler for this version of gol: https://gist.github.com/Lucrecious/d9ee0fd07c1981c37cbd5330943d8a6b
#define INTRINSICS_IMPLEMENTATION
#include "intrinsics.h"
#include "core.h"
#include "core.c"
typedef void(*fn_void)();
typedef void* p_void;
typedef p_void(*fn_size_t_p_void)(size_t);
typedef bool_(*fn_p_void_size_t_bool_)(p_void,size_t);
typedef size_t(*fn_size_t)();
typedef u64(*fn_u64)();
@DolphinOfficial
DolphinOfficial / PostShutdownFullLog.txt
Created February 7, 2025 22:00
Text file created by Roblox
-- AH POST-SERVER LOGS --
-- ServerID: 61db146f-9ab6-45b6-b08a-60a64fc3a8a9
-- Server started: February 07, 2025 09:58 PM UTC | Server uptime: 83 seconds
------------------ LOADB LOGS ------------------
{
}
import time
import board
import neopixel
from digitalio import DigitalInOut, Direction, Pull
switch = DigitalInOut(board.D3)
switch.direction = Direction.INPUT
switch.pull = Pull.UP
pixel_pin = board.D2
@starrshaw
starrshaw / WSL 2 GNOME Desktop.md
Created February 7, 2025 21:59 — forked from xitongsys/WSL 2 GNOME Desktop.md
Set up a GNOME desktop environment on WSL 2

WSL 2 GNOME Desktop

Think Xfce looks dated? Want a conventional Ubuntu experience? This tutorial will guide you through installing Ubuntu's default desktop environment, GNOME.

GNOME is one of the more complex — and that means more difficult to run — desktop environments, so for years people couldn't figure out how [to](https://www.reddit.

This file has been truncated, but you can view the full file.
---- Minecraft Crash Report ----
// Shall we play a game?
Time: 2/8/25, 12:59 AM
Description: Unexpected error
java.lang.OutOfMemoryError: Cannot reserve 160 bytes of direct buffer memory (allocated: 12884901855, limit: 12884901888)
at java.nio.Bits.reserveMemory(Unknown Source) ~[?:?] {}
at java.nio.DirectByteBuffer.<init>(Unknown Source) ~[?:?] {}
@Xianchao-Wu
Xianchao-Wu / grpo_demo.py
Created February 7, 2025 21:57 — forked from willccbb/grpo_demo.py
GRPO Llama-1B
# train_grpo.py
import re
import torch
from datasets import load_dataset, Dataset
from transformers import AutoTokenizer, AutoModelForCausalLM
from peft import LoraConfig
from trl import GRPOConfig, GRPOTrainer
# Load and prep dataset
$session = New-Object Microsoft.PowerShell.Commands.WebRequestSession
$session.UserAgent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36"
$session.Cookies.Add((New-Object System.Net.Cookie("RBXcb", "RBXViralAcquisition=true&RBXSource=true&GoogleAnalytics=true", "/", "www.roblox.com")))
$session.Cookies.Add((New-Object System.Net.Cookie("GuestData", "UserID=-126696721", "/", ".roblox.com")))
$session.Cookies.Add((New-Object System.Net.Cookie("RBXSource", "rbx_acquisition_time=01/13/2025 22:14:07&rbx_acquisition_referrer=https://www.roblox.com/es&rbx_medium=Social&rbx_source=www.roblox.com&rbx_campaign=&rbx_adgroup=&rbx_keyword=&rbx_matchtype=&rbx_send_info=0", "/", ".roblox.com")))
$session.Cookies.Add((New-Object System.Net.Cookie("RBXcb", "RBXViralAcquisition=true&RBXSource=true&GoogleAnalytics=true", "/", "www.roblox.com")))
$session.Cookies.Add((New-Object System.Net.Cookie("rbx-ip2", "1", "/", ".roblox.com")))
$session.Cookies.Add((New-Obj
{
"@context": {
"dadocm": "https://archives.albany.edu/dadocm/",
"dc": "http://purl.org/dc/elements/1.1/",
"dct": "http://purl.org/dc/terms/",
"edm": "http://www.europeana.eu/schemas/edm/",
"ore": "http://www.openarchives.org/ore/terms/",
"rdfs": "http://www.w3.org/2000/01/rdf-schema#",
"wd": "https://www.wikidata.org/wiki/",
"xlink": "http://www.w3.org/1999/xlink/namespace/"
@HugsLibRecordKeeper
HugsLibRecordKeeper / output_log.txt
Created February 7, 2025 21:55
Rimworld output log published using HugsLib
This file has been truncated, but you can view the full file.
Log uploaded on Friday, February 7, 2025, 4:55:39 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)
Faster Game Loading(Taranchuk.FasterGameLoading): FasterGameLoading(1.0.0), System.Drawing(av:4.0.0,fv:4.6.57)
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)