This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
👉👉👉👉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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
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, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const tailwindColorList = [ | |
{ | |
value: "slate", | |
valueList: [ | |
"slate-50", | |
"slate-100", | |
"slate-200", | |
"slate-300", | |
"slate-400", | |
"slate-500", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const bdDivisions = [ | |
{ | |
name: "Barisal", | |
id: 1, | |
}, | |
{ | |
name: "Chattogram", | |
id: 2, | |
}, | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''' | |
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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;`; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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 | |
} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | |
NewerOlder