Skip to content

Instantly share code, notes, and snippets.

View espoirMur's full-sized avatar

Espoir Murhabazi espoirMur

View GitHub Profile
#################### INPUT FILES #############
files = tkFileDialog.askopenfilenames()
lst = list(files)
dataframe = pd.DataFrame()
for FileName in lst:
df = pd.read_excel(str(FileName))
#add this to remove white spaces in the Vehicle columns
<html lang="en" >
<style type="text/css">
.progress {
width: 100%;
height: 20px;
.progress-wrap {
background: #00a651;
margin: 20px 0;
overflow: hidden;
espoirMur /
Created March 25, 2018 19:42
Solution about player marking algorithm.
def optimal_markings(input_graph):
The following function will return the most optimal marking for an input graph.
To do it, we will try all possibles markings, and check if they are valid markings by using the previous function.
Once all valid markings are found,
we need to sort them according to the number of the element it required to achieve a full marking.
The most optimal markings are the markings with the lowest number of players.
results_counts = []
espoirMur / pylinter_sublim.txt
Created May 21, 2018 10:30
Install Pylinter In Sublimetext on mac
make sure that pip is installed :
to install pip globaly not in a virtual environment do this
**step 1: download pip**
curl -o
step 2 : install it with sudo :
**sudo python**
espoirMur / 1. Install python3.6 &
Last active February 13, 2022 13:58 — forked from alyssaq/1. Install python3.7 &
Python3.6 setup on Mac 10.13 (High Sierra)
  1. Install Python 3.6.x from or via homebrew.
$ brew install python3   # Installed at /usr/local/Cellar/python3

Check that python3 has been installed by running it at the terminal:

$ python3
>>> Python 3.6.5
  1. Download from and install (this should already be installed if python was installed from or homebrew):
espoirMur / Python3 Virtualenv
Created September 8, 2018 10:20 — forked from pandafulmanda/Python3 Virtualenv
Setting up and using Python3 Virtualenv on Mac

Python3 Virtualenv Setup

  • Python 3
  • Pip 3
$ brew install python3
espoirMur /
Created October 30, 2018 07:30 — forked from PurpleBooth/
A template to make good

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.


espoirMur /
Created October 31, 2018 07:41 — forked from soheilhy/
How to proxy web apps using nginx?

Virtual Hosts on nginx (CSC309)

When hosting our web applications, we often have one public IP address (i.e., an IP address visible to the outside world) using which we want to host multiple web apps. For example, one may wants to host three different web apps respectively for,, and on the same machine using a single IP address.

How can we do that? Well, the good news is Internet browsers

espoirMur / canRate.js
Created February 3, 2019 20:33
Test for rating a given article
const canRate = done => {
.set('Authorization', `Bearer ${user.token}`)
.send({ userId:, postId:, rating: 4 })
.end((err, res) => {
ratingId =;
expect(res.body.message).toBe('Post rated successfully');
espoirMur / .zshrc
Last active January 7, 2020 13:08 — forked from deepu105/.zshrc
My .zshrc
## Usefull configurations
export TERM="xterm-256color" # This sets up colors properly
# set shell
export SHELL=/usr/bin/zsh
# If you come from bash you might have to change your $PATH.
export NODE_PATH=$NODE_PATH:$HOME/.npm-global/lib/node_modules
export JAVA_HOME=/usr/java/latest