Skip to content

Instantly share code, notes, and snippets.

View CarlosBalladares's full-sized avatar
🚀
refactoring

carlosbf CarlosBalladares

🚀
refactoring
View GitHub Profile

Aligning images

This is a guide for aligning images.

See the full Advanced Markdown doc for more tips and tricks

left alignment

@dhammikamare
dhammikamare / Contest_Guide.md
Last active April 15, 2024 05:35 — forked from shashank21j/Contest_Guide.md
Tutorial for create your own contest on HackerRank.
@mpalmerlee
mpalmerlee / documentModel.js
Last active April 2, 2018 21:12
Save MongoDB Document With Concurrent Edit Protection
var mongoose = require("mongoose");
var ObjectId = mongoose.Schema.Types.ObjectId;
//create schema for a post
var PostSchema = new mongoose.Schema({
nonce: ObjectId, //this is used for protecting against concurrent edits: http://docs.mongodb.org/ecosystem/use-cases/metadata-and-asset-management/
name: String,
dateCreated: { type: Date, default: Date.now },
dateLastChanged: { type: Date, default: Date.now },
postData: mongoose.Schema.Types.Mixed