Skip to content

Instantly share code, notes, and snippets.

View jasondentler's full-sized avatar

Jason Dentler jasondentler

View GitHub Profile
View benchy.gcode
This file has been truncated, but you can view the full file.
; generated by Slic3r Prusa Edition 1.41.2+ on 2019-01-03 at 08:37:20
;
; external perimeters extrusion width = 0.42mm
; perimeters extrusion width = 0.38mm
; infill extrusion width = 0.68mm
; solid infill extrusion width = 0.50mm
; top infill extrusion width = 0.40mm
; first layer extrusion width = 0.53mm
View keybase.md

Keybase proof

I hereby claim:

  • I am jasondentler on github.
  • I am jasondentler (https://keybase.io/jasondentler) on keybase.
  • I have a public key ASBhvVbzXe3lD-sX1Xiv4R-81laCtpLcsKzlhsqmgJm92Qo

To claim this, I am signing this object:

@jasondentler
jasondentler / Global.asax.cs
Last active July 11, 2017 14:32
TransactionScope + NHibernate unit of work in Web API
View Global.asax.cs
using System.Web;
using System.Web.Http;
using System.Web.Mvc;
using System.Web.Routing;
using JobService.Filters;
namespace JobService
{
public class WebApiApplication : HttpApplication
{
@jasondentler
jasondentler / ReflectionExtensions.cs
Created April 23, 2014 16:28
Convert DataRow to POCO
View ReflectionExtensions.cs
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Linq.Expressions;
using System.Reflection;
namespace Reporting
{
public static class ReflectionExtensions
View example.cs
namespace Land.Core.Commands
{
public interface ICommand { }
public class AddContractCommand : ICommand
{
public Guid Id { get; set; }
public string Name { get; set; }
public string ContractTerms { get; set; }
}
View FlexSpaceSteps.cs
using TechTalk.SpecFlow;
namespace DWH.Pricing.Tests
{
[Binding]
public class FlexSpaceSteps
{
[Given(@"a selected flexspace (.*) ""(.*)""")]
public void GivenASelectedFlexspace(string optionNumber, string description)
View gist:6175148
public class City : IEntity
{
public string Id { get; set; }
public string Name { get; set; }
public string State { get; set; }
public bool Disabled { get; set; }
}
public class NewCityInputModel
{
View gist:6168007
public class EditMasterQuery
{
private readonly IDocumentSession _session;
public EditMasterQuery(IDocumentSession session)
{
_session = session;
}
public MasterWithSubdocs Execute(string masterId)
{
@jasondentler
jasondentler / form.cshtml
Created July 25, 2013 14:54
Scope autocomplete
View form.cshtml
<div class="control-group">
@Html.LabelFor(m => m.Scope, new {@class = "control-label"})
<div class="controls">
@Html.TextBoxFor(m => m.Scope)
</div>
</div>
@section scripts
{
View Constants.cs
namespace DWH.Security
{
public static class Constants
{
public const string ActionPrefix = "PERM-";
public const string CommunityPrefix = "PERM-COMM-";
public const string ProjectPrefix = "PERM-PROJ-";
public const string DivisionPrefix = "PERM-DIV-";
public const string MarketPrefix = "PERM-MKT-";