码迷,mamicode.com
首页 >  
搜索关键字:bar    ( 5412个结果
Android 原生 Android ActionBar
本文内容 关于 ActionBar 必要条件 项目结构 环境 演示一:Action Bar 显示隐藏 演示二:Action Item 显示菜单选项 演示三:Action Home 启用“返回/向上”程序图标导航 演示四:Action View 显示 UI 组件 如果你想使用 ActionBarShe...
分类:移动开发   时间:2014-07-24 22:00:22    阅读次数:398
[Python]命令行进度条
关键点是输出'\r'这个字符可以使光标回到一行的开头,这时输出其它内容就会将原内容覆盖。import timeimport sysdef progress_test(): bar_length=20 for percent in xrange(0, 100): hashes...
分类:编程语言   时间:2014-07-24 21:43:02    阅读次数:206
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
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
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!