Skip to content

Instantly share code, notes, and snippets.

How to install mobx in create-react-app
1) Run create-react-app.
2) Run npm run eject.
3) Run npm install --saveDev babel-plugin-transform-decorators-legacy.
4) Open package.json, find the "babel" section (line 78 for me), and add 4 lines so it looks like this:
@delwar2016
delwar2016 / connect-vps-server.md
Created November 9, 2016 10:57
How to connect vps server

server ip: server-ip password: password user: root

using SSh command: -> ssh root@server-ip then it will asked for password like bellow root@server-ip's password: write password and press enter

@delwar2016
delwar2016 / mongodbUpdateQuery
Created September 29, 2016 05:34
mongodb update document
Suppose we have the following document in users_exams collection:
{
"answers" : [
{
"auto_score" : 0,
"question_id" : "579733a97e6b58a0616b2c55",
"user_answers" : "na",
"isCorrect" : false,
@delwar2016
delwar2016 / git-common-command.md
Last active June 17, 2021 12:25
Git common command ...
  1. For creating new branch

git checkout -b [new-branch-name]

Example: we want to create new branch named: new-branch-1

git checkout -b new-branch-1

  1. For swicthing existing branch