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
section#body-section #dashboard-wrapper { | |
width: 97%; | |
display: block; | |
margin-left: auto; | |
margin-right: auto; | |
border: dashed black 1px; | |
padding: 1em; | |
} | |
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
$(document).ready(function() { | |
var source = null; | |
var activeDashboardId = 0; | |
render = function() { | |
$.getJSON( | |
'/edens_group/test/list', | |
function(data) { | |
console.log(data); | |
for(datum of data) { | |
console.log("Num Dashboards: " + datum.numDashboards); |
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
[ | |
{ | |
"errors" : "", | |
"numDashboards" : 3, | |
"dashboard" : | |
[ { | |
"id" : 0, | |
"name" : "costs", | |
"numCharts" : 1, | |
"chart" : [ |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
this = 'this' reference (XThis) to Bsh object: NameSpace: global (bsh.NameSpace@2bc198b5) | |
this.variables = [Ljava.lang.String;@3310a984 | |
taskComments | |
taskName | |
workflowTaskAssignees | |
serviceContext | |
entryType | |
groupId | |
userId | |
entryClassPK |
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
<br /> | |
.main: <br /> | |
<#list .main?keys as var> | |
<br/>Key : <strong>${var} </strong> | |
<br/>Val : | |
| |
<#if .main[var]?is_sequence> | |
<#list .main[var] as varkey> | |
<br/> ${varkey} | |
</#list> |
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
#!/bin/bash | |
# Problem import dump from Win to linux | |
# Win mysql tables lowercase; and case insensitive as the default | |
# LInux mysql tables have case; and are case sensitive as the default | |
# So dumping from Win to Linux breaks things | |
# This script needs reference schema with case; it will use that to convert the dump file | |
# I have tested this with Liferay 6.2; ubuntu version 14.04 | |
# This file is based on answer by l0co on StackOverflow |
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
import com.liferay.portal.bean.BeanLocatorImpl; | |
import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil; | |
import com.liferay.portal.kernel.bean.PortletBeanLocatorUtil; | |
import com.liferay.portal.kernel.log.Log; | |
import com.liferay.portal.kernel.log.LogFactoryUtil; | |
String[] vals = PortalBeanLocatorUtil.getBeanLocator().getNames(); | |
for (String val : vals) { | |
out.println( val ); |
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
import java.io.BufferedReader; | |
import java.io.File; | |
import java.io.IOException; | |
import java.io.InputStream; | |
import java.io.InputStreamReader; | |
import java.security.AllPermission; | |
import java.util.ArrayList; | |
import java.util.Arrays; | |
import java.util.HashSet; |