Skip to content

Instantly share code, notes, and snippets.

View hylarucoder's full-sized avatar
🐍
🐍🐍🐍

HylaruCoder hylarucoder

🐍
🐍🐍🐍
View GitHub Profile
@echo off
REM Get the current directory
cd /d %~dp0\..\..
REM Define your Python script
REM Python command
SET "cmd=.\venv\Scripts\python -m animatediff generate -c .\projects\proj-awpaint-01\prompts.json -W 384 -H 576 -L 256 -C 16 -o .\projects\proj-awpaint-01\output"
@echo off
REM Get the current directory
cd /d %~dp0\..\..
REM Define your Python script
REM Python command
SET "cmd=.\venv\Scripts\python -m animatediff generate -c .\projects\proj-awpaint-01\prompts.json -W 384 -H 576 -L 32 -C 16 -o .\projects\proj-awpaint-01\output"
// 创建一个对象来存储用户信息和一个数组来存储推文
const usersMap = {};
let tweets = [];
// 定义一个函数来提取推文信息
function extractTweets() {
const tweetElems = document.querySelectorAll('article[data-testid="tweet"]');
tweetElems.forEach(tweetElem => {
const tweetTextElem = tweetElem.querySelector('[data-testid="tweetText"]');
@hylarucoder
hylarucoder / main.go
Created November 27, 2024 03:33
golang serve media dir
package main
import (
"log"
"net/http"
)
func main() {
// Create file server handler
fs := http.FileServer(http.Dir("./media"))