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
<div id="basic-modal-content" class="simplemodal-data" style="display: block;"> | |
<h3>Ingrese el Número de Cliente, Por Favor:</h3> | |
<form action="miscuentas.php" id="InputNic" method="post" enctype="application/x-www-form-urlencoded"> | |
<label for="NIC">*NIC:</label> | |
<input type="text" id="NIC" name="NIC" tabindex="1001" maxlength="6" class="required number"> | |
<input type="hidden" name="origenpazysalvo" value="0"> | |
<label> </label> | |
<button type="submit" class="contact-send contact-button" tabindex="1006">Enviar</button> | |
<br> | |
</form> |
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
for i in `seq 1 100`; do echo $i; echo 'test 1234567890' > `echo test_$i`; done |
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
/*globals expect:true*/ | |
var Hapi = require('hapi'); | |
var server = require('./../../../lib/hapi'); | |
describe("Users controller", function() { | |
it("should return HTTP 401 when no bearer header auth is found", function(done) { | |
server.inject({ method: 'POST', url: '/api/v1/users' }, function (res) { | |
expect(res.statusCode).toBe(401); | |
done(); |
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 debug = require('debug')('users'); | |
var createHandler = require('./v1/create.js'); | |
exports.register = function(plugin, options, next) { | |
plugin.route({ | |
method: 'POST', | |
path: '/v1/users', | |
handler: createHandler, | |
config: { |
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
server.pack.register(require('hapi-auth-bearer-token'), function(err) { | |
server.auth.strategy('token', 'bearer-access-token', { | |
validateFunc: function(token, callback) { | |
// read from db or some place | |
var matched = false; | |
var tokenResult = { token: token }; | |
var err = null; | |
if (token === 'a1b2c3') { |
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
exports.profile = function(request, reply) { | |
request.server.render('partials/navbar', {}, function(err, rendered, config) { | |
reply.view('profile', { | |
title: 'Test', | |
navbar: rendered | |
}); | |
}); | |
}; |
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
module.exports = { | |
views: { | |
engines: { | |
'html': { | |
compile: require('./underscore_compiler') | |
} | |
}, | |
compileMode: 'sync', | |
path: './views', | |
partialsPath: './views/partials' |
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
<!-- parcialmente basado en yearofmoo.com --> | |
<form name="formulario"> | |
<div class="field"> | |
<label for="correo">Correo Electronico:</label> | |
<input type="email" | |
name="correo" | |
ng-model="datos.email" | |
required /> | |
<div ng-messages="formulario.correo.$error"> | |
<div ng-message="required">Campo requerido</div> |
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
<!-- parcialmente basado en yearofmoo.com --> | |
<form name="formulario"> | |
<div class="field"> | |
<label for="correo">Correo Electronico:</label> | |
<input type="email" | |
name="correo" ng-change="MiCtrl.checkRequired(datos.email)" ng-blur="MiCtrl.checkRequired(datos.email)" | |
ng-model="datos.email" | |
/> | |
<div ng-messages="formulario.correo.$error"> | |
<div ng-message="required">Campo requerido</div> |
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
package controllers | |
import play.api._ | |
import play.api.mvc._ | |
import play.api.libs.json._ | |
import services.RegPubServices | |
object Application extends Controller { | |
def index = Action { |
OlderNewer