Skip to content

Instantly share code, notes, and snippets.

View Pencroff's full-sized avatar

Sergii Danilov Pencroff

View GitHub Profile
@Pencroff
Pencroff / CamelCaseMacro.velocity
Last active November 1, 2024 19:09
Transformation file name to CamelCase in IntelliJ IDEA file templates
## file name transformation
## file-name => FileName
## Sources:
## http://stackoverflow.com/questions/6998412/velocity-string-function
## http://stackoverflow.com/questions/21288687/using-velocity-split-to-split-a-string-into-an-array-doesnt-seem-to-work
## http://velocity.apache.org/engine/releases/velocity-1.7/apidocs/org/apache/velocity/util/StringUtils.html#split(java.lang.String, java.lang.String)
#set( $CamelCaseName = "" )
#set( $part = "" )
@Pencroff
Pencroff / Example of using
Last active December 24, 2015 21:49
My implementation of LinkButton for ExtJS. It can be used as a link directly (set 'stopEvent' to false) or as a button (use subscription to 'click' event)
xtype: 'linkbutton',
style: 'font-size: 18px; font-weight: bold',
//stopEvent: false, // if you need direct link
title: 'Go to Some Link',
path: '#job/view',
text : 'Some link'
/*
if you need some extra params in link after render LinkButton you can use
some code like this one: