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
#!/usr/bin/perl | |
print "Find\n"; ##this defines what you are searching for, it will be inserted into a regex expression, so escape character if needed | |
$test1 = <STDIN>; | |
chomp $test1; | |
print "Replace\n"; ##this defines what you will replace the previous string with, also in regex so escape special characters | |
$test2 = <STDIN>; | |
chomp $test2; | |
print "Where\n"; ##where you want it to look. ie. ~/Desktop/test (this will search all files in the directory and its subdirectories) |
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
var A = AUI(); | |
var docClick = function () { | |
if (A.one('.pop-click')) { | |
A.one('.pop-click').removeClass('pop-click'); | |
document.removeEventListener('click', docClick, true); | |
} | |
} | |
A.all('.pop-clickable').each( |
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
var A = AUI(); | |
var lazyLoadObj = A.all('.lazy-load'); | |
var winHeight = window.innerHeight; | |
var getCumulativeOffset = function (obj) { | |
var top = 0; | |
if (obj.offsetParent) { | |
do { |
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
<style type="text/css"> | |
.printer-link { | |
display: block; | |
float: right; | |
padding-bottom: 1px; | |
width: 60px; | |
} | |
.print-text { | |
padding-left: 5px; |
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 ($ns = $request.portlet-namespace) | |
#set ($companyId = $getterUtil.getLong($request.theme-display.company-id)) | |
#set ($scopeGroupId = $getterUtil.getLong($request.theme-display.scope-group-id)) | |
#set ($jsLogging = $getterUtil.getBoolean($javascript-logging-enabled.data)) | |
#set ($defaultEventType = $getterUtil.getString($default-event-type.data, 'All')) | |
#set ($pathThemeImages = $request.theme-display.path-theme-images) | |
#set ($languageId = $request.theme-display.language-id) | |
#set ($defaultRegion = $getterUtil.getString($httpUtil.getParameter(${request.attributes.CURRENT_URL}, 'wcd-region', false), 'All')) |
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
AUI().use( | |
'aui-base', | |
'event-base', | |
'transition', | |
function(A) { | |
var body = A.getBody(); | |
var WIN = A.getWin(); | |
var toggle = A.one('#toggle'); | |
var topNav = A.one('#topNavigation'); |
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
AUI().use( | |
'liferay-hudcrumbs', | |
function(A) { | |
var navigation = A.one('#navigation'); | |
if (navigation) { | |
navigation.plug(A.Hudcrumbs); | |
} | |
} | |
); |
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
AUI().use( | |
'aui-base', | |
function(A) { | |
var WIN = A.getWin(); | |
var lazyLoadNode = A.all('.lazy-load'); | |
var lazyLoad = function() { | |
var currentScrollPos = WIN.get('docScrollY'); |
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
AUI().use( | |
'aui-base', | |
function(A) { | |
var WIN = A.getWin(); | |
var onScreenHelperNode = A.all('.on-screen-helper'); | |
var updateOnScreen = function() { | |
var currentScrollPos = WIN.get('docScrollY'); |
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
AUI().use( | |
'aui-base', | |
function(A) { | |
var popClicks = A.all('.pop-click'); | |
var popClickHandle; | |
var togglePopClick = function(event) { | |
event.stopPropagation(); |
OlderNewer