多彩知乎发布啦
Start Your Shell Tour From a Question
Learn bash shell, by interest or needed. what is your reason to learn the shell? I think the best reason is that what you need is what you learn.
A few days ago, I rewrite the project css to sass, so I need to rename the css. So I brought out a question, how to “Rename multiple files shell”? To people, solving problems with search engine is the method of least time. I am no exception, I encountered the same problem, and find out the answer in stackoverflow https://stackoverflow.com/questions/6911301/rename-multiple-files-shell.
Read on →Blog Upgrade From Octopress 2.x to Jekyll 3.x
Good news, my blog had Upgrade from Octopress 2.x to Jekyll 3.x. It is not difficult to do this, if you follow me step by step.
As you know, Octopress 2.x is based on Jekyll 2.x. so “Upgrade from Octopress 2.x to Jekyll 3.x” mean that upgrading Jekyll 2.x to Jekyll 3.x.
Read on →Docs W3cub Is On
Preface
docs.w3cub project is based on open source<iframe class="github-btn" src="https://ghbtns.com/github-btn.html?user=Thibaut&repo=devdocs&type=star&count=true" allowtransparency="true" frameborder="0" scrolling="0" width="100" height="20"></iframe>. we use jekyll system to rewrite and hosted on Github Pages. This project continued for several months and written in my spare time.
As you know, all pages are static. we think that this would be more fast than using backend router. The most important thing is that Github Pages is free. we also thought about using frondend history router to rewrite this project, but Github Pages don’t support the nginx rule. However we have permission to use 404 page, but useing the 404 page as the frontend router is very crazy idea. So at last we use the jekyll system to generate the static pages.
Read on →
模糊匹配查询正则表达式探究 [译]
Autocompletion is never an entirely solved problem. Can anyone really say what on earth a user typing “uni” into a country input field actually intends to select? It could match any of these:
自动完成一直都是一个没完没了的问题。谁能准确地说出当一个地球人在一个国家输入框输入“uni”打算选什么?可能会出现以下情况:
- Tanzania, [U][n][i]ted Republic of
- [U][n][i]ted Arab Emirates
- [U][n][i]ted Kingdom
- [U][n][i]ted States
- T[u][n][i]sia
Of course, it’s probably not the last one, but that right there is a human intuition that we often forget to instil into these UI interactions.
当然,这可能不是最后一个,但人类的直觉通常会忘记灌输这些UI交互。
Read on →Rvm Help
常用命令(Action):
list :: show currently installed rubies, interactive output.
install :: install one or many ruby versions
use :: setup current shell to use a specific ruby version
Read on →
Octopress Configuration
前言
假如想省钱,只是写写博客而已。免去服务器麻烦。推荐你用octopress,可以肯定的,没有wordpress 那么多功能。octopress 是基于 jekyll 的 静态化博客,可以在github pages 和 gitcafe 等上运行。下面我们来部署一下 我们的A blogging framework for hackers.
博客。
Svg画布定位
// 角度(angle)转弧度(radian)
var radian = angle * Math.PI / 180;
var angle = radian* 180/ Math.PI;
alert(radian/ angle == Math.PI / 180);
Read on →
Javascript 对象中的复制,继承,引用,浅拷贝,深拷贝,多态,静态方法
导言
javascript与C,C++,Java等语言,他们之间总让人感觉存在一层纱,javascript易入门,难深入,而其他则相反(个人观点)。
其实不论什么语言,难与易的突破口都在语法基础上,当你越学得深入,你会发现语言之间的相同是如此的美妙。其实个人感觉javascript是相对其他语言是最容易学的一种语言。但部分人确认为,javascript十分难学,什么兼容性都把你搞死了。个人认为应该把javascript的难与易一分为二。javascript的语言是相对其他语言简单的,而且没有过多的语法概念(泛型,多态,模板),让编程者留下很多可以思考和想象的空间。或许多人喜欢javascript就是因为它的灵活性。
Read on →