mintty界面编码改为zh-cn GBK
右击git bash标题->Options->Text
Locale选择zh_CN,Char set选择GBK
#include <QCoreApplication> | |
#include <QDebug> | |
#include "qt_gbk_stringdecoder.h" | |
#include "qt_gbk_strs.h" | |
int main(int argc, char *argv[]) | |
{ | |
//QCoreApplication a(argc, argv); | |
#if QT_VERSION < 0x050000 |
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
# Date: 2018-06-06 | |
# NekoSMS filters print/encode | |
import json | |
# print keyword from json | |
def print_kw(filename): |
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
# 用于打印dante.conf的socks pass/block的 | |
# 目标规则(Target IPs) | |
# Document: https://www.inet.no/dante/doc/1.4.x/sockd.conf.5.html | |
TELEGRAM_PASS_CIDR=( | |
"91.108.4.0/22", | |
"91.108.8.0/21", |
menuentry "Boot Ubuntu ISO" { | |
set root=(hd1,msdos4) | |
set isofile=/lubuntu-16.04.3-desktop-amd64.iso | |
loopback loop $isofile | |
linux (loop)/casper/vmlinuz.efi persistent boot=casper iso-scan/filename="$isofile" quiet splash ro locale=zh_CN.UTF-8 noprompt -- | |
initrd (loop)/casper/initrd.lz | |
} | |
menuentry "Boot ArchLinux ISO" { |
||https://imgcache.qq.com/ptlogin/v4/style/20/images/shouQ_v2/small_24_tiny.png |
/* | |
static_cast<type>(var) 静态类型转换,编译的时c++编译器会做类型检查 | |
基本类型(int,float...void*)能转换,通过继承关系的类之间也能相互转换 | |
但是不能转换不同指针类型 | |
*/ | |
#include <iostream> | |
using namespace std; | |
struct S1{ |
#include <iostream> | |
#include <iomanip> | |
using namespace std; | |
void restore_fmt(std::_Ios_Fmtflags fmt) | |
{ | |
cout << "restore flag" << endl; | |
cout.flags(fmt); | |
cout << endl; |
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
# Create on: 2015年10月25日 下午4:48:30 | |
# 说明:删除重复文件 dfs递归搜索目录判断有垃圾sdr文件 | |
# Author:lixingcong | |
import os | |
import shutil | |
import time |
# C++ objects and libs | |
*.slo | |
*.lo | |
*.o | |
*.a | |
*.la | |
*.lai | |
*.so | |
*.dll | |
*.dylib |