Skip to content

Instantly share code, notes, and snippets.

View taozuhong's full-sized avatar
🌏
Lucky every day

Tao Zuhong taozuhong

🌏
Lucky every day
View GitHub Profile
@taozuhong
taozuhong / columnview.ui
Created September 16, 2023 09:08
GtkColumnView CSS example
```css
.repository header button {
min-height: 18px;
min-width: 8px;
font-size: 0.9em;
border-radius: 0;
border-style: solid;
border-bottom-width: 1px;
border-color: @borders;
@taozuhong
taozuhong / Windows.vapi
Created September 10, 2023 02:16
Windows.vapi
/*
* Copyright(C) 2019-present taozuhong(https://github.com/taozuhong)
* Important:
* These functions are a part of the Kangaroo tool suite;
* Copyright Tao Zuhong. 2019-2023 All rights reserved.
*
* Author: Tao Zuhong
* Created: 9.10.2023
*/
@taozuhong
taozuhong / po_translate
Created June 29, 2023 13:11
Generate translation with AI
#!/bin/sh
# set -x
# 用戶應按需修改以下默認值:
language="en"
usage() # 本腳本的用法
{
echo "用法:$0 [选项] <POT 或 PO文件>"
echo "根据 POT 或 PO文件搜索其目录内的 LINGUAS 文件并翻译之,默认语言为英语 en-US"
@taozuhong
taozuhong / libbacktrace.vapi
Last active January 18, 2021 04:45
libbacktrace Vala binding
```vala
[CCode (cprefix = "BACKTRACE_", lower_case_cprefix = "BACKTRACE_", cheader_filename = "backtrace.h,backtrace-supported.h")]
namespace Backtrace {
public const int SUPPORTED;
public const int USES_MALLOC;
public const int SUPPORTS_THREADS;
public const int SUPPORTS_DATA;
@taozuhong
taozuhong / README.md
Created July 24, 2020 13:51 — forked from qti3e/README.md
List of file signatures and mime types based on file extensions