One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
| # https://github.com/messense/homebrew-macos-cross-toolchains | |
| brew tap messense/macos-cross-toolchains | |
| brew install x86_64-unknown-linux-gnu | |
| export CC_X86_64_UNKNOWN_LINUX_GNU=x86_64-unknown-linux-gnu-gcc | |
| export CXX_X86_64_UNKNOWN_LINUX_GNU=x86_64-unknown-linux-gnu-g++ | |
| export AR_X86_64_UNKNOWN_LINUX_GNU=x86_64-unknown-linux-gnu-ar | |
| export CARGO_TARGET_X86_64_UNKNOWN_LINUX_GNU_LINKER=x86_64-unknown-linux-gnu-gcc |
| # EXAMPLE OUTPUT | |
| # ============== | |
| # opening device 0xddcc | |
| # connected | |
| # tester present ... | |
| # read data by id: boot software id ... | |
| # 39990-TVA-A110 | |
| # read data by id: application software id ... | |
| # 39990-TVA-A150 | |
| # read data by id: application data id ... |
| /** | |
| * 截取指定长度的中英文混合字符串 | |
| * @param {String} str 待截取的字符串 | |
| * @param {Number} n 截取长度(中文字符为英文的 double) | |
| * @return {String} 截取后的字符串 | |
| */ | |
| function subString(str, n) { | |
| var r = /[^\x00-\xff]/g; | |
| var m; |
| git config --global https.proxy http://127.0.0.1:1080 | |
| git config --global https.proxy https://127.0.0.1:1080 | |
| git config --global --unset http.proxy | |
| git config --global --unset https.proxy | |
| git clone https://github.com/commaai/openpilot.git --config "http.proxy=proxyHost:proxyPort" |
| -- Tit Petric, Monotek d.o.o., Thu 27 Oct 2016 10:43:38 AM CEST | |
| -- | |
| -- Delete nginx cached assets with a PURGE request against an endpoint | |
| -- | |
| local md5 = require 'md5' | |
| function file_exists(name) | |
| local f = io.open(name, "r") | |
| if f~=nil then io.close(f) return true else return false end |
| Redis::connection()->del('queues:myqueue'); |
| # Go parameters | |
| GOCMD=go | |
| GOBUILD=$(GOCMD) build | |
| GOCLEAN=$(GOCMD) clean | |
| GOTEST=$(GOCMD) test | |
| GOGET=$(GOCMD) get | |
| BINARY_NAME=mybinary | |
| BINARY_UNIX=$(BINARY_NAME)_unix |
| 根据Unicode5.0整理如下: | |
| 1)标准CJK文字 | |
| http://www.unicode.org/Public/UNIDATA/Unihan.html | |
| 2)全角ASCII、全角中英文标点、半宽片假名、半宽平假名、半宽韩文字母:FF00-FFEF | |
| http://www.unicode.org/charts/PDF/UFF00.pdf | |
| 3)CJK部首补充:2E80-2EFF | |
| http://www.unicode.org/charts/PDF/U2E80.pdf |