两个版本:
- shuorenhua-llm.py 需要与 OpenAI API 兼容的 LLM 服务商
- shuorenhua.py 是非常简单的基于规则的脚本
以下的例子来自 。
# Initially generated by LLM | |
# Put in _plugins/ and add fastimage and nokogiri to deps | |
require 'fastimage' | |
require 'nokogiri' | |
Jekyll::Hooks.register %i[pages posts], :post_render do |page| | |
next unless page.output_ext == '.html' | |
doc = Nokogiri::HTML5.parse(page.output) | |
changed = false |
两个版本:
以下的例子来自 。
import json | |
import os | |
import requests | |
import re | |
import sys | |
import traceback | |
HREF_RE = re.compile(r'href="([^"]+)"') | |
with open("releases.json") as f: |
#!/usr/bin/env python | |
# Code modified from bcc-tools cachetop | |
from __future__ import absolute_import | |
from __future__ import division | |
# Do not import unicode_literals until #623 is fixed | |
# from __future__ import unicode_literals | |
from __future__ import print_function | |
from bcc import BPF |
import gi | |
gi.require_version("Gio", "2.0") | |
from gi.repository import Gio | |
def main(): | |
# Retrieve all applications using g_app_info_get_all() | |
app_infos = Gio.AppInfo.get_all() | |
# Print details for each application | |
for app_info in app_infos: |
# Converted from https://musescore.com/user/76963843/scores/19868371 | |
60 0 | |
8 4 2 | |
6 4 2 | |
3 5 4 | |
3 5 4 | |
1 5 4 | |
4 5 4 | |
3 5 4 | |
1 5 4 |
[package] | |
name = "keyboardsim" | |
version = "0.1.0" | |
edition = "2021" | |
[dependencies] | |
ashpd = "0.10.2" | |
keycode = "0.4.0" | |
tokio = { version = "1.41.1", features = ["full"] } |
// Modules to control application life and create native browser window | |
const { app, BrowserWindow, Notification, Tray, Menu } = require('electron') | |
const path = require('node:path') | |
let tray; | |
let mainWindow; | |
function createWindow () { | |
// Create the browser window. | |
mainWindow = new BrowserWindow({ |
// CollectionDowngrader.LazerSchema from https://github.com/ookiineko/CollectionDowngrader/tree/main/LazerSchema | |
using CollectionDowngrader.LazerSchema; | |
using Realms; | |
// Console.WriteLine($"cwd: {Environment.CurrentDirectory}"); | |
const int LazerSchemaVersion = 41; | |
string realmFile = Path.GetFullPath("./client.realm"); | |
RealmConfiguration config = new(realmFile) | |
{ | |
IsReadOnly = true, |