Skip to content

Instantly share code, notes, and snippets.

View rheone's full-sized avatar
💭
pounding on keyboard

Robert H. Engelhardt rheone

💭
pounding on keyboard
View GitHub Profile
@rheone
rheone / IpAddressBinaryUserType.cs
Created September 17, 2019 12:50
A Custom NHibernate IUserType for mapping network ordered bytes and an address family to an IPAddress object
using System;
using System.Collections.Generic;
using System.Data.Common;
using System.Linq;
using System.Net;
using System.Net.Sockets;
using NHibernate;
using NHibernate.Engine;
using NHibernate.SqlTypes;
using NHibernate.UserTypes;
using AutoMapper;
using Xunit;
namespace AutomapperIssue.ReadOnly
{
public class AutoMapperTests
{
[Fact]
public void AutoMapperValueResolverSilentlyFailsToSetValueTest()
{

Keybase proof

I hereby claim:

  • I am rheone on github.
  • I am rheone (https://keybase.io/rheone) on keybase.
  • I have a public key whose fingerprint is 262B 6BA9 3308 AD96 EB0A 8948 05F7 2653 98C5 3527

To claim this, I am signing this object:

@rheone
rheone / data.json
Last active August 29, 2015 14:25
Visualization of network segment
{
"children": [{
"children": [{
"children": [{
"children": [{
"children": [{
"children": [{
"children": [{
"children": [{
"children": [],
@rheone
rheone / chord-jk-navigation
Created June 5, 2014 19:40
jQuery Chord example of J/K navigation
<html>
<head>
<title>jk Navigation Chord example</title>
<style>
.jkselected {
background-color: lightblue;
}
</style>
@rheone
rheone / PostmanApiController.cs
Last active August 13, 2023 02:31
Generate JSON Postman Collections from a WebApi2 project using WebApi HelpPages
/// <summary>
/// Based on
/// http://blogs.msdn.com/b/yaohuang1/archive/2012/06/15/using-apiexplorer-to-export-api-information-to-postman-a-chrome-extension-for-testing-web-apis.aspx
/// </summary>
[RoutePrefix("api/postman")]
public class PostmanApiController : ApiController
{
/// <summary>
/// Produce [POSTMAN](http://www.getpostman.com) related responses
/// </summary>