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
jQuery("*").each(function(i, e) {var listeners = jQuery._data(e, "events"); if (listeners){console.log(e); console.log(listeners)}}) |
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
// For those who have the habit of clearing cookies. this sets the cookie for devdocs.io config. | |
// modify the 'docs' list to match your requirements. | |
// Heres the code for the bookmarklet. | |
(function () { | |
var d = new Date(); | |
d.setTime(d.getTime() + (21 * 24 * 60 * 60 * 1000)); | |
document.cookie = "docs=backbone/css/git/grunt/html/http/javascript/jquery/jqueryui/node/requirejs/angular/express/lodash/markdown/mocha/mongoose/underscore/chai;" + | |
"Host=devdocs.io;"+ | |
"Path=/;"+ |
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
logger.format("mine", function(tokens, req, res) { | |
var dt = new Date; | |
// Key being: all the logging format added internally are available directly as methods: .dev/.default/.full etc | |
return "" + dt.getDate() + dt.getMonth() + dt.getYear() +"_"+ dt.getHours() + dt.getMinutes() + dt.getSeconds() + " : " + logger.dev(tokens, req, res); | |
}); |
NewerOlder