Skip to content

Instantly share code, notes, and snippets.

View shmdhussain's full-sized avatar

Mohamed Hussain S H shmdhussain

View GitHub Profile
@shmdhussain
shmdhussain / debugger-timeout.js
Created January 6, 2018 10:32
Debugger timeout, when debugging mouse hover, run this in console, and check the mouse over actions
setTimeout(function(){
debugger;
}, 5000);
@shmdhussain
shmdhussain / angular-enable-debug.js
Created January 6, 2018 10:31
enable angualr debugging from browser console
angular.reloadWithDebugInfo()
@shmdhussain
shmdhussain / sna-ready.js
Created January 6, 2018 10:31
SNA-cms-get the dom ready SNAP object, execute this in console and get which SNAP.xxx is triggered when page is initializing
$("[data-sna-ready]").each(function(i,t){
console.group("data-sna-ready"+i);
console.log($(t).data('sna-ready'));
console.groupEnd("data-sna-ready"+i);
});
@shmdhussain
shmdhussain / angularjs-version.js
Created January 6, 2018 10:26
Get the angularjs version
console.log(angular.version);
@shmdhussain
shmdhussain / app.js
Last active August 29, 2015 14:01
Angular Directive Demo Issue
// Create a new module
var myApp = angular.module('myApp', ['ngRoute']);
// register a new service
//myApp.value('appName', 'MyCoolApp');
// configure existing services inside initialization blocks.
myApp.config(function($locationProvider,$routeProvider) {
$routeProvider