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
| Package restore is disabled by default. To give consent, open the Visual Studio Options dialog, click on Package Manager node and check 'Allow NuGe to download missing packages during build.' You can also give consent by setting the environment variable 'EnableNuGetPackageRestore' to 'true'. |
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 https = require('https'), | |
| path = require("path"), | |
| fs = require("fs"), | |
| crypto = require("crypto"); | |
| var certs = ["cer1", "cer2"].map(function(cer){ | |
| var r = crypto.createCredentials({ | |
| key: fs.readFileSync(path.join(__dirname, 'certs/' + cer + '.nopass.key')), | |
| cert: fs.readFileSync(path.join(__dirname, 'certs/' + cer + '.crt')) | |
| }).context; |
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 https = require('https'), | |
| path = require("path"), | |
| fs = require("fs"), | |
| crypto = require("crypto"); | |
| function getCredentialsContext(cer){ | |
| var r = crypto.createCredentials({ | |
| key: fs.readFileSync(path.join(__dirname, 'certs', cer + '.nopass.key')), | |
| cert: fs.readFileSync(path.join(__dirname, 'certs', cer + '.crt')) | |
| }).context; |
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
| ##Usage | |
| $a = Convert-JsonToXml "{foo: 1, bar: 2}" | |
| write-host $a.root.foo | |
| write-host $a.root.bar | |
| ### | |
| ###################### JSON PARSING |
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
| /*global sinon, QUnit, test*/ | |
| sinon.assert.fail = function (msg) { | |
| QUnit.ok(false, msg); | |
| }; | |
| sinon.assert.pass = function (assertion) { | |
| QUnit.ok(true, assertion); | |
| }; | |
| sinon.config = { |
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
| //I put this next to the "respondWith" function inside sinon.js | |
| respondWithJson: function (url, responseObject){ | |
| this.respondWith(url, [200, { | |
| "Content-Type": "application/json" | |
| }, JSON.stringify(responseObject)]); | |
| }, |
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 System; | |
| using System.Data; | |
| using NHibernate; | |
| using NHibernate.SqlTypes; | |
| using NHibernate.UserTypes; | |
| using System.Collections.Generic; | |
| namespace MyUserTypes | |
| { | |
| /// <summary> |
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
| private string miPropiedad; //aquí guardaremos el valor encriptado | |
| public string MiPropiedad | |
| { | |
| set { this.miPropiedad= encriptar(value) ; } | |
| get { return desencriptar(this.miPropiedad); } | |
| } | |
| En el mapeo: |
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
| public string MiPropiedad | |
| { | |
| set { this.miPropiedad = value; } | |
| get { return desencriptar(this.mipropiedad); } | |
| } |
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
| Para más información acerca de mate http://es.wikipedia.org/wiki/Mate_(infusi%C3%B3n) | |
| Colocar en el mate 2/3 de yerba sin colocar la bombilla aún. | |
| Tapando la boca del mate "zarandear" boca abajo varias veces para que la materia fina de la yerba quede arriba. | |
| Volver el mate boca arriba intentando que la yerba quede toda de un lado, y del otro lado quede vacío a tal punto que se pueda ver desde arriba el fondo del mate. | |
| Verter un poco de agua tibia del lado sin yerba, y una vez humedecida la yerba, con una cuchara intentar amontonar más la yerba agrandando el espació vacío donde se puede ver el fondo del mate. | |
| Colocar la bombilla de tal forma que la parte por donde se absorbe el agua quede del lado sin yerba. | |
| Siempre colocar el agua por el lado sin yerba. |