This file contains 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
public class HttpServletRequestDecoratorFilter implements Filter { | |
@Override | |
public void init(FilterConfig filterConfig) throws ServletException { | |
//do nothing | |
} | |
@Override | |
public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException { | |
request = decorate(request); |
This file contains 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
var scrapy = require('./scrapy.js').scrapy, | |
getAdFromTD = function( $td ) { | |
var ad = { | |
title: $td.find('a').html().replace(/\s*$/g, '') | |
}, | |
type; | |
$td = $td.next(); | |
ad.address = $td.find('a').html().replace( /<br>/g, ',' ); |
This file contains 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 | |
# Run the following command in the root of your project to install this pre-push hook: | |
# cp git-hooks/pre-push .git/hooks/pre-push; chmod 700 .git/hooks/pre-push | |
if [ -z "$BRANCHES_TO_SKIP" ]; then | |
BRANCHES_TO_SKIP=(master develop test) | |
fi | |
BRANCH_NAME=$(git symbolic-ref --short HEAD) | |
BRANCH_NAME="${BRANCH_NAME##*/}" |
NewerOlder