Skip to content

Instantly share code, notes, and snippets.

View SajjadAliZaidi's full-sized avatar

Syed Muhammad Sajjad SajjadAliZaidi

View GitHub Profile
"build": "parcel build src/popup.js -d dist/ -o popup - no-minify && npm run copy"
"copy": "cp src/manifest.json dist/ && cp src/popup.html dist/"
"scripts": {
"copy": "cp src/manifest.json dist/ && cp src/popup.html dist/",
"build": "parcel build src/popup.js -d dist/ -o popup - no-minify && npm run copy"
}
ReactDOM.render(<Dummy />, document.getElementById('app'));
@SajjadAliZaidi
SajjadAliZaidi / popup.html
Created August 12, 2021 07:38
Popup.html file for chrome extension
<div id="app"> </div>
@SajjadAliZaidi
SajjadAliZaidi / popup.js
Created August 12, 2021 07:37
Popup.js file for a chrome extension
import Dummy from './Dummy';
import React from 'react';
import ReactDOM from 'react-dom';
@SajjadAliZaidi
SajjadAliZaidi / Dummy.js
Created August 12, 2021 07:30
A dummy react component
import React from 'react';
const Dummy = () => {
return (
<React.Fragment>
<h1>
Hello from Dummy
</h1>
</React.Fragment>
);

MongoDB Cheat Sheet

Show All Databases

show dbs

Show Current Database