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
find . -regextype awk -regex "./*(.*controller\.xml|.*services.*\.xml|.*Screens\.xml|.*Forms\.xml|.*Services\.xml|.*Services\.java|.*\.ftl|.*\.js)" -exec grep -inrIH --color 'class="screenlet"' {} \; | |
find . -regextype awk -regex "./.*Screens\.xml" -exec grep -inrIH --color 'searchOptions' {} \; |
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
pushd <big-repo> | |
git subtree split -P <name-of-folder> -b <name-of-new-branch> | |
popd | |
mkdir <new-repo> | |
pushd <new-repo> | |
git init | |
git pull </path/to/big-repo> <name-of-new-branch> |
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
ng-app | |
ng-model="foo" | |
ng-init="names=['A', 'B']" |
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
# install cordova | |
npm install -g cordova | |
# ripple | |
npm install -g ripple-emulator | |
ripple emulate --path platforms/android/assets/www |
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
# install package | |
bower install d3 -S | |
# update html with bower component | |
grunt bowerInstall | |
# yeoman .gitignore | |
node_modules/ | |
bower_components/ | |
*.log |
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
sudo apt-get install python g++ make checkinstall fakeroot | |
src=$(mktemp -d) && cd $src | |
wget -N http://nodejs.org/dist/node-latest.tar.gz | |
tar xzvf node-latest.tar.gz && cd node-v* | |
./configure | |
sudo fakeroot checkinstall -y --install=no --pkgversion $(echo $(pwd) | sed -n -re's/.+node-v(.+)$/\1/p') make -j$(($(nproc)+1)) install | |
sudo dpkg -i node_* |
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
[code_highlight]console.log('Hello World!');[/code_highlight] | |
[columns][columns_left]<h4>Left Side</h4>Lorem ipsum dolor sit amet, consectetur adipisicing elit.[/columns_left][columns_right]<h4>Right Side</h4>Lorem ipsum dolor sit amet, consectetur adipisicing elit.[/columns_right][/columns] | |
[annotated header="Annotation Header" annotation="Annotation description text."]This is my content I want annotated.[/annotated] | |
[youtube]ZwzY1o_hB5Y[/youtube] | |
[vimeo]35396305[/vimeo] |
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
# start root shell | |
sudo -s | |
# Import our signing key | |
wget -O - http://debian.neo4j.org/neotechnology.gpg.key | apt-key add - | |
# Create an Apt sources.list file | |
echo 'deb http://debian.neo4j.org/repo stable/' > /etc/apt/sources.list.d/neo4j.list | |
# Find out about the files in our repository | |
apt-get update | |
# Install Neo4j, community edition | |
apt-get install neo4j |
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
<c:set var="action" value="${url.base}"/> | |
<template:tokenizedForm> | |
<form action="<c:url value='${action}'/>" method="post"> | |
<input type="hidden" name="originUrl" value="${pageContext.request.requestURL}"/> | |
<input type="hidden" name="jcrNodeType" value="jnt:company"/> | |
<input type="hidden" name="jcrRedirectTo" value="<c:url value='${url.base}${renderContext.mainResource.node.path}'/>"/> | |
<input type="hidden" name="jcrNewNodeOutputFormat" value="html"/> | |
</form> | |
</template:tokenizedForm> |
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
example: | |
A Java file: src/main/java/org/jahia/modules/survey/taglib/FormFunctions.java | |
Declare taglib in TLD: src/main/resources/META-INF/jahia-survey.tld | |
<description>Jahia Survey module tag library</description> | |
<display-name>Jahia Survey Service</display-name> | |
<tlib-version>1.0-SNAPSHOT</tlib-version> | |
<short-name>survey</short-name> | |
<uri>http://www.jahia.org/tags/survey</uri> |