泛前端开发

泛前端开发
project
Comments

2017年,起床的第一天,朋友圈里面的都是困难群众。谢谢主席关心的调侃。

2016的计划完成了多少,小目标还是有的,天马行空的就别谈了。该写的写了,头脑发热能折腾到2,3点。

Read on →
project
Comments

cozhihu(多彩知乎)发布啦!

cozhihu是一款知乎皮肤chrome扩展应用。

多彩知乎十分适合geek知乎用户。随时随地刷知乎,保护眼睛两不误。

Read on →
shell
Comments

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 →
jekyll
Comments

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 →
project
Comments

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 →

javascript
Comments

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 →
ruby
Comments

常用命令(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
Comments

前言

假如想省钱,只是写写博客而已。免去服务器麻烦。推荐你用octopress,可以肯定的,没有wordpress 那么多功能。octopress 是基于 jekyll 的 静态化博客,可以在github pages 和 gitcafe 等上运行。下面我们来部署一下 我们的A blogging framework for hackers. 博客。

Read on →
javascript
Comments

// 角度(angle)转弧度(radian)


var radian = angle * Math.PI / 180;
var angle = radian* 180/ Math.PI;
alert(radian/ angle == Math.PI / 180);
Read on →
javascript
Comments

导言

javascript与C,C++,Java等语言,他们之间总让人感觉存在一层纱,javascript易入门,难深入,而其他则相反(个人观点)。

其实不论什么语言,难与易的突破口都在语法基础上,当你越学得深入,你会发现语言之间的相同是如此的美妙。其实个人感觉javascript是相对其他语言是最容易学的一种语言。但部分人确认为,javascript十分难学,什么兼容性都把你搞死了。个人认为应该把javascript的难与易一分为二。javascript的语言是相对其他语言简单的,而且没有过多的语法概念(泛型,多态,模板),让编程者留下很多可以思考和想象的空间。或许多人喜欢javascript就是因为它的灵活性。

Read on →