->Written by Alpin<- ->Inspired by /hdg/'s LoRA train rentry<- !!!warning This guide is being slowly updated. We've already moved to the axolotl trainer.
[TOC2]
const {memoize} = require('find-by-slug'); | |
// Turn collection.all into a lookup table so we can use findBySlug | |
// to quickly find collection items without looping. | |
config.addCollection('memoized', function(collection) { | |
return memoize(collection.getAll()); | |
}); |
import androidx.compose.runtime.* | |
import kotlinx.coroutines.CoroutineScope | |
@Stable | |
internal class Event<T>(val value: T) | |
class MutableEventQueue<T> | |
internal constructor(): EventQueue<T>() { | |
private val events = mutableListOf<Event<T>>() | |
private val nextEventAsState = mutableStateOf<Event<T>?>(null) |
#!/bin/bash | |
# 配合定时脚本使用 | |
# 订阅后台接口,建议自己搭建,参考 https://github.com/tindy2013/subconverter | |
SERVER_API_URL="https://any.sub.domain/subconver" | |
# 输出的目录位置, nginx 解析目录 | |
OUTPUT_FOLDER="/www/wwwroot/sub.domain.com" | |
# bark 推动提醒地址 |
->Written by Alpin<- ->Inspired by /hdg/'s LoRA train rentry<- !!!warning This guide is being slowly updated. We've already moved to the axolotl trainer.
[TOC2]