Skip to content

Instantly share code, notes, and snippets.

View Kabongosalomon's full-sized avatar
💪
Learning

Salomon Kabongo Kabongosalomon

💪
Learning
View GitHub Profile
*.iml
.gradle
/local.properties
/.idea/workspace.xml
/.idea/libraries
.DS_Store
/build
/captures
.externalNativeBuild
@Kabongosalomon
Kabongosalomon / FuelConsumption.csv
Created September 25, 2018 20:47
Created on Cognitive Class Labs
MODELYEAR MAKE MODEL VEHICLECLASS ENGINESIZE CYLINDERS TRANSMISSION FUELTYPE FUELCONSUMPTION_CITY FUELCONSUMPTION_HWY FUELCONSUMPTION_COMB FUELCONSUMPTION_COMB_MPG CO2EMISSIONS
2014 ACURA ILX COMPACT 2 4 AS5 Z 9.9 6.7 8.5 33 196
2014 ACURA ILX COMPACT 2.4 4 M6 Z 11.2 7.7 9.6 29 221
2014 ACURA ILX HYBRID COMPACT 1.5 4 AV7 Z 6 5.8 5.9 48 136
2014 ACURA MDX 4WD SUV - SMALL 3.5 6 AS6 Z 12.7 9.1 11.1 25 255
2014 ACURA RDX AWD SUV - SMALL 3.5 6 AS6 Z 12.1 8.7 10.6 27 244
2014 ACURA RLX MID-SIZE 3.5 6 AS6 Z 11.9 7.7 10 28 230
2014 ACURA TL MID-SIZE 3.5 6 AS6 Z 11.8 8.1 10.1 28 232
2014 ACURA TL AWD MID-SIZE 3.7 6 AS6 Z 12.8 9 11.1 25 255
2014 ACURA TL AWD MID-SIZE 3.7 6 M6 Z 13.4 9.5 11.6 24 267
@Kabongosalomon
Kabongosalomon / Forward_Search.py
Created December 6, 2019 12:00
Wrapper Method for feature Selection, Forward Search
import numpy as np
import ipdb
class KFoldXV():
def __init__(self, folds=5) :
self.folds = folds
"""
Input :
-----
data : input dataset as tupple (X,y)
@Kabongosalomon
Kabongosalomon / Backward_Search.py
Created December 6, 2019 12:13
Wrapper Method for feature Selection, Backward Search
import numpy as np
import ipdb
class KFoldXV():
def __init__(self, folds=5) :
self.folds = folds
"""
Input :
-----
data : input dataset as tupple (X,y)
@Kabongosalomon
Kabongosalomon / gdrive.sh
Last active July 26, 2021 18:10
A script to download content from a google drive link. How to use : bash gdrive.sh <comple-google-driv-link>
#!/bin/bash
gfile=$1
# gfile_ID=(${gfile//// })
gfile_ID=$1
# f1 = ${f1_[0]}
echo "Make sure you extract the file ID from the google link"
echo "e.g. from https://drive.google.com/open?id=1kKWoV0QCbeIuFt85beQgJ4v0lujaXobJ extract 1kKWoV0QCbeIuFt85beQgJ4v0lujaXobJ"
echo "The code then is run as follow : bash gdrive.sh 1kKWoV0QCbeIuFt85beQgJ4v0lujaXobJ"
@Kabongosalomon
Kabongosalomon / whatsapp_status_spliter.py
Last active August 7, 2021 19:44
Whatsapp status 30s splitter :).
#!/usr/bin/env python
"""
Whatsapp status 30s splitter by Salomon Kabongo
"""
import argparse
import os
import moviepy.editor as mpy
@Kabongosalomon
Kabongosalomon / replace_vowels.py
Last active January 24, 2022 11:43
A Python program that replace all the vowels in the string e.g: “National Center for Supercomputing Applications” by their corresponding order number in alphabetical sequence (a with 1, e with 5, etc). Print the resulting string and the total number of consonants in the given string.
import argparse
if __name__ == '__main__':
parser = argparse.ArgumentParser(
description="A Python code to replace vowel by numbers corresponding to alphabetical order ")
parser.add_argument("-string", "--string_txt", default="National Center for Supercomputing Applications")
args = parser.parse_args()
@Kabongosalomon
Kabongosalomon / docker-allias
Created March 2, 2022 16:21
Aliases for daily work with Docker (you may need to add sudo into "docker-compose") this need to be added in .bashrc
alias dsa='docker stop $(docker ps -a -q)' # Docker stop all
alias dc='docker-compose'
alias dcu='dc up'
alias dcuf='dc up --force-recreate'
alias dcd='dc down'
alias dcs='dc start'
alias dcr='dc restart'
alias dcst='dc stop'
alias dcb='dc build' # Docker compose build
alias dil='docker image ls' # Docker image list
@Kabongosalomon
Kabongosalomon / color-terminal
Created March 7, 2022 15:26
This code should be pasted on your bashrc or .zshrc to show custum color and include branch name in your terminal
parse_git_branch() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/'
}
export PS1="\[\033[1;32m\]\u\[\033[m\]@\[\033[1;36m\]\h:\[\033[93m\]\w\[\033[31m\]\$(parse_git_branch)\[\033[00m\] \n$ "
@Kabongosalomon
Kabongosalomon / .zshrc
Created April 25, 2023 16:44
My local zshrc config
# Load the 'git' plugin
source /opt/homebrew/share/zsh-autosuggestions/zsh-autosuggestions.zsh
function parse_git_branch() {
git branch 2> /dev/null | sed -n -e 's/^\* \(.*\)/[\1]/p'
}
COLOR_DEF=$'%f'
COLOR_USR=$'%F{32}'
COLOR_DIR=$'%F{149}'