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.velti.bb.platform.security; | |
import org.springframework.security.web.util.RequestMatcher; | |
import javax.servlet.http.HttpServletRequest; | |
/** | |
* This request matcher is used in jungle of Spring Security | |
* in order to decide what requests should be cached in case of user | |
* is visiting some page while he's not authenticated. |
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
<bean id="entityManagerFactory" class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean"> | |
<property name="dataSource" ref="dataSource"/> | |
<property name="persistenceUnitName" value="spring-jpa"/> | |
<property name="jpaPropertyMap"> | |
<map> | |
<entry key="javax.persistence.validation.factory" value-ref="validator" /> | |
</map> | |
</property> | |
<property name="jpaProperties"> | |
<props> |
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
INSERT INTO country (iso_code,name) VALUES ('BD','Bangladesh, People''s Republic of'); | |
INSERT INTO country (iso_code,name) VALUES ('BE','Belgium, Kingdom of'); | |
INSERT INTO country (iso_code,name) VALUES ('BF','Burkina Faso'); | |
INSERT INTO country (iso_code,name) VALUES ('BG','Bulgaria, People''s Republic of'); | |
INSERT INTO country (iso_code,name) VALUES ('BA','Bosnia and Herzegovina'); | |
INSERT INTO country (iso_code,name) VALUES ('BB','Barbados'); | |
INSERT INTO country (iso_code,name) VALUES ('WF','Wallis and Futuna Islands'); | |
INSERT INTO country (iso_code,name) VALUES ('BM','Bermuda'); | |
INSERT INTO country (iso_code,name) VALUES ('BN','Brunei Darussalam'); | |
INSERT INTO country (iso_code,name) VALUES ('BO','Bolivia, Republic of'); |
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 ; | |
import java.util.Collection; | |
public class BagMain { | |
public static void main(String[] args) { | |
Collection<Integer> bag = new Bag<Integer>(); | |
bag.add(1); | |
bag.add(5); |
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
INSERT INTO `regexp_table` (`id`, `name`, `regexp`) | |
VALUES | |
(1,'first','pi|apa'), | |
(2,'second','^(pi|apa)$'), | |
(3,'third','^(pi)*$'), | |
(4,'fourth','^Ba?n'); | |
select * from regexp_table; |
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 ; | |
import org.hamcrest.Description; | |
import org.hamcrest.Factory; | |
import org.hamcrest.Matcher; | |
import org.junit.internal.matchers.TypeSafeMatcher; | |
public class InRange extends TypeSafeMatcher<Integer> { | |
private int lowerEdge = 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
<target name="execute-flex-monkey-test" depends="initTest"> | |
<echo>${app.url}/PartnerLogin-FlexMonkeyRunner.swf</echo> | |
<flexunit | |
url="${app.url}/PartnerLogin-FlexMonkeyRunner.swf" | |
command="${flex.monkey.launch.app}" | |
toDir="${flex.monkey.report.dir}" | |
haltonfailure="false" | |
localTrusted="false" | |
verbose="true" | |
failureproperty="flexunit.failed"/> |
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.zevg.utilities | |
{ | |
import flash.utils.Dictionary; | |
import mx.collections.ListCollectionView; | |
import mx.core.EventPriority; | |
import mx.events.CollectionEvent; | |
import mx.events.CollectionEventKind; | |
public class CollectionEventBatcher |
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
http://www.ted.com/talks/dan_pink_on_motivation.html | |
http://www.ted.com/talks/pranav_mistry_the_thrilling_potential_of_sixthsense_technology.html | |
http://www.ted.com/talks/blaise_aguera.html | |
http://www.ted.com/talks/david_merrill_demos_siftables_the_smart_blocks.html | |
http://www.ted.com/talks/ken_robinson_says_schools_kill_creativity.html | |
http://www.ted.com/talks/julian_assange_why_the_world_needs_wikileaks.html | |
http://www.ted.com/talks/pattie_maes_demos_the_sixth_sense.html | |
http://www.ted.com/talks/sir_ken_robinson_bring_on_the_revolution.html | |
http://www.ted.com/talks/simon_sinek_how_great_leaders_inspire_action.html | |
http://www.ted.com/talks/jamie_oliver.html |
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
#!/bin/bash | |
# /etc/init.d/selenium-grid | |
# centos-compatible selenium-grid startup script. | |
# Eugene Zakharchenko <z.evgeniy[at]gmail.com> | |
### BEGIN INIT INFO | |
# Provides: selenium-grid | |
# Required-Start: $remote_fs $syslog $network | |
# Required-Stop: $remote_fs $syslog $network | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 |