步骤一:首先你需要为sublime text安装Package Control组件:按Ctrl+`调出sublime text的console粘贴以下代码到底部命令行并回车: import urllib2,os;pf='Package Control.sublime-package';ipp=sub...
分类:
其他好文 时间:
2015-08-17 19:06:26
阅读次数:
204
STM32有43个channel的settable的中断源;AIRC(Application Interrupt and Reset Register)寄存器中有用于指定优先级的4 bits。这4个bits用于分配preemption优先级和sub优先级,在STM32的固件库中定义如下
#define NVIC_PriorityGroup_0 ((u32)0x700)
#define NV...
分类:
其他好文 时间:
2015-08-17 15:35:57
阅读次数:
182
s='开始1~3& lt;?xml:namespaceprefix=ons="urn:schemas-microsoft-com:office:office"/>'importred=re.sub(']+>','',s)利用正则式处理,不知道会不会有性能问题,没有经过太多测试。目前我有很多还是使用B...
分类:
编程语言 时间:
2015-08-17 00:41:40
阅读次数:
270
1 function sub(){2 document.yeepay.submit();3 }4 setTimeout(sub,1000);//以毫秒为单位的.1000代表一秒钟.根据你需要修改这个时间.5 //-->
分类:
Web程序 时间:
2015-08-16 19:45:24
阅读次数:
104
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=5047
题面:
Sawtooth
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)
Total Submission(s): 1636 Accepted Sub...
分类:
编程语言 时间:
2015-08-16 15:16:47
阅读次数:
266
DescriptionGiven a sequence a[1],a[2],a[3]......a[n], your job is to calculate the max sum of a sub-sequence. For example, given (6,-1,5,4,-7), the ma...
分类:
其他好文 时间:
2015-08-15 22:48:01
阅读次数:
130
原题:DescriptionGiven a sequence a[1],a[2],a[3]......a[n], your job is to calculate the max sum of a sub-sequence. For example, given (6,-1,5,4,-7), the...
分类:
其他好文 时间:
2015-08-15 18:09:44
阅读次数:
130
DescriptionGiven a two-dimensional array of positive and negative integers, a sub-rectangle is any contiguous sub-array of size 1*1 or greater located...
分类:
其他好文 时间:
2015-08-15 16:24:37
阅读次数:
89
DescriptionGiven a sequence a[1],a[2],a[3]......a[n], your job is to calculate the max sum of a sub-sequence. For example, given (6,-1,5,4,-7), the ma...
分类:
其他好文 时间:
2015-08-14 21:19:06
阅读次数:
134
最近有学生问到,能不能快速的向PPT一个页面里插入成百张图片,并让它们按统一大小的矩形排布到页面上。我写了,以下代码可以在第1页中按照指定横向和纵向矩形数目,填充指定路径下的图片。 1 Sub LoadPicToShape() 2 Dim mPageWidth As Double, mPag...
分类:
其他好文 时间:
2015-08-14 21:04:02
阅读次数:
153