码迷,mamicode.com
首页 >  
搜索关键字:bar chart    ( 6542个结果
Google C++ style guide——命名约定
1.通过命名规则 函数命名、变量命名、文件命名应具有描述性。 类型和变量应该是名词,函数名可以用“命令性”动词。 2.文件命名 文件名全部小写,可以包含下划线(_)或者断线(-)。foo_bar.h、foo_bar.cc 类型命名 每个单词以大写字母开头,不包含下划线。MyClass 3.类型命名 所有类型命名——类、结构体、类型定义、枚举——使用相同约定。clas...
分类:编程语言   时间:2014-07-24 17:46:46    阅读次数:278
Firefox地址栏样式设定
我希望把Firefox的界面调整为chrome-like,一个关键的地方就是地址栏:地址栏和tab之间的距离太大了,地址栏和页面本身之间的距离也太大。设定方法是在FF中安装stylish插件,然后加入如下css配置代码:#nav-bar toolbarbutton:not([id="bookmark...
分类:其他好文   时间:2014-07-24 17:29:41    阅读次数:225
JavaScript的作用域和提升机制
JavaScript的作用域和提升机制你知道下面的JavaScript代码执行时会输出什么吗?12345678var foo = 1;function bar() {if (!foo) {var foo = 10;}alert(foo);}bar();----相当于:var foo = 1;func...
分类:编程语言   时间:2014-07-23 18:02:47    阅读次数:270
Google C++ style guide——头文件
1.#define保护 使用#define防止头文件被多重包含。命名格式为:___H_ 例如,foo中的头文件foo/src/bar/baz.h #ifndef FOO_BAR_BAZ_H_ #define FOO_BAR_BAZ_H_ ... #endif //FOO_BAR_BAZ_H_ 2.头文件依赖 使用前置声明尽量减少.h文件中#include的数量。 头文件被...
分类:编程语言   时间:2014-07-23 13:17:05    阅读次数:234
UIBarButtonItem
一个bar button item是专门用来放在uitoolbar 和uinavigationbar上的对象。他继承自UIBarItem。UIBarButtonItem定义了额外的初始化方法和属性用于再toolbars喝navigation bars上。Initializing an Item–in...
分类:其他好文   时间:2014-07-22 22:39:55    阅读次数:209
CSS3 chart
利用CSS3技术生成统计图。原理:利用元素的百分比算出旋转度数。类似于斗地主时,手拿扑克牌的形状。程序源码: 1 2 3 4 5 CSS3 chart 6 7 8 9 59 60 61 62 63 利用CSS3 制图 64 65 ...
分类:Web程序   时间:2014-07-22 00:18:35    阅读次数:1279
django meta 类的使用方法
通过一个内嵌类 "class Meta" 给你的 model 定义元数据, 类似下面这样: class Foo(models.Model):? ??? bar = models.CharField(maxlength=30) ??? class Meta:? ??????? # ... Model 元数据就是 ...
分类:其他好文   时间:2014-07-21 23:27:31    阅读次数:190
makefile中的一点知识
makefile文件中下面这一部分展开是什么样的呢?。。。mytarget=foo $(mytarget): $(mytarget).c        gcc -o $(mytarget) $(mytarget).cmytarget=bar。。。展开是:。。。mytarget=foofoo: foo.c        gcc -o bar bar.cmytarget=bar。。。...
分类:其他好文   时间:2014-07-21 22:26:18    阅读次数:130
[LeetCode] Largest Rectangle in Histogram
Given n non-negative integers representing the histogram's bar height where the width of each bar is 1, find the area of largest rectangle in the hist...
分类:其他好文   时间:2014-07-21 14:18:36    阅读次数:235
[LeetCode OJ] Largest Rectangle in Histogram
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-07-21 10:04:43    阅读次数:229
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!