2017年8月19日

solus 系统 - 编译安裝 ibus-rime 中文输入法(附:小鹤双拼双形配置文件)

摘要: 編譯方法參見官網 - https://github.com/rime/home/wiki/RimeWithIBus 安装依赖:列出几个可能用到的命令 #安裝cmake gcc等开发工具 sudo eopkg install -c system.devel #安装 glog sudo eopkg it 阅读全文

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

solus 系统 - 安装编译工具

摘要: 将会安装 gcc,make等工具 sudo eopkg install -c system.devel VirtualBox工具 https://solus-project.com/articles/software/virtualbox/en/ 阅读全文

posted @ 2017-08-19 02:47 Lemo_wd 阅读(372) 评论(0) 推荐(0)

solus 系统 - 自定义终端快捷键

摘要: 终端: 命令方式:Alt+F2 输入“gnome-terminal“ 全屏显示 control+alt+F1 (退出 control+alt+F2) 可在`键盘`菜单中添加自定义快捷方式: 其它快捷方式 super + A 显示所有应用 super + V 显示通知 super + H 隐藏窗口 阅读全文

posted @ 2017-08-19 01:41 Lemo_wd 阅读(218) 评论(0) 推荐(0)

2017年8月15日

callback 模式

摘要: 回调,是一种机制,同时也是一种设计模式。 我们定义一个函数,让能够回调 import _products from './products.json' const TIMEOUT = 100 const getProducts = (cb, timeout) => setTimeout(() =cb 阅读全文

posted @ 2017-08-15 20:57 Lemo_wd 阅读(250) 评论(0) 推荐(0)

2017年8月11日

react-snippets

摘要: rcjc con 方法 sst ssf props react 的生命周期: 阅读全文

posted @ 2017-08-11 19:29 Lemo_wd 阅读(294) 评论(0) 推荐(0)

2017年8月9日

windows 上的 neovim 配置

摘要: 可以使用简单的 linux 下 neovim 配置,增加了对 golang, python, ruby 脚本文件一键运行快捷方式。 end 阅读全文

posted @ 2017-08-09 14:26 Lemo_wd 阅读(6349) 评论(0) 推荐(0)

2017年8月2日

Jwt 中 token应该存储到哪里?

摘要: 关于 token 的存储问题 JWT: csrf 攻击无法获取第三方的 cookie,而是直接发送请求时候会自动携带 cookie 的机制进行攻击。 xss攻击通过代码注入可以获取 cookie。需要设置转义。 方式一、客户端使用 cookie直接认证,需要设置 cookie为 httpOnly,可 阅读全文

posted @ 2017-08-02 23:27 Lemo_wd 阅读(46061) 评论(0) 推荐(4)

vue 实现聊天框滚动到底

摘要: 在需要出现滚动条的 DOM上添加 v-scroll 属性: <div class="chat-box" v-scroll="{auto: true}"> <div class="dialog-box"> <div class='' v-for="item in msgList" :key="item 阅读全文

posted @ 2017-08-02 16:19 Lemo_wd 阅读(2045) 评论(1) 推荐(0)

2017年5月30日

标准库常用包介绍

摘要: 标准库 https://godoc.org/-/go builtin 包 常量 true,false,iota 函数 len cap close(c chan Type) delete(map,key) make new panic recover 类型 int8 ~ int64 uint8(byt 阅读全文

posted @ 2017-05-30 21:59 Lemo_wd 阅读(298) 评论(0) 推荐(0)

2017年5月27日

基于共享变量的并发

摘要: 竞争条件 竞争条件指的是程序在多个goroutine交叉执行操作时,没有给出正确的结果。竞争条件是很恶劣的一种场景,因为这种问题会一直潜伏在你的程序里,然后在非常少见的时候蹦出来,或许只是会在很大的负载时才会发生,又或许是会在使用了某一个编译器、某一种平台或者某一种架构的时候才会出现。这些使得竞争条 阅读全文

posted @ 2017-05-27 19:27 Lemo_wd 阅读(381) 评论(0) 推荐(0)

导航