Skip to content

Instantly share code, notes, and snippets.

View Enome's full-sized avatar

Geert Pasteels Enome

View GitHub Profile
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
Benchmarking 168.63.27.5 (be patient)
Completed 100 requests
Completed 200 requests
Completed 300 requests
Completed 400 requests
Completed 500 requests
var app = angular.module('Jungles', []);
app.controller('ColumnCtrl', function ($scope) {
$scope.columns = [1,2,3];
});
/*global describe: true, beforeEach: true, before: true, after: true, it: true*/
/*jslint sloppy: true, indent: 2, node: true, nomen: true, vars: true, es5: true */
{
user: 'jimi',
locals: {
user: 'jimi'
}
}
var http = require('http');
var express = require('express');
var app = express();
app.set('view engine', 'jade');
app.set('views', __dirname + '/views');
app.locals.global = 'global';
var app = express();
var fake = function (req, res, next) {
req.user = {};
next();
}
var middleware_under_test = function (req, res, next) {
// do stuff
}
{ [error: duplicate key value violates unique constraint "settings_key_key"]
length: 159,
name: 'error',
severity: 'ERROR',
code: '23505',
detail: 'Key (key)=(version) already exists.',
hint: undefined,
position: undefined,
internalPosition: undefined,
internalQuery: undefined,
Server Software: Microsoft-IIS/7.5
Server Hostname: www.enome.be
Server Port: 80
Document Path: /
Document Length: 4659 bytes
Concurrency Level: 20
Time taken for tests: 470.345 seconds
Complete requests: 606
include ../mixins/form-helpers
+errors()
form.form-horizontal(action=url('my_events_create'), method='post')
+csrf()
+field('hidden', '_rev', 'rev')
+field('hidden', '_id', 'id')
var customBasicAuth = function (req, res, next) {
if (!allow_all) {
return basicAuth(req, res, next);
}
next();
};