Skip to content

Instantly share code, notes, and snippets.

View runningzyp's full-sized avatar
💭
we say ~~~

YunpengZhan runningzyp

💭
we say ~~~
View GitHub Profile
@runningzyp
runningzyp / play_animation_color.py
Created December 30, 2024 10:20
play_animation_color.py
This file has been truncated, but you can view the full file.
#!/usr/bin/env python3
"""
# @ Author: yunpeng.zhan
# @ Create Time: 2024-12-30 17:21:53
# @ Description:
# @ Modified by: yunpeng.zhan
# @ Modified time: 2024-12-30 18:18:43
"""
@runningzyp
runningzyp / main.py
Created May 21, 2024 05:23
generate dataclasses
def parse_json(data: Any, class_name: str) -> str:
if isinstance(data, dict):
fields = []
nested_classes = []
for key, value in data.items():
field_type, nested_class = parse_json(value, key.capitalize())
fields.append(f"{key}: {field_type}")
if nested_class:
nested_classes.append(nested_class)
@runningzyp
runningzyp / cpc-mrs-dalloway-aged-paper-reader-responsive.markdown
Created April 25, 2024 04:40
CPC - Mrs. Dalloway Aged Paper Reader - Responsive

CPC - Mrs. Dalloway Aged Paper Reader - Responsive

For Codepen Challenge - Book Text. Auto overflow reader with aged paper styling.

A Pen by MOZZARELLA on CodePen.

License.

@runningzyp
runningzyp / 3d-ebook-flip-animation.markdown
Created April 25, 2024 04:38
3D Ebook Flip Animation
@runningzyp
runningzyp / sudo.sh
Created January 31, 2024 08:18
sudo
sudo -S <<< 'ssss' pwd
@runningzyp
runningzyp / theme
Last active May 14, 2023 03:14 — forked from Himanshu-Mishr/theme
126 Themes for Terminal (Elementary OS)
#!/bin/bash
# Download it.
# Name it as 'theme'
# Place it in /usr/bin/
# shell_prompt$ theme
echo '
3024 Day ( 1) 3024 Night ( 2) AdventureTime ( 3)
Afterglow ( 4) AlienBlood ( 5) Argonaut ( 6)
Arthur ( 7) Atom ( 8) Belafonte Day ( 9)
Belafonte Night ( 10) BirdsOfParadise ( 11) Blazer ( 12)
# |░▒▓███████░░░░░░░░░░| 50.0% completed
# def progress_bar(current_progress, total_progress):
# bar_length = 20
# filled_length = int(bar_length * current_progress // total_progress)
# bar_list = ['░', '▒', '▓', '█']
# bar = ''.join([bar_list[min(i,3)] for i in range(filled_length)]
# bar += ''.join([''░' for i in range(bar_length-filled_length)])
# percent = "{:.1f}".format(100 * (current_progress / total_progress))
.figure.savefig('')
@runningzyp
runningzyp / git.sh
Last active March 17, 2023 04:53
Git stash
# Description: Git aliases and functions
git stash push -S
@runningzyp
runningzyp / weibo_unfollow.py
Created May 24, 2022 12:11
取关微博最近关注的博主
import requests
import json
# from tqdm import tqdm
filter_choice = {
"1": "7天内新增",
"2": "30天内新增",
"3": "半年内新增",
}
COOKIE = '' # 替换为自己的