摘要: 博客维护在CSDN了 阅读全文
posted @ 2018-08-17 15:32 kpliu 阅读(98) 评论(0) 推荐(0) 编辑
摘要: check input device ID: xinput list ;by this you should remeber vitual core keyboard ID(master ID, 3 in my laptop), and AT keyboard ID(13 in my laptop) 阅读全文
posted @ 2018-06-24 11:51 kpliu 阅读(91) 评论(0) 推荐(0) 编辑
摘要: 我看到的出处没有贴来源,我转于http://www.cnblogs.com/feisky/archive/2012/02/07/2341932.html windows下很多人都使用source insight 编写和查看代码。linux下可以使用VIM,刚开始会觉得VIM像windows下的记事本 阅读全文
posted @ 2018-06-20 09:32 kpliu 阅读(642) 评论(0) 推荐(0) 编辑
摘要: 想了很久都没想明白。今天早上一看,发现自己绕在哪里了。 cons(x y)的实现是一个lambda表达式,本质上cons(x y)是一种m操作。m是一种操作没错,但是并没有实际定义m是怎么样一种操作,不妨看作是一种操作类型的形参。 z是cons(x y) 参数m=(lambda(p q)p),这里面 阅读全文
posted @ 2018-03-05 09:20 kpliu 阅读(175) 评论(0) 推荐(1) 编辑
摘要: 今天看到了遇到了一个很好的unix参数解析函数getopt(),记录一下: 函数原型 这个函数被定义在头文件<unistd.h>中,同时头文件中定义了四个与这个函数有关变量。 int opterr: 控制是否将遇到错误信息(缺少参数等)打印到stderr。当这个值被赋予非零(或者使用default) 阅读全文
posted @ 2018-02-05 23:41 kpliu 阅读(96) 评论(0) 推荐(0) 编辑