2018-04-29 LEo
本文主要介绍go语言动态库的编译和使用方法,以linux平台为例,windows平台步骤一样,具体环境如下: `` $ echo $GOPATH /media/sf_share/git/go_practice $ echo $GOROOT /usr/lib/golang/ $ tree $GOPATH/src /media/sf_share/git/go_practice/src |-- demo |-- demo.go `-- main.go 继续阅读 »
2016-04-30 ALEX LIN
只显示子目录、不显示文件,可以使用下面的命令。 ``` 只显示常规目录 $ ls -d */ $ ls -F | grep / $ ls -l | grep ^d $ tree -dL 1 只显示隐藏目录 $ ls -d .*/ 隐藏目录和非隐藏目录都显示 $ find -maxdepth 1 -type d ``` 来自runyf Git常用命令速查表 来自Coding 清除DNS缓存命令 sudo dscacheutil -flushcache sudo killall -HUP mDNSResponder 批量重命名文件 以下命令将文件名中包含~iphone的文字替换为空字符 for i 继续阅读 »
2016-08-15 craneyuan
前言 Map是键值对的集合接口,它的实现类主要包括:HashMap,TreeMap,Hashtable以及LinkedHashMap等。 TreeMap 基于红黑树(Red-Black tree)的 NavigableMap 实现,该映射根据其键的自然顺序进行排序,或者根据创建映射时提供的 Comparator 进行排序,具体取决于使用的构造方法。 HashMap HashMap的值是没有顺序的,它是按照key的HashCode来实现的,对于这个无序的HashMap我们要怎么来实现排序呢?参照TreeMap的value排序。 Map.Entry返回Collections视图。 按key排序 TreeMap默认是升序的 继续阅读 »
2019-01-21 Xie Jingyi
This chapter develop a small language of numbers and booleans, serving as a straightforward vehicle for the introduction of serveral fundamental concepts like, abstract syntax tree, evaluation and runtime errors. Syntax BNF-like Definition Terms of this language are defined as below: t ::= true false i 继续阅读 »
2016-07-16 ruki
首先我们通过内置的工程模板创建一个空工程: ```bash $ xmake create -P ./hello create hello ... create ok!👌 ``` 这个时候xmake将会产生一些工程文件,如下: ```bash $ cd ./hello $ tree . . ├── src │   └── main.c └── xmake.lua ``` 这个简单的程序仅仅只是为了打印输出: hello xmake! ```bash $ cat ./src/main.c include int main(int argc, char** argv) { printf("hello xmak 继续阅读 »
2016-07-16 ruki
We create an empty console project first: ```bash $ xmake create -P ./hello create hello ... create ok!👌 ``` And xmake will generate some files: ```bash $ cd ./hello $ tree . . ├── src │   └── main.c └── xmake.lua ``` It is a simple console program only for printing hello xmake! ```bash $ cat ./src/main.c incl 继续阅读 »