WebUIで画像の追加をすると以下のようなAPIが使われる
POST https://lemmy.juggler.jp/pictrs/image
POST /pictrs/image HTTP/2
Host: lemmy.juggler.jp
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:103.0) Gecko/20100101 Firefox/103.0
| #!/usr/bin/perl -- | |
| # - カレントディレクトリで./gradlew :app:dependencies して依存関係を列挙する | |
| # - ユーザフォルダの.gradle/ にあるpomファイルを探索する | |
| # - 依存関係とpomファイルを突き合わせて json を出力する | |
| use 5.32.1; | |
| use strict; | |
| use warnings; | |
| use Getopt::Long; |
| #!/usr/bin/perl -- | |
| use v5.34.0; | |
| use strict; | |
| use warnings; | |
| use LWP::UserAgent; | |
| use JSON5; | |
| use JSON::XS; | |
| use Data::Dump qw(dump); | |
| use URI::Escape; | |
| use Fcntl ':mode'; |
| #!/usr/bin/perl -- | |
| use 5.32.0; | |
| use strict; | |
| use warnings; | |
| use Win32::API; | |
| my $WM_IME_CONTROL = 0x0283; | |
| my $IMC_SETOPENSTATUS = 0x06; | |
| my $TRUE = 1; | |
| my $FALSE = 0; |
| // in manifest | |
| <intent-filter> | |
| <action android:name="android.intent.action.VIEW" /> | |
| <category android:name="android.intent.category.DEFAULT" /> | |
| <category android:name="android.intent.category.BROWSABLE" /> | |
| <data | |
| android:host="post" | |
| android:scheme="web+activitypub" /> |
| $ ./gradlew :app:dependencies --configuration nofcmReleaseRuntimeClasspath >dep2.txt | |
| > Configure project :app | |
| willApplyGoogleService=false. [DefaultTaskExecutionRequest{args=[:app:dependencies, --configuration, nofcmReleaseRuntimeClasspath],projectPath='null',rootDir='null'}] | |
| > Task :app:dependencies | |
| ------------------------------------------------------------ | |
| Project ':app' |
| import java.io.File | |
| fun splitTableInfo(src: String): List<String> { | |
| val lines = ArrayList<String>() | |
| val after = src.replace("""([\w_]+=Column\{[^}]+\}|Index\{[^}]+\}),? ?""".toRegex()) { | |
| lines.add(it.groupValues[1]) | |
| "" | |
| } | |
| lines.add(" :$after") | |
| return lines.sorted() |
| emoji=#️, tokens=2, prompt=#⁞\u0239\u0184\u0305 | |
| emoji=#️⃣, tokens=2, prompt=#⁞\u0239\u0184\u0305\u0226\u0293\u0163 | |
| emoji=*️, tokens=2, prompt=*⁞\u0239\u0184\u0305 | |
| emoji=*️⃣, tokens=2, prompt=*⁞\u0239\u0184\u0305\u0226\u0293\u0163 | |
| emoji=0️, tokens=2, prompt=0⁞\u0239\u0184\u0305 | |
| emoji=0️⃣, tokens=2, prompt=0⁞\u0239\u0184\u0305\u0226\u0293\u0163 | |
| emoji=1️, tokens=2, prompt=1⁞\u0239\u0184\u0305 | |
| emoji=1️⃣, tokens=2, prompt=1⁞\u0239\u0184\u0305\u0226\u0293\u0163 | |
| emoji=2️, tokens=2, prompt=2⁞\u0239\u0184\u0305 | |
| emoji=2️⃣, tokens=2, prompt=2⁞\u0239\u0184\u0305\u0226\u0293\u0163 |
| https://twitter.com/shirase_S_/status/1565300371152441344 | |
| の呪文を参考に、私の好みに合わせて魔改造しました。 | |
| - 水彩と鉛筆のタッチをより精緻に | |
| - 色指定いくつかを delicate toned に | |
| - 主人公をgirlから pretty low teen heroineに | |
| - モデルは trinart_stable_diffusion_epoch3.ckpt を使用 | |
| 結果、割と別物になっちゃったかなあ… |
| package jp.juggler.testparcelablecompat | |
| import android.content.Context | |
| import android.os.Build | |
| import android.os.Bundle | |
| import android.os.Parcelable | |
| import android.util.Log | |
| import android.view.View | |
| import android.view.ViewGroup | |
| import androidx.appcompat.app.AppCompatActivity |