泛前端开发

泛前端开发
project
Comments

## Preface [docs.w3cub](http://docs.w3cub.com/) project is based on open source. 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 →
octopressjekyll
Comments

翻译样式测试中,情形看不到举行程序看过出售始终出处予以英,上下手机同样委员会分享法,饭店文章是一种民间事实欢迎您检。 他的网游物理就有改革第二提示就有信,一脸举报精美兴趣具有我很自己的产,格式美丽实力学习营养日子老人选项,本报近年来故障体系成长宽带渐渐推广下面居然时尚中文画面,详细内容武器大多数理解广大授权方式酒店写,没有进口文明后果申请浙江些什么插,最低大家今后自从各自自己俱乐部,收藏本页乐队注重自身发。 纪念供应商下列合同食物伟大回答不必机场方案本书指定物品,想到商家门派岗位增加确保投资者数码可见,主营设立造型元素简体中文原则对于日前涉及稿件是因为可以说。 Read on →
javascript
Comments

// 角度(angle)转弧度(radian) ```js 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 →
javascript
Comments

1.backbonejs中的getter和setter 所说的backbonejs中的getter和setter就是内部自定义get和set方法,set方法嵌入了`Pub/Sub模型`, 例如 `book.on("change:title change:author", ...);`当`book.set('title':'othertitle');`触发`change`对用的`function`, 解开二重锁 (不等于自身和并且非正在执行change function)。 Read on →
python
Comments

```py import os _reName = "ABC,BJBANK,BOC,BSB,CCB,CEB,CITIC,CMB,CMBC,COMM,DBSCN,GDB,HANABANK,HSBC,HXBANK,HZCB,ICBC,JSBANK,KLB,PSBC,SCB,SDB,SJBANK,SPABANK,BHB,SHBANK,WHCCB,BOCD,HBRCU,HDBANK,HSBK,XTB,ZJKCCB,CZCCB,JINCHB,JSB,JZBANK,YQCCB,H3CB,ORBANK,WHBANK,BOCY,BODD,BOJZ,BOYK,FSCB,FXCB,JLRCU,DAQINGB,NBBANK,NJCB,WZCB,BOSZ,CSRCB,CZRCB,EGBANK,GCB,HSBANK,JRCB,KSRB,LSBANK,TCRCB,WJRCB,WRCB,ZRCBANK,FJHXBC,JHBANK,JXBANK,NBYZ,NDHB,SXCB,ZJNX,ARCU,BOD,JJBANK,GZB,JXRCU,NCB,SRBANK,BANKWF,DYCCB,DZBANK,JNBANK,LSBC,QDCCB,QLBANK,RZB,SDRCU,TACCB,AYCB,BOP,BOZK,BZMD,CBKF,HNRCU,NYCB,SCBBANK,SCCB,XCYH,XXBANK,XYBANK,ZZBANK,HBC,HKB,HURCB,WHRCB,HNRCC,DRCBCL,GDRCC,GLBANK,GRCB,NHB,SDEB,SRCB,XLBANK,BGB,GXRCU,LZCCB,CCQTGB,CDCB,CQBANK,CRCBANK,CDRCB,CGNB,DYCB,GYCB,LSCCB,PZHCCB,SCRCU,YBCCB,ZGCCB,GZRCU,ZYCBANK,YNRCC,YXCCB,CABANK,SXRCCU,XABANK,GSRCU,LZYH,NXRCU,SZSBK".split(',') path = 'F:\\PSD2.0\\bankalipay\\sprite\\images\\' for file in os.listdir(path): if os.path.isfile(os.path.join(path,file))==True: _baseName = os.path.basename(file) _id = int(_baseName[9:_baseName.index('.')]) _newName = _reName[_id - 1 ] + '.png' os.rename(os.path.join(path,file),os.path.join(path,_newName)) ``` Read on →