Stable Diffusion のプロンプト上で足し算や引き算ができるようオプションを追加するパッチ
ピラミッドを20%だけ日本に寄せる
# 計算式は ピラミッド + 20% * (日本 - エジプト)
# プロンプトは pyramid + 0.2 (japan - egypt) となる
#!/usr/bin/perl | |
###################################################################### | |
# | |
# File : split_bootimg.pl | |
# Author(s) : William Enck <[email protected]> | |
# Description : Split appart an Android boot image created | |
# with mkbootimg. The format can be found in | |
# android-src/system/core/mkbootimg/bootimg.h | |
# | |
# Thanks to alansj on xda-developers.com for |
diff --git a/avrdude/Makefile.am b/avrdude/Makefile.am | |
index 1d915b0..be277c8 100644 | |
--- a/avrdude/Makefile.am | |
+++ b/avrdude/Makefile.am | |
@@ -66,7 +66,7 @@ avrdude_CFLAGS = @ENABLE_WARNINGS@ | |
libavrdude_a_CFLAGS = @ENABLE_WARNINGS@ | |
libavrdude_la_CFLAGS = $(libavrdude_a_CFLAGS) | |
-avrdude_LDADD = $(top_builddir)/$(noinst_LIBRARIES) @LIBUSB_1_0@ @LIBUSB@ @LIBFTDI1@ @LIBFTDI@ @LIBHID@ @LIBELF@ @LIBPTHREAD@ -lm | |
+avrdude_LDADD = $(top_builddir)/$(noinst_LIBRARIES) @LIBUSB_1_0@ @LIBUSB@ @LIBFTDI1@ @LIBFTDI@ @LIBFTD2XX@ @LIBHID@ @LIBELF@ @LIBPTHREAD@ -lm |
-- This is free and unencumbered software released into the public domain. | |
local function cubic_bezier_implicit(t, p1, p2) | |
return p1 * (1-t) ^ 2 * t + p2 * (1-t) * t ^ 2 + t ^ 3 | |
end | |
local function t_search(x, p1, p2) | |
if x == 0 then | |
return 0 | |
elseif x == 1 then |
"""Beat Saber の未圧縮ディレクトリを zip 形式に変換する | |
Beat Saber の曲ディレクトリが以下のようになっているとき | |
* 親ディレクトリ | |
* 曲ディレクトリ1 | |
* 曲ディレクトリ2 | |
* 曲ディレクトリ3 | |
以下を出力する |
# 公式サイトにある Docker を使った手順では Addon 導入ができないなど機能制限が多い | |
# 推奨は Home Assistant Operating System の導入だが、 Raspberry Pi OS に入れたい場合は以下手順を取る | |
# この手順では AppArmor や cgroups などセキュリティ周りの設定が不完全になることに注意 | |
# 導入後に設定画面の指示に従って適宜修正が必要 | |
# docker を入れる | |
curl https://get.docker.com | sh | |
# 一旦再起動 |
import pcbnew | |
# index (1-origin) to Reference Text | |
def diode(index: int) -> str: | |
return f"D{index}" | |
def switch(index: int) -> str: | |
return f"SW{index}" |