码迷,mamicode.com
首页 > 2015年05月26日 > 全部分享
【Surrounded Regions】cpp
题目:Given a 2D board containing'X'and'O', capture all regions surrounded by'X'.A region is captured by flipping all'O's into'X's in that surrounded reg...
分类:其他好文   时间:2015-05-26 12:06:37    阅读次数:131
`cocos2dx非完整` 开始自己的FW模块
上一篇的文章中说到了一些个人习惯的东西以及一些简单的项目配置,这一篇文章我们来进一步完善一些东西.首先,打开编译以后的客户端执行,会看到一大堆的fileutils加载luac文件的提示,在终端显示一大堆,挺烦人的,我做的第一件事就是去修改他.这个很简单,有两种做法,第一种是在c++部分添加调用1 c...
分类:其他好文   时间:2015-05-26 12:07:48    阅读次数:222
Eclipse快捷键大全
Eclipse快捷键大全(转载) Ctrl+1 快速修复(最经典的快捷键,就不用多说了)Ctrl+D: 删除当前行 Ctrl+Alt+↓ 复制当前行到下一行(复制增加)Ctrl+Alt+↑ 复制当前行到上一行(复制增加)Alt+↓ 当前行和下面一行交互位置(特别实用,可以省去先剪切,再粘贴了)Alt...
分类:系统相关   时间:2015-05-26 12:07:26    阅读次数:190
js页面跳转
js方式的页面跳转1.window.location.href方式 2.window.navigate方式跳转 3.window.loction.replace方式实现页面跳转,注意跟第一种方式的区别有3个jsp页面(1.aspx, 2.aspx, 3.aspx),进系统默认的是1.aspx,当我进...
分类:Web程序   时间:2015-05-26 12:07:27    阅读次数:129
CSS3 mask 遮罩蒙版效果
mask demo效果演示:http://dtdxrk.github.io/game/css3-demo/mask.htmlmask 的属性:-webkit-mask-image:url | gradient /*可以使用图片或渐变作为遮罩层*/-webkit-mask-repeat:repeat ...
分类:Web程序   时间:2015-05-26 12:05:48    阅读次数:292
bitmap2drawable-两者的转化实现
如何进行drawable跟bitmap的相互转化
分类:其他好文   时间:2015-05-26 12:07:16    阅读次数:99
Linux下的压缩解压命令
1. linux zip命令 压缩 zip -r filename.zip ./* //将当前目录下的所有文件和文件夹全部压缩成filename.zip文件 -r表示递归压缩子目录下所有文件 解压 unzip -d test filename.zip //把fil...
分类:系统相关   时间:2015-05-26 12:06:33    阅读次数:147
webuploader项目中多图片上传实例
百度uploader Demo文件上传 选择图片 struts配置: 服务器后台action方法://上传文件对象(和表单type=file的name值一致) private File upload []; //文件名 privat...
分类:Web程序   时间:2015-05-26 12:06:12    阅读次数:305
Android 启动Service服务和发送Broadcast广播的常用方法
一、先说Service服务。 1、利用setAction()方法来指定启动的Service服务1 Intent intent = new Intent();2 intent.setAction("ServiceAction");3 startService(intent); 2、使用Intent.....
分类:移动开发   时间:2015-05-26 12:05:12    阅读次数:164
Difference between WCF and Web API and WCF REST and Web Service[转]
Web ServiceIt is based on SOAP and return data in XML form.It support only HTTP protocol.It is not open source but can be consumed by any client that ...
分类:Windows程序   时间:2015-05-26 12:06:51    阅读次数:205
Log4J简单使用
一、一般会将commons-logging和Log4j一起使用 原因:1、commons-logging功能较弱 2、log4j功能强大。 所需jar: log4j-1.2.16.jar slf4j-api-1.6.2.jar slf4j-log4j12-1.6.2.jar commons-logg...
分类:其他好文   时间:2015-05-26 12:05:34    阅读次数:175
iOS字体的放大和缩小
1.- (void)viewDidLoad先设置字体的全局变量font=14;2.自定义2个按钮并添加事件 //放大 _zoomInBtn = [UIButton buttonWithType:UIButtonTypeCustom]; _zoomInBtn.frame = CGRectMake(.....
分类:移动开发   时间:2015-05-26 12:05:29    阅读次数:120
SQL获取选中时间的交集
如上图:t1,t2代表要选择的时间段,t3,t4代表系统时间。那么如果要获取选中时间段所有的交集为:条件1 and ((t3>t1 and t1>t2) or (t3<t2 and t2<t4) or (t3<t2 and t1<t4))....条件3...PS:条件1,条件3代表其他条件,选中时间...
分类:数据库   时间:2015-05-26 12:05:02    阅读次数:143
LoadRunner web_add_header()
Action(){ web_cleanup_cookies(); web_cache_cleanup(); web_url("entrypoint", "URL=http://e34jbsl00430.devillo.com:8080/entrypoint/...
分类:Web程序   时间:2015-05-26 12:05:47    阅读次数:622
Setting up a Mac OS build environment
In a default installation, Mac OS runs on a case-preserving but case-insensitive filesystem. This type of filesystem is not supported by git and wil.....
分类:系统相关   时间:2015-05-26 12:05:19    阅读次数:525
tookit2D使用3——给精灵添加GUI按钮效果
1 使用tookit2d中GUI实现按钮效果 1.1 component-》2D tookit-》deprecated-》GUI—》toolkit2D button 1.2 添加鼠标按下抬起的精灵,添加声音,添加被绑定的在hirerarchy中的对象,添加message name(即脚本中自定义.....
分类:其他好文   时间:2015-05-26 12:03:41    阅读次数:126
iOS 文字下划线
给UILabel添加下划线1 NSMutableAttributedString *content = [[NSMutableAttributedString alloc]initWithString:text];2 NSRange contentRange = {0,[content l...
分类:移动开发   时间:2015-05-26 12:04:04    阅读次数:107
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!