Skip to content

Instantly share code, notes, and snippets.

View AnasMK's full-sized avatar

Anas Kanhouch AnasMK

View GitHub Profile
@AnasMK
AnasMK / install_ros_melodic.sh
Created July 28, 2021 11:09
Install ROS Melodic on Ubuntu 18.04 Shell Script
#!/bin/bash
# This script install ROS Melodic and setup catkin workspace
# @author Anas Kanhouch, anas.m.kan@gmail.com
echo "Setup sources.list..."
sleep 1
sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list'
echo "Setup keys..."
@AnasMK
AnasMK / iterm2-solarized.md
Created February 15, 2021 17:23 — forked from kevin-smets/iterm2-solarized.md
iTerm2 + Oh My Zsh + Solarized color scheme + Source Code Pro Powerline + Font Awesome + [Powerlevel10k] - (macOS)

Default

Default

Powerlevel10k

Powerlevel10k

const readUploadedFileAsBase64 = (inputFile) => {
const temporaryFileReader = new FileReader();
return new Promise((resolve, reject) => {
temporaryFileReader.onerror = () => {
temporaryFileReader.abort();
reject(new DOMException("Problem parsing input file."));
};
temporaryFileReader.onload = () => {
#!/usr/bin/python3
#-*- coding: utf-8 -*-
import logging
import timeit
import traceback
import time
import gi
gi.require_version('Gst', '1.0')
@AnasMK
AnasMK / gst-installation-instructions.md
Last active April 17, 2020 17:01
Installing OpenCV 3.4.10 with Gstreamer Support in Python 3.5 On Ubunbtu 16.04

Installing OpenCV 3.4.10 with Gstreamer Support in Python 3.5 On Ubunbtu 16.04

  1. Installing Gstreamer on Ubuntu 16.04
  2. Installing Gstreamer Python bindings
  3. Installing OpenCV from source with Gstreamer support

Step #1. Installing Gstremaer on Ubuntu 16.04

These instructions taken from this tutorial and this docker file
1.