Skip to content

Instantly share code, notes, and snippets.

@onefloridacoder
onefloridacoder / jqGrid.MVC4
Last active December 16, 2015 22:39
Simple jqGrid wire-up for MVC 4 controller action being called by jqGrid implementation.
Here's the (Home) controller action that serves the data back to the jqGrid.
[HttpGet]
public JsonResult GetPendingItems(string sidx, string sord, int page, int rows)
{
var requests = this.Store.RetrieveRequestorsPendingRequests(string.Empty);
var enumerable = requests as FiestaModels.Request[] ?? requests.ToArray();
var jsonData = new
{
total = 1, //todo: calculate
@onefloridacoder
onefloridacoder / AzureQueueMessage.cs
Created May 31, 2011 18:56
Steel Thread Artifacts
/*
*
* Borrowed from PnP
*
*/
public abstract class AzureQueueMessage
{
public string Id { get; set; }
public string PopReceipt { get; set; }
public int DequeueCount { get; set; }
@onefloridacoder
onefloridacoder / Registration.feature
Created May 2, 2011 23:09
Samples to illustrate the SpecFlow .feature file drives the stubbed out (.cs) definition file.
Feature: Registration
In order to have lots of attendees, speakers, and volunteers
As code camp organizer
I want to be able to register many different types of attendees.
Scenario: Register a new attendee with an email address
Given I am not a registered code camp attendee
When I enter and save my profile information
Then I become a registered code camp attendee
@onefloridacoder
onefloridacoder / RegistrationStory.cs
Created May 2, 2011 23:05
Sample code to demo StoryQ fluid syntax.
namespace BarCamp
{
using System.Text;
using System.Collections.Generic;
using System.Linq;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using StoryQ;
using System;
using System.Collections;