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 fs = require('fs'); | |
var Promise = require('promise'); | |
var promises = []; | |
var readline = require('readline'); | |
var readFile = function (file) { | |
return new Promise(function (resolve, reject) { | |
var lines = []; | |
var rl = readline.createInterface({ | |
input: fs.createReadStream('./logs/' + file) |
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
module.exports = function(grunt) { | |
// configure the tasks | |
grunt.initConfig({ | |
pkg: grunt.file.readJSON('package.json'), | |
// copy from the source directory to build | |
copy: { | |
build: { | |
cwd: 'source', | |
src: [ '**', '!**/*.pug', '!sass', '!sass/*', '!**/*.scss', '!partials', '!partials/*' ], | |
dest: 'build', |
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
NSDate *currDate = [NSDate date]; //Current Date | |
NSDateFormatter *df = [[NSDateFormatter alloc] init]; | |
//Day | |
[df setDateFormat:@"dd"]; | |
NSString* myDayString = [NSString stringWithFormat:@"%@", [df stringFromDate:currDate]]; | |
//Month | |
[df setDateFormat:@"MM"]; //MM will give you numeric "03", MMM will give you "Mar" | |
NSString* myMonthString = [NSString stringWithFormat:@"%@", [df stringFromDate:currDate]]; |