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
#! /bin/bash | |
/Applications/Firefox.app/Contents/MacOS/firefox-bin -p |
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
FROM <smt> | |
MAINTAINER <smo> | |
RUN apt-get update | |
# Install software | |
RUN apt-get install -y git | |
# Make ssh dir | |
RUN mkdir /root/.ssh/ |
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
sudo npm cache clean -f | |
sudo npm install -g n | |
sudo n stable | |
or | |
sudo n 4.1.1 |
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 noop = function() {}; | |
describe('describe title', function() { | |
var i = 0; | |
beforeEach(function () { | |
if (i++ > 1) { | |
throw new Error('BEFORE EACH FAIL'); | |
} | |
}); |
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
function main() { | |
// code before | |
const shouldShowError = isOutsideInterval(value, minimum, maximum); | |
// code after | |
} |
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
function isOutsideInterval(value, minimum, maximum) { | |
return value < minimum || value > maximum; | |
} |
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
function main() { | |
// code before | |
const limits = { minimum, maximum }; | |
const shouldShowError = isOutsideInterval(value, limits); | |
// code after | |
} | |
function isOutsideInterval(value, limits) { | |
return value < limits.minmum || value > limits.maximum; | |
} |
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
// before | |
function isOutsideInterval(value, minimum, maximum) { | |
return value < minimum || value > maximum; | |
} | |
// after | |
function isOutsideInterval(value, minimum, maximum, limits) { | |
return value < minimum || value > maximum; | |
} |
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
// before | |
const shouldShowError = isOutsideInterval(value, minimum, maximum); | |
// after | |
const shouldShowError = isOutsideInterval(value, minimum, maximum, { | |
minimum, | |
maximum | |
}); |
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
// before | |
function isOutsideInterval(value, minimum, maximum, limits) { | |
return value < minimum || value > maximum; | |
} | |
// after | |
function isOutsideInterval(value, minimum, maximum, limits) { | |
return value < limits.minimum || value > maximum; | |
} |
OlderNewer