Skip to content

Instantly share code, notes, and snippets.

View cworld1's full-sized avatar
🚁
keep learning

CWorld cworld1

🚁
keep learning
View GitHub Profile
@cworld1
cworld1 / material-you.omp.json
Last active June 8, 2022 15:57
oh-my-posh 的主题代码。我给它取名叫 material-you。注意需要 nerd 字体支持。
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"blocks": [
{
"alignment": "left",
"segments": [
{
"background": "#29315A",
"foreground": "#45F1C2",
"leading_diamond": "\ue0b6",
@cworld1
cworld1 / icalingua.dark.blue.css
Last active July 28, 2023 14:39
Icalingua 自定义 CSS(绿色和蓝色两种版本配色)
/* ----- 全局 ----- */
::-webkit-scrollbar-thumb {
background-color: #5c5c5c !important;
}
/* 配色修改 */
.icalingua-theme-holder {
--panel-header-bg: #292a2d !important; /* 顶栏 */
--panel-background: #292a2d !important; /* 背景 */
--panel-item-bg: #393b40 !important; /* 激活会话 */
--panel-item-bg-hover: #333538 !important; /* hover高亮会话 */
@cworld1
cworld1 / material-you-zim.zsh-theme
Last active July 28, 2023 14:38
A shell theme for [zim framework](https://github.com/zimfw/zimfw) on Z-shell (zsh). If you are a Windows user (use Cygwin/msys2), please uncomment line 4 to fix path problem. NOTE: `duration-info`, `git-info` module is required in zim.
_prompt_basher_pwd() {
local git_root current_dir
if git_root=$(command git rev-parse --show-toplevel 2>/dev/null); then
# git_root=$(cygpath -u "$git_root") # 将 Windows 风格的路径转换为 Unix 风格的路径
current_dir="${PWD#${git_root:h}/}"
else
current_dir=${(%):-%3~}
fi
print -n "%F{blue}󰉖 ${current_dir}%b"
}
@cworld1
cworld1 / prts-wiki.user.js
Last active December 20, 2023 15:50
prts.wiki 剧情体验优化
// ==UserScript==
// @name prts.wiki 剧情优化
// @namespace Violentmonkey Scripts
// @match https://prts.wiki/w/*
// @grant none
// @version 1.1
// @author CWorld
// @description PRTS theater mode provement
// ==/UserScript==
@cworld1
cworld1 / md5-sha-hash.bat
Created October 7, 2024 17:47
A bat script to calc MD5 or SHA1/256 hash for Windows users. No additional requirements need.
@echo off
:: Display a simple logo
echo.
echo ================================
echo Hash Calculator
echo ================================
echo.
:loop
:: Check if a file path is provided as an argument
@cworld1
cworld1 / friendCircle.ts
Created December 1, 2024 13:36
Friend Circle Lite for astro-theme-pure
interface Config {
private_api_url: string
page_turning_number: number
error_img: string
}
interface Article {
title: string
link: string | URL
avatar: string
@cworld1
cworld1 / update_resource_cmd.bat
Last active February 3, 2025 08:41
MAA Resources Auto Update
@echo off
setlocal enabledelayedexpansion
set directory=MaaResource
REM Start MAA application
start ./MAA.exe
REM Check if .git directory exists
if not exist .git (
echo Cloning repository...