penn-wang
一位老和尚,他身边聚拢着一帮虔诚的弟子。这一天,他嘱咐弟子每人去南山打一担柴回来。弟子们匆匆行至离山不远的河边,人人目瞪口呆。只见洪水从山上奔泻而下,无论如何也休想渡河打柴了。无功而返,弟子们都有些垂头丧气。唯独一个小和尚与师傅坦然相对。师傅问其故,小和尚从怀中掏出一个苹果,递给师傅说,过不了河,打不了柴,见河边有棵苹果树,我就顺手把树上唯一的一个苹果摘来了。后来,这位小和尚成了师傅的衣钵传人。

随笔分类 -  code常识

纪录较为通用的代码知识
hrbrid需要做的
摘要:1 返回并刷新 A webveiw push 到 B webview。当由B返回到A时候, A需要刷新页面。 阅读全文
posted @ 2016-11-15 16:50 penn-wang 阅读(236) 评论(0) 推荐(0)
sublime 工具构建
摘要:1 Sublime Text 3 配置react语法校验 原文地址:https://segmentfault.com/a/1190000004369542?_ea=585496 终端安装 npm install -g eslintnpm install -g eslint-plugin-react 阅读全文
posted @ 2016-11-07 11:21 penn-wang 阅读(317) 评论(0) 推荐(0)
items2 配色
摘要:cat ~/.bash_profile #enables colorin the terminal bash shell exportexport CLICOLOR=1 #sets up thecolor scheme for list exportexport LSCOLORS=gxfxcxdxb 阅读全文
posted @ 2016-11-03 17:14 penn-wang 阅读(299) 评论(0) 推荐(0)
git .gitignore
摘要:############################ # NPM files ############################ **/node_modules **/bower_components node_modules bower_components npm-debug.log ############################ # Temp files #####... 阅读全文
posted @ 2016-06-13 15:54 penn-wang 阅读(136) 评论(0) 推荐(0)
JS ​ ZERO WIDTH SPACE
摘要:如上编码ZERO WIDTH SPACE 在各个语言的表达。JS中使用 var b = a.replace(/\u200B/g,''); 来替换,去掉ZERO WIDTH SPACE 。http://www.fileformat.info/info/unicode/char/200b/index.h... 阅读全文
posted @ 2015-10-07 17:34 penn-wang 阅读(844) 评论(0) 推荐(0)
git大百科
摘要:1,命令:git忽略提交文件:git rm --cache .idea/workspace.xml因为你已经把他加到tracked file里了 用git rm --cached java/.idea/workspace.xml把他移除.gitignore这个文件是用于 untracked 文件的忽... 阅读全文
posted @ 2015-09-25 21:58 penn-wang 阅读(195) 评论(0) 推荐(0)
Push failed: Failed with error: fatal: Could not read from remote repository.
摘要:GitLab push远端,出现错误提示:Push failed: Failed with error: fatal: Could not read from remote repository.原因: 1,账号无push的权限。 2,请添加一个正确的sshKey 添加方法: ssh... 阅读全文
posted @ 2015-09-23 16:44 penn-wang 阅读(1204) 评论(0) 推荐(0)