Skip to content

Instantly share code, notes, and snippets.

View bmvakili's full-sized avatar

Bijan Vakili bmvakili

View GitHub Profile
@bmvakili
bmvakili / MyAction.java
Created July 24, 2019 08:43 — forked from rotty3000/MyAction.java
MyAction
package com.liferay.events;
import aQute.bnd.annotation.component.Activate;
import aQute.bnd.annotation.component.Component;
import aQute.bnd.annotation.component.Deactivate;
import com.liferay.portal.kernel.events.ActionException;
import com.liferay.portal.kernel.events.SimpleAction;
/**
@bmvakili
bmvakili / README.md
Created March 31, 2019 15:07 — forked from kui/README.md
Eclipse Shortcut for Ubuntu

Eclipse Shortcut for Ubuntu Unity

a shortcut to run Eclipse on Ubuntu Unity and to register Eclipse with the left Launcher

Installation

@bmvakili
bmvakili / liferay-7-wcm-adt-dump.ftl
Created November 25, 2015 01:32 — forked from jamesfalkner/liferay-7-wcm-adt-dump.ftl
A simple utility template to dump all available Liferay 7 WCM/ADT variables and their values.
<#-- dump.ftl
--
-- Generates tree representations of data model items.
--
-- Usage:
-- <#import "dump.ftl" as dumper>
--
-- <#assign foo = something.in["your"].data[0].model />
--
-- <@dumper.dump foo />
@bmvakili
bmvakili / liferay_dump.ftl
Last active February 14, 2018 09:00 — forked from jamesfalkner/liferay_dump.ftl
Dump Liferay 7 GA4 variables in Freemarker - adapted from James Falkner's original
<#attempt>
<#assign black_list = ["class", "request", "getreader", "getinputstream", "writer"] />
<#macro dump key data>
<#if data?is_enumerable>
<p><b>${key}</b>
<@printList data,[] />
<#elseif data?is_hash_ex>
<p><b>${key}</b>
@bmvakili
bmvakili / 0_reuse_code.js
Last active August 29, 2015 14:17
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console