06 2011 档案

摘要:使用 git checkout -b [your_branch_name] origin/[remote_branch_name] 签出远程分支在本地建立一个对应分支时出错: ubuntu:~/zhihu$ git checkout -b hotfix origin/hotfixfatal: git checkout: updating paths is incompatible with switching branches.Did you intend to checkout 'origin/hotfix' which can not be resolved as comm 阅读全文

posted @ 2011-06-22 22:57 沙加 阅读(2279) 评论(1) 推荐(0)

摘要:跟游戏开的相关的一个问答网站http://gamedev.stackexchange.com/两个常用库ChipmunkandBox2D 还有一个cocos2dios 上的游戏开发系列:http://www.raywenderlich.com/tutorialsChipmunk 是基于这篇 paper 的实现:http://graphics.ethz.ch/Downloads/Publications/Papers/2003/Tes03/Tes03.pdf如果是3D的,可能会用到Unity3D来源参考文档:http://stackoverflow.com/questions/5847846/p 阅读全文

posted @ 2011-06-22 14:34 沙加 阅读(253) 评论(0) 推荐(0)

摘要:important > 内联 > ID > 类 > 标签 | 伪类 | 属性选择 > 伪对象 > 继承 > 通配符 阅读全文

posted @ 2011-06-14 17:48 沙加 阅读(538) 评论(0) 推荐(0)

摘要:查找指定容器下所有 a 根据属性决定是否应用 ajax 方式加载内容。使用层次深度来控制slide的方向。使用 margin-left/margin-right animation 显示过渡效果。ZH || (ZH = {});ZH.TreeSlider = function () { if (window.history && window.history.pushState) if ($("#slider").length != 0) if (!navigator.userAgent.match(/(iPod|iPhone|iPad)/)) { var 阅读全文

posted @ 2011-06-14 09:35 沙加 阅读(395) 评论(0) 推荐(0)

摘要:网页可见区域宽: document.body.clientWidth;网页可见区域高: document.body.clientHeight;网页可见区域宽: document.body.offsetWidth(包括边线的宽);网页可见区域高: document.body.offsetHeight(包括边线的宽);网页正文全文宽: document.body.scrollWidth;网页正文全文高: document.body.scrollHeight;网页被卷去的高: document.body.scrollTop; 在ie5之后不用它了。应该用document.documentElemen 阅读全文

posted @ 2011-06-13 17:26 沙加 阅读(355) 评论(0) 推荐(0)

导航