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
Lorem ipsum Lorem ipsumLorem ipsum Lorem ipsumLorem ipsumLorem ipsumLorem ipsumLorem ipsumLorem ipsumLorem ipsumLorem ipsum |
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
def multiplyBy2 = {element -> element * 2 } | |
/* | |
'collect', is the function to iterate list and return the result apply to the closure | |
*/ | |
assert [1,2,3].collect{ it * 2 } == [2,4,6] | |
assert [1,2,3].collect{ multiplyBy2(it) } == [2,4,6] |
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
/* | |
One argument: | |
-propertyName | |
*/ | |
def pluck = { propertyName -> | |
// Collect results filter coincidence by propertyName | |
delegate.collect { element -> | |
element."$propertyName" |
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
/* | |
Closure with 2 arguments: | |
-closure_F is the function F | |
-list_L is list L | |
*/ | |
def map = { list_L , closure_F -> | |
// Delegate is the elment to actue over | |
delegate.collect(list_L) { element -> | |
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
package com.social | |
import twitter4j.* | |
import groovy.util.logging.Slf4j | |
import org.springframework.context.i18n.LocaleContextHolder as LCH | |
@Slf4j | |
class TwitterSearch { |
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
<html> | |
<head> | |
<link href="http://netdna.bootstrapcdn.com/twitter-bootstrap/2.3.1/css/bootstrap-combined.min.css" rel="stylesheet"></link> | |
<script src="http://code.jquery.com/jquery-1.9.1.min.js"></script> | |
<script src="http://netdna.bootstrapcdn.com/twitter-bootstrap/2.3.1/js/bootstrap.min.js"></script> | |
</head> | |
<body> | |
<br/> | |
<a href="#" id="example" class="btn large primary" >click for popover</a> |
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
$(function () { | |
var $popoverInbox = $('#example').popover({ | |
title: 'Test', | |
placement: 'bottom', | |
template: '<div class="popover-all"><div class="popover-arrow"></div><div class="popover-inner"><h3 class="popover-title">Example</h3><div class="popover-content"></div></div></div>' | |
}); | |
var count=0; | |
$(document).on({ |
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
$(function () { | |
var $popoverInbox = $('#example').popover({ | |
title: 'Test', | |
placement: 'bottom', | |
trigger:'manual', | |
template: '<div class="popover-all"><div class="popover-arrow"></div><div class="popover-inner"><h3 class="popover-title">Example</h3><div class="popover-content"></div></div></div>' | |
}); | |
var timerPopover, popover_parent; |
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
<html> | |
<head> | |
<link href="http://netdna.bootstrapcdn.com/twitter-bootstrap/2.3.1/css/bootstrap-combined.min.css" rel="stylesheet"></link> | |
<script src="http://code.jquery.com/jquery-1.9.1.min.js"></script> | |
<script src="http://netdna.bootstrapcdn.com/twitter-bootstrap/2.3.1/js/bootstrap.min.js"></script> | |
<style> | |
.popover-all { | |
position: absolute; | |
top: 0; | |
left: 0; |
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
# Path to your oh-my-zsh configuration. | |
ZSH=$HOME/.oh-my-zsh | |
#JAVA_HOME | |
export JAVA_HOME=`/usr/libexec/java_home -v 1.7` | |
#MAVEN | |
export M2_HOME=/usr/local/maven-3.0.5 | |
export MAVEN_OPTS=-Xmx1024m |
OlderNewer