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 ip2nipHex(ipv4){ | |
return `http://${(ipv4.split('.').map(x=>parseInt(x).toString(16)).map(x=>('00'+x).substring(x.length)).join(''))}.nip.io`; | |
} |
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 Newtonsoft.Json; | |
using Newtonsoft.Json.Serialization; | |
using System; | |
using System.Collections.Generic; | |
using System.Data; | |
namespace NewtonSoft.Json.Converters | |
{ | |
public class DataReaderConverter : JsonConverter | |
{ |