Skip to content

Instantly share code, notes, and snippets.

View adigunturu's full-sized avatar
🍪
Accepting cookies without reading T&C

AdiGunturu adigunturu

🍪
Accepting cookies without reading T&C
View GitHub Profile
@adigunturu
adigunturu / StableMatchingAlgorithm.js
Last active December 6, 2022 08:34
Gale-Shapley Algorithm in Javascript - Stable Matching Problem
/*
Gale-Shapley Algorithm
Stable Matching Problem
Given a set of men M and women W and their preferences, find the stable matching pairs for all men and women
such that no one is left single and has atmost one partner.
While there exists single man m € M who has not proposed to all women in W
man m proposes to the woman w € W from the top of his preference list
@adigunturu
adigunturu / SemanticWebPageParse.js
Last active September 29, 2022 18:12
Sematic Webpage Parse into a human and machine readable structure
var request = require("request");
const cheerio = require('cheerio');
const extractor = require('unfluff');
module.exports = WebpageSemanticParse = function (url) {
return new Promise((resolve, reject) => {
request.get(url, function (error, response, body) {
let unfluffedData = extractor(body);
const url = unfluffedData.canonicalLink;
const { hostname } = new URL(url);
@adigunturu
adigunturu / Detect_Meme_Template_SVM.ipynb
Created December 19, 2021 20:34
Detects the meme templates of funny memes!
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.