Permalink
Browse files

Initial commit

  • Loading branch information...
0 parents commit 73a288b7577b568c4dec6ca35499cbbc11db7acb @banker banker committed Apr 19, 2010
@@ -0,0 +1,3 @@
+output
+*.swp
+*.sw0
21 LICENSE
@@ -0,0 +1,21 @@
+The MongoDB Cookbook is inspired by The Redis Cookbook, Copyright (c)
+2010 Ted Nyman [http://ted.io], Tim Lossen [http://tim.lossen.de]
+
+This work is licensed under the Creative Commons Attribution
+Share Alike Unported License (Version 3.0):
+
+http://creativecommons.org/licenses/by_sa/3.0/legalcode
+
+Summary:
+
+You are free to share (to copy, distribute and transmit) and
+to remix (to adapt) this work -- under the following
+conditions:
+
+(a) You must attribute the work in the manner specified by the
+author or licensor (but not in any way that suggests that they
+endorse you or your use of the work).
+
+(b) If you alter, transform, or build upon this work, you may
+distribute the resulting work only under the same, similar or
+a compatible license.
@@ -0,0 +1,29 @@
+# The MongoDB Cookbook
+
+### The ways and hows of MongoDB.
+
+Contribute your patterns, methods, and ideas to the MongoDB Cookbook.
+
+- - -
+
+### How to Contribute a Recipe
+
+1. Fork this repo and create a new topic branch.
+2. Make your addition. See one of the recipe files for a sample.
+3. Send a pull request -- please include a short description of your new or updated recipe.
+4. Enjoy your awesomeness.
+
+### Even More Ways To Contribute
+
+You can:
+
+* Add example code for any existing recipe, in any programming language.
+ Fork the repo and add your code into the relevant directory!
+* Work on the rediscookbook.org website. The site itself is open source and lives in `site`.
+* Look for typos, formatting errors, missing links, and other little things.
+ No potential improvement is 'too small' -- fork for anything.
+
+### License
+
+Creative Commons Attribution Share Alike 3.0
+Inspired by The Redis Cookbook (http://rediscookbook.org)
@@ -0,0 +1,7 @@
+
+task :default => :build
+
+desc 'deploy the site to the webserver'
+task :deploy => [:build, 'deploy:rsync']
+
+# EOF
@@ -0,0 +1,138 @@
+pre.twilight .DiffInserted {
+ background-color: #253B22;
+ color: #F8F8F8;
+}
+pre.twilight .DiffHeader {
+ background-color: #0E2231;
+ color: #F8F8F8;
+ font-style: italic;
+}
+pre.twilight .CssPropertyValue {
+ color: #F9EE98;
+}
+pre.twilight .CCCPreprocessorDirective {
+ color: #AFC4DB;
+}
+pre.twilight .Constant {
+ color: #CF6A4C;
+}
+pre.twilight .DiffChanged {
+ background-color: #4A410D;
+ color: #F8F8F8;
+}
+pre.twilight .EmbeddedSource {
+ background-color: #A3A6AD;
+}
+pre.twilight .Support {
+ color: #9B859D;
+}
+pre.twilight .MarkupList {
+ color: #F9EE98;
+}
+pre.twilight .CssConstructorArgument {
+ color: #8F9D6A;
+}
+pre.twilight .Storage {
+ color: #F9EE98;
+}
+pre.twilight .line-numbers {
+ background-color: #5C5B51;
+ color: #D1D0B8;
+}
+pre.twilight .CssClass {
+ color: #9B703F;
+}
+pre.twilight .StringConstant {
+ color: #DDF2A4;
+}
+pre.twilight .CssAtRule {
+ color: #8693A5;
+}
+pre.twilight .MetaTagInline {
+ color: #E0C589;
+}
+pre.twilight .MarkupHeading {
+ color: #CF6A4C;
+}
+pre.twilight .CssTagName {
+ color: #CDA869;
+}
+pre.twilight .SupportConstant {
+ color: #CF6A4C;
+}
+pre.twilight .DiffDeleted {
+ background-color: #420E09;
+ color: #F8F8F8;
+}
+pre.twilight .CCCPreprocessorLine {
+ color: #8996A8;
+}
+pre.twilight .StringRegexpSpecial {
+ color: #CF7D34;
+}
+pre.twilight .EmbeddedSourceBright {
+ background-color: #9C9EA4;
+}
+pre.twilight .InvalidIllegal {
+ background-color: #241A24;
+ color: #F8F8F8;
+}
+pre.twilight .SupportFunction {
+ color: #DAD085;
+}
+pre.twilight .CssAdditionalConstants {
+ color: #CA7840;
+}
+pre.twilight .MetaTagAll {
+ color: #AC885B;
+}
+pre.twilight .StringRegexp {
+ color: #E9C062;
+}
+pre.twilight .StringEmbeddedSource {
+ color: #DAEFA3;
+}
+pre.twilight .EntityInheritedClass {
+ color: #9B5C2E;
+ font-style: italic;
+}
+pre.twilight .CssId {
+ color: #8B98AB;
+}
+pre.twilight .CssPseudoClass {
+ color: #8F9D6A;
+}
+pre.twilight .StringVariable {
+ color: #8A9A95;
+}
+pre.twilight .String {
+ color: #8F9D6A;
+}
+pre.twilight .Keyword {
+ color: #CDA869;
+}
+pre.twilight {
+ background-color: #141414;
+ color: #F8F8F8;
+}
+pre.twilight .CssPropertyName {
+ color: #C5AF75;
+}
+pre.twilight .DoctypeXmlProcessing {
+ color: #494949;
+}
+pre.twilight .InvalidDeprecated {
+ color: #D2A8A1;
+ font-style: italic;
+}
+pre.twilight .Variable {
+ color: #7587A6;
+}
+pre.twilight .Entity {
+ color: #9B703F;
+}
+pre.twilight .Comment {
+ color: #5F5A60;
+ font-style: italic;
+}
+
@@ -0,0 +1,90 @@
+body {
+ font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
+ margin: 0;
+}
+
+a {
+ text-decoration: none;
+ color: #3471CD;
+}
+
+a:hover {
+ text-decoration: underline;
+ color: #3471CD;
+}
+
+hr {
+ size: 100%;
+ border-top: 1px dotted #999;
+}
+
+p {
+ font-size: 14px;
+}
+
+h1 {
+ font-size: 30px;
+ color: #6686BD;
+}
+
+h2 {
+ font-size: 18px;
+ color: black;
+}
+
+h3 {
+ font-size:14px;
+}
+
+h4 {
+ font-size:14px;
+}
+
+body code {
+ color: #444;
+ font-size: 120%;
+}
+
+body pre {
+ padding: 1em;
+ border: 1px solid #dfe2e5;
+ overflow-x: auto;
+}
+
+.header {
+ padding-top: 20px;
+ padding-left: 100px;
+ top: 0px;
+ height: 120px;
+ background-color: #3F2916;
+ border-bottom:2px solid #999;
+}
+
+.wrapper {
+ width: 900px;
+ margin-top:40px;
+ margin-bottom:100px;
+}
+
+.main {
+ float:left;
+ padding-left: 100px;
+ width: 750px;
+}
+
+.credit {
+ font-style: italic;
+}
+
+.index li {
+ list-style-image: url("/img/icon1.png");
+ list-style-type: square;
+}
+
+.footer {
+ font-size: 13px;
+ clear: both;
+ padding: 25px 0 30px 100px;
+ border-top: 2px solid #999;
+ height: 40px;
+}
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@@ -0,0 +1,20 @@
+---
+title: MongoDB Recipes
+created_at: 2008-08-02 14:06:40.000000 -06:00
+dirty: true
+filter:
+ - erb
+ - textile
+---
+<h1>Recipes</h1>
+
+<% ['patterns', 'operations'].each do |subject| %>
+ <% articles = @pages.find(:all, :in_directory => subject, :recursive => true, :recipe => true) %>
+ <h2><%= subject.capitalize %></h2>
+ <ul>
+ <% articles.each do |article| %>
+ <li><%= link_to_page(article) %></li>
+ <% end %>
+ </ul>
+
+<% end %>
@@ -0,0 +1,34 @@
+---
+title: Sample Ops Recipe
+created_at: 2010-04-19 10:05:24.036546 -04:00
+recipe: true
+author: Kyle Banker
+description: The first ops recipe.
+filter:
+ - erb
+ - markdown
+---
+
+### Problem
+
+You want to be able to:
+
+* List objectives here
+
+### Solution
+
+#### 1. Step 1
+
+Here's a sample code block.
+<% code 'javascript' do %>
+db.foo.find();
+db.foo.hello();
+<% end %>
+
+#### 2. Step 2
+
+### Discussion
+
+Any relevant notes.
+
+### See Also
Oops, something went wrong.

0 comments on commit 73a288b

Please sign in to comment.