Skip to content

Instantly share code, notes, and snippets.

View baxtheman's full-sized avatar

Daniele Baggio baxtheman

View GitHub Profile
@baxtheman
baxtheman / config.properties
Last active December 17, 2015 19:58
import_lars properties file sample
#
# file properties to run the import_lars.jar
#
#
# WS connection data
#
protocol=http
@baxtheman
baxtheman / item full
Last active December 22, 2015 11:09
template x ADT oneshop
<#-- DECLARATIONS -->
<#assign liferay_ui = taglibLiferayHash["/WEB-INF/tld/liferay-ui.tld"] />
<#assign aui = taglibLiferayHash["/WEB-INF/tld/aui.tld"] />
<#assign namespace = renderResponse.getNamespace() />
<#macro translate key >
${languageUtil.get(pageContext, key)}
</#macro>
@baxtheman
baxtheman / gist:9247034
Created February 27, 2014 09:30
keybase.md
### Keybase proof
I hereby claim:
* I am baxtheman on github.
* I am danielebaggio (https://keybase.io/danielebaggio) on keybase.
* I have a public key whose fingerprint is FDF2 658C 2370 8893 F807 4B37 F3C3 F849 1300 DCC5
To claim this, I am signing this object:
<aui:script use="aui-base,anim-base,anim-node-plugin,anim-scroll">
var step = 25;
var scrolling = false;
var list = A.one('.oneshop-portlet-item-browser .list');
var a = new A.Anim({
node: '.oneshop-portlet-item-browser .list',
duration: 0.5
@baxtheman
baxtheman / ADT, use taglib
Created February 25, 2015 12:52
liferay, freemarker tips
<#assign liferay_ui = taglibLiferayHash["/WEB-INF/tld/liferay-ui.tld"] />
<@liferay_ui["asset-categories-summary"]
groupId="${themeDisplay.getScopeGroupId()}"
articleId="${cur_webContentId.getData()}"/>
@JsonIgnoreProperties(ignoreUnknown=true,value={ "expandoBridge", "expandoBridgeAttributes","cachedModel","escapedModel","modelAttributes","modelClass","modelClassName","new","primaryKey","primaryKeyObj" })
public class ResponseImpl extends ResponseBaseImpl {
/*
* NOTE FOR DEVELOPERS:
*
* Never reference this class directly. All methods that expect a response model instance should use the {@link it.sysdata.intouch.broker.model.Response} interface instead.
*/
public ResponseImpl() {
}
}
public static void notifyError(final Throwable e) {
try {
if (Validator.isNull(PortletPropsValues.WEBHOOK_LOG_URL)) {
return;
}
final StringBuilder sb = new StringBuilder();
@baxtheman
baxtheman / conditionsJSON
Last active June 13, 2016 13:36
MachineDatalogTrigger
{
"onCond": [
{
"varId": 43,
"oper": "",
"value": [
3
],
"cond": "=",
"varType": "CAN_L2"
standard: [5002,5006],
msgCanVar: [2001,2003]
@baxtheman
baxtheman / alarms.json
Created September 28, 2016 07:37
api/alarm/all/domain/0
{"result":[{"AlarmInfos":"prov:default:/tag:Caseificio Tonon/Sede Caseificio/TZeroTonon_MET05PA:/alm:Consumo Scarso Refrigerazione Acqua","Cleared":0,"AlarmDate":"2016-09-27T18:47:31.000Z","Priority":1,"Val":"1","tag":"Caseificio Tonon/Sede Caseificio/TZeroTonon_MET05PA"},{"AlarmInfos":"prov:default:/tag:Caseificio Tonon/Sede Caseificio/TZeroTonon_MET05PA:/alm:Consumo Scarso Refrigerazione Acqua","Cleared":0,"AlarmDate":"2016-09-26T18:46:52.000Z","Priority":1,"Val":"1","tag":"Caseificio Tonon/Sede Caseificio/TZeroTonon_MET05PA"},{"AlarmInfos":"prov:default:/tag:Caseificio Tonon/Sede Caseificio/TZeroTonon_MET05PA:/alm:Consumo Scarso Refrigerazione Acqua","Cleared":0,"AlarmDate":"2016-09-23T18:46:52.000Z","Priority":1,"Val":"1","tag":"Caseificio Tonon/Sede Caseificio/TZeroTonon_MET05PA"},{"AlarmInfos":"prov:default:/tag:Caseificio Tonon/Sede Caseificio/TZeroTonon_MET05PA:/alm:Consumo Scarso Refrigerazione Acqua","Cleared":0,"AlarmDate":"2016-09-22T18:46:51.000Z","Priority":1,"Val":"1","tag":"Caseificio Tonon/Se