I hereby claim:
- I am nvcexploder on github.
- I am benacker (https://keybase.io/benacker) on keybase.
- I have a public key whose fingerprint is B6D0 5541 82DA F2B9 E37C 9B25 0DEF AEF7 7925 4224
To claim this, I am signing this object:
{ | |
"process": { | |
"pid": 8461, | |
"uid": 459565676, | |
"gid": 74715970, | |
"cwd": "/Users/backer/src/git/ren", | |
"execPath": "/usr/local/bin/node", | |
"version": "v0.6.7", | |
"argv": [ | |
"node", |
var Xml = require('./lib/xml'); | |
var Fs = require('fs'); | |
var config = { | |
// enforceSingle:['name', | |
// 'url', | |
// 'level', | |
// 'id', | |
// 'parent', | |
// 'rank', |
/* | |
* Copyright (c) 2012 Walmart. All rights reserved. Copyrights licensed under the New BSD License. | |
* See LICENSE file included with this code project for license terms. | |
*/ | |
// Load modules | |
var Fs = require('fs'); | |
var Http = require('http'); | |
var Https = require('https'); |
internals.searchChildren = function ( id, toSearch, callback ) { | |
for( child in toSearch ) { | |
console.log('FOR LOOP'); | |
if( id == toSearch[child].id ) { | |
//return the child | |
callback(null, toSearch[child].children); |
var arDrone = require('ar-drone'); | |
var client = arDrone.createClient(); | |
client.createRepl(); |
var hapi = require('hapi'); | |
var server = hapi.createServer('localhost', 8080); | |
var server2 = hapi.createServer('localhost', 8080); | |
server.start(); | |
server2.start(); |
exports.create = { | |
description: 'Creates a new cart', | |
validate: { | |
payload: { | |
location: Joi.object({ | |
postalCode: Joi.string().required().description('Postal Code'), | |
city: Joi.string().optional().description('City'), | |
state: Joi.string().optional().description('State or Province Code'), | |
country: Joi.string().optional().description('Country') |
I hereby claim:
To claim this, I am signing this object:
// wherever you're setting up your server, this was within a register method for a plugin: | |
plugin.select('api').ext('onRequest', internals.onRequest); | |
//somewhere else in that file or whatever | |
var onRequest = function (request, next) { | |
request.setUrl(exports.rewriteUrl(request.raw.req.url)); | |
next(); |
$ npm install hapi joi | |
#A good way to test is this: | |
$ curl --form [email protected] localhost:8080/selfies |