下载安装: yams-cpp release 0.5.3, 支持 yaml 1.2标准, 比老版本语法更优雅 https://github.com/jbeder/yaml-cpp 解压至yaml-cpp-release-0.5.3 复制代码 cd yaml-cpp-release-0.5.3 mkdir build cd build cmake .. make make install 复制代码 确认include文件安装到/usr/local/include中,文件夹为 yaml-cpp 创建测试文件: main.cpp内容如下 复制代码 #include #include #include <yaml-cpp/yaml.h> #include int main(int argc, const char * argv[]) { // insert code here… YAML::Node config = YAML::LoadFile(“config.yaml”); const std::string username = config[“username”].as(); const…
Month: August 2017
MACOS 免费软件下载
常用工具: Homebrew: http://brew.sh/ Homebrew brew-cask: https://github.com/caskroom/homebrew-cask Firefox: http://www.firefox.com.cn/ Evernote: https://www.yinxiang.com/download/ QQ: http://im.qq.com/download/ QQ输入法: http://pc.qq.com/mac.html 微信:https://search.itunes.apple.com/WebObjects/MZContentLink.woa/wa/link?mt=11&path=mac%2fWeChat 企业微信:http://work.weixin.qq.com/#indexDownload 开发工具: JDK: http://www.oracle.com/technetwork/java/javase/downloads/index.html PHPStorm: https://www.jetbrains.com/phpstorm/ sequelpro: http://www.sequelpro.com/download composer: sourcetree: https://www.sourcetreeapp.com/download/ homebrew安装软件 brew top phinze/homebrew-cask brew install brew-cask brew cask install google-chrome brew install wget brew install mysql brew install nginx brew install homebrew/php/php56 brew install homebrew/php/php56-intl brew install phpunit
批量转换目录下所有文件到UTF8
#!/bin/sh for i in * do iconv -f GBK -t UTF-8 $i >tmp cp tmp $i done rm tmp