Skip to content

Instantly share code, notes, and snippets.

View zgs225's full-sized avatar
😀
Working

Yuez zgs225

😀
Working
View GitHub Profile
@zgs225
zgs225 / mp3_hant2hans.sh
Last active April 26, 2023 07:16
将 mp3 文件中的繁体中文信息转换成简体中文信息
#!/bin/bash
# 将 mp3 文件中的繁体字转换为简体字
# 依赖:opencc mid3v2
# 用法:hant2hans.sh [-d dir] [-f file]
set -e
function get_by_id() {
mid3v2 -l "$1" | grep "$2" | cut -d= -f2 | sed 's/^[ \t]*//'
@zgs225
zgs225 / reversi.c
Created December 28, 2016 15:55
Interesting
#include <stdio.h>
#include <stdbool.h>
#include <stdlib.h>
#include <ctype.h>
#include <string.h>
#define SIZE 6
const char comp_c = '@';
const char player_c = 'O';