Skip to content

Instantly share code, notes, and snippets.

@MikyStar
MikyStar / VIM-CheatSheet.md
Last active January 7, 2020 22:26
VIM CheatSheet

VIM CheatScheet

Default bindings

Browsing

Ctrl+W -> Enter window mode Ctrl+W, HJKL -> Browse splits Ctrl+W, R -> Rotate up/left Ctrl+W, r -> Rotate down/right

// Defining the structure of a JSON
/**
* @typedef TestType
* @property { string } fonctional
* @property { number } unitaire
* @property { 'left' | 'right' | 'nowhere' } direction - Makes autosuggestion on direction
*/
/*************************************************************************************
Then we just have to import the file where this JSDoc is to get access to its JSDoc
@MikyStar
MikyStar / React-Native.code-snippets
Created November 8, 2018 10:14
Customs React-Natives snippets
{
"Class-Component":
{
"prefix": "RN-ClassComponent",
"body":
[
"import React, { Component } from 'react';",
"\n",
"class ${TM_FILENAME_BASE} extends Component",
"{",

Usefull informations

Image

An Image is a snapshot of one or multiple Containers

Container

It can be a name, the container full id or just a the begining string from container id long enough to be different from other containers on the machine

Commands

Create the environment

mongod --dbpath [ Path of the folder where I want my DB ]

Launch the shell