Skip to content

Instantly share code, notes, and snippets.

@eduardolundgren
eduardolundgren / loop.js
Last active December 25, 2015 14:29
async loop
_checkBackgroundTasks: function() {
var instance = this;
Liferay.Service(
'/backgroundtask/get-background-tasks-count',
{
groupId: instance._groupId,
taskExecutorClassName: instance._taskExecutorClassName,
completed: instance._isPending
},
AUI().use('event-resize', function(A) {
A.one(window).on('resize', function(event) {
dialog.align();
});
});
@eduardolundgren
eduardolundgren / .jshintrc
Created September 18, 2013 15:01
.jshintrc
{
"bitwise": true,
"browser": true,
"curly": true,
"eqeqeq": true,
"eqnull": true,
"evil": true,
"expr": true,
"immed": true,
"latedef": true,
AUI.add(
'liferay-scheduler',
function(A) {
var AArray = A.Array;
var AObject = A.Object;
var DateMath = A.DataType.DateMath;
var Lang = A.Lang;
var RecurrenceUtil = Liferay.RecurrenceUtil;
var Workflow = Liferay.Workflow;
YUI().use(
'aui-modal',
function(Y) {
var modal1 = new Y.Modal(
{
bodyContent: '<button id="inModalButton">foo</button>',
headerContent: 'Modal header',
render: '#modal',
}
<if>
<and>
<isgreaterthan arg1="${ant.java.version}" arg2="1.5"/>
<or>
<equals arg1="${ant.java.version}" arg2="1.6" />
<and>
<equals arg1="${ant.java.version}" arg2="1.7" />
<islessthan arg1="${ant.update.version}" arg2="25"/>
</and>
</or>
14:28:32,523 INFO [com.liferay.log.LogBridge@39b83c86][org_eclipse_osgi:76] ServiceEvent REGISTERED {com.liferay.portal.service.persistence.BasePersistence, com.liferay.portlet.journal.service.persistence.JournalArticleResourcePersistence, com.liferay.portal.security.lang.DoPrivilegedBean}={service.vendor=Liferay, Inc., original.bean=true, bean.id=com.liferay.portlet.journal.service.persistence.JournalArticleResourcePersistence, service.id=554}
14:28:32,523 INFO [com.liferay.log.LogBridge@39b83c86][org_eclipse_osgi:76] ServiceEvent REGISTERED {com.liferay.portal.service.BaseLocalService, com.liferay.portlet.journal.service.JournalContentSearchLocalService}={service.vendor=Liferay, Inc., original.bean=true, bean.id=com.liferay.portlet.journal.service.JournalContentSearchLocalService, service.id=555}
14:28:32,523 INFO [com.liferay.log.LogBridge@39b83c86][org_eclipse_osgi:76] ServiceEvent REGISTERED {com.liferay.portal.service.persistence.BasePersistence, com.liferay.portlet.journal.service.persistence.Journa
_setPosition: function(val) {
var instance = this;
val.x = val.x || 0;
val.y = val.y || 0;
val.z = val.z || 0;
return val;
}
* Tipos de tracking
* Com marcadores
* Cor
* Fiduciais
* Sem marcadores
* Baseada em modelos
* Textura
* Keypoints
* Face tracking
* http://goo.gl/oeuBD
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
</head>
<body>
<script>
(function() {