码迷,mamicode.com
首页 > 其他好文
Struts2 多文件下载
Step1:导入支持jar包 commons-fileupload-1.3.1.jar commons-io-2.4.jar jstl-1.2.jar standard-1.1.2.jar commons-compress-1.10.jar 文件压缩工具包Step2:编写请求下载jsp ...
分类:其他好文   时间:2015-11-05 23:56:58    阅读次数:342
静态变量 常量 和方法
1.在静态方法中不可以使用this关键字2.在静态方法中不可以直接调用非静态方法如果在执行类,希望先执行类的初始化动作,可以使用static定义一个静态区域。如:1 class example{2 static{3 //some4 }5 }主方法的形参为数组,其中ar...
分类:其他好文   时间:2015-11-05 23:56:53    阅读次数:342
BZOJ 1079: [SCOI2008]着色方案 记忆化搜索
1079: [SCOI2008]着色方案Time Limit: 20 SecMemory Limit: 256 MB题目连接http://www.lydsy.com/JudgeOnline/problem.php?id=1079Description有n个木块排成一行,从左到右依次编号为1~n。你有...
分类:其他好文   时间:2015-11-05 23:55:16    阅读次数:327
LeetCode Combinations (DFS)
题意: 产生从1~n的k个数的所有组合,按升序排列并返回。思路: DFS一遍即可解决。注意升序。 1 class Solution { 2 public: 3 vector> ans; 4 int nn, kk; 5 void DFS(vector& seq,int n,...
分类:其他好文   时间:2015-11-05 23:54:32    阅读次数:240
PLC:学习笔记(西门子)2
传统的工业控制系统:继电器-接触器 PLC(programmable logic controller)PLC特点:1、plc可靠性高(软件代替复杂线路、抗干扰的CPU、电源采用多级滤波并用集成稳压块稳压、IO采用光电隔离技术)2、丰富IO口(交流、直流、开关量、模拟量、电压、电流、脉冲、电位、强电...
分类:其他好文   时间:2015-11-05 23:52:35    阅读次数:712
[转]Xcode7中你一定要知道的炸裂调试神技
原文:http://www.jianshu.com/p/70ed36cf8a98Xcode7中苹果为我们增加了两个重要的debug相关功能。了解之后觉得非常实用,介绍给大家。1.Address Sanitizer: 妈妈再也不用担心 EXC_BAD_ACCESSEXC_BAD_ACCESS一直是很多...
分类:其他好文   时间:2015-11-05 23:51:56    阅读次数:279
Array
1.不可变数组 NSArry 和可变数组 NSMutableArray创建数组对象1)初始化方法 NSArray * arr = [ [NSArray alloc] initWithObjects:@“ww”,@“ede”,@“fr”,@”fg”,nil];2)便利构造器NSArray *arr2 ...
分类:其他好文   时间:2015-11-05 23:54:25    阅读次数:231
化学方程式配平【测试中】【未完成】
化学元素周期表(Element.txt):1 H 氢 12 He 氦 43 Li 锂 74 Be 铍 95 B 硼 116 C 碳 127 N 氮 148 O 氧 169 F 氟 1910 Ne 氖 2011 Na 钠 2312 Mg 镁 2413 Al 铝 2714 Si 硅 2815 P 磷 3...
分类:其他好文   时间:2015-11-05 23:52:47    阅读次数:315
前端开发常用正则表达式
//手机号验证var regMobile=/^1[3,5,8]\d{9}$/;//固定电话var regPhone=/^(^0\d{2}-?\d{8}$)|(^0\d{3}-?\d{7}$)|(^\(0\d{2}\)-?\d{8}$)|(^\(0\d{3}\)-?\d{7}$)$/;/** 用户名*...
分类:其他好文   时间:2015-11-05 23:51:59    阅读次数:152
文法翻译
-> | -> | -> -> | | -> | -> | -> | | | | | -> | -> -> | -> | -> | | -> | -> | -> | -> | | -> | -> | -> |...
分类:其他好文   时间:2015-11-05 23:53:50    阅读次数:191
[LeetCode]Search for a Range
题目描述:(链接)Given a sorted array of integers, find the starting and ending position of a given target value.Your algorithm's runtime complexity must be i...
分类:其他好文   时间:2015-11-05 23:50:51    阅读次数:193
dede使用方法----调用列表页的分页功能
分页的标签: {dede:pagelist listitem="info,index,end,pre,next,pageno,option" listsize=""/} listsize----表示你输入的数*2+1个页码,如:你写的是3,那么得到3*2+1=7个页码代码效果图:页面显示...
分类:其他好文   时间:2015-11-05 23:52:02    阅读次数:242
2015-11-5
I have not write the daily for a long period.Rencently I need to write a Chinese paper on nn-based speech synthesis. Also I need to tackle the applyin...
分类:其他好文   时间:2015-11-05 23:49:26    阅读次数:180
Mybatis 源码分析--Configuration.xml配置文件加载到内存
(补充知识点: 1 byte(字节)=8 bit(位) 通常一个标准英文字母占一个字节位置,一个标准汉字占两个字节位置;字符的例子有:字母、数字系统或标点符号)1.创建SqlSessionFactory①Reader reader = Resources.getResourceAsReader("m...
分类:其他好文   时间:2015-11-05 23:51:23    阅读次数:411
Reverse Nodes in k-Group 解答
QuestionGiven a linked list, reverse the nodes of a linked listkat a time and return its modified list.If the number of nodes is not a multiple ofkthe...
分类:其他好文   时间:2015-11-05 23:48:11    阅读次数:286
第一个OC类
1.如何声明一个类?格式:1 @interface People : NSObject2 {3 //实例变量4 }5 //类的声明6 @end注意: 必须以@interface开头,以@end结尾. 成员变量的声明,必须写在@interface与@end之间的大括号中方法的声...
分类:其他好文   时间:2015-11-05 23:47:42    阅读次数:189
Reclass 2015 - I did some updating of ReClass.
I cleaned up the code a bit and I added some new features I got rid of a ton of bugs still crawling around .New features include:Up and down arrow hot...
分类:其他好文   时间:2015-11-05 23:48:06    阅读次数:462
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!