Skip to content

Instantly share code, notes, and snippets.

View espoirMur's full-sized avatar
🎯
Focusing

Espoir Murhabazi espoirMur

🎯
Focusing
View GitHub Profile

Pandas

It was created by Wes McKinney which is one the best and the most used Python Library. Most of us started our Python journey by installing Pandas.

Unfortunately, a nine years later after creating the library the founder wrote a post were he shared things he hate about pandas. He confess that he didn't follow the best engineering practices when developing the library and the code was ugly.He highlighted them in this post , they are:

  1. Internals too far from "the metal"
  2. No support for memory-mapped datasets
  3. Poor performance in database and file ingest / export
  4. Warty missing data support
@espoirMur
espoirMur / remarkable_pens_list.md
Last active July 29, 2021 17:45
List of compatible pen with a remarkable

This is a list of compatible pens with the remarkable tablet.

Name Links Build in Eraser Comments
Noris digital here No Working well but the paper feeling is different from the original one
Noris digital jumbo here Yes Havent Tried
@espoirMur
espoirMur / install_nvidia_driver.md
Last active August 18, 2024 14:19
How I fix this issue NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running

I am no longer abe to monitor this post , I have decided to move everything to my personal blog for better monitoring.

Please click here to access the full post

@espoirMur
espoirMur / a_file.txt
Last active March 11, 2020 16:51
Read a file containing integer and return the average of the integer in the file. the file can have path to another file which contain integer.
1
2
3
4
5
another_file.txt
3
4
5
6
@espoirMur
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
@espoirMur
espoirMur / canRate.js
Created February 3, 2019 20:33
Test for rating a given article
const canRate = done => {
request(app)
.post(`/api/v1/post/${post.id}/rating`)
.set('Authorization', `Bearer ${user.token}`)
.send({ userId: user.id, postId: post.id, rating: 4 })
.end((err, res) => {
expect(res.status).toBe(201);
expect(res.body.rating).toBeDefined();
ratingId = res.body.rating.id;
expect(res.body.message).toBe('Post rated successfully');
@espoirMur
espoirMur / nginx_proxy_config.md
Created October 31, 2018 07:41 — forked from soheilhy/nginxproxy.md
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 example1.com, example2.com, and example1.com/images on the same machine using a single IP address.

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

@espoirMur
espoirMur / README-Template.md
Created October 30, 2018 07:30 — forked from PurpleBooth/README-Template.md
A template to make good README.md

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.

Prerequisites

@espoirMur
espoirMur / Python3 Virtualenv Setup.md
Created September 8, 2018 10:20 — forked from pandafulmanda/Python3 Virtualenv Setup.md
Setting up and using Python3 Virtualenv on Mac

Python3 Virtualenv Setup

Requirements
  • Python 3
  • Pip 3
$ brew install python3
@espoirMur
espoirMur / 1. Install python3.6 & pip3.md
Last active February 13, 2022 13:58 — forked from alyssaq/1. Install python3.7 & pip3.md
Python3.6 setup on Mac 10.13 (High Sierra)
  1. Install Python 3.6.x from https://www.python.org/downloads/ 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 get-pip.py from https://bootstrap.pypa.io/get-pip.py and install (this should already be installed if python was installed from python.org or homebrew):