Skip to content

Instantly share code, notes, and snippets.

View muralinarasimhan's full-sized avatar

Murali Narasimhan muralinarasimhan

View GitHub Profile
@muralinarasimhan
muralinarasimhan / _EmbedlyWithTelescope
Last active August 29, 2015 14:03
Using Embedly with Telescope - http://www.stackde.com for live site
Embedly call is made when you click on "Suggest a Title" while adding a new post.
@muralinarasimhan
muralinarasimhan / CafeModule.cs
Created September 23, 2014 01:21
Parameterized Abstract Factory with NancyFx TinyIoC
public class CafeModule : NancyModule
{
public CafeModule( IDrinkFactory iDrinkFactory)
: base("/api/drinks")
{
Get["/{id}"] = _ =>
{
IDrink drink = iDrinkFactory.Create((int) _.id);
};
}
@muralinarasimhan
muralinarasimhan / swagger.yaml
Last active January 4, 2017 15:07
Prototype Swagger file detailing RESTful design for the Forest Service e-permitting app including resource/security/operation definitions for retrieving a list of permit applications, a single permit application and creating a new permit application. Composition/Polymorphism for two permit types - non-commercial and temporary outfitter permits b…
swagger: "2.0"
info:
description: |
Prototype Swagger file detailing RESTful design for the Forest Service e-permitting app
including resource/security/operation definitions for retrieving a list of permit applications,
a single permit application and creating a new permit application.
# Composition/Polymorphism
For two permit types - non-commercial and temporary outfitter permits based on schema definitions
at https://github.com/18F/forest-service-permit-api-schemas.
# Authentication