#include
#include
#include
#include
#include
static struct proc_dir_entry *root, *jiffies_file, *kbuf_file, *symlink,
*symlink;
//struct fb_data_t foo_data,bar_data;
static ssize_...
分类:
其他好文 时间:
2014-09-10 12:36:10
阅读次数:
263
导航菜单nav: 1.使用列表标签 2.使用浮动布局float 3.使用超链接标签:要使用标签的margin外边距,需要让标签成为一个块级元素,添加display:block属性 标签代码 logo ...
分类:
Web程序 时间:
2014-09-09 22:54:39
阅读次数:
230
A status bar is the bar showing signal, battery and time on the top of the phone's screen. In WP8.1 we it's called status bar, but in WP8.0 it's calle...
分类:
其他好文 时间:
2014-09-09 22:49:49
阅读次数:
186
1. #define保护
所有头文件都应该使用#define 防止头文件被多重包吨(multiple inclusion),命名格式为:
___H_
为保证唯一性,头文件的命名应基亍其所在项目源代码树的全路径。例如,项目foo 中的头文件
foo/src/bar/baz.h按如下方式保护:
#ifndef FOO_BAR_BAZ_H_
#define FOO_...
分类:
编程语言 时间:
2014-09-09 21:35:40
阅读次数:
324
因为Search Bar的游标颜色和Tint颜色是统一的,如果要想将游标的颜色设置为其他颜色,则需要到textfiled内部去修改,对于字体也是同样。
实现代码:
- (void)setSearchBarTextfiled:(UISearchBar *)searchBar{
for (UIView *view in searchBar.subviews){
for (i...
分类:
移动开发 时间:
2014-09-09 18:20:09
阅读次数:
354
iOS7中修改StatusBar的显示颜色效果图如下:在iOS7中想手动修改statusBar的颜色,第一步需要做的就是在plist文件中设置View controller-based status bar appearance值为NO第二步就是在代码中实现了,如下所示://// RootView....
分类:
移动开发 时间:
2014-09-09 17:59:09
阅读次数:
241
First open the broswer and type the following url in the address bar.
http://www.mongodb.com/
then you will view the the next page.
click the download mongodb button, and then regi...
分类:
数据库 时间:
2014-09-09 12:54:28
阅读次数:
269
CSS命名规则 头:header 内容:content/containe 尾:footer 导航:nav 侧栏:sidebar 栏目:column 页面外围控制整体布局宽度:wrapper 左右中:left right center 登录条:loginbar 标志:logo 广...
分类:
Web程序 时间:
2014-09-09 11:35:28
阅读次数:
297
Givennnon-negative integers representing the histogram's bar height where the width of each bar is 1, find the area of largest rectangle in the histog...
分类:
其他好文 时间:
2014-09-07 17:12:05
阅读次数:
285
记得在面试腾讯实习生的时候,面试官问了我这样一道问题。//下述两种声明方式有什么不同function foo(){}; var bar = function foo(){}; 当初只知道两种声明方式一个是函数声明一个是函数表达式,具体有什么不同没能说得很好。最近正好看到这方面的书籍,就想好好...
分类:
编程语言 时间:
2014-09-06 23:49:14
阅读次数:
271