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 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); |
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
// 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() { |
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
// Number | |
typeof(100) // output : "number" | |
// BigInt | |
typeof(100n) // output : "bigint" |
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
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] |
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
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: |