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
#!/bin/sh | |
# Alot of these configs have been taken from the various places | |
# on the web, most from here | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# Set the colours you can use | |
black='\033[0;30m' | |
white='\033[0;37m' | |
red='\033[0;31m' |
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
AUI().use("autocomplete", "autocomplete-highlighters", "aui-io-request", function (A) { | |
A.one('#<portlet:namespace/>academyName').plug(A.Plugin.AutoComplete, { | |
resultHighlighter: 'phraseMatch', | |
resultListLocator: 'orgs', | |
resultTextLocator: 'name', | |
queryDelimiter: ',', | |
minQueryLength: 3, | |
source: function(query) { | |
var queryUrl = '<%=searchUrl%>&<portlet:namespace />keywords=' + query + '&<portlet:namespace/>types=' + types; | |
var request = A.io.request( |
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
Liferay.Service('user/get-user-by-id', fn); | |
Liferay.Service('user/get-user-by-id', {}, fn); | |
Liferay.Service({ | |
'user/get-user-by-id': {} | |
}, fn); | |