总是在github down点东西,github整个界面做的不错,体验也很好~对于其中的源代码滑动的特效最为喜欢了~刚开始以为这个只是普通的ajax请求效果,但是发现这个特效能够导致浏览器地址栏跟随变化,并且再点击前进后退按钮后又可以将代码滑回滑出~~于是乎就来研究下吧~一、通过锚点Hash实现:在...
分类:
Web程序 时间:
2015-01-15 00:18:39
阅读次数:
365
#ifndef__HControlButton_H__#define__HControlButton_H__#include"cocos2d.h"#include"cocos-ext.h"USING_NS_CC;USING_NS_CC_EXT;//用于标识当前按钮的状态typedefenum{touch_begin,touch_down,touch_up,}tagForTouch;classHControlButton:publicCCNode{public:HControlButton..
分类:
其他好文 时间:
2015-01-14 18:27:58
阅读次数:
279
(本文示例工程源代码下载地址:http://down.51cto.com/data/1975295)在上一篇博文的最后,介绍了使用@PostConstruct注解标注StudentDao的init方法,这样在Spring完成依赖注入后此方法即会被Spring调用,从而也就完成了studentMapper的初始化工作。如果只有StudentDao一个DAO..
分类:
数据库 时间:
2015-01-14 18:06:40
阅读次数:
391
Given a binary tree, find its maximum depth.
The maximum depth is the number of nodes along the longest path from the root node down to the farthest leaf node.
/**
* Definition for binary tree
*...
分类:
其他好文 时间:
2015-01-14 12:49:54
阅读次数:
131
*1,The connection to adb is down, and a severe error has occured.[2015-01-14 10:18:07 - wpt] You must restart adb and Eclipse.[2015-01-14 10:18:07 - w...
分类:
数据库 时间:
2015-01-14 12:43:07
阅读次数:
192
(1)MyBatis多参数传递之默认命名方式
对于映射器中的方法,MyBatis默认从左到右给方法的参数命名为param1、param2…,依次类推。我们可以无需借助注解,直接在SQL语句中使用这些默认名称。
首先去掉@Param注解的TeacherMapper.java如下所示(完整源码下载地址:http://down.51cto.com/data/539217)...
分类:
移动开发 时间:
2015-01-14 11:13:50
阅读次数:
310
A robot is located at the top-left corner of amxngrid (marked 'Start' in the diagram below).The robot can only move either down or right at any point ...
分类:
其他好文 时间:
2015-01-13 22:55:24
阅读次数:
195
来源:http://www.himigame.com/mysql/749.html那么从今天开始陆续会更新数据库和Hibernate框架的博文,也是Himi学习的历程记录,希望大家能共同讨论和研究;OK,本篇简单介绍安装吧,首先到MySQL官方网站:http://www.mysql.com/down...
分类:
数据库 时间:
2015-01-13 17:38:43
阅读次数:
166
众所周知的原因,google的很多网站在国内无法访问,苦逼了一堆天朝程序员,下是在mac本上折腾android 开发环境的过程:一、先下载android sdk for mac给二个靠谱的网址:a).http://down.tech.sina.com.cn/page/45703.htmlb).htt...
分类:
移动开发 时间:
2015-01-12 23:56:44
阅读次数:
218
onTouchEvent同样也是在view中定义的一个方法。处理传递到view 的手势事件。手势事件类型包括ACTION_DOWN,ACTION_MOVE,ACTION_UP,ACTION_CANCEL等事件。贴上android 5.0源代码 1 public boolean onTouc...
分类:
移动开发 时间:
2015-01-12 20:48:31
阅读次数:
265