Skip to content

Instantly share code, notes, and snippets.

@HugsLibRecordKeeper
HugsLibRecordKeeper / output_log.txt
Created July 9, 2026 18:10
Rimworld output log published using HugsLib
Log uploaded on Thursday, July 9, 2026, 11:09:20 PM
Loaded mods:
Harmony(brrainz.harmony)[mv:2.4.2.0]: 0Harmony(2.4.1), HarmonyMod(2.4.2)
Core(Ludeon.RimWorld): (no assemblies)
Royalty(Ludeon.RimWorld.Royalty): (no assemblies)
Ideology(Ludeon.RimWorld.Ideology): (no assemblies)
Biotech(Ludeon.RimWorld.Biotech): (no assemblies)
HugsLib(UnlimitedHugs.HugsLib)[ov:12.0.0]: 0Harmony(av:2.4.1,fv:1.2.0.1), HugsLib(av:1.0.0,fv:12.0.0)
Upscaled - Won hair_men(won.hair): (no assemblies)
AFU女士发型_Women's hairstyles(JintuziLamian.Hairstyle.AFUWomenshairstyles): (no assemblies)
@ImAbuSayed
ImAbuSayed / les-souvenirs-qui-restent-lyrics.md
Created July 9, 2026 18:10
Les souvenirs qui restent - Original song lyrics by Abu Sayed

Les souvenirs qui restent

Original song by Abu Sayed.


Lyrics Preview

J'ai gardé ton parfum sur ma veste en cuir
@qq1018408006
qq1018408006 / report.html
Created July 9, 2026 18:10
AI News & GitHub Trending Report 2026-07-09
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>每日 AI 新闻与 GitHub Trending 报告</title>
<style>
:root {
--bg: #0b1020;
--panel: #111831;
clc
clear
close all
disp
disp
wybor=input('podaj wartość określającą sposób rozwiązania');
if wybor >0 && wybor <=1
skok=input('wprowadź wartość skoku: ');
tspan=2:skok:6;
@qq1018408006
qq1018408006 / report.html
Created July 9, 2026 18:09
AI News & GitHub Trending Report 2026-07-09
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>每日 AI 新闻与 GitHub Trending 报告</title>
<style>
:root {
--bg: #0b1020;
--panel: #111831;
class Solution {
public:
vector<bool> pathExistenceQueries(int n, vector<int>& nums, int maxDiff, vector<vector<int>>& queries) {
vector<int> component(n,-1);
int idofComp = 0;
component[0] = idofComp;
for(int i=1;i<n;i++){
if(nums[i] - nums[i-1]> maxDiff){
idofComp++;
@pfftdammitchris
pfftdammitchris / snippet-1.ts
Created July 9, 2026 18:09
TypeScript Discriminated Unions: Make Illegal States Unrepresentable - snippet-1.ts
interface UserState {
loading: boolean
data?: User
error?: Error
}
@pfftdammitchris
pfftdammitchris / snippet-2.ts
Created July 9, 2026 18:09
TypeScript Discriminated Unions: Make Illegal States Unrepresentable - snippet-2.ts
// Loading, but somehow also has data AND an error?
const weird: UserState = { loading: true, data: user, error: new Error() }
// Not loading, no data, no error — what does that even mean?
const empty: UserState = { loading: false }
@pfftdammitchris
pfftdammitchris / snippet-3.ts
Created July 9, 2026 18:09
TypeScript Discriminated Unions: Make Illegal States Unrepresentable - snippet-3.ts
type UserState =
| { status: 'loading' }
| { status: 'success'; data: User }
| { status: 'error'; error: Error }
@pfftdammitchris
pfftdammitchris / snippet-4.ts
Created July 9, 2026 18:09
TypeScript Discriminated Unions: Make Illegal States Unrepresentable - snippet-4.ts
function renderUser(state: UserState): string {
switch (state.status) {
case 'loading':
return 'Loading…'
case 'success':
// TypeScript knows `state.data` exists here
return `Welcome, ${state.data.name}`
case 'error':
// …and `state.error` exists here
return `Something went wrong: ${state.error.message}`