Skip to content

Instantly share code, notes, and snippets.

View ronalddas's full-sized avatar
🎯
Focusing

Ronald Das ronalddas

🎯
Focusing
View GitHub Profile
@ronalddas
ronalddas / ubuntu-gl502vs.md
Created March 15, 2017 19:09 — forked from GMMan/ubuntu-gl502vs.md
Problems and Solutions for Ubuntu 16.04 LTS on ASUS ROG GL502VS Laptop

Problems and Solutions for Ubuntu 16.04 LTS on ASUS ROG GL502VS Laptop

NVIDIA Graphics

Nouveau does not appear to support Pascal cards right now, so you should use the proprietary NVIDIA driver, available from the Additional Drivers applet.

Panel Dithering

@ronalddas
ronalddas / Programs.c
Created September 18, 2016 15:54
Infix to Prefix and Evaluation of Prefix
/* Infix to prefix*/
#include<stdio.h>
#include<ctype.h>
#include<string.h>
# define max 100
void push(char stack[],int * top,char c)
{
if(*top==max-1)
@ronalddas
ronalddas / week1.v
Created August 11, 2016 04:59
Verilog Code for the Week1 of Logic Design Lab, Contains 1 Example and 2 Questions
/**** Example 1 **/
module lab1(x1,x2,x3,f);
input x1,x2,x3;
output f;
and(g,x1,x2);
not(h,x2);
and(k,h,x3);
or(f,g,k);
endmodule
@ronalddas
ronalddas / RedColor01.cpp
Created February 7, 2016 11:13
Almost complete
#include<highgui/highgui.hpp>
#include<iostream>
#include<imgproc/imgproc.hpp>
#include<core/core.hpp>
#include<stdio.h>
#include<stdlib.h>
using namespace cv;
using namespace std;
@ronalddas
ronalddas / RedColor.cpp
Created February 5, 2016 14:52
Source code ( Still working)
#include<highgui/highgui.hpp>
#include<iostream>
#include<imgproc/imgproc.hpp>
#include<core/core.hpp>
using namespace cv;
using namespace std;
int main(int argc , char **argv)
{
@ronalddas
ronalddas / BattleShip.py
Created December 15, 2015 09:43
A Battleship game made with Python
from random import randint
board = []
for x in range(5):
board.append(["O"] * 5)
def print_board(board):
for row in board:
print " ".join(row)
@ronalddas
ronalddas / FunctionValuePass.ccp
Created December 14, 2015 14:11
Different ways of passing values to function
/*Passing Results of one function to another function
It is easy... Damn, I dont i Tinker with my code more often
I only realised this after doing Python course on Codecadmy
*/
#include <iostream>
using namespace std;
int add_Number(int a , int b)
{
@ronalddas
ronalddas / SEAARASU.CPP
Last active November 22, 2015 17:57
Sereja has an array A of N positive integers : A[1], A[2], A[3], ... , A[N]. In a single operation on the array, he performs the following two steps : Pick two indices i, j s.t. A[i] > A[j] A[i] -= A[j] Sereja can apply these operations any number of times (possibly zero), such that the sum of resulting elements of the array is as small as possi…
#include <iostream>
using namespace std;
int main(void)
{
int tcn=0,sum[10],sm=0,i=0,j=0,k=0,no=0,a[100000];
//No. of tc;
do{
cin>>tcn;
@ronalddas
ronalddas / OOP_RemoveDuplicate.cpp
Last active November 17, 2015 05:11
A program to input, display and remove duplicates from an integer array using the concept of OOP
#include <iostream>
using namespace std;
class CLASSONE
{
public:
void remDup(int a[],int size)
{
int i , j , k;
@ronalddas
ronalddas / OOP_LinearSearch.cpp
Last active November 17, 2015 04:52
A program to input, display, and search an element using linear search in an integer array using the concept of OOP
#include <iostream>
using namespace std;
class CLASSONE
{
public:
void LinearSearch(int a[],int key,int size)
{
int i,counter =0;