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
{ | |
"python.linting.pep8Enabled": false, | |
"python.linting.pylintEnabled": true, | |
"python.linting.enabled": true, | |
"python.linting.flake8Enabled": true, | |
"python.linting.pylintArgs": [ | |
"--load-plugins", | |
"pylint_django" | |
], | |
"python.pythonPath": "{Path to python/virtual env}" |
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 mapItemSchema = new mongoose.Schema({ | |
name: String, | |
location: { | |
// It's important to define type within type field, because | |
// mongoose use "type" to identify field's object type. | |
type: {type: String, default: 'Point'}, | |
// Default value is needed. Mongoose pass an empty array to | |
// array type by default, but it will fail MongoDB's pre-save | |
// validation. | |
coordinates: {type: [Number], default: [0, 0]} |
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 exec = require('child_process').exec; | |
exec('git branch -l', function (error, stdout, stderr) { // retrieve local branches | |
var branchesWithoutTrack = []; | |
var localBranches = stdout.split('\n') | |
.map(function (branchName) { | |
return branchName.trim(); | |
}) | |
.filter(function (branchName) { | |
return branchName.length > 0; |