Skip to content

Instantly share code, notes, and snippets.

@jonathanfmills
jonathanfmills / booksjson.js
Created April 14, 2015 18:49
MongoDB Import for REST APIs course
db.books.insert([
{
title: 'War and Peace',
genre: 'Historical Fiction',
author: 'Lev Nikolayevich Tolstoy',
read: false
},
{
title: 'Les Misérables',
genre: 'Historical Fiction',
{
"excludeFiles": ["node_modules/**", "bower_components/**"],
"requireCurlyBraces": [
"if",
"else",
"for",
"while",
"do",
"try",
@jonathanfmills
jonathanfmills / TaskRepo
Created December 17, 2014 16:34
Singleton Repository
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using ToDoList.Models;
namespace ToDoList.data
{
public sealed class TaskRepository
{