Skip to content

Instantly share code, notes, and snippets.

@Julians42
Julians42 / confidence_interval_minimum_length.jl
Created February 11, 2025 18:25
Julia minimium length confidence interval for single-peaked univariate distribution with normal and beta examples
using Random
using CairoMakie
using QuadGK
using Distributions
function CI(x, p, ci_size)
"""Computes the minimum length confidence interval for a single-peaked posterior distribution"""
dx = x[2] - x[1]
median_loc = argmax(p)
median = x[median_loc] # compute the mode of the distribution - this point will be in the confidence interval
{
"url": "https://google.com",
"name": "ReferrToEarn",
"iconUrl": "https://files.softicons.com/download/animal-icons/cat-force-icons-by-iconka/ico/cat_upsidedown.ico"
}
@CelsoTJr
CelsoTJr / app.js
Created February 11, 2025 18:25
leitura de tela
if ('speechSynthesis' in window) {
let utterance = new SpeechSynthesisUtterance(texto);
utterance.lang = 'pt-BR';
utterance.rate = 1.2;
window.speechSynthesis.speak(utterance);
} else {
console.log("Web Speech API não suportada neste navegador.");
}
@HugsLibRecordKeeper
HugsLibRecordKeeper / output_log.txt
Created February 11, 2025 18:25
Rimworld output log published using HugsLib
Log uploaded on Wednesday, February 12, 2025, 2:25:09 AM
Loaded mods:
Harmony(brrainz.harmony)[mv:2.3.1.0]: 0Harmony(2.3.3), HarmonyMod(2.3.1)
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)
HugsLib(UnlimitedHugs.HugsLib)[ov:11.0.4]: 0Harmony(av:2.3.3,fv:1.2.0.1), HugsLib(av:1.0.0,fv:11.0.4)
AAAA(Allowed Area Automatic Adapter)(seekiworksmod.no17): AAAA(3.1.0)
pts1 = np.float32([[56,65],[368,52],[28,387],[389,390]])
pts2 = np.float32([[0,0],[300,0],[0,300],[300,300]])
M = cv2.getPerspectiveTransform(pts1, pts2)
perspective_transformed = cv2.warpPerspective(image, M, (300, 300))
@AlfaBlok
AlfaBlok / liq.md
Created February 11, 2025 18:24
test1

‎‎​

import logging
import time
from contextlib import contextmanager
from collections import defaultdict
import numpy as np
import torch
import matplotlib.pyplot as plt
# --- External libraries ---
@Reynier9412
Reynier9412 / index.html
Created February 11, 2025 18:23
Leafy Haven Shop UI 🌱
<main class="shop-container">
<div class="shop-header">
<h1>Leafy Haven: Indoor Plants</h1>
<p>Transform your space into a green sanctuary with our carefully curated selection of indoor plants. Each plant is chosen for its unique characteristics and air-purifying qualities.</p>
</div>
<div class="categories">
<button class="category-button active" data-category="all">All Plants</button>
<button class="category-button" data-category="low-light">Low Light</button>
<button class="category-button" data-category="air-purifying">Air Purifying</button>
@HugsLibRecordKeeper
HugsLibRecordKeeper / output_log.txt
Created February 11, 2025 18:23
Rimworld output log published using HugsLib
Log uploaded on Tuesday, February 11, 2025, 7:23:26 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)
Vanilla Backgrounds Expanded(vanillaexpanded.backgrounds): VBE(1.0.0)
Ideology(Ludeon.RimWorld.Ideology): (no assemblies)
rows, cols = image.shape[:2]
pts1 = np.float32([[50,50],[200,50],[50,200]])
pts2 = np.float32([[10,100],[200,50],[100,250]])
M = cv2.getAffineTransform(pts1, pts2)
affine_transformed = cv2.warpAffine(image, M, (cols, rows))