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
function indexOfRowContainingValue(value, arr) { | |
//console.log("value :" + value); | |
//console.log("arr :" + arr); | |
var arrSize = Object.size(arr); | |
//console.log("arrSize :" + arrSize); | |
for (var i=0, arrSize; i<arrSize; i++) { | |
var arrSize2 = Object.size(arr[i]); | |
//console.log("arrSize2 :" + arrSize2); | |
for (var j=0, arrSize2; j<arrSize2; j++) { | |
if (arr[i][j] === value) { return i; } |
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
Object.size = function(obj) { | |
var size = 0, key; | |
for (key in obj) { | |
if (obj.hasOwnProperty(key)) size++; | |
} | |
return size; | |
}; |
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
function myTypeOf(param) { | |
alert(typeof param); | |
} |
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
console.log( JSON.stringify(arrayName)); |
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
console.dir(objectname); |
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
## | |
# @version $Id$ | |
# @package Joomla | |
# @copyright Copyright (C) 2005 - 2010 Open Source Matters. All rights reserved. | |
# @license http://www.gnu.org/copyleft/gpl.html GNU/GPL | |
# Joomla! is Free Software | |
## | |
##################################################### |
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
change max_allowed_packet from 1M to 2M | |
on Fedora/RedHat/CentOS, it's /etc/my.cnf |
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
C:\XAMPP by default»\mysql\bin\my.ini |
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
# ---------------------------------------------------------------------- | |
# Expires headers (for better cache control) | |
# ---------------------------------------------------------------------- | |
# | |
# These are pretty far-future expires headers | |
# They assume you control versioning with cachebusting query params like: | |
# <script src="application.js?20100608"> | |
# Additionally, consider that outdated proxies may miscache |
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
https://puphpet.com/ |