Skip to content

Instantly share code, notes, and snippets.

@smhinsey
smhinsey / gist:8790686
Created February 3, 2014 19:30
Example Service Spec
Feature: Forum Commenting
In order to interact with a Forum
As a Forum User
I want to create Posts in that Forum
Scenario: Comment on Post
Given the agent ForumAgent
When I publish the command PublishPost:
| Title | Body | CategoryIdentifier | AuthorIdentifier | ForumIdentifier |
function undeploy
{
Param(
[parameter(Mandatory=$true, Position=0)]
[ValidateSet("Production","Staging")]
[String]
$deploymentSlot,
[parameter(Mandatory=$true, Position=1)]
[String]
@smhinsey
smhinsey / README.markdown
Created June 8, 2012 01:25 — forked from gudbergur/README.markdown
Bootstrap's Typeahead plugin extended (allowing for AJAX functionality) among other things

This is a fork of Bootstrap Typeahead that adds minimal but powerful extensions.

For example, process typeahead list asynchronously and return objects

  # This example does an AJAX lookup and is in CoffeeScript
  $('.typeahead').typeahead(
    # source can be a function
    source: (typeahead, query) ->
 # this function receives the typeahead object and the query string