Skip to content

Instantly share code, notes, and snippets.

View saadh393's full-sized avatar

Saad Hasan saadh393

View GitHub Profile
const strings = document.querySelectorAll(".string");
const toUpdate = ['react-redux"', 'showInterest"', 'এনরোল করুন"', 'আগ্রহী"'];
strings.forEach((string, index) => {
let text = toUpdate.shift().split("");
string.innerHTML = '"';
setTimeout(function () {
let interval = setInterval(function () {
text.length ? (string.innerHTML += text.shift()) : clearInterval(interval);
}, 100);
}, index * 1500);
// Toggle Functionality
// Initializations
const sideNavContainer = document.getElementById('sidenavContainer');
const backdropContainer = document.getElementById('backdropContainer');
const scrollToNone = document.getElementById('scrollToNone');
const autofocusInput = document.getElementById('autofocusInput');
let drawerState = false;
function openNav() {
// Number
typeof(100) // output : "number"
// BigInt
typeof(100n) // output : "bigint"
def bublesort(list):
n = len(list)
# [3,1,9,5,7,2]
for i in range (0,n-1):
for j in range (0, n-i-1):
if list[j] > list[j+1]:
list[j], list[j+1] = list[j+1], list[j]
if __name__ == "__main__":
list = [3,1,9,5,7,2]
def sortedlist(list):
n = len(list)
for i in range (0, n-1):
index = i
for j in range (i+1, n):
if list[j] < list[index]:
index = j
if index != i: