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
| find . -iname 'app_*' ! -name 'app_e2e.php' ! -name 'app_dev*' -type f -exec rm -f {} + |
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 collections = db.getCollectionNames(); | |
| //print(collections); | |
| function isEmpty(obj) { | |
| for(var prop in obj) { | |
| if(obj.hasOwnProperty(prop)) | |
| return false; | |
| } |
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 collections = db.getCollectionNames(); | |
| //print(collections); | |
| collections.forEach(function(col) { | |
| function isEmpty(obj) { | |
| for(var prop in obj) { | |
| if(obj.hasOwnProperty(prop)) | |
| return false; |
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 isEmpty(obj) { | |
| for(var prop in obj) { | |
| if(obj.hasOwnProperty(prop)) | |
| return false; | |
| } | |
| return true; | |
| } |
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
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |