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 / main.cpp
Created February 1, 2014 15:24
Code for thread on SFML forums
//main.cpp file
#include <iostream>
#include <Box2D/Box2D.h>
#include <SFML/Graphics.hpp>
#include <ctime>
#include <string>
#include <stdio.h>
#include <vector>
#include "SFMLDebugDraw.h"
@muhammadyaseen
muhammadyaseen / JPEG-To-HEX
Last active August 29, 2015 14:02
This program writes the HEX representation of a JPEG image to the Console Window
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
namespace JPEGProcess
{
/// <summary>
/// This program writes the HEX representation of a JPEG image to the Console Window
@muhammadyaseen
muhammadyaseen / DataPackets
Last active August 29, 2015 14:02
Demonstrates creation on data packets from JPEG and reassembling of data packets into JPEG
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
namespace JPEGProcess
{
/// <summary>
/// Can be used to:
@muhammadyaseen
muhammadyaseen / LinkSpriteCam
Created June 25, 2014 11:35
Adapted example from linksprite site, it transfers JPEG image taken from camrea to Arduino Serial port and from there -through USB- to Computer
//*******************************************************
// www.linksprite.com
// Note:
// 1. SD must be formated to FAT16
// 2. As the buffer of softSerial1 has 64 bytes,
// so the code read 32 bytes each time
// 3. Please add the libaray to the lib path
//
// * SD card attached to SPI bus as follows:
// * MOSI - pin 11
@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;
@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 / 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 / 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 / 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 / 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