Skip to content

Instantly share code, notes, and snippets.

'''
Using OpenCV takes a mp4 video and produces a number of images.
Requirements
----
You require OpenCV 3.2 to be installed.
Run
----
'''
@ajayguru2
ajayguru2 / clrsSolutions.py
Created February 17, 2018 20:38
For downloading the solutions to the famous CLRS quickly and without any hassle. Save your time and willpower
# http://sites.math.rutgers.edu/~ajl213/CLRS/Ch1.pdf
import requests
count = int(input("Enter the Chapter number"))
try:
@ajayguru2
ajayguru2 / xorCalculator.cpp
Created January 24, 2018 06:36
Calculating XOR of array
#include <iostream>
int main(){
std::cout<<"Enter the Array"<<std::endl;
int array[5];
int result;
result = 0;
for (int i = 0; i < 5; ++i) {
std::cin>>array[i];
@ajayguru2
ajayguru2 / 99Bottles.cpp
Created October 17, 2017 09:41
Implementation of the song 99 bottles of beer in cpp
//
// Created by Ajay Guru on 10/17/17.
//
#include <iostream>
using namespace std;
template<bool small, int I>
@ajayguru2
ajayguru2 / roundRobin.py
Created October 17, 2017 09:16 — forked from Makistos/roundRobin.py
A round-robin algorithm implementation written in Python. #round-robin #scheduling #algorithm #python
#!/usr/bin/python
div1 = ["Lions", "Tigers", "Jaguars", "Cougars"]
div2 = ["Whales", "Sharks", "Piranhas", "Alligators"]
div3 = ["Cubs", "Kittens", "Puppies", "Calfs"]
def create_schedule(list):
""" Create a schedule for the teams in the list and return it"""
s = []