Skip to content

Instantly share code, notes, and snippets.

View Shariar-Hasan's full-sized avatar
😎
Chill

Shariar Hasan Shariar-Hasan

😎
Chill
View GitHub Profile
javascript: (function () {
const requiredUrl =
"http://dev.topofstacksoftware.com/timetrack/user-calendar.php";
if (!window.location.href.startsWith(requiredUrl)) {
alert(`This is not the real Calender URL. Please go here:
${requiredUrl}`);
return;
}
const datalist = document.querySelectorAll(".fc-event");
@Shariar-Hasan
Shariar-Hasan / GlassDoorBlockWallRemover.js
Last active July 8, 2024 05:31
A Script for remove the block wall of glassdoor protection wall and for full scroll functionality
/*
👉👉👉👉Usage:
👉 open inpect tool (ctrl + shift + i or right click + inspect)
👉 click on "console" tab
👉 then paste the whole code there.
👉 BOOM you got your glassdoor full scrollable
👉 hit a Star⭐ if you get some help by this 🥹🥳
👉 Created by : 💥Shariar Hasan - https://github.com/Shariar-Hasan
👉 Medium Blog Link : 💥https://medium.com/@ShariarHasan/unlocking-glassdoor-full-scroll-a-quick-console-trick-d8caa02a242c
@Shariar-Hasan
Shariar-Hasan / Sieve_of_Eratosthenes.js
Created September 7, 2023 22:25
Sieve of Eratosthenes in Javascript
const numberNeeded = 20;
let isPrime = new Array(numberNeeded + 1).fill(true);
isPrime[0] = false; // setting 0 as not prime
isPrime[1] = false; // setting 1 as not prime
function sieve(n) {
let j = 2;
while (j * j <= n) {
if (isPrime[j]) {
for (let i = j * j; i <= n; i += j) {
@Shariar-Hasan
Shariar-Hasan / 1000_Fibonacci_Numbers.js
Created September 7, 2023 22:04
First 1000 FIbonacci Numbers List Dataset
[
0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, 233, 377, 610, 987, 1597, 2584,
4181, 6765, 10946, 17711, 28657, 46368, 75025, 121393, 196418, 317811, 514229,
832040, 1346269, 2178309, 3524578, 5702887, 9227465, 14930352, 24157817,
39088169, 63245986, 102334155, 165580141, 267914296, 433494437, 701408733,
1134903170, 1836311903, 2971215073, 4807526976, 7778742049, 12586269025,
20365011074, 32951280099, 53316291173, 86267571272, 139583862445,
225851433717, 365435296162, 591286729879, 956722026041, 1548008755920,
2504730781961, 4052739537881, 6557470319842, 10610209857723, 17167680177565,
27777890035288, 44945570212853, 72723460248141, 117669030460994,
@Shariar-Hasan
Shariar-Hasan / Tailwind Color List.js
Created September 1, 2023 14:48
A Collection of tailwinds all color list
const tailwindColorList = [
{
value: "slate",
valueList: [
"slate-50",
"slate-100",
"slate-200",
"slate-300",
"slate-400",
"slate-500",
@Shariar-Hasan
Shariar-Hasan / Bd all zillas with division and division id
Last active May 13, 2023 22:28
Here is two array of Bangladesh's all division and zilla objects
const bdDivisions = [
{
name: "Barisal",
id: 1,
},
{
name: "Chattogram",
id: 2,
},
{
@Shariar-Hasan
Shariar-Hasan / All Prime Numbers List.py
Last active February 8, 2023 21:52
A python program for finding all the prime numbers till 10^6
'''
this program is for finding all the prime number till 10^6
if you want to print N'th prime number, type below code in last part of the solve() function
if you want to create more prime numbers, change the power of the big_val variable
`
print(primeList[n-1])
`
'''
def primeMake(big):
sus_prime = 2
@Shariar-Hasan
Shariar-Hasan / salert-library.js
Last active February 4, 2021 16:54
saleart library made by Shariar Hasan
let title='Custom alert box';
let container = document.createElement('div');
container.innerHTML = '<div id="alert-container"><div id="alert-box"><div id="icon"><img id="success" src="https://i.ibb.co/ZW3PqSx/success.png" id="success"><img id="error" src="https://i.ibb.co/K5FxjZR/error.png" alt="error"><img id="warning" src="https://i.ibb.co/yNtxrXd/warning.png" alt="warning"><img id="info" src="https://i.ibb.co/FB7SQ9t/info.png" alt="info"></div><div id="title-bar"> <h3 id="title">'+title+'</h3> </div><div id="text-bar"> <p id="text"></p></div><div id="button"> <button id="btn">OK</button></div></div></div>'
document.body.appendChild(container);
// styling the whole container wrapper
container.style.cssText = `width: 100%;height: 100%;background: rgba(0, 0, 0, 0.5);position: absolute;left: 0;top: 0;display: none;justify-content: center;align-items: center;z-index: 100;`;
@Shariar-Hasan
Shariar-Hasan / randNumGen.js
Created February 2, 2021 14:50
random number generator using function both string and number
// genarate random number with specific digit using function
function randNumber(n){
return Math.floor((Math.random()*10**n)); //if you want n digit random number as a number
}
function randNumString(n){
return (Math.random()*10**n+" ").split('.')[0]; //if you want n digit random number as a string
}
@Shariar-Hasan
Shariar-Hasan / map-filter-find.js
Created February 2, 2021 14:41
use of map,filter,find methods in array
let numbers = [1,2,3,4,5,6,7,8,9,10];
let result1 = numbers.map( (x) => x*10 );
console.log(result1);
let result2 = numbers.filter( (x) => x%2 ); //returns all values that meet the condition
console.log(result2);