Skip to content

Instantly share code, notes, and snippets.

View drewbrokke's full-sized avatar
🦆
work work work

Drew Brokke drewbrokke

🦆
work work work
View GitHub Profile
<snippet>
<content><![CDATA[
console.log('$1: ', $1);
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>log</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<!-- <scope>source.python</scope> -->
</snippet>
@drewbrokke
drewbrokke / gist:100a86bed4306184fc9a
Created July 11, 2014 21:58
app.server.drewBrokke.properties
app.server.type=tomcat
app.server.parent.dir=~/liferay/bundles/master
app.server.tomcat.dir=${app.server.parent.dir}/master/tomcat-7.0.42
21:56:56,081 INFO [com.liferay.portal.log.bridge.internal.LogBridge@192f467][org_eclipse_osgi:78] ServiceEvent REGISTERED {javax.portlet.filter.RenderFilter}={javax.portlet.name=86, service.id=1940}
21:56:56,081 INFO [com.liferay.portal.log.bridge.internal.LogBridge@192f467][org_eclipse_osgi:78] ServiceEvent REGISTERED {javax.portlet.filter.ResourceFilter}={javax.portlet.name=86, service.id=1941}
21:56:56,768 INFO [localhost-startStop-1][AutoDeployDir:139] Auto deploy scanner started for /home/drew/liferay/bundles/master/deploy
21:57:28,203 ERROR [localhost-startStop-1][PortalInstances:407] java.lang.IllegalStateException: java.util.concurrent.ExecutionException: org.elasticsearch.index.mapper.MapperParsingException: mapping [LiferayDocumentType]
java.lang.IllegalStateException: java.util.concurrent.ExecutionException: org.elasticsearch.index.mapper.MapperParsingException: mapping [LiferayDocumentType]
at com.liferay.portal.search.elasticsearch.ElasticsearchSearchEngine.initialize(ElasticsearchSearchEngin
16:40:57,477 INFO [com.liferay.portal.log.bridge.internal.LogBridge@3f0365][org_eclipse_osgi:78] ServiceEvent REGISTERED {javax.portlet.filter.ActionFilter}={javax.portlet.name=86, service.id=1938}
16:40:57,477 INFO [com.liferay.portal.log.bridge.internal.LogBridge@3f0365][org_eclipse_osgi:78] ServiceEvent REGISTERED {javax.portlet.filter.ResourceFilter}={javax.portlet.name=86, service.id=1939}
16:40:57,478 INFO [com.liferay.portal.log.bridge.internal.LogBridge@3f0365][org_eclipse_osgi:78] ServiceEvent REGISTERED {javax.portlet.filter.RenderFilter}={javax.portlet.name=86, service.id=1940}
16:40:57,478 INFO [com.liferay.portal.log.bridge.internal.LogBridge@3f0365][org_eclipse_osgi:78] ServiceEvent REGISTERED {javax.portlet.filter.ResourceFilter}={javax.portlet.name=86, service.id=1941}
16:40:58,126 INFO [localhost-startStop-1][AutoDeployDir:139] Auto deploy scanner started for /home/drew/liferay/bundles/CE/master/deploy
16:41:30,048 ERROR [localhost-startStop-1][PortalInstances:402] java.lang.IllegalState
<%--
/**
* Copyright (c) 2000-present Liferay, Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or modify it under
* the terms of the GNU Lesser General Public License as published by the Free
* Software Foundation; either version 2.1 of the License, or (at your option)
* any later version.
*
* This library is distributed in the hope that it will be useful, but WITHOUT
@drewbrokke
drewbrokke / action.jsp
Created July 24, 2014 18:01
Work-in-progress multipart JSONWS API fix
<%--
/**
* Copyright (c) 2000-present Liferay, Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or modify it under
* the terms of the GNU Lesser General Public License as published by the Free
* Software Foundation; either version 2.1 of the License, or (at your option)
* any later version.
*
* This library is distributed in the hope that it will be useful, but WITHOUT
@drewbrokke
drewbrokke / aui-undo-redo.js
Last active August 29, 2015 14:04
aui-undo-redo.js
YUI.add('aui-undo-redo', function (A, NAME) {
/**
* The Undo/Redo Component
*
* @module aui-undo-redo
*/
/**
* Fired after a redo has finished running.

Tree View Drag & Drop Considerations

Requirements:

  • Need to use the arrow keys to re-position items
  • Should be able to drag and drop items between trees

Restrictions:

  • Need to keep each node non-tabbable
  • Should not highlight non-valid drop targets
YUI.add('aui-tree-io', function (A, NAME) {
/**
* The TreeViewIO Utility
*
* @module aui-tree
* @submodule aui-tree-io
*/
var Lang = A.Lang,
/**
* Handler for the mousedown DOM event
* @private
* @method _defMouseDownFn
* @param {EventFacade} e The Event
*/
_defMouseDownFn: function(e) {
var instance = this;
A.DD.Drag.superclass._defMouseDownFn.apply(this, arguments);