2017年10月1日

java 中的闭包

摘要: 原文地址:https://sylvanassun.github.io/2017/07/30/2017-07-30-JavaClosure/ 1.自由变量: function Add(y) { return function(x) { return x + y; } } 对于内部函数function( 阅读全文

posted @ 2017-10-01 21:22 Lemo_wd 阅读(420) 评论(0) 推荐(0)

2017年9月29日

python中的 set 中的元素

摘要: set存储的元素和dict的key类似,必须是不变对象,因此,任何可变对象是不能放入set中的。 阅读全文

posted @ 2017-09-29 12:43 Lemo_wd 阅读(923) 评论(0) 推荐(0)

2017年9月28日

linux 下修改键盘映射

摘要: 参考文档 原因: 输入 键盘原本的 “\ |”,结果映射到 "< >",而 < 与 > 对应的键名分别是 less 与 greater 查看键名: 查询: 首先查询键名为 less 的映射 可以看到有两个映射,一个是正常的 59键 “,<”,另一个是出错的 94键“ less greater” 修改 阅读全文

posted @ 2017-09-28 19:37 Lemo_wd 阅读(2219) 评论(0) 推荐(0)

2017年9月4日

cmus 命令行播放器使用

摘要: 安装 启动 设置输出 导入本地音乐 查看说明 播放 选中,使用 Enter 播放,z上 一首,b 下一首,c 暂停,x 播放,v 停止 菜单查看模式 输入 1: 普通模式 输入2: 简单模式 输入3: 列表模式 输入4: 队列模式 e 添加到队列菜单 y 添加到列表菜单 常用组合键 Ctrl + R 阅读全文

posted @ 2017-09-04 21:26 Lemo_wd 阅读(2511) 评论(0) 推荐(0)

linux 关闭笔记本自带键盘

摘要: linux 命令行工具 xinput list 找到 AT Translated Set 2 keyboard,其 id为 13 设置值为 0 xinput set-prop 13 "Device Enabled" 0 如果想恢复,对应的值设为1即可 xinput set-prop 13 "Devi 阅读全文

posted @ 2017-09-04 19:01 Lemo_wd 阅读(2271) 评论(0) 推荐(0)

2017年9月1日

linux 下 sublime配置

摘要: sublime3 import urllib.request,os; pf = 'Package Control.sublime-package'; ipp = sublime.installed_packages_path(); urllib.request.install_opener( url 阅读全文

posted @ 2017-09-01 14:34 Lemo_wd 阅读(303) 评论(0) 推荐(0)

2017年8月27日

solus下 修改 crate-react-app 的默认下载依赖方式为 yarn

摘要: vim /usr/local/share/.config/yarn/global/node_modules/create-react-app/createReactApp.js 或者是 修改 /usr/lib/node_modules/create-react-app/createReactApp. 阅读全文

posted @ 2017-08-27 17:49 Lemo_wd 阅读(631) 评论(0) 推荐(0)

2017年8月21日

solus 系统 - 安装 mariadb

摘要: # 安装 mariadb(这个系统没有 mysql 库) $ sudo eopkg it mariadb $ sudo eopkg it mariadb-server # 初始化数据文件地址 $ sudo mysql_install_db --user=mysql --basedir=/usr/ - 阅读全文

posted @ 2017-08-21 14:19 Lemo_wd 阅读(639) 评论(0) 推荐(0)

2017年8月20日

一些实用的字体

摘要: True-Type 字体: Consolas (ttf-vista-fontsAUR) - Windows 下的编程用字体 Courier New (ttf-ms-fontsAUR) DejaVu Sans Mono (ttf-dejavu) - Unicode Droid Sans Mono (t 阅读全文

posted @ 2017-08-20 22:17 Lemo_wd 阅读(760) 评论(0) 推荐(0)

solus 系统 - 怎么使用中文输入法?

摘要: 系统默认使用 ibus 输入法框架. 可以安装 ibus-libpinyin $ sudo eopkg install ibus-libpinyin 安装好之后需要初始化 ibus-setup $ ibus-setup 为各种程序添加不同的启动参数 $ cd /usr/share/defaults/ 阅读全文

posted @ 2017-08-20 12:40 Lemo_wd 阅读(3449) 评论(0) 推荐(0)

导航