Skip to content

Instantly share code, notes, and snippets.

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.

@mahmoudimus
mahmoudimus / base256.py
Created February 11, 2025 19:37
dumb base256 encoding
import re
class Base256:
def __init__(self):
self.list = [['aardvark','adroitness'],['absurd','adviser'],['accrue','aftermath'],['acme','aggregate'],['adrift','alkali'],['adult','almighty'],['afflict','amulet'],['ahead','amusement'],['aimless','antenna'],['Algol','applicant'],['allow','Apollo'],['alone','armistice'],['ammo','article'],['ancient','asteroid'],['apple','Atlantic'],['artist','atmosphere'],['assume','autopsy'],['Athens','Babylon'],['atlas','backwater'],['Aztec','barbecue'],['baboon','belowground'],['backfield','bifocals'],['backward','bodyguard'],['banjo','bookseller'],['beaming','borderline'],['bedlamp','bottomless'],['beehive','Bradbury'],['beeswax','bravado'],['befriend','Brazilian'],['Belfast','breakaway'],['berserk','Burlington'],['billiard','businessman'],['bison','butterfat'],['blackjack','Camelot'],['blockade','candidate'],['blowtorch','cannonball'],['bluebird','Capricorn'],['bombast','caravan'],['bookshelf','caretaker'],['brackish','celebrate'],['breadline','cellulose'],['br
@steveruu
steveruu / prd
Created February 11, 2025 19:37
**1. Odpisy**
* **Účetní odpisy:**
* snižují účetní hodnotu majetku v čase
* **lineární odpisy:** odpisová sazba = 100 / doba životnosti (např. 5 let = 20% ročně)
* **zrychlené odpisy:** vyšší odpisy v prvních letech, nižší později
* **Daňové odpisy:**
* stanoveny zákonem, odlišné od účetních
* **důležité:** ovlivňují daňový základ a tím i výši daně z příjmu
@prakhart111
prakhart111 / main.dart
Created February 11, 2025 19:37
Snippet created via Next.js API
// Dualite Generated Code
import 'package:flutter/material.dart';
import 'package:intl/intl.dart';
@asfgfdgdfgdfgdfdggd
asfgfdgdfgdfgdfdggd / Directory Opus Pro 13.6.2 Crack with License Key
Created February 11, 2025 19:37
$^Directory Opus Pro 13.6.2 Crack with License Key [Latest 2025]
^%$ Directory Opus Pro 13.6.2 Crack with License Key