Skip to content

Instantly share code, notes, and snippets.

Ryan Rauh rauhryan

Block or report user

Report or block rauhryan

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View hiddenfor
public static HtmlTag HiddenFor<T>(this IFubuPage<T> page, Expression<Func<T, object>> expression, string prefix) where T : class
var accessor = expression.ToAccessor();
return new HiddenTag()
.Attr("value", accessor.GetValue(page.Model))
.Attr("name", string.Format("{0}{1}",prefix, page.ElementNameFor(expression)));
public static HtmlTag HiddenFor<T>(this IFubuPage<T> page, Expression<Func<T, object>> expression) where T : class
View gist:314573
public class ValueObjectHolder: DomainEntity
protected ValueObjectHolder()
Values = new List<ValueObject>();
public ValueObjectHolder(string key):this()
Key = key;
View gist:328500
using FubuMVC.Core;
using StructureMap;
using VendorYellowPages.Core.Startable;
using VendorYellowPages.Infrastructure.NHibernate;
namespace VendorYellowPages.Web.Infrastructure
public static class StructureMapExtensions
public static void StartStartables(this IContainer container)
View gist:333353
public class GridAction
public GridModel Execute(GridModel input)
return input;
public jqGridModel DataQuery(GridRequest request)
var invoices = new[]
View gist:333358
<%@ Page Language="C#" AutoEventWireup="true" Inherits="VendorYellowPages.Web.Actions.Grid.Grid"
<asp:Content ContentPlaceHolderID="_head" runat="server">
<script type="text/javascript">
jQuery(document).ready(function() {
View GetManufacturerAction.cs
public class GetManufacturerAction
public VendorModel<Manufacturer> Query(GetVendorRequest<Manufacturer> request)
return new VendorModel<Manufacturer>(){ Vendor = request.Vendor };
View liquid-with-markdown.html
<script type="text/javascript" src="lib/prototype/prototype.js"></script>
<script type="text/javascript" src="lib/showdown/showdown.js"></script>
<script type="text/javascript" src="lib/liquid/liquid.js"></script>
<script type="text/html" id="myOtherTemplate">
View gist:428808
public static class ValueObjectRegistry
static ValueObjectRegistry()
_valueObjectCache.OnMissing = (name) =>
return new ValueObjectHolder(name);
View gist:468282
public class ViewFieldScoresAction
private readonly IFieldScoreTasks _fieldScoreTasks;
public ViewFieldScoresAction(IFieldScoreTasks fieldScoreTasks)
_fieldScoreTasks = fieldScoreTasks;
public FubuContinuation Get(FieldScoresInputViewModel inModel)
View gist:477178
public class MobileViewBuilder : StructureMapWebFormsControlBuilder
private readonly HttpRequestWrapper _requestWrapper;
public MobileViewBuilder(IContainer container, HttpRequestWrapper requestWrapper)
: base(container)
_requestWrapper = requestWrapper;
You can’t perform that action at this time.