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
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
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
import java.util.*; | |
import java.io.*; | |
Process proc = new ProcessBuilder("/bin/bash", "-c", | |
"ifconfig; env | sort; ps -ef | grep -i java").start(); | |
Reader reader = new InputStreamReader(proc.getInputStream()); | |
int ch; | |
String output = ""; | |
while ((ch = reader.read()) != -1) |
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
import com.liferay.portal.model.*; | |
import com.liferay.portal.service.*; | |
import com.liferay.counter.service.*; | |
import com.liferay.portal.util.*; | |
import java.util.*; | |
import org.apache.commons.lang.exception.*; | |
/*********** DEBUG VARIABLES *****************/ | |
dbg = ""; | |
C = "\n"; |
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
import com.liferay.portal.model.*; | |
import com.liferay.portal.service.*; | |
import com.liferay.counter.service.*; | |
import com.liferay.portal.util.*; | |
import java.util.*; | |
/*********** MODIFY THESE VARIABLES **********/ | |
templateName = "User Profile Site Template"; // name of a site template | |
/*********** DEBUG VARIABLES *****************/ |
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
#!/bin/bash | |
## Not you can do XMLLINT_INDENT="(Ctrl+V, Ctrl+I)" to change indent to tab | |
xmllint -o $1 --format $1 |
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
#/bin/bash | |
diff --old-line-format='%L' --new-line-format='%L' $1 $2 > $2 | |