Skip to content

Instantly share code, notes, and snippets.

@mjbradford89
mjbradford89 / full_content.jsp
Last active August 29, 2015 14:02
LPS-47632
//String redirect = ParamUtil.getString(request, "redirect");
List results = (List)request.getAttribute("view.jsp-results");
//if (Validator.isNull(redirect) && results.isEmpty()) {
PortletURL portletURL = renderResponse.createRenderURL();
portletURL.setParameter("struts_action", "/asset_publisher/view");
String redirect = portletURL.toString();
<div class="btn-group" id="yui_2_5_0_1_1401293648379_841">
<button type="button" class="btn btn-default btn-default-content yui3-widget yui3-btn yui3-btn-content yui3-btn-focused" id="yui_2_5_0_1_1401293648379_876"><span class="glyphicon glyphicon-ok-sign"></span> Save</button>
<button type="button" class="btn btn-default btn-default-content yui3-widget yui3-btn yui3-btn-content" id="yui_2_5_0_1_1401293648379_840">Cancel</button>
</div>
var obj = AUI().Component.create( {
prototype: {
bind: function() {
return function(x) { return x + 1; }
}
}
});
var x = obj.bind();
@mjbradford89
mjbradford89 / gist:8698954
Created January 29, 2014 22:52
practice theme
@font-face {
font-family: 'ChunkFiveRegular';
src: url('../fonts/Chunkfive-webfont.woff');
}
@font-face {
font-family:'BitstreamVeraSansBoldOblique';
src: url('../fonts/Vera-Bold-Italic-webfont.woff');
}