Regex via lex and yacc

Regex via lex and yacc What is a regex? Regular expressions (regex) are patterns used to match character combinations in strings. In JavaScript, regular expressions are also objects. These patterns are used with the exec() and test() methods of RegExp, and with the match(), matchAll(), replace(), search(), and split() methods of String. Why use lex and yacc? Lex and yacc are tools used to generate lexical analyzers and parsers. Lex reads an input stream specifying the lexical analyzer and outputs source code implementing the lexer in C....

June 6, 2024 · 5 min · 930 words · Aum Pauskar

Vim

Sr. No. Command Description 1 :q Quit 2 :q! Quit without saving 3 :w Save 4 :wq Save and quit 5 :wq! Save and quit without saving 6 :e Open file 7 :e! Discard changes 8 :e <filename> Open file 9 :e! <filename> Discard changes 10 :sp Split window horizontally 11 :vsp Split window vertically 12 :q Quit window 13 :tabnew Open new tab 14 :tabn Next tab 15 :tabp Previous tab 16 :tabc Close tab 17 :tabo Close other tabs 18 :tabm Move tab 19 :tabfirst First tab 20 :tablast Last tab 21 :tabe Edit tab 22 :tabfind Find tab 23 :tabclose Close tab 24 :tabonly Close other tabs 25 :tabmove Move tab 26 :tabnext Next tab 27 :tabprevious Previous tab 28 :tabedit Edit tab 29 :set number Show line numbers 30 :set nonumber Hide line numbers 31 :set relativenumber Show relative line numbers 32 :set norelativenumber Hide relative line numbers 33 :set list Show whitespace characters 34 :set nolist Hide whitespace characters 35 :set listchars=tab:>-,trail:....

May 15, 2024 · 2 min · 419 words · Aum Pauskar

Using a plex server for media streaming

Using a plex server for media streaming What is a plex server? Plex is a client-server media player system and software suite comprising two main components. The Plex Media Server desktop application runs on Windows, macOS, and Linux-compatibles including some types of NAS devices. The server desktop application organizes video, audio, and photos from a user’s collections and from online services, enabling the players to access and stream the contents....

April 14, 2024 · 2 min · 341 words · Aum Pauskar

Docker

Docker What is docker Docker is a platform for developers and sysadmins to develop, deploy, and run applications with containers. The use of Linux containers to deploy applications is called containerization. Containers are not new, but their use for easily deploying applications is. Why docker Consistency: Docker provides a consistent environment for your application from development all the way through production. Isolation: Docker containers are completely isolated. This means that your application will run the same way no matter where it is deployed....

March 31, 2024 · 8 min · 1594 words · Aum Pauskar

Mern tutorial

MERN Stack Tutorial 01-Running express js Preface Express is a minimal and flexible Node.js web application framework that provides a robust set of features for web and mobile applications. It is an open-source framework developed and maintained by the Node.js foundation. It is designed for building web applications and APIs. It is the standard server framework for Node.js. Before starting with express js, ensure that you have node.js, npm and a code editor installed on your system....

March 29, 2024 · 31 min · 6514 words · Aum Pauskar