Skip to content

Instantly share code, notes, and snippets.

@alex-taxiera
alex-taxiera / useSettingsHash.ts
Created December 1, 2026 18:44
Example hash-based routing for a settings modal with @tanstack/react-router
import { useLocation, useNavigate } from "@tanstack/react-router";
import { useEffect } from "react";
const HASH_PREFIX = "/settings/";
const DEFAULT_TAB = "system";
/**
* The hash that opens the settings dialog at `tab`, without the leading `#`.
* With a `section`, the tab also scrolls to that part of itself (see
* `useScrollToSettingsSection`).
#include <iostream>
using namespace std;
int main(){
int at[10], bt[10], ct[10], wt[10], tat[10], n;
cout << "Enter number of process : ";
cin >> n;
for(int i=0; i<n; i++){
cout << "Enter values of AT & BT for P" << i+1 << " : ";
cin >> at[i] >> bt[i];
}
Pipeline still running ...
PipelineRun is still running: Tasks Completed: 31 (Failed: 1, Cancelled 0), Incomplete: 2, Skipped: 22
[get-pr-number : parse-pr-url] 2026-12-01T17:35:57.30Z + echo -n 12153
[get-pr-number : parse-pr-url] 2026-12-01T17:35:57.30Z + tee /tekton/results/git_pr_number
[get-pr-number : parse-pr-url] 2026-12-01T17:35:57.30Z 12153
[acquire-lease : create-lease] 2026-12-01T17:36:12.84Z + calculate_duration_in_seconds 90m
[acquire-lease : create-lease] 2026-12-01T17:36:12.84Z + '[' m == m ']'
[acquire-lease : create-lease] 2026-12-01T17:36:12.84Z + TOTAL_DURATION_IN_SECONDS=5400
[acquire-lease : create-lease] 2026-12-01T17:36:12.84Z + export TOTAL_DURATION_IN_SECONDS
@s3kzk
s3kzk / 2026-12-02-ergo-gist.md
Created December 1, 2026 18:43
Amazon Ergo と Bedrock のオープンウェイト 7 モデル: 日本語ベンチの問題と回答の全文

Amazon Ergo と Bedrock のオープンウェイト 7 モデル: 問題と回答の全文

Qiita 記事の付録。2026-12-02(JST)に Amazon Bedrock で測定した。

注意: ここに載せた回答は LLM の生成物で、誤りを含みます。正しい情報として引用しないでください。

  • 問題は独自に作ったもので、特定の公開ベンチマークには準拠していない
  • 各問題を 2 回ずつ流し、ここには 1 回目の回答を載せる。○×は 1 回目・2 回目の自動採点
  • 「存在しない対象」の自動採点は正規表現による簡易判定で、記事では LLM(Claude)で採点し直した値を使っている
  • コードの課題(5 問)は回答を載せていない
@niyaarastooeian-bot
niyaarastooeian-bot / muse-invite-code.md
Created December 1, 2026 18:43
Muse invite code EERMLH — 1 billion Muse tokens for both of us

Check out Muse, your personal AI agent. After you make your account, go to Settings and redeem my code within 48 hours of joining, and we'll both get 1 billion Muse tokens.

Code: EERMLH https://muse.ai/join

@nikumar1206
nikumar1206 / query-report.html
Created December 1, 2026 18:43
Locked digest liveness query comparison with synthetic PostgreSQL data
<!doctype html><html><meta charset="utf-8"><title>Locked digest liveness query comparison</title><style>body{font:16px system-ui;max-width:1000px;margin:32px auto}td,th{padding:6px;text-align:left}pre{white-space:pre-wrap}table{border-collapse:collapse}tr{border-bottom:1px solid #ccc}</style><h1>Locked digest liveness query comparison</h1><p>IsBuildDigestLive adds one resource-scoped active-build lookup to the existing succeeded-digest lookup. The result distinguishes deferred deletion from a digest used by a succeeded build. The application runs this query under its BuildDigests advisory lock; timings here cover only the liveness query, without the lock or registry request.</p><p>Synthetic data; PostgreSQL 18.6 in the loco-bootstrap-db container, loopback from macOS arm64 with pgbench 18.1. Existing container resources and durability settings were unchanged. The chart pins PostgreSQL 18.7, which was not tested here. One organization, workspace, environment and resource, two clusters, 100 or 1,000 succeeded b
@choco-bot
choco-bot / FilesSnapshot.xml
Created December 1, 2026 18:43
googlechromecanary v160.0.8195-canary - Failed - Package Tests Results
<?xml version="1.0" encoding="utf-8"?>
<fileSnapshot xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<files>
<file path="C:\ProgramData\chocolatey\lib\googlechromecanary\googlechromecanary.nupkg" checksum="83A1F25ACF33C6056D0ECA7E103745FF" />
<file path="C:\ProgramData\chocolatey\lib\googlechromecanary\googlechromecanary.nuspec" checksum="95A58DF390E64C485DAD95CB1A07CC34" />
<file path="C:\ProgramData\chocolatey\lib\googlechromecanary\tools\chocolateyInstall.ps1" checksum="C21380CE33747C340C155C7C42C6F0AF" />
<file path="C:\ProgramData\chocolatey\lib\googlechromecanary\tools\chocolateyuninstall.ps1" checksum="B74F0547FF3C0417FD61CA1F81F29D16" />
<file path="C:\ProgramData\chocolatey\lib\googlechromecanary\tools\helpers.ps1" checksum="D4DE2647DAEE3B74ECFB1E9F9457C3EB" />
</files>
</fileSnapshot>
@HugsLibRecordKeeper
HugsLibRecordKeeper / output_log.txt
Created December 1, 2026 18:42
Rimworld output log published using HugsLib
Log uploaded on Tuesday, December 1, 2026, 1:42:54 PM
Loaded mods:
Harmony(brrainz.harmony)[mv:3.0.4.0]: 0Harmony(2.4.3), HarmonyMod(2.4.2)
Better Stacktraces(aleksey.betterstacktraces): BetterStacktraces(1.0.0)
Mod Options Sort(Superniquito.ModOptionsSort): ModOptionsSort(1.0.0)
Visual Exceptions(brrainz.visualexceptions)[mv:1.5.1.0]: CrossPromotion(1.1.2), VisualExceptions(1.4.0)
Core(Ludeon.RimWorld): (no assemblies)
Vanilla Backgrounds Expanded(vanillaexpanded.backgrounds): VBE(1.0.0)
HugsLib(UnlimitedHugs.HugsLib)[ov:12.0.0]: 0Harmony(av:2.4.3,fv:1.2.0.1), HugsLib(av:1.0.0,fv:12.0.0)
Dubs Rimatomics(Dubwise.Rimatomics): 0Harmony(av:2.4.3,fv:2.3.6), 0MultiplayerAPI(av:0.3.0,fv:0.3.0), Rimatomics(av:1.0.0,fv:1.0.0)
@cmd-3324
cmd-3324 / goproj.py
Created December 1, 2026 18:42
This peice of code saves you time. It auto creates folder of the new project, asks you 3 simple questions for checking files to be created. you can just run python goproj.py or add this command to your .bashrc as alias if you are on linux or on $ profile file in powershell if you on windows. like : alias goproj='python3 ~/goproj.py'
from pathlib import Path
from typer import Typer, prompt
import os
from rich.console import Console
from dotenv import load_dotenv
from dataclasses import dataclass
import smtplib as smt
from email.message import EmailMessage
from datetime import datetime
import shutil as sh
@HugsLibRecordKeeper
HugsLibRecordKeeper / output_log.txt
Created December 1, 2026 18:42
Rimworld output log published using HugsLib Standalone Log Publisher
This file has been truncated, but you can view the full file.
Log uploaded on Tuesday, December 1, 2026, 8:42:35 PM
Loaded mods:
Harmony(brrainz.harmony)[v:3.0.4.0][mv:3.0.4.0]: 0Harmony(3.0.0), HarmonyMod(3.0.4), HarmonyMod.RuntimeIL(3.0.4)
Loading Progress(ilyvion.LoadingProgress)[v:0.21.1]: ilyvion.LoadingProgress(0.21.1)
Mod Options Sort(Superniquito.ModOptionsSort): ModOptionsSort(1.0.0)
Core(Ludeon.RimWorld): (no assemblies)
Royalty(Ludeon.RimWorld.Royalty): (no assemblies)
Ideology(Ludeon.RimWorld.Ideology): (no assemblies)
Biotech(Ludeon.RimWorld.Biotech): (no assemblies)