Search through your Fantasty Statblocks bestiary by monster CR and type, using Dataview!
- Make sure that Meta-Bind, Fantasy Statblocks, Dataview and is installed
Benchmarking custom cell get_ref | |
Benchmarking custom cell get_ref: Warming up for 3.0000 s | |
Benchmarking custom cell get_ref: Collecting 100 samples in estimated 5.0000 s (79M iterations) | |
Benchmarking custom cell get_ref: Analyzing | |
custom cell get_ref time: [24.690 ns 24.739 ns 24.801 ns] | |
change: [-0.6441% -0.3533% -0.0692%] (p = 0.02 < 0.05) | |
Change within noise threshold. | |
Found 3 outliers among 100 measurements (3.00%) | |
1 (1.00%) low severe | |
2 (2.00%) high severe |
//! Custom cell impl, internal use only | |
use std::{cell::UnsafeCell, fmt, rc::Rc}; | |
use criterion::{black_box, criterion_group, criterion_main, Criterion}; | |
use std::cell::RefCell; | |
pub(crate) struct Cell<T> { | |
inner: Rc<UnsafeCell<T>>, | |
} | |
impl<T> Clone for Cell<T> { |
def transform(last): | |
"""Transforms the last sentence of disagreement into the next""" | |
# Strip the "I disagree with..." part from the setence, so that | |
# we can work with just chains of "[your|my] disagreement of..." | |
next = last[len("I disagree with "):] | |
# Rotate your <-> my | |
next = next.replace("your", "p_my") | |
next = next.replace("my", "p_your") | |
next = next.replace("p_my", "my") |
/* | |
* This example is about using coroutines as state machines, | |
* in the same thread rather than as threads for asynchronous | |
* operations. It allows you to write sequential code such as | |
* code that waits for something to happen ONCE and then does | |
* something, essentially equivalent to adding an event | |
* listener which removes itself after it has run, but | |
* avoiding callback hell. | |
*/ |
fun main(args: Array<String>) { | |
if (args[0] == "start") { | |
launch(CommonPool) { | |
println("Launching") | |
SerialisationHelper.test() | |
println("Finished") | |
} | |
} |
"""Code I wrote in school to graph stuff""" | |
import turtle | |
import math | |
import traceback | |
import _tkinter | |
import sys | |
import tkinter.messagebox | |
import tkinter.simpledialog |
I hereby claim:
To claim this, I am signing this object:
# Import discord.py | |
import discord | |
import asyncio | |
client = discord.Client() | |
@client.event | |
async def on_ready(): |
import arcade | |
import time | |
import glob | |
from PIL import Image | |
from PIL import ImageSequence | |
import os | |
import shutil | |
def split_textures(path): |