Opengist Logo 清羽飞扬の代码片段

Explore

  • All gists
  • Topics
  • Users
个人主页 站长博客
Give feedback on the new UI Powered by Opengist ⋅ 56ms

user:thomas gists created by user

title:mygist gists with given title

description:sync gists with given description

filename:myfile.txt gists having files with given name

extension:yml gists having files with given extension

language:go gists having files with given language

topic:homelab gists with given topic

all:systemctl search all fields

Login Register
j

json

Recently created Least recently created Recently updated Least recently updated
LiuShen

LiuShen / 生成标准化owo.json

Last active 2 months ago artalk json owo python twikoo

从基本文件格式,生成标准化JSON,用于表情包

0 0 3

整理好表情包为如下格式:

. 📂 owo
└── 📂 bilibili/
│  ├── 📄 bilibili-doge.png
│  ├── 📄 bilibili-大佬.png
│  ├── 📄 …………
└── 📂 blobcat/
│  ├── 📄 blobcat0_0.png
LiuShen

LiuShen / twikoo的表情包格式转artalk的表情包格式

Last active 2 months ago artalk json owo twikoo

twikoo的表情包格式转artalk的表情包格式

0 0 1
1 import json
2 import requests
3
4 def fetch_data_from_url(url):
5 # 获取JSON数据
6 response = requests.get(url)
7 return response.json()
8
9 def convert_data(original_data):
10 converted_data = []
LiuShen

LiuShen / 友链friend.json生成新方式

Last active 2 months ago hexo json script

通过HEXO内置Generator生成,更加快捷,不需要json包

0 0 1
1 const blacklist = ["友站名称1", "友站名称2", "友站名称3"];
2 const path = "friend.json";
3
4 function genFriendJSON(locals) {
5 var friends = [];
6 var data = locals.data.link;
7 data.forEach((entry, index) => {
8 let lastIndex = 2;
9 if (index < lastIndex) {
10 const filteredLinkList = entry.link_list.filter(