This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Container Management Commands | |
// docker create image [Create the container] | |
// docker run image [start the image] | |
// docker start container [start the container] | |
// docker stop container [graceful stop] | |
// docker kill container [kill container] | |
// docker restart container [stop + start] | |
// docker pause container [suspends container] | |
// docker unpause container [resume container] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// I used Datagrip in my crash course, but you can use the mongodb shell and you'll ge tthe same results. | |
//Friday, 18th June, 2021 | |
//mongoDB basic commands and queries | |
//To show all databases | |
show dbs | |
//To switch(choose) a database | |
use sampleDatabase |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Add this code snippet to your settings.json file: | |
"emmet.includeLanguages": { | |
"javascript": "javascriptreact" | |
}, | |
"emmet.triggerExpansionOnTab": true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import dash | |
from dash.dependencies import Input, Output | |
import dash_core_components as dcc | |
import dash_html_components as html | |
from pandas_datareader import data as web | |
from datetime import datetime as dt | |
app = dash.Dash('Hello World', | |
external_stylesheets=['https://codepen.io/chriddyp/pen/bWLwgP.css']) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import urllib2 | |
gh_url = 'https://api.github.com' | |
req = urllib2.Request(gh_url) | |
password_manager = urllib2.HTTPPasswordMgrWithDefaultRealm() |