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 memoize(fn: any): any { | |
console.log('memoize'); | |
const cache = {}; | |
return function () { | |
const key: string = JSON.stringify(arguments); | |
if (cache[key]) { | |
console.log(`${key} found in cache`); | |
return cache[key]; | |
} | |
else { |
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.Linq; | |
using Newtonsoft.Json; | |
namespace ConsoleApp1 | |
{ | |
class Program | |
{ | |
static void Main(string[] args) |
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.Linq; | |
namespace ConsoleApplication1 | |
{ | |
public class DbCException : Exception | |
{ | |
public DbCException() | |
{ |
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.Linq; | |
using System.Runtime.Versioning; | |
using NuGet; | |
namespace ConsoleApplication1 | |
{ | |
/// <summary> | |
/// View Nuget dependencies hierarchy | |
/// </summary> |
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
public class TempDataDocument | |
{ | |
public string Id { get; set; } | |
public string Key { get; set; } | |
public object Value { get; set; } // Aquí puede ir cualquier cosa | |
} | |
public static void Main() | |
{ | |
var client = new MongoClient("mongodb://localhost:27017"); |
NewerOlder