Skip to content

Instantly share code, notes, and snippets.

View miladabc's full-sized avatar
:bowtie:
Breathing

Milad Abbasi miladabc

:bowtie:
Breathing
View GitHub Profile
{"lastUpload":"2020-04-25T14:43:19.825Z","extensionVersion":"v3.4.3"}
#################################
#
# Backend
#
#################################
# Backend to use: "xrender" or "glx".
# GLX backend is typically much faster but depends on a sane driver.
backend = "glx";
<!DOCTYPE html>
<html>
<head>
<title>Water Agent</title>
<script>
const greenHouse = [
[0, 1, 0],
[1, 0, 1]
];
@miladabc
miladabc / maze.js
Created July 7, 2018 16:45
Finding the first available path in a maze
//Milad Abbasi
//06-07-2018
//Finding the first available path in a maze
var buckets = require('../modules/buckets.js');
var stack = new buckets.Stack();
function Element(row, col, dir) {
this.row = row;
this.col = col;
@miladabc
miladabc / searchSort.cpp
Created July 7, 2018 16:40
Search and Sorting algorithms
//Milad Abbasi
//06-07-2018
//Searching and Sorting algorithms
#include <iostream>
#include <random>
#include <time.h>
#include <string.h>
using namespace std;
@miladabc
miladabc / stackLinkedList.cpp
Created July 7, 2018 16:36
Stack implementation with Linked List
//Milad Abbasi
//06-07-2018
//Stack implementation with Linked List
#include <iostream>
using namespace std;
class Node
{
public:
@miladabc
miladabc / stackArray.cpp
Created July 7, 2018 16:35
Stack implementation with Array
//Milad Abbasi
//06-07-2018
//Stack implementation with Array
#include <iostream>
using namespace std;
#define MAX_SIZE 1000
class Stack
@miladabc
miladabc / singlyLinkedList.cpp
Created July 7, 2018 16:35
Singly Linked List
//Milad Abbasi
//06-07-2018
//Singly Linked List
#include <iostream>
using namespace std;
class Node
{
public:
@miladabc
miladabc / queueLinkedList.cpp
Created July 7, 2018 16:34
Queue implementation with Linked List
//Milad Abbasi
//06-07-2018
//Queue implementation with Linked List
#include <iostream>
using namespace std;
class Node
{
public:
@miladabc
miladabc / queueArray.cpp
Created July 7, 2018 16:34
Queue implementation with Array
//Milad Abbasi
//06-07-2018
//Queue implementation with Array
#include<iostream>
using namespace std;
#define MAX_SIZE 5
class Queue
{