This file contains hidden or 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
# -*- coding: utf-8 -*- | |
""" | |
Created on Sun Jan 31 01:30:00 2021 | |
@author: ShadabHussain | |
""" | |
import warnings | |
warnings.filterwarnings("ignore") | |
import requests |
This file contains hidden or 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
git clone https://github.com/shadab-entrepreneur/Quantum-Random-Number-Generator-using-Streamlit.git | |
cd Quantum-Random-Number-Generator-using-Streamlit | |
pip install -r requirements.txt |
This file contains hidden or 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
pip install qsharp | |
dotnet tool install -g Microsoft.Quantum.IQSharp | |
echo "export PATH=\"\$PATH:\$HOME/.dotnet/tools\"" >> ~/.bash_profile | |
/home/ubuntu/.dotnet/tools/dotnet-iqsharp install --user --path-to-tool="/home/ubuntu/.dotnet/tools/dotnet-iqsharp" | |
sudo apt install libgomp1 |
This file contains hidden or 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
wget https://packages.microsoft.com/config/ubuntu/19.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb | |
sudo dpkg -i packages-microsoft-prod.deb | |
wget http://ftp.us.debian.org/debian/pool/main/i/icu/libicu57_57.1-6+deb9u4_amd64.deb | |
sudo dpkg -i libicu57_57.1-6+deb9u4_amd64.deb | |
sudo apt-get update; \ | |
sudo apt-get install -y apt-transport-https && \ | |
sudo apt-get update && \ | |
sudo apt-get install -y dotnet-sdk-3.1 |
This file contains hidden or 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
sudo apt-get update | |
wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O ~/miniconda.sh | |
bash ~/miniconda.sh -b -p ~/miniconda | |
echo "PATH=$PATH:$HOME/miniconda/bin" >> ~/.bashrc | |
source ~/.bashrc |
This file contains hidden or 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
chmod 400 streamlit-ec2.pem | |
ssh -i "streamlit-ec2.pem" ubuntu@<Your Public DNS(IPv4) Address> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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
def plot_save(repo_name): | |
name = repo_name.split("/")[-1] | |
plt.figure(figsize = (30,30)) | |
graph = nx.Graph() | |
graph = mount_graph(repo_name, graph) | |
pos = nx.spring_layout(graph, scale=3) | |
n = graph.number_of_nodes() | |
nx.draw(graph, pos, node_size=40000, node_color=range(n), with_labels=True, font_size=20, font_weight='bold', cmap=plt.cm.Blues) | |
nx.write_graphml(graph, name+"_countries.graphml") |
This file has been truncated, but you can view the full file.
This file contains hidden or 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
{ | |
"Afghanistan": [ | |
"Herat", | |
"Kabul", | |
"Kandahar", | |
"Molah", | |
"Rana", | |
"Shar", | |
"Sharif", | |
"Wazir Akbar Khan" |