Skip to content

Instantly share code, notes, and snippets.

View techwithshadab's full-sized avatar
💻
Playing with Data

Shadab Hussain techwithshadab

💻
Playing with Data
View GitHub Profile
# -*- coding: utf-8 -*-
"""
Created on Sun Jan 31 01:30:00 2021
@author: ShadabHussain
"""
import warnings
warnings.filterwarnings("ignore")
import requests
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
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
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
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
chmod 400 streamlit-ec2.pem
ssh -i "streamlit-ec2.pem" ubuntu@<Your Public DNS(IPv4) Address>
@techwithshadab
techwithshadab / math_differential_calculus.ipynb
Created April 20, 2020 20:15
math_differential_calculus
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@techwithshadab
techwithshadab / top-countries-contribution-pygithub.ipynb
Created April 6, 2020 00:14
Top Countries Contribution (PyGithub).ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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.
{
"Afghanistan": [
"Herat",
"Kabul",
"Kandahar",
"Molah",
"Rana",
"Shar",
"Sharif",
"Wazir Akbar Khan"