Skip to content

Instantly share code, notes, and snippets.

@HugsLibRecordKeeper
HugsLibRecordKeeper / output_log.txt
Created February 11, 2025 19:50
Rimworld output log published using HugsLib
This file has been truncated, but you can view the full file.
Log uploaded on Wednesday, February 12, 2025, 3:50:03 AM
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)
Visual Exceptions(brrainz.visualexceptions)[mv:1.3.2.0]: CrossPromotion(1.1.2), VisualExceptions(1.3.2)
Core(Ludeon.RimWorld): (no assemblies)
Royalty(Ludeon.RimWorld.Royalty): (no assemblies)
Ideology(Ludeon.RimWorld.Ideology): (no assemblies)
Biotech(Ludeon.RimWorld.Biotech): (no assemblies)
Anomaly(Ludeon.RimWorld.Anomaly): (no assemblies)
def decompress_2_4(metadata, values):
"""
Decompress 2:4 sparse tensor
Args:
metadata: Tensor of shape (N, K/8) uint8.
Each byte stores indexes for 2 blocks
values: Tensor of shape (N, K/2) bf16, storing non-zero values
Returns:
Dense tensor of shape (N, K) in bf16
"""
@xxthegonzxx
xxthegonzxx / eden-marco-scrapin.json
Created February 11, 2025 19:48
Scrapin.IO Data for Eden Marco (LangChain Course on Udemy)
{
"success": true,
"credits_left": 19,
"rate_limit_left": 19,
"person": {
"publicIdentifier": "eden-marco",
"linkedInIdentifier": "ACoAABx4394BeQhL15XiUqnQf7d9fobHXw13SMo",
"memberIdentifier": "477683678",
"linkedInUrl": "https://www.linkedin.com/in/eden-marco",
"firstName": "Eden",

📱Valet

A Decentralized Automated Testing Network

🙈 tl;dr:

Valet is a decentralized test automation network where developers run tests on real devices (iOS or Android), and device owners get paid for executing them. Using Nostr for discovery, Lightning for payments, and Raspberry Pi nodes for execution, it’s less expensive, more open, and more scalable than traditional test clouds. Built by Jason Huggins (Selenium, Appium, Sauce Labs), Valet is an experiment in P2P testing at scale. 🚀

@0xTemporal
0xTemporal / siws.ts
Last active February 11, 2025 20:48
SIWS Better Auth plugin
import type { SolanaSignInInput, SolanaSignInOutput } from '@solana/wallet-standard-features'
import { verifySignIn } from '@solana/wallet-standard-util'
import { type BetterAuthPlugin, type User, setSessionCookie } from 'better-auth'
import { APIError, createAuthEndpoint } from 'better-auth/api'
import { addMinutes, isBefore } from 'date-fns'
import { ulid } from 'ulid'
import z from 'zod'
// based on SIWS (https://github.com/phantom/sign-in-with-solana)
@kccnma
kccnma / index.html
Created February 11, 2025 19:47
webtest1
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Website Test 1</title>
<link rel="stylesheet" href="css/style.css">
</head>
@choco-bot
choco-bot / Install.txt
Created February 11, 2025 19:47
string-replicator v1.0.0.0 - Failed - Package Tests Results
2025-02-11 19:37:53,765 4876 [DEBUG] - XmlConfiguration is now operational
2025-02-11 19:37:55,983 4876 [DEBUG] - Adding new type 'CygwinService' for type 'IAlternativeSourceRunner' from assembly 'choco'
2025-02-11 19:37:55,998 4876 [DEBUG] - Adding new type 'CygwinService' for type 'IInstallSourceRunner' from assembly 'choco'
2025-02-11 19:37:56,031 4876 [DEBUG] - Adding new type 'PythonService' for type 'IAlternativeSourceRunner' from assembly 'choco'
2025-02-11 19:37:56,066 4876 [DEBUG] - Adding new type 'PythonService' for type 'IListSourceRunner' from assembly 'choco'
2025-02-11 19:37:56,081 4876 [DEBUG] - Adding new type 'PythonService' for type 'IInstallSourceRunner' from assembly 'choco'
2025-02-11 19:37:56,129 4876 [DEBUG] - Adding new type 'PythonService' for type 'IUninstallSourceRunner' from assembly 'choco'
2025-02-11 19:37:56,201 4876 [DEBUG] - Adding new type 'RubyGemsService' for type 'IAlternativeSourceRunner' from assembly 'choco'
2025-02-11 19:37:56,485 4876 [DEBUG] - Adding new typ
namespace IJuniorConsole;
public class Program
{
private static void Main(string[] args)
{
Shop shop = new Shop("Всё по 42");
Seller seller = new("Кирилл", new[] { new Commodity("Кружка", 42), new Commodity("Расчёска", 42), new Commodity("Книга", 42), new Commodity("Конфета", 42), new Commodity("Головка от штатива SLIK-U6000 Б/У", 42) });
Buyer buyer = new("Гена", 210);
shop.Serve(seller, buyer);
@Arnazz10
Arnazz10 / .deps...remix-tests...remix_accounts.sol
Created February 11, 2025 19:47
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.26+commit.8a97fa7a.js&optimize=false&runs=200&gist=
// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.4.22 <0.9.0;
library TestsAccounts {
function getAccount(uint index) pure public returns (address) {
return address(0);
}
}