Skip to content

Instantly share code, notes, and snippets.

View zh-betina's full-sized avatar
📖
Studying

Betina Zhou zh-betina

📖
Studying
View GitHub Profile
@a3dho3yn
a3dho3yn / mongodb_c#_cheatsheet.md
Last active June 13, 2024 14:12
MongoDB C# Driver Cheat Sheet

MongoDB C# Driver Cheat Sheet

(C) 2015 by Derek Hunziker, (C) 2017 by AppsOn

As of releasing MongoDB 3.4 and C# Driver v2.4, original cheatsheet by Derek is outdated. In addition, it has some deficiencies like connecting to MongoDB, creating indexes, etc. This updated version works fine with C# Driver v2.4.7 and MongoDB v3.4.

Setup

Define Document Models

Note: Defined models and collections will be used in entire cheatsheet.

@arulprasad
arulprasad / gen_md5.html
Created November 30, 2015 20:11
generate md5 for a file using CryptoJS
<html>
<head>
<title>Get MD5 for a file</title>
<script src="http://crypto-js.googlecode.com/svn/tags/3.1.2/build/rollups/md5.js"></script>
<script type="text/javascript">
function onFileSelect(){
var reader = new FileReader();