As an I want So that
Given When Then
I hereby claim:
To claim this, I am signing this object:
require 'clockwork' | |
require 'iron_mq' | |
module Clockwork | |
configure do |cofig| | |
config[:tz] = "America/Los_Angeles" | |
end | |
handler do |job| |
var Poller, imq, imqClient, EventEmitter, util; | |
imq = require('iron_mq'); | |
imqClient = new imq.Client(); | |
EventEmitter = require('events').EventEmitter; | |
util = require('util'); | |
Poller = function Poller(queueName) { | |
// setup instance vars | |
this.queueName = queueName; | |
this.queue = imqClient.queue(this.queueName); |
var iron_mq = require('iron_mq'); | |
var imq = new iron_mq.Client(); | |
var queueName = "query_smt"; | |
var queue = imq.queue(queueName); | |
var numMessagesCurrentlyProcessing = 0; | |
process.on( 'SIGINT', function() { | |
var num; | |
console.log( 'Received SIGINT (Crtl-C)') |
<?php | |
namespace Application; | |
use Zend\ModuleManager\ModuleManager; | |
use Zend\Mvc\ModuleRouteListener; | |
use Zend\Mvc\MvcEvent; | |
class Module | |
{ |
<?php | |
define('ZF2_PATH', realpath(__DIR__ . '/../vendor/ZendFramework/library')); |
<?php | |
return array( | |
'view_manager' => array( | |
'display_not_found_reason' => false, | |
'display_exceptions' => false, | |
'doctype' => 'HTML5', | |
'not_found_template' => 'error/404', | |
'exception_template' => 'error/index', | |
'template_map' => array( | |
'layout/layout' => __DIR__ . '/../view/layout/layout.phtml', |
<?php | |
// Convert "socalnick.dev.phantom.www.ign.com" or "www.ign.com" to "WwwIgnCom" | |
$filter = new Zend\Filter\FilterChain(array( | |
'filters' => array( | |
array( | |
'name' => 'pregReplace', | |
'options' => array( | |
'match' => '/^(.*phantom\.)?([^:]+)(:\d+)?$/i', | |
'replace' => '$2', | |
), |
<?php | |
return array( | |
// Other component configuration (i.e. router, controller, view_manager | |
'di' => array( | |
'definition' => array( | |
'runtime' => array( | |
'enabled' => false, | |
), |