建立一个gulpfile.js文件,内容直接抄gulp-htmlmin的readme:vargulp = require('gulp');varhtmlmin = require('gulp-htmlmin');gulp.task('minify', function() {gulp.src('sr...
分类:
其他好文 时间:
2015-02-12 15:46:15
阅读次数:
263
#!/usr/bin/perl
#usestrict;
#usewarnings;
useLWP::UserAgent;
useHTTP::Cookies;
useEncode;
useJSON;
useutf8;
binmode(STDIN,‘:encoding(utf8)‘);
binmode(STDOUT,‘:encoding(utf8)‘);
binmode(STDERR,‘:encoding(utf8)‘);
my$new_task_url=‘http://www.alibench.com/ne..
分类:
其他好文 时间:
2015-02-12 14:11:24
阅读次数:
196
1、创建task与依赖
在build.gradle中
task hello{
println "in main body of hello task"
doFirst{
println "hello do first"
}
doLast{
println "hello do Last"
}
}
task intro(dependsOn: hello) << {
...
分类:
其他好文 时间:
2015-02-12 12:37:16
阅读次数:
176
uva 270 Lining Up
``How am I ever going to solve this problem?" said the pilot.
Indeed, the pilot was not facing an easy task. She had to drop packages at specific points scattered...
分类:
其他好文 时间:
2015-02-12 09:21:12
阅读次数:
170
grunt.file.readJSON()grunt.loadNpmTask()task中除了option中的配置外,其他的任意命名的都是该task的target,而task或target的都可以有option配置项grunt task:target, 不指定target时,会运行task下所有ta...
分类:
其他好文 时间:
2015-02-12 00:42:58
阅读次数:
205
URAL 2002. Test Task(登陆模拟 map )...
分类:
其他好文 时间:
2015-02-11 22:03:23
阅读次数:
264
题意:给位数和位数和 求符合要求的最大值和最小值//想法都有了,可是却没有做粗来(你484傻啊?? ?(?_?)? ??)DescriptionYou have a positive integermand a non-negative integers. Your task is to find ...
分类:
其他好文 时间:
2015-02-10 20:11:51
阅读次数:
183
对于调优和排错来说,查看一个RDD有多少个partition是非常有用的。常用的查看方法有如下几种:1、通过SparkUI查看Task执行的partition数当一个stage执行时,能通过SparkUI界面查看到指定stage的partiton数目val someRDD = sc.parallel...
分类:
其他好文 时间:
2015-02-09 15:55:33
阅读次数:
117
任务就是一段封装在“task-endtask”之间的程序。任务是通过调用来执行的,而且只有在调用时才执行,如果定义了任务,但是在整个过程中都没有调用它,那么这个任务是不会执行的。调用某个任务时可能需要它处理某些数据并返回操作结果,所以任务应当有接收数据的输入端和返回数据的输出端。另外,任务可以彼此调...
分类:
其他好文 时间:
2015-02-09 10:52:14
阅读次数:
179
Activity IndicatorsAn activity indicator is a spinning wheel that indicates a task is in the midst of being processed. If an action takes a noticeable...
分类:
其他好文 时间:
2015-02-08 20:42:48
阅读次数:
303