Go to about:config
Search for compactmode
, toggle to true
for seo:
- window control merge into tab bar;
local clang_format_bin = "clang-format" | |
local function run_clang(args, input, on_done) | |
local uv = vim.uv | |
local stdin = uv.new_pipe(false) | |
local stdout = uv.new_pipe(false) | |
local chunks = {} |
import math | |
class ZeroToOneBinner: | |
def __init__(self): | |
self.bins = 8 | |
self.counts = [0 for _ in range(self.bins)] | |
self.total = 0 | |
def update(self, values): |
Go to about:config
Search for compactmode
, toggle to true
for seo:
#!/bin/bash | |
set -o errexit | |
set -o pipefail | |
set -o nounset | |
ZOTERO_DIR="$HOME/snap/zotero-snap/common/Zotero" | |
ZOTERO_DB="${ZOTERO_DIR}/zotero.sqlite" | |
PDF_READER="$HOME/Projects/piz/target/debug/piz" |
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta name="viewport" content="width=device-width" /> | |
<meta charset="utf-8" /> | |
<meta name="pluto-insertion-spot-meta"> |
import os | |
from pathlib import Path | |
import json | |
import argparse | |
from PIL import Image | |
import numpy as np | |
# import detectron2 | |
# from detectron2.structures import BoxMode |
From 4e32b5ebfc3bb54cabf192488e43e768781eeafb Mon Sep 17 00:00:00 2001 | |
From: Paul Berg <[email protected]> | |
Date: Mon, 29 Aug 2022 16:28:55 +0200 | |
Subject: [PATCH] Allow using the CPU for txt2img | |
--- | |
configs/stable-diffusion/v1-inference.yaml | 2 ++ | |
scripts/txt2img.py | 18 ++++++++++++------ | |
2 files changed, 14 insertions(+), 6 deletions(-) |
from pathlib import Path | |
import pickle | |
import functools | |
import hashlib | |
def hash_args(args, kwargs): | |
assert all(isinstance(s, str) for s in kwargs.values()) | |
assert all(isinstance(s, str) for s in args) |
import torch | |
from torch import Tensor | |
def batch_sinkhorn( | |
a: Tensor, | |
b: Tensor, | |
C: Tensor, | |
reg: float, | |
max_iters: int = 10, |
# ╔═╡ 9e5d37c8-c45c-4eb0-bc38-fd42bb408508 | |
html""" | |
<script> | |
const calculate_slide_positions = (/** @type {Event} */ e) => { | |
const notebook_node = /** @type {HTMLElement?} */ (e.target)?.closest("pluto-editor")?.querySelector("pluto-notebook") | |
console.log(e.target) | |
if (!notebook_node) return [] | |
const height = window.innerHeight | |
const headers = Array.from(notebook_node.querySelectorAll("pluto-output h1, pluto-output h2")) |