现在很多公司都都过Jenkins来管理apk,代码提交后在jenkins上生成build
我们可以这样来取到jenkins的提交版本号
Jenkins在编译job的时候,有个内置的变量BUILD_NUMBER
groovy有一个非常有用的函数:
/**
* Returns an unmodifiable map of all available environment v...
分类:
其他好文 时间:
2014-07-27 11:52:03
阅读次数:
173
Javascript是一个弱类型的语言,也体现在了对表达式的逻辑计算上。对于Java等强类型的语言,进行逻辑判断时,如 if(condition) 中condition所表示的表达式,其结果必须是返回的为true或false的表达式,而javascript 则不然,它可以允许condition是 Number,String,或者Object对象,也可以是undefined 或null的变量,在这方面体现了很大的灵活性。JavaScript引擎会对if(condition) 中condition 的值先进行T...
分类:
编程语言 时间:
2014-07-27 11:34:22
阅读次数:
272
今天遇到一个EditCtrl问题。要求在MFC对话框上添加一个EditCtrl控件,此控件只能输入10-100之间的整型数。
实现:
1、将EditCtrl的属性中的 外观->number设为True,这时控件只能输入0-9这10个字符。
2、在对话框对应的类中添加一个整型变量m_iNumber,并在构造函数中初始化为0.
3、为控件添加失去焦点时的响应函数:
void CMfc...
分类:
其他好文 时间:
2014-07-27 11:32:42
阅读次数:
300
Description
A number is called a Mirror number if on lateral inversion, it gives the same number i.e it looks the same in a mirror. For example 101 is a mirror number while 100 is not.
Given two ...
分类:
其他好文 时间:
2014-07-27 11:10:22
阅读次数:
204
题目:Follow up for N-Queens problem.Now, instead outputting board configurations, return the total number of distinct solutions.题解:这道题跟NQueens的解法完全一样(具....
分类:
编程语言 时间:
2014-07-27 11:00:42
阅读次数:
241
这么基础的东西实在不应该再记录了,不过嘛,温故知新~就先从数据类型开始吧js六大数据类型:number、string、object、Boolean、null、undefinedstring: 由单引号或双引号来说明,如"string"number:什么整数啊浮点数啊都叫数字,你懂的~Boolean:...
分类:
Web程序 时间:
2014-07-27 10:50:32
阅读次数:
194
题目:Given an array of integers, every element appears three times except for one. Find that single one.Note:Your algorithm should have a linear runtim....
分类:
编程语言 时间:
2014-07-27 10:46:02
阅读次数:
294
题目:Given an array of integers, every element appears twice except for one. Find that single one.Note:Your algorithm should have a linear runtime comp....
分类:
编程语言 时间:
2014-07-27 10:43:42
阅读次数:
239
这题被出题人给活活坑了,题目居然理解错了。。哎,不想多说。题意:给两组数,A组为幸运基数,B组为不幸运的基数,问在[low,high]区间内有多少个数:至少被A组中一个数整除,并且不被B中任意一个数整除。|A|#include #include #include #include #define l...
分类:
其他好文 时间:
2014-07-27 10:06:52
阅读次数:
224
定理:一个正整数 n 可以用素因子唯一表示为 p1^r1 * p2^r2 * ...
pk^rk (其中 pi 为素数) , 那么这个数的因子的个数就是,(r1+1)*(r2+1)*...*(rk+1).
理解:为什么是加1之后再相乘,因为一个数的的因子数至少为1和他自身,但因为r1,r2。。可以为0,所以因子的个数为(r1+1)。。。
拓展一下:
定理1: 一个正整数 n 可以用素...
分类:
其他好文 时间:
2014-07-26 15:32:46
阅读次数:
194