This file contains hidden or 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
using MediatR; | |
using System.Reflection; | |
using System.Threading; | |
using System.Threading.Tasks; | |
namespace FrameworkExtensions.MediatR.Validation | |
{ | |
public class ValidationBehavior<TRequest, TResponse> : IPipelineBehavior<TRequest, TResponse> | |
where TResponse : IRequestResponse | |
{ |
This file contains hidden or 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
<template> | |
<require from="./binding-functions"></require> | |
<h1 if.bind="!promise(myPromise).settled"> | |
.... | |
</h1> | |
<h1 if.bind="promise(myPromise).resolved"> | |
It resolved! | |
</h1> |
This file contains hidden or 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
<template> | |
<require from="./spreadsheet.css"></require> | |
<div class ="e-main-panel"> | |
<ej-spreadsheet id="Spreadsheet1" e-scroll-settings.bind = "scroll" e-import-settings.bind = "import" | |
e-export-settings.bind = "export" e-enable-pivot-table = "true" e-on-load-complete.trigger = "loadcomplete($event)" | |
e-on-open-failure.trigger = "openfailure($event)"> | |
<ej-sheet e-range-settings.bind = "range"> | |
</ej-sheet> | |
</ej-spreadsheet> |
This file contains hidden or 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
using (var reader = new CsvReader( | |
new StreamReader( | |
await storageManager.Read(message.PackagePath, asset.Name)), | |
new CsvConfiguration() | |
{ | |
Delimiter = "\t", | |
})) | |
{ | |
while (reader.Read()) | |
{ |
This file contains hidden or 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 hello = angular.module('hello', []); | |
hello.controller('helloController', ['$rootScope', '$scope', function ($rootScope, $scope) { | |
$scope.isLoggedIn = false; | |
$rootScope.$on('userLogin', function (e) { | |
$scope.isLoggedIn = true; | |
}); | |
$rootScope.$on('userLogout', function (e) { |
This file contains hidden or 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 hello = angular.module('hello', []); | |
hello.controller('helloController', ['$rootScope', '$scope', function ($rootScope, $scope) { | |
$scope.isLoggedIn = false; | |
$rootScope.$on('userLogin', function (e) { | |
$scope.isLoggedIn = true; | |
}); | |
$rootScope.$on('userLogout', function (e) { |
This file contains hidden or 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
<template> | |
<require from="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css"></require> | |
<div class="page-host" style="margin-top:50px"> | |
<router-view ></router-view> | |
</div> | |
</template> |
This file contains hidden or 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
<template> | |
<require from="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css"></require> | |
<div class="page-host" style="margin-top:50px"> | |
<router-view ></router-view> | |
</div> | |
</template> |
This file contains hidden or 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
<template> | |
<section class="au-animate"> | |
<div class="well"> | |
<content select="#navigation"></content> | |
</div> | |
<div> | |
<content select="#content"></content> | |
</div> | |
</section> | |
</template> |
This file contains hidden or 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 express = require('express'); | |
var fs = require('fs'); | |
var handlebars = require('handlebars'); | |
var source = new Buffer(10); | |
// El objeto source no contiene nada | |
console.log(source.toString('utf-8')); | |
fs.readFile('home.html', function(error, content){ |
NewerOlder