Note:
The special constants true, false, and none are indeed lowercase. Because that caused confusion in the past, (True used to expand to an undefined variable that was considered false), all three can now also be written in title case (True, False, and None). However, for consistency, (all Jinja identifiers are lowercase) you should use the lowercase versions.
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
brew remove --force --ignore-dependencies $(brew list) |
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
apt-get install --reinstall python-pkg-resources |
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
echo lala | mail -s test [email protected] |
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
{ | |
"builders": [ | |
{ | |
"type": "docker", | |
"image": "debian:7", | |
"run_command": ["-d", "-i", "-t", "--name", "default", "{{.Image}}", "/bin/bash"], | |
"commit": true | |
} | |
], | |
"provisioners": [ |
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 solution(A) { | |
A.push(0) | |
return A.reduce(function(missing, value, i) { | |
return missing + i + 1 - value | |
}, 0) | |
} | |
var A = [] | |
A[0] = 2 | |
A[1] = 3 |
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 solution(X, Y, D) { | |
return Math.ceil((Y - X) / D) | |
} | |
var X = 10 | |
var Y = 85 | |
var D = 30 | |
var test = solution(X, Y, D) | |
console.log(test, test === 3) |
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 solution(A) { | |
var sum = A.reduce(function(sum, value) { | |
return sum + value | |
}, 0) | |
var sumLeft = 0 | |
var min | |
for (var i = 1; i < A.length; i++) { | |
var value = A[i - 1] | |
sumLeft += value | |
var diff = Math.abs(2 * sumLeft - sum) |
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
[app] | |
app1 ansible_host=ec2-xxx.compute.amazonaws.com |
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
+language: node_js | |
+node_js: | |
+ - 4.2 | |
+ - 4 | |
+ - 6 | |
+env: | |
+ - SCRIPT='npm test' | |
+ - SCRIPT='npm run-script release' | |
+script: eval $SCRIPT |