Skip to content

Instantly share code, notes, and snippets.

View mitbal's full-sized avatar
🏡
Working from home

M Iqbal Tawakal mitbal

🏡
Working from home
View GitHub Profile
import io
import json
import pickle
from datetime import datetime
import numpy as np
import pandas as pd
import seaborn as sns
import matplotlib.pyplot as plt
from kfp.v2 import compiler, dsl
@mitbal
mitbal / plot_filled_text.py
Last active January 1, 2019 15:38
plot_filled_text.py
def plot_filled_text(text='Untitled', percentage=0.5, color='denim blue', ax=None):
fig, ax1 = plt.subplots(figsize=(13, 2));
ax1.text(0, 0, text, fontsize=144, fontweight='bold', color=sns.xkcd_rgb['light grey']);
ax1.axis('off');
ax1.xaxis.set_major_locator(plt.NullLocator());
ax1.yaxis.set_major_locator(plt.NullLocator());
fig.savefig(fname='temp.png', dpi=300, bbox_inches='tight', pad_inches=0);
@mitbal
mitbal / install_caffe.sh
Created July 11, 2016 04:31
Caffe no GPU
# This file will try to install caffe deep learning framework, with cpu only mode
# Tested on Ubuntu 14.04
# Terminate on error
set -e
# Install general dependency
sudo apt-get install libprotobuf-dev libleveldb-dev libsnappy-dev libopencv-dev libhdf5-serial-dev protobuf-compiler
sudo apt-get install --no-install-recommends libboost-all-dev
@mitbal
mitbal / mit_vimrc
Last active August 29, 2015 14:11
My personal vimrc
" See the line number. Very important.
:set number