Skip to content

Instantly share code, notes, and snippets.

View haizi-zh's full-sized avatar

Haizi Zheng haizi-zh

  • Regeneron Pharmaceuticals
  • Tarrytown
View GitHub Profile
@haizi-zh
haizi-zh / advanced-r.md
Created February 14, 2023 16:58
Advanced R

Resources for Advanced R notes

@haizi-zh
haizi-zh / docker-deployment.md
Created April 29, 2016 16:05
Notes on MongoDB

To deploy our MongoDB instances, we choose to use the official Docker images: MongoDB 3.2

By inspecting into the image, we can easily find that the entry point is: /entrypoint.sh.

Setup the primary node

We need a data volume for better data persistency:

docker run --name mongo1-data -v /data/db busybox
@haizi-zh
haizi-zh / mongodb-lecture-outline.md
Last active February 29, 2016 05:46
MongoDB讲解提纲
  • 简介
    • 基本概念
      • 面向文档
      • db和index
    • 基本操作
      • CRUD
    • 索引管理
  • 高级话题
    • 聚合框架简介
  • Map-reduce简介
@haizi-zh
haizi-zh / elasticsearch-index-management.md
Last active February 5, 2016 17:44
Elasticsearch: Index Management

Index Management

Creation

To create an index, the most easy way is just to put a document to the specified index. The index is created with the default settings, and new fields are added to the type mapping by using dynamic mapping.

If one wants to apply more control over the process, he needs the following API:

PUT /my_index