Skip to content

Instantly share code, notes, and snippets.

View NanduBit's full-sized avatar
🌴
On vacation

Nandu NanduBit

🌴
On vacation
View GitHub Profile
/**
* Parses numeric strings that might contain 'K' (thousands) or 'M' (millions).
* Example: "232.7K" => 232700, "1.5M" => 1500000, "500" => 500
* @param {string} valueStr The string value to parse.
* @returns {number} The parsed numeric value. Returns 0 if parsing fails or input is '-'.
*/
function parseNumericValue(valueStr) {
if (!valueStr || typeof valueStr !== 'string') {
return 0;
}
@aamiaa
aamiaa / CompleteDiscordQuest.md
Last active August 17, 2026 05:12
Complete Recent Discord Quest

Caution

As of April 7th 2026, Discord has expressed their intent to crack down on automating quest completion.

Some users have received the following system message:

image

There isn't much I can do to make the script undetected, so use it at your own risk, as you most likely WILL get flagged by doing so.

Complete Recent Discord Quest

@porimol
porimol / linear_search.cpp
Created May 16, 2017 09:27
Linear Search Algorithm Implementation Using C++
/**
* @file linear_search.cpp
* @author Porimol Chandro, CSE 32D, World University of Bangladesh(WUB)
* @date 16/05/2017
*
* @brief Linear Search Algorithm Implementation.
*/
#include <iostream>