View web.config
<system.net>
<mailSettings>
<smtp deliveryMethod="SpecifiedPickupDirectory">
<specifiedPickupDirectory pickupDirectoryLocation="C:\temp" />
</smtp>
</mailSettings>
</system.net>
View Hello.cs
public static async Task<HttpResponseMessage> Run(HttpRequestMessage req, TraceWriter log)
{
string name = req.GetQueryNameValuePairs()
.FirstOrDefault(q => string.Compare(q.Key, "name", true) == 0)
.Value;
return req.CreateResponse(HttpStatusCode.OK, "Hello " + name);
}
View agregarquitar
<!DOCTYPE HTML>
<html lang="en-US">
<head>
<meta charset="UTF-8">
<script type="text/javascript" src="http://code.jquery.com/jquery.min.js"></script>
<title></title>
<script type="text/javascript">
$(function(){
$("#add").on("click", function(){
View minify and gzip grunt task
module.exports = function (grunt) {
// Project configuration.
grunt.initConfig({
pkg : grunt.file.readJSON('package.json'),
uglify : {
options : {
banner : '/*! <%= pkg.name %> <%= grunt.template.today("yyyy-mm-dd") %> */\n'
},
build : {
View Javascript Hoisting sample
var a = 'hola';
function saludar(){
console.log( a );
var a = 'chau';
console.log( a );
};
saludar();
View backbone.model.html
<html>
<head>
<script type="text/javascript" src="js/vendor/jquery/jquery.min.js"></script>
<script type="text/javascript" src="js/vendor/underscore/underscore.js"></script>
<script type="text/javascript" src="js/vendor/backbone/backbone.js"></script>
</head>
<body>
<div id="container" ></div>
<script type="text/javascript">
View rivetsjs.sample.html
<html>
<head>
<script type="text/javascript" src="http://code.jquery.com/jquery.min.js"></script>
<script type="text/javascript" src="js/vendor/rivets/dist/rivets.js"></script>
<script type="text/javascript">
$(function(){
//definimos un modelo simple, con algunas propiedades
model = {
name: "Ariel",
lastname: "Ortega",
View backbone.router.html
<html>
<head>
<script type="text/javascript" src="js/vendor/jquery/jquery.js"></script>
<script type="text/javascript" src="js/vendor/underscore/underscore.js"></script>
<script type="text/javascript" src="js/vendor/backbone/backbone.js"></script>
<script type="text/javascript">
//creamos una clase Router extendiendo la clase base de Backbonejs
var Router = Backbone.Router.extend({
//definimos las rutas
routes:{
View backbone-collection.html
<html>
<head>
<script type="text/javascript" src="js/vendor/jquery/jquery.min.js"></script>
<script type="text/javascript" src="js/vendor/underscore/underscore.js"></script>
<script type="text/javascript" src="js/vendor/backbone/backbone.js"></script>
</head>
<body>
<div id="container"></div>
<script type="text/javascript">
View vistacompleta.html
<html>
<head>
<script type="text/javascript" src="js/vendor/jquery/jquery.min.js"></script>
<script type="text/javascript" src="js/vendor/underscore/underscore.js"></script>
<script type="text/javascript" src="js/vendor/backbone/backbone.js"></script>
</head>
<body>
<div id="container"></div>
<script type="text/javascript">