This file contains 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 expr = {}; | |
function removeSpaces(expression) { | |
var cleanExpression = ''; | |
for (var i = 0; i < expression.length; i += 1) { | |
if (expression[i] === ' ') continue; | |
cleanExpression = cleanExpression + expression[i]; | |
} |
This file contains 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
1. Install nodemailer | |
npm install nodemailer | |
2. Update your email and password in app.js file. | |
3. Update your workspace repository path before executing git-standup (check line no:16 in app.js) | |
4. Update your node install path and your app.js path. | |
5. Update your standup.sh script path in cron-file.txt. | |
6. Use below command to add cron job. | |
crontab cron-file.txt | |
7. Finally, feel free to play around with this code. |
This file contains 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/mithril/0.2.4/mithril.min.js"></script> | |
<!-- <script src="https://unpkg.com/mithril/mithril.js"></script> --> | |
<title>JS Bin</title> | |
<script> | |
window.onload = function() { |
This file contains 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
'use strict'; | |
// Steps: | |
// 1. Get input in command line. | |
// 2. Check if input is valid? | |
// - If input is valid. | |
// 1. Initialise gameboard. | |
// 2. Add blocks to the gameboard. | |
// - Loop through the array of blocks. | |
// - If block is out of gameboard range. |
This file contains 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
'use strict'; | |
function flattenArray(arr) { | |
if (!arr) { | |
return; | |
} | |
let outputArr = []; | |
let flattenUtil = function (input) { |