Discover gists
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import io.micrometer.core.instrument.MeterRegistry | |
import io.micrometer.core.instrument.Timer | |
import org.aspectj.lang.ProceedingJoinPoint | |
import org.aspectj.lang.annotation.Around | |
import org.aspectj.lang.annotation.Aspect | |
import org.springframework.stereotype.Component | |
import kotlin.coroutines.Continuation | |
import kotlin.coroutines.intrinsics.startCoroutineUninterceptedOrReturn | |
import kotlin.coroutines.intrinsics.suspendCoroutineUninterceptedOrReturn |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"url": "https://google.com", | |
"name": "ReferrToEarn", | |
"iconUrl": "https://files.softicons.com/download/animal-icons/cat-force-icons-by-iconka/ico/cat_upsidedown.ico" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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."); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 --- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |