Skip to content

Instantly share code, notes, and snippets.

// force certain pages to be refreshed every time. mark such pages with
// 'data-cache="never"'
//
jQuery('div').live('pagehide', function(event, ui){
var page = jQuery(event.target);
if(page.attr('data-cache') == 'never'){
page.remove();
};
});
@maurizio-cucchiara
maurizio-cucchiara / SampleActionIntegrationTest.java
Created April 11, 2012 07:41
Struts+Spring+Junit test sample
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(locations = {"/org/apache/struts/spring/app-context.xml"})
public class SampleActionIntegrationTest extends StrutsSpringJUnit4TestCase<SampleAction> {
@Test
public void executeTest() throws Exception {
String result = executeAction("/sample");
SampleAction action = getAction();
assertFalse(containsErrors());
}
@briandoll
briandoll / gist:6980359e85eb9284ea14
Last active December 25, 2019 10:29
Farewell to Joe Strummer by Tom Morello

Joe Strummer, 1952-2002

Farewell to Joe Strummer by Tom Morello

The first time I heard of the Clash was in high school. I was working on the school newspaper, and one day a fellow named Dave Vogel came in with a copy of London Calling that he was showing off to anybody who was willing to listen. I thought the cover of the album was really cool, and asked him "is it heavy metal?" He said "no, but it's really great." I doubted him, but asked if I could borrow it, and I made