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 | |
# | |
# tomcat7 This shell script takes care of starting and stopping Tomcat | |
# | |
# chkconfig: - 80 20 | |
# | |
### BEGIN INIT INFO | |
# Provides: tomcat7 | |
# Required-Start: $network $syslog | |
# Required-Stop: $network $syslog |
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
import javax.servlet.ServletContextEvent; | |
import org.glassfish.grizzly.servlet.ServletHandler; | |
import com.google.inject.servlet.GuiceFilter; | |
import com.google.inject.servlet.GuiceServletContextListener; | |
public class GuiceHandler extends ServletHandler { | |
private static final Logger logger = Logger.getLogger(GuiceHandler.class.getName()); | |
private final GuiceServletContextListener guiceServletContextListener; |
NewerOlder