Skip to content

Instantly share code, notes, and snippets.

View naviji's full-sized avatar
🎯
Focusing

Naveen naviji

🎯
Focusing
View GitHub Profile
@naviji
naviji / a.mjs
Created February 29, 2024 17:34
const d = {"1": "2"}
export default d
@naviji
naviji / remove_brew-mongo_osx.sh
Created September 27, 2021 16:53 — forked from katychuang/remove_brew-mongo_osx.sh
remove mongodb that was installed via brew
#!/usr/bin/env sh
# first check to see if mongo service is running. you can't delete any files until the service stops so perform a quick check.
launchctl list | grep mongo
# NOTE: the pipe | symbol means the commands on the right performs on the output from the left
# grep is a string search utility. `grep mongo` means search for the substring mongo
# use the unload command to end the mongo service. this is required to 'unlock' before removing the service.
# first look for the file to delete
MONGO_SERVICE_FILE=$(ls ~/Library/LaunchAgents/*mongodb*)
@naviji
naviji / script.js
Created May 22, 2021 18:48
Hello iitk submission downloader
function download_submissions() {
const table = document.getElementsByClassName("assignment_answers")
function get_link(num, table) {
const anchor_link = table[0].rows[num].children[3].innerHTML
const startPos = anchor_link.indexOf(`"`) + 1;
const endPos = anchor_link.indexOf(`"`, startPos);
const link = anchor_link.slice(startPos, endPos);
@naviji
naviji / readme.md
Last active September 10, 2020 08:54
Google Summer of Code - Project Search Engine

What got done

The project consisted of three parts:

  1. Make search better by introducing additional search filters. (e.g., tags, notebook, type)
  2. Make the ranking of search results better by implementing the Okapi BM25 relevance function.
  3. Make fuzzy search possible.

Code contributions

@naviji
naviji / check_plagiarism.py
Created September 9, 2020 11:36
TA CS220
import email
import getpass, imaplib
import os
import sys
import re
import subprocess
# TO DO : Sort the report based on line number.
# TO DO : Make folder structure Lab#/Group#/*.v
@naviji
naviji / gsoc-2020-work-product.md
Last active October 31, 2021 16:41
GSoC 2020 Work Product Submission for Joplin

Naveen M V - GSoC 2020

What got done

The project consisted of three parts:

  1. Make search better by introducing additional search filters. (e.g., tags, notebook, type)
  2. Make the ranking of search results better by implementing the Okapi BM25 relevance function.
  3. Make fuzzy search possible.

Of these, the first two have been merged. The third is nearing completion.

@naviji
naviji / solutions.js
Last active January 27, 2018 08:26
Eloquent Javascript (2nd edition) solutions
// http://eloquentjavascript.net/
// Looping a Triangle
for (var i = 0; i < 7; i++) {
line = '';
while (line.length < i)
line += "#";
console.log(line);
}