$ nasm -f elf foo.asm -o foo.o$ gcc -c bar.c -o bar.o$ ld -s foo.o bar.o -o foobar ld: i386 architecture of input file `foo.o' is incompatible with i....
分类:
编程语言 时间:
2015-08-06 10:59:25
阅读次数:
284
Brief 在学习方法/函数时,我们总会接触到 按值传值 和 引用传值 两个概念。像C#是按值传值,但参数列表添加了ref/out后则是引用传值,但奇怪的事出现了namespace Foo{ class Bar{ public St...
分类:
其他好文 时间:
2015-08-06 01:47:25
阅读次数:
129
Android基础入门教程——2.3.7 ProgressBar(进度条)
本节引言:
1.常用属性讲解与基础实例
2.使用动画来替代圆形进度条
3.自定义圆形进度条
本节小结:...
分类:
移动开发 时间:
2015-08-05 22:16:33
阅读次数:
206
修改增加代码 #tag_show?{display:none;position:?fixed;?top:?20%;z-index:?9999999;width:100%;overflow:scroll;?}
#tag_show?img?{width:60%;margin-left:20%}...
分类:
移动开发 时间:
2015-08-05 20:33:44
阅读次数:
155
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...
分类:
其他好文 时间:
2015-08-05 17:50:54
阅读次数:
115
from:http://mobile.51cto.com/hot-430409.htm可能你很难相信,UIScrollView和一个标准的UIView差异并不大,scroll view确实会多一些方法,但这些方法只是UIView一些属性的表面而已。因此,要想弄懂UIScrollView是怎么工作之前...
分类:
移动开发 时间:
2015-08-05 17:47:25
阅读次数:
134
最近在看视差滚动的原理和实现方法。最简单的是使用css的属性background-attachment: fixed || scroll || local,使用这个便可以实现简单的视差滚动效果,但是想完成一些更加炫酷的效果。就得使用js啦,其中最简单的莫过于使用parallax。js插件。
下面有个使用该插件的html代码(ps:这个代码是从网上扒的,里面的一些js的引用还有图片...
分类:
Web程序 时间:
2015-08-05 10:37:47
阅读次数:
151
data-spy="scroll"——向您想要监听的元素(通常是
body)添加滚动监听事件 。
data-target=".navbar"——指明导航条为监听目标;
data-offset="70"——计算滚动位置时相对于顶部的偏移量(像素数);
饭盒儿——发现身边不一样的世界
...
分类:
Web程序 时间:
2015-08-04 19:13:40
阅读次数:
109
设置状态栏显示颜色为白色.a. 在info.plist中,添加一项,选择View controller-based status bar appearance(箭头下拉中最后一项),设置为no;b.在viewController或者自定义NavController中,设置[UIApplication...
分类:
其他好文 时间:
2015-08-04 18:55:19
阅读次数:
134
$_SERVER['PHP_SELF'] 当前执行脚本的文件名,与 document root 有关。例如,在地址为 http://example.com/test.php/foo.bar 的脚本中使用 $_SERVER['PHP_SELF'] 将得到 /test.php/foo.bar。__FIL...
分类:
Web程序 时间:
2015-08-04 15:21:55
阅读次数:
125