->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]
->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]
#!/bin/bash | |
# 配合定时脚本使用 | |
# 订阅后台接口,建议自己搭建,参考 https://github.com/tindy2013/subconverter | |
SERVER_API_URL="https://any.sub.domain/subconver" | |
# 输出的目录位置, nginx 解析目录 | |
OUTPUT_FOLDER="/www/wwwroot/sub.domain.com" | |
# bark 推动提醒地址 |
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) |
package com.klikatech.rollo.ui.compose.components | |
import androidx.compose.foundation.layout.* | |
import androidx.compose.material.* | |
import androidx.compose.runtime.* | |
import androidx.compose.ui.Alignment | |
import androidx.compose.ui.Modifier | |
import androidx.compose.ui.graphics.Color | |
import androidx.compose.ui.graphics.RectangleShape | |
import androidx.compose.ui.graphics.Shape |
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 'package:flutter/material.dart'; | |
void main() { | |
runApp(new MaterialApp( | |
// Title | |
title: "Example App", | |
// Home | |
home: new ListTileWithPopupMenuButton() | |
)); | |
} |
/** | |
* Used as a wrapper for data that is exposed via a LiveData that represents an event. | |
*/ | |
open class Event<out T>(private val content: T) { | |
var hasBeenHandled = false | |
private set // Allow external read but not write | |
/** | |
* Returns the content and prevents its use again. |
package main | |
import ( | |
"context" | |
"flag" | |
"fmt" | |
"log" | |
"net/http" | |
"os" | |
"os/signal" |
adb help // List all comands | |
== Adb Server | |
adb kill-server | |
adb start-server | |
== Adb Reboot | |
adb reboot | |
adb reboot recovery | |
adb reboot-bootloader |