-
System.Globalization.DateTimeStyles.AssumeUniversal = Si la zona horaria no se especifica, se asume que es UTC
-
System.Globalization.DateTimeStyles.AdjustToUniversal = Si es una hora local, se convierte a UTC, de lo contrario no se realiza conversión alguna.
-
Assemblies signed with a key pair contained in a file .snk?
-
Azure
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
//By https://codedump.io/share/Fd3DmsM6UAeS/1/creating-a-blob-from-a-base64-string-in-javascript | |
//Example | |
//var blob = b64toBlob(b64Data, contentType); | |
//var blobUrl = URL.createObjectURL(blob); | |
function b64toBlob(b64Data, contentType, sliceSize) { | |
contentType = contentType || 'image/png'; | |
sliceSize = sliceSize || 512; | |
var byteCharacters = atob(b64Data); | |
var byteArrays = []; |
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
(function(firebase) { | |
'use strict'; | |
angular | |
.module('App') | |
.factory('Media', Media); | |
Media.$inject = ['$q', 'Utilities']; | |
function Media($q, 'Utilities') { | |
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
* Billing REST API | |
Las operaciones se ajustan a la especificación del protocolo HTTP/1.1 | |
Cada operación devuelve un encabezado x-ms-request-id | |
Azure Active Directory para la autenticación (El usuario debe ser miembro del rol propietario, colaborador o Lector) | |
Permiten consultar para las categorías: | |
- Uso de recursos | |
- RateCard de recursos (Obtener info de precios y metadatos de recursos de una suscripción de Azure) |
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
(function (Draggable, TweenLite) { | |
'use strict'; | |
angular | |
.module('App') | |
.directive('draggable', draggable); | |
draggable.$inject = ['$ionicGesture', '$ionicListDelegate', '$timeout']; | |
function draggable($ionicGesture, $ionicListDelegate, $timeout) { |
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
Servicio para deployar y administrar aplicaciones y servicios web en Java, .NET, PHP, Node.js, Python, Ruby y Docker. | |
Infraestructura lista para lanzar la aplicación. |
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
(function () { | |
'use strict'; | |
angular | |
.module('App') | |
.factory('Async', Async); | |
Async.$inject = ['$q']; | |
function Async($q) { | |
return { |
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
using System; | |
using System.Collections.Generic; | |
using System.Data.Entity; | |
using System.Linq; | |
using System.Linq.Expressions; | |
namespace Models.Repositories | |
{ | |
public class Repository<T> where T : class | |
{ |
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
//pretty printing JSON => JSON.stringify(obj, null, 2); | |
var product = { | |
"productTypeCode": "productTypeEnergy", | |
"quantities": [ | |
{ | |
"period": { | |
"startDate": new Date("2017-01-13T05:00:00.000Z"), | |
"endDate": new Date("2017-01-31T05:00:00.000Z"), | |
"dayType": { | |
"normal": true, |
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
/** | |
* Get a range of hours from a period | |
* @param {String='8','4-8','2-5-9'} | |
* @example | |
* // returns [4,5,6,7] | |
* @returns {Number|Array} Returns an array of numbers without include the last hour | |
*/ | |
let periodRange = (period)=> { | |
let periodArray = period.split('-'); | |
return _.union(_.range(periodArray[0], periodArray[periodArray.length - 1]), [Number(periodArray[0])]); |