This file contains hidden or 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
grant select, lock tables on *.* to 'backup'@'localhost' identified by 'backup'; |
This file contains hidden or 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
expandoRowLocalService=com.liferay.portlet.expando.service.impl.ExpandoRowLocalServiceImpl@7d62221b | |
unicodeLanguageUtil=com.liferay.portal.language.UnicodeLanguageImpl@73581bfe | |
serviceLocator=com.liferay.portal.template.ServiceLocator@1d95fbdb | |
userGroupPermission=com.liferay.portal.service.permission.UserGroupPermissionImpl@61c9f609 | |
userPermission=com.liferay.portal.service.permission.UserPermissionImpl@1237fb07 | |
staticFieldGetter=com.liferay.portal.kernel.util.StaticFieldGetter@194191e9 | |
imageToken=com.liferay.portal.webserver.WebServerServletTokenImpl@1fd264f3 | |
dateFormatFactory=com.liferay.portal.util.FastDateFormatFactoryImpl@2de19dd7 | |
locationPermission=com.liferay.portal.service.permission.OrganizationPermissionImpl@3741a5c9 | |
organizationPermission=com.liferay.portal.service.permission.OrganizationPermissionImpl@3741a5c9 |
This file contains hidden or 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
scopeGroupId | |
expandoRowLocalService | |
reserved-article-id | |
unicodeLanguageUtil | |
serviceLocator | |
reserved-article-author-email-address | |
userGroupPermission | |
userPermission | |
staticFieldGetter | |
Images |
This file contains hidden or 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
expandoRowLocalService=com.liferay.portlet.expando.service.impl.ExpandoRowLocalServiceImpl@7d62221b | |
unicodeLanguageUtil=com.liferay.portal.language.UnicodeLanguageImpl@73581bfe | |
serviceLocator=com.liferay.portal.template.ServiceLocator@1d95fbdb | |
userGroupPermission=com.liferay.portal.service.permission.UserGroupPermissionImpl@61c9f609 | |
userPermission=com.liferay.portal.service.permission.UserPermissionImpl@1237fb07 | |
staticFieldGetter=com.liferay.portal.kernel.util.StaticFieldGetter@194191e9 | |
imageToken=com.liferay.portal.webserver.WebServerServletTokenImpl@1fd264f3 | |
dateFormatFactory=com.liferay.portal.util.FastDateFormatFactoryImpl@2de19dd7 | |
locationPermission=com.liferay.portal.service.permission.OrganizationPermissionImpl@3741a5c9 | |
organizationPermission=com.liferay.portal.service.permission.OrganizationPermissionImpl@3741a5c9 |
This file contains hidden or 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
/** | |
* binarySearch | |
* efficiently searching a sorted list | |
* list - array of values sorted in ascending order | |
* value - the target value to search for | |
* @author Bijan Vakili | |
*/ | |
function binarySearch(list, value) { | |
var found = -1, | |
delta = Math.floor(list.length / 2), |
This file contains hidden or 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
/** | |
* Set intersect | |
* The algorithm is provided by Ophir LOJKINE. I modified it to work for sets. | |
* @author Ophir LOJKINE | |
* https://gist.github.com/lovasoa/3361645 | |
* @author Bijan Vakili | |
*/ | |
Set.prototype.intersect = function() { | |
var i, all, shortest, nShortest, n, len, ret = [], obj={}, nOthers; | |
arguments[arguments.length++] = this; |
This file contains hidden or 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 jsonTable() { | |
var data = { | |
headers: ["First Name", "Last Name", "Age"], | |
rows: [ | |
["John", "Doe", 30], | |
["Jane", "Doe", 27], | |
["Mac", "Smith", 52] | |
] | |
}; |
This file contains hidden or 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
/** | |
* Create 25x25 checker board and add hover and click listeners. | |
* Hovering should cross-hair column and row-wise boxes. | |
* Clicking should toggle box color to red. | |
* Clicking back space should reset colors to default. | |
* @author Bijan Vakili | |
*/ | |
$( document ).ready( function() { | |
var efficientContainer = '#result-efficient', |
This file contains hidden or 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
.box-wrapper { | |
width: 250px; | |
height: 250px; | |
} | |
.box-wrapper > .box{ | |
background: #000; | |
width: 8px; | |
height: 8px; | |
float: left; |
This file contains hidden or 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
/** | |
* Partial Binary Search Tree class. | |
* @author Bijan Vakili | |
*/ | |
var Node = function() { | |
// Private variable to access 'this' context from privileged method | |
var that = this; | |
// Public variables |