Skip to content

Instantly share code, notes, and snippets.

public class GridAction
{
public GridModel Execute(GridModel input)
{
return input;
}
public jqGridModel DataQuery(GridRequest request)
{
var invoices = new[]
<%@ Page Language="C#" AutoEventWireup="true" Inherits="VendorYellowPages.Web.Actions.Grid.Grid"
MasterPageFile="~/Shared/Site.Master"%>
<asp:Content ContentPlaceHolderID="_head" runat="server">
<%=this.JavaScript("jqGrid/js/grid.locale-en.js")%>
<%=this.JavaScript("jqGrid/js/jquery.jqGrid.min.js")%>
<script type="text/javascript">
jQuery(document).ready(function() {
jQuery("#list").jqGrid({
public class GetManufacturerAction
{
public VendorModel<Manufacturer> Query(GetVendorRequest<Manufacturer> request)
{
return new VendorModel<Manufacturer>(){ Vendor = request.Vendor };
}
}
<html>
<head>
<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>
</head>
<body>
</body>
<script type="text/html" id="myOtherTemplate">
public static class ValueObjectRegistry
{
static ValueObjectRegistry()
{
_valueObjectCache.OnMissing = (name) =>
{
return new ValueObjectHolder(name);
};
}
public class ViewFieldScoresAction
{
private readonly IFieldScoreTasks _fieldScoreTasks;
public ViewFieldScoresAction(IFieldScoreTasks fieldScoreTasks)
{
_fieldScoreTasks = fieldScoreTasks;
}
public FubuContinuation Get(FieldScoresInputViewModel inModel)
public class MobileViewBuilder : StructureMapWebFormsControlBuilder
{
private readonly HttpRequestWrapper _requestWrapper;
public MobileViewBuilder(IContainer container, HttpRequestWrapper requestWrapper)
: base(container)
{
_requestWrapper = requestWrapper;
}
@rauhryan
rauhryan / Notes.md
Last active September 14, 2015 13:37
HuBoard Enterprise - 1.6.92 Release notes

HuBoard Enterprise - 1.6.93 Release notes

The 1.6.93 HuBoard Enterprise package release in now available for download from https://enterprise.huboard.com/download.

This release is full of bug fixes and performance wins! It includes 82 commits and 19 pull requests!

Improvements

  • Refactors the client-side eventing infrastructure
  • Upgrades to ember 1.13.8
(function () {
// Normally, SELECT elements and their OPTIONs can only take value of type 'string' (because the values
// are stored on DOM attributes). ko.selectExtensions provides a way for SELECTs/OPTIONs to have values
// that are arbitrary objects. This is very convenient when implementing things like cascading dropdowns.
ko.selectExtensions = {
readValue : function(element) {
if (element.tagName == 'OPTION') {
var valueAttributeValue = element.getAttribute("value");
if (valueAttributeValue !== ko.bindingHandlers.options.optionValueDomDataKey)
return valueAttributeValue;
@rauhryan
rauhryan / gist:735063
Created December 9, 2010 17:58
output of select box
<select>
<option> Select ... </option>
<option value='__ko.bindingHandlers.options.optionValueDomData__'>Hi</option>
</select>