- 1
 - 2
 - 3
 - 4
 - 5
 
if(user.pass = pass_to_hash(password)){
       return done(null, user);
}else{
       return done('incorrect password');
}
                                    Нашли или выдавили из себя код, который нельзя назвать нормальным, на который без улыбки не взглянешь? Не торопитесь его удалять или рефакторить, — запостите его на говнокод.ру, посмеёмся вместе!
Всего: 4
+8
if(user.pass = pass_to_hash(password)){
       return done(null, user);
}else{
       return done('incorrect password');
}
                                    Факир был пьян, и запер дверь, забыв ее закрыть)
+5
function createUUID() {
	var s = [];
	var hexDigits = "0123456789abcdef";
	for (var i = 0; i < 36; i++) {
		s[i] = hexDigits.substr(Math.floor(Math.random() * 0x10), 1);
	}
	s[14] = "4";
	s[19] = hexDigits.substr((s[19] & 0x3) | 0x8, 1);
	s[8] = s[13] = s[18] = s[23] = "-";
	var uuid = s.join("");
	return uuid.substring(0, 18);
}
                                    
            Интересно, тот кто это писал сам то понял что написал.. и зачем?
P.S. взято отсюда - https://github.com/flashphoner/flashphoner_client/blob/wcs_api/client/src/Flashphoner.js
        
+2
var date_match=time.split('.');
date_match=new Date(
	date_match[1]+'-'+date_match[0]+'-'+/[\w\W]+(\d{4,4})\/(\d{4,4})[\w\W]+/.exec(document.title)[(date_match[1]>6)?1:2]//Gangsta
);
                                    
+143
if(touch){
//				e.initUIEvent();
				try{
					var where=document.elementFromPoint(lastx,lasty);//Уфф...
					//var t=obj_to_html(where);
					//var t=obj_to_html(e.target.tagName||'no target');
					//t+=obj_to_html(e.target.id||'no id');
					//t+=obj_to_html(e.target.className||'no class');
//					var t='';//=obj_to_html('no offsetXY');
					//t+=obj_to_html(e.screenX||'no sX');
					//t+=obj_to_html(e.screenY||'no sY');
//					var touch = e.targetTouches[0];
					// Place element where the finger is
	//				t+=obj_to_html(lastx||'no lastX');
	//				t+=obj_to_html(lasty||'no lastY');
					//t+=obj_to_html(event.changedTouches[event.changedTouches.length-1].target.id||'no e id');
					//t+=obj_to_html(event.changedTouches[event.changedTouches.length-1].target.tagName||'no e tag');
//					t+=obj_to_html(event.changedTouches[event.changedTouches.length-1].target.className||'no e class');
//					t+=obj_to_html(e.which.tagName||'el from offsetXY have no tag');
//					t+=obj_to_html(e.which.id||'el from offsetXY have no id');
//					t+=obj_to_html(document.elementFromPoint(lastx,lasty).id||'el from offsetXY have no id');
					//t+=obj_to_html(document.elementFromPoint(lastx,lasty).tagName||'el from offsetXY have no tag');
					//t+=obj_to_html(e.targetTouches||'no TT');
					//t+=obj_to_html(e.touches||'no TT');
		//			document.getElementById('debug').innerHTML+='Res:'+t;
			//		return;
//					t+=obj_to_html(e.targetTouches||'no touches');
//					node_log(t);
					//obj_to_html(e)+obj_to_html(where);
				}catch(err){
//					var t=obj_to_html(err);
//					document.getElementById('debug').innerHTML+='Error:'+t;//obj_to_html(e)+obj_to_html(where);
					document.getElementById('debug').innerHTML+='Error:'+err.message;
//					node_log(t);
					//obj_to_html(e)+obj_to_html(where);
				}
				//return;
//				e = fixEvent(e);
//				http://192.168.56.1:3000
			//var where=e.target;//document.elementFromPoint(e.clientX,e.clientY);
			}else{
				e = fixEvent(e);
				var where=document.elementFromPoint(e.clientX,e.clientY);
			}
//			document.getElementById('debug').innerHTML=obj_to_html(e)+obj_to_html(where);
                                    Небольшая история о том,что бы мы делали без console.log.