References:
JavaScript-Module-Pattern-In-Depth
var MODULE = (function (my) {
var _private = my._private = my._private || {},
_seal = my._seal = my._seal || function () {
References:
JavaScript-Module-Pattern-In-Depth
var MODULE = (function (my) {
var _private = my._private = my._private || {},
_seal = my._seal = my._seal || function () {
// http://www.slideshare.net/nzakas/scalable-javascript-application-architecture | |
// http://addyosmani.com/largescalejavascript/ | |
// http://boilerplatejs.org/ | |
// http://rmurphey.com/blog/2009/10/15/using-objects-to-organize-your-code/ | |
// http://stackoverflow.com/questions/11842923/organizing-javascript-code | |
// http://stackoverflow.com/questions/247209/current-commonly-accepted-best-practices-around-code-organization-in-javascript | |
// http://msdn.microsoft.com/en-us/magazine/gg602402.aspx | |
// https://coderwall.com/p/b5jutw | |
// http://alexsexton.com/blog/2010/02/using-inheritance-patterns-to-organize-large-jquery-applications/ |
var empty_list = function(selector) { | |
return selector(undefined, undefined, true); | |
}; | |
var prepend = function(el, list) { | |
return function(selector) { | |
return selector(el, list, false); | |
}; | |
}; | |
var head = function(list) { |
SET foreign_key_checks = 0; | |
DELETE FROM users where id > 45; | |
SET foreign_key_checks = 1; |
UPDATE table_name SET bDeleted=0 WHERE name='xyz'; | |
“You are using safe update mode and you tried to update a table without a WHERE clause that uses a KEY column.” | |
SET SQL_SAFE_UPDATES=0; | |
UPDATE table_name SET bDeleted=0 WHERE name='xyz'; | |
SET SQL_SAFE_UPDATES=1; | |
#http://www.xpertdeveloper.com/2011/10/mysql-safe-update/ |
#http://dev.mysql.com/doc/refman/5.0/en/show-columns.html | |
SHOW COLUMNS FROM City; |
// http://net.tutsplus.com/tutorials/php/from-procedural-to-object-oriented-php/ | |
// http://us3.php.net/manual/en/functions.variable-functions.php | |
function foo() { | |
echo "This is foo"; | |
} | |
function bar($param) { | |
echo "This is bar saying: $param"; | |
} |
HOW TO MAKE SYMBOLS WITH KEYBOARD | |
Alt + 0153..... ™... trademark symbol | |
Alt + 0169.... ©.... copyright symbol | |
Alt + 0174..... ®....registered trademark symbol | |
Alt + 0176 ...°......degree symbol | |
Alt + 0177 ...±....plus-or -minus sign | |
Alt + 0182 ...¶.....paragraph mark | |
Alt + 0190 ...¾....fraction, three-fourths | |
Alt + 0215 ....×.....multiplication sign |
/* from initializr */ | |
/* ========================================================================== | |
Author's custom styles | |
========================================================================== */ | |
/* http://markdotto.com/2011/12/12/css-commenting-strategy/ */ | |
/* | |
Filename |
http://blog.spoonx.nl/zend-framework-2-modules/ | |
http://www.spiffyjr.me/2013/08/23/zf2-modules-galore/ |