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
dasfdsf |
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
#!/usr/bin/env bash | |
## @file read-results.sh | |
## @author Jennifer Proust - [email protected] | |
## @section DESCRIPTION Get all results of install-comparisons.sh script | |
set -o errexit || true | |
set -o errtrace | |
set -o nounset | |
set -o pipefail | |
#set -o xtrace |
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
#!/usr/bin/env bash | |
## @file install-comparisons.sh | |
## @author Jennifer Proust - [email protected] | |
## @section DESCRIPTION Compare installations times between NPM 5/ NPM6 and YARN | |
set -o errexit || true | |
set -o errtrace | |
set -o nounset | |
set -o pipefail | |
#set -o xtrace |
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
// |
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 makeArrayConsecutive2 = statues => Math.max( ...statues ) - Math.min( ...statues ) + 1 - statues.length; |
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 shapeArea = n => Math.pow( n, 2 ) + Math.pow( n - 1, 2 ); |
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 adjacentElementsProduct = arr => Math.max( ...arr.slice( 1 ).map( ( n, i ) => n * arr[ i ] ) ); |
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 happyNewYear(wish) { | |
var _arr = wish.match(/\S+\s*/g); | |
var _startStr = "* ", | |
_endStr = "*", | |
_longestLength = wish.match(/\S+\s*/g).sort(function (a, b) { return b.length - a.length; })[0].length, | |
_lengthToGet = _longestLength + _startStr.length + _endStr.length, | |
_ref = Array(_lengthToGet).join("*") + _endStr, | |
_result = []; | |
for (var i=0, l=_arr.length; i<l; i++) { |