Skip to content

Instantly share code, notes, and snippets.

View quickgrid's full-sized avatar

Asif Ahmed quickgrid

View GitHub Profile
@quickgrid
quickgrid / cppStlDfsImplementationConnectedComponenetCount.cpp
Created May 26, 2016 20:04
Inputting and Representing unweighted graph in C++ STL vector lists. Easy implementation of Depth first search ( DFS ) with connected components count.
/**
* Author: Asif Ahmed
* Site: http://quickgrid.blogspot.com
* Description: Inputting and Representing unweighted graph in C++ STL vector lists.
* Easy implementation of Depth first search ( DFS ) with connected
* components count.
*/
#include<bits/stdc++.h>
@quickgrid
quickgrid / cppBfsGraphTraversalShortestPathImplementation.cpp
Created May 26, 2016 19:44
C++ easy Graph BFS Traversal with shortest path finding for undirected graphs and shortest path retracing thorough parent nodes.
/**
* Author: Asif Ahmed
* Site: http://quickgrid.blogspot.com
* Description: C++ easy Graph BFS Traversal with shortest path finding for undirected graphs
* and shortest path retracing thorough parent nodes.
*/
#include<bits/stdc++.h>
using namespace std;
@quickgrid
quickgrid / WeightedUndirectedAdjacencyListGraphVectorListImplementation.cpp
Created May 16, 2016 16:18
Inputting and Representing an Weighted Undirected graph in adjacency list in vector of list structure. Easy C++ STL implementation and explanation based on visual representation.
/**
* Author: Asif Ahmed
* Site: http://quickgrid.blogspot.com
* Description: Inputting and Representing an Weighted Undirected graph
* in adjacency list vector list pair using C++ STL.
*/
#include<bits/stdc++.h>
using namespace std;
@quickgrid
quickgrid / UnweightedUndirectedAdjacencyListGraph.cpp
Last active May 16, 2016 16:19
Inputting and Representing an Unweighted Undirected graph in adjacency list in vector of vector structure. Easy C++ STL implementation and explanation based on visual representation.
/**
* Author: Asif Ahmed
* Site: http://quickgrid.blogspot.com
* Description: Inputting and Representing an Unweighted Undirected graph
* in adjacency list using C++ STL.
*/
#include<bits/stdc++.h>
using namespace std;
@quickgrid
quickgrid / UnweightedDirectedAdjacencyListGraph.cpp
Last active November 16, 2016 15:44
Inputting and Representing an Unweighted Directed graph in adjacency list using C++ STL easy implementation and explanation based on visual representation.
/**
* Author: Asif Ahmed
* Site: http://quickgrid.blogspot.com
* Description: Inputting and Representing an Unweighted Directed graph
* in adjacency list using C++ STL.
*/
#include<bits/stdc++.h>
using namespace std;
@quickgrid
quickgrid / WeightedDirectedAdjacencyListGraph.cpp
Last active July 8, 2021 22:23
Inputting and Representing an Weighted Directed graph in adjacency list using C++ STL easy implementation and explanation based on visual representation.
/**
* Author: Asif Ahmed
* Site: http://quickgrid.blogspot.com
* Description: Inputting and Representing an Weighted Directed graph
* in adjacency list vector of vector using C++ STL.
*/
#include<bits/stdc++.h>
using namespace std;
@quickgrid
quickgrid / WeightedUndirectedAdjacencyListGraph.cpp
Last active August 19, 2017 19:57
Inputting and Representing an Weighted undirected graph in adjacency list using C++ STL easy implementation and explanation based on visual representation.
/**
* Author: Asif Ahmed
* Site: http://quickgrid.blogspot.com
* Description: Inputting and Representing an Weighted undirected graph
* in adjacency list vector of vector using C++ STL.
*/
#include<bits/stdc++.h>
using namespace std;
@quickgrid
quickgrid / ArduinoGateOpenClosingSystemServoBuzzerLED.ino
Last active April 18, 2016 22:31
Arduino Parking Gate Open Closing System with LED, Buzzer and Servo.
/*
* Author: Asif Ahmed
* Site: https://quickgrid.blogspot.com
* Description: I can not guratee that this code is bug free.
* This is a continuous gate opening and closing system
* with buzzer and LED to notify gate openings.
*/
#include<Servo.h>
@quickgrid
quickgrid / index.html
Created April 14, 2016 21:25
Blogger Permalink Fixer Firebase App with Clipboard JS
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
<meta name="description" content="http://quickgrid.blogspot.com">
<meta name="author" content="Asif Ahmed">
<link rel="icon" href="favicon.ico">
@quickgrid
quickgrid / app.js
Created April 14, 2016 20:12
Simple chrome clock app using konva JS framework Konva app javascript file.
/**
* Author: Asif Ahmed
* Site: http://quickgrid.blogspot.com
*/
(function(){
'use strict';
var width = window.innerWidth;
var height = window.innerHeight;