Skip to content

Instantly share code, notes, and snippets.

View muhammadyaseen's full-sized avatar
💭
Building ML systems 🤖 🪨

Muhammad Yaseen muhammadyaseen

💭
Building ML systems 🤖 🪨
View GitHub Profile
@muhammadyaseen
muhammadyaseen / .tmux.conf
Created January 7, 2024 14:22
Tmux config for Linux
# Taken from:
# 1/ https://hamvocke.com/blog/a-guide-to-customizing-your-tmux-conf/
# 2/ https://www.rockyourcode.com/copy-and-paste-in-tmux/
# remap prefix from 'C-b' to 'C-a'
unbind C-b
set-option -g prefix C-a
bind-key C-a send-prefix
@muhammadyaseen
muhammadyaseen / minio-us-census-kfp.py
Created October 13, 2023 06:28
MinIO + Kubeflow + Data Download
"""
Adapted from: https://blog.min.io/building-an-ml-data-pipeline-with-minio-and-kubeflow-v2-0/
"""
import kfp
import minio
from kfp.dsl import Output, Dataset, Input
@muhammadyaseen
muhammadyaseen / rekhta-book-download.py
Created August 8, 2022 14:26
Download and Save Rekhta books
"""
Download and save Rekhta.org books as images.
1. Make sure your Chrome browser is closed before running otherwise script will fail.
2. Install selenium (pip install selenium)
3. Install pillow (pip install pillow)
4. Adjust the User directory and User profile values in main()
5. Adjust browser window size in code if requried.
"""
@muhammadyaseen
muhammadyaseen / MyTestEvent.java
Created December 16, 2017 10:12
Code for MyTestEvent and MyTestEventHandler files
package io.myaseen.myflumeapp;
import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;
import org.apache.commons.lang3.SerializationUtils;
import org.apache.flume.Event;
public class MyTestEvent implements Event, Serializable {
@muhammadyaseen
muhammadyaseen / ldr.py
Created October 18, 2016 10:36 — forked from electronut/ldr.py
Display analog data from Arduino using Python (matplotlib animation)
"""
ldr.py
Display analog data from Arduino using Python (matplotlib)
Author: Mahesh Venkitachalam
Website: electronut.in
"""
import sys, serial, argparse
@muhammadyaseen
muhammadyaseen / vector.s
Last active July 28, 2016 13:42
Linear Equations Solver (Guassian-Jordan elimination) implemented in MIPS assembly language
# Linear Equations Solver using Guassian-Jordan elimination
# Syed Usama Jamil CS-037
# Muhammad Yaseen CS-050
# Project ID CA-03
#===========================================================================
.data
dimension : .byte 4
@muhammadyaseen
muhammadyaseen / RiemannSums.cs
Last active July 28, 2016 13:40
Evaluate Riemann Sum for the given function, a good way to convince yourself about integrals
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace RiemannSums
{
class Program
{
static double f( double x)
@muhammadyaseen
muhammadyaseen / SCCB_Arduino.c
Last active February 22, 2023 08:05 — forked from freespace/gist:2585921
Arduino SCCB Driver for OV7670 Camera Module
#define SIO_C 2
#define SIO_D 4
#define SIO_CLOCK_DELAY 100
void setup()
{
pinMode(8,OUTPUT);
// while(1)
// {
@muhammadyaseen
muhammadyaseen / JPEGAndHEX
Created July 5, 2014 04:30
Working with HEX data (jpeg image) coming from Arduino Serial port
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;
using System.IO;
namespace JPEGProcess
{
/// <summary>
@muhammadyaseen
muhammadyaseen / MultipleCams
Created July 5, 2014 04:27
Arduino Mega2560 code for two Cameras working simultaneously
//******************************************************
// Connections : @Yaseen
// RX from MAX3232 to Arduino Serial 1 (TX 1)
// TX from MAX3232 to Arduino Serial 1 (RX 1)
// Vcc from camera to ARduino +5v
// Gnd from camera to Arduino Gnd
//*******************************************************
byte ZERO = 0x00;
byte incomingbyte;