码迷,mamicode.com
首页 > 其他好文
4. 定位一组对象
如果需要定位一组对象,需要使用以下方法,会返回一个listfind_elements_by_namefind_elements_by_xpathfind_elements_by_link_textfind_elements_by_partial_link_textfind_elements_by_t...
分类:其他好文   时间:2014-07-19 00:22:25    阅读次数:163
格式化文件并修改文件名
最近有一个需求,就是给一个目录,然后把里面所有的文件内容都修改,并修改文件名。 #include "stdafx.h"#undef UNICODE#include #include #include #include #include #include #include using namespac...
分类:其他好文   时间:2014-07-19 19:05:06    阅读次数:157
结构体类型快速驱魔运算及运算符的重载
下面得到这段代码可以用在很多地方:只需要自己修改下接Ok. 1 struct Matrix 2 { 3 long long mat[N][N]; 4 Matrix operator*(const Matrix m)const//定义矩阵乘法的运算符* 5 { 6 ...
分类:其他好文   时间:2014-07-19 00:22:01    阅读次数:187
【leetcode刷题笔记】Pascal's Triangle II
Given an indexk, return thekthrow of the Pascal's triangle.For example, givenk= 3,Return[1,3,3,1].Note:Could you optimize your algorithm to use onlyO(...
分类:其他好文   时间:2014-07-19 19:05:27    阅读次数:174
ASIHTTPRequest实现https双向认证请求
什么是双向认证呢?简而言之,就是服务器端对请求它的客户端要进行身份验证,客户端对自己所请求的服务器也会做身份验证。服务端一旦验证到请求自己的客户端为不可信任的,服务端就拒绝继续通信。客户端如果发现服务端为不可信任的,那么也中止通信。 双向认证的算法理论是RSA,(点击此处了解RSA算法原理)。 双向...
分类:其他好文   时间:2014-07-19 19:05:42    阅读次数:265
WA七次,疯了》》》》》OTZ
Counting Game There are n people standing in a line, playing a famous game called ``counting". When the game begins, the leftmost person says ``1" lo....
分类:其他好文   时间:2014-07-19 00:20:58    阅读次数:245
poj3253哈夫曼树
Fence RepairTime Limit: 2000 MS Memory Limit: 65536 KB64-bit integer IO format: %I64d , %I64u Java class name: Main[Submit] [Status] [Discuss]Descript...
分类:其他好文   时间:2014-07-19 00:20:15    阅读次数:183
开机默认命令行
ubuntu 12.04:edit file: /etc/default/grubGRUB_CMDLINE_LINUX_DEFAULT="xxx"-> GRUB_CMDLINE_LINUX_DEFAULT="xxx text"CentOS :edit file: /etc/inittab# init...
分类:其他好文   时间:2014-07-19 19:06:03    阅读次数:172
HDU2842之斐波那契亚数列变形,动态规划
1.原题展示:一根棒子上有n个环(n 2 #include 3 #include 4 #define size 3 5 #define mod 200907 6 struct Mat 7 { 8 long long num[size][size]; 9 };10 Mat init,r;//定义全局变...
分类:其他好文   时间:2014-07-19 00:19:38    阅读次数:202
Gallery和自定义Adapter配合使用,实现图片预览
Gallery是一个可以拖动的列表,正中对应的是选中的东西.他和spinner有共同的父类:AbsSpinner属性: android:animationDuration="1000" 图片切换动画持续时间 android:spacing="8dp" 设置图片之间的...
分类:其他好文   时间:2014-07-19 00:19:53    阅读次数:249
大家一起乐
本年度最搞笑的GIF动画大全,笑破肚皮2013-4-21 16:21阅读(3)转载自囧言囧语搞笑网赞(608623)评论转载(227.68万)分享(193.23万)复制地址编辑上一篇|下一篇:家庭待客菜谱,先...独乐乐不如众乐乐、如果你也笑了话记得转载分享给身边的朋友哦!
分类:其他好文   时间:2014-07-19 00:18:55    阅读次数:233
CodeIgnitor 创建admin和其他目录,前后端分离,很巧妙的方式,网上查找其他的都不是使用这种方式实现的。
在index.php的第97和98行的注释, // The directory name, relative to the "controllers" folder. Leave blank // if your controller is not in a sub-folder within t....
分类:其他好文   时间:2014-07-19 00:18:35    阅读次数:212
Liers 树状数组+中国剩余定理
LiersTime Limit:14000/7000MS (Java/Others)Memory Limit:128000/64000KB (Java/Others)SubmitStatusProblem Description有N个人,其中有若干个人一起参加了舞会,现在想知道哪些人有可能参加了舞会...
分类:其他好文   时间:2014-07-19 00:18:20    阅读次数:232
全排列算法分析(原创方法/一般方法/字典序法)
手把手分析全排列算法,费了不少功夫终于想通了,本文将给出三种全排列算法以及详细解释
分类:其他好文   时间:2014-07-19 19:07:23    阅读次数:267
高斯消元
#include #include #include #include #include #include #include using namespace std ;const int MAXN=50;int a[MAXN][MAXN];//增广矩阵int x[MAXN];//解集bool fre...
分类:其他好文   时间:2014-07-19 00:17:37    阅读次数:300
Objective C 快速入门学习二
Objective-C类、对象、方法1.编写一个复数类:#import @interface Complex: NSObject //类声明,Complex继承NSObject{ int iReal;//成员变量声明,在括号内 int iImag;}//成员函数声明,在括号外-(...
分类:其他好文   时间:2014-07-19 19:07:42    阅读次数:213
XCODE 中代码控制标记的含义
1、代码中 某文件后面有 “M” 标记,表示该文件已被修改,需要 commit.(右键该文件 -> source control -> commitselected file...)2、代码中 某文件后面有 “A” 标记,表示该文件是新添加的,已受SVN管理,需要 commit.(右键该文件 -> ...
分类:其他好文   时间:2014-07-19 19:08:02    阅读次数:245
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!