Skip to content

Instantly share code, notes, and snippets.

View fernandommota's full-sized avatar
🏠
Working from home

Fernando Maia da Mota fernandommota

🏠
Working from home
View GitHub Profile
@fernandommota
fernandommota / Arquivo de log
Created September 21, 2020 21:32 — forked from alvarobasto/Arquivo de log
Log especial do PRD
<!-- ===================================== -->
<!-- Special Log File specifically for PRD -->
<!-- ===================================== -->
<appender name="PRD" class="org.apache.log4j.RollingFileAppender">
<param name="File" value="../logs/prd.log"/>
<param name="Append" value="true"/>
<param name="MaxFileSize" value="500KB"/>
<param name="MaxBackupIndex" value="1"/>
<layout class="org.apache.log4j.PatternLayout">
@fernandommota
fernandommota / run_cookbook.bat
Last active August 29, 2015 14:10
Script Shell for Kettle Cookbook
@echo off
SET VER=1.0
SET YEAR=2014
REM folder with sources the repository (transformations and jobs)
SET path_etl=/opt/pentaho/ETL/etl_sources
REM folder with PDI/KETTLE
SET path_pdi=/opt/pentaho/data-integration_5.0.1-A
/*
* Liquid Data Bar (AddIn)
*
* This modified dataBar addIn will calculate the widths of the bar as percentage based,
* and will inherently adapt to the container's size, fixing any issues with table while
* rendering, a common problem with dataBar, and also adapting to viewport/container resize
* in the process.
*
* Options:
* - The same as dataBar, with width now accepting a css-like string (see Raphael docs)
/*
* CCC Chart (AddIn)
*
* This addIn allows you to render a generic ccc chart inside the addIn container.
*
* Options:
* - type: the chartType, which is expected to be a registered ccc type.
* - chartOpts: the object of options passed to the chart constructor. Charts are created
* by doing: var chart = new pvc[type](chartOpts).
* - getData: function that transforms the container values in a forma that can be
/*
* Dynamic colType (AddIn)
*
* This addIn allows a control of the addIn called on a cell basis, rather than on a
* column basis only.
*
* Options:
* - colType: 'formattedText' by default. This can be controlled by passing a state
* dependant function to the registered addIn options.
* - compName: atm the addIn needs to have access to the component where the options