This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# 默认参数 | |
fps=10 | |
width=-1 | |
output="" | |
# 打印使用说明 | |
usage() { | |
local exe=$(basename $0) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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]*//' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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'; |