This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | const moment = require('moment'); | |
| // http://docs.oracle.com/javase/8/docs/api/java/text/SimpleDateFormat.html | |
| // "yyyy-MM-dd'T'HH:mm:ss.SSSXXX" | |
| console.log(moment("2009-06-30T18:30:00+02:00").format('YYYY-MM-DDTHH:mm:ssZ')); | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | var di = require('gulp-di')(gulp) | |
| .provide('extensions', ['jpg', 'png', 'txt']) // Add the "extension" constant | |
| .tasks('./tasks') // Load all tasks from the tasks directory | |
| .modules('./modules') // Load helper functions from the modules directory | |
| .resolve(); // Finally resolve all dependencies. | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | var gulp = require('gulp'); | |
| var concat = require('gulp-concat'); | |
| var extensions = ['jpg', 'png', 'txt']; | |
| extensions.forEach(extTask); | |
| /** | |
| * Creates a "concat-all" task for the specified extension. | |
| * @method extTask | |
| * @param {string} extension | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | var gulp = require('gulp'); | |
| var concat = require('gulp-concat'); // A gulp plugin which concatenates the | |
| // input steams. | |
| gulp.task('concat-all-texts', function () { // Declare a task | |
| return gulp.src('texts/**/*.txt') // Get all .txt files from the "texts" | |
| // folder, including sub-directories | |
| .pipe(concat('all.txt')) // "Pipe" the stream to concat which would | |
| // concatenate all input streams. | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | /** | |
| * @function | |
| * @param {Object} arr | |
| * @param {string} key | |
| * @param {boolean} withGaps | |
| * @param {*} arr | |
| */ | |
| function _pluck (arr, key, withGaps) { | |
| if (typeof key === 'number') { |