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_str = var_export($page, true); | |
| file_put_contents('K:\filename.txt', $var_str); |
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
| // Usage: $ mongo dropAll.js | |
| var dbs = db.getMongo().getDBNames() | |
| for(var i in dbs){ | |
| db = db.getMongo().getDB( dbs[i] ); | |
| print( "dropping db " + db.getName() ); | |
| db.dropDatabase(); |
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
| checkbox.attr("checked", !checkbox.attr("checked")); |
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 sortSelectOptions(selectElement) { | |
| var options = $(selectElement + " option"); | |
| options.sort(function(a,b) { | |
| if (a.text.toUpperCase() > b.text.toUpperCase()) return 1; | |
| else if (a.text.toUpperCase() < b.text.toUpperCase()) return -1; | |
| else return 0; | |
| }); | |
| $(selectElement).empty().append( options ); |
NewerOlder