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: |
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
// 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
// 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
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
// Generated by Framer (f558e44) | |
import{jsx as _jsx,jsxs as _jsxs}from"react/jsx-runtime";import{addFonts,cx,getFonts,optimizeAppear,optimizeAppearTransformTemplate,resolveLink,RichText,useLocaleInfo,useRouter,useVariantState,withCSS,withFX}from"framer";import{LayoutGroup,motion,MotionConfigContext}from"framer-motion";import*as React from"react";import{MagicFormPro}from"https://framerusercontent.com/modules/gYKOWYcFm4NHTcyHWecZ/VC5eHWAIh0HLtvrCQZBC/MagicFormPro.js";import*as localizedValues from"./BslUIhGKv-0.js";const MagicFormProFonts=getFonts(MagicFormPro);const MotionDivWithFX=withFX(motion.div);const cycleOrder=["egtcdSXtu"];const serializationHash="framer-QZkBq";const variantClassNames={egtcdSXtu:"framer-v-17c9q85"};function addPropertyOverrides(overrides,...variants){const nextOverrides={};variants===null||variants===void 0?void 0:variants.forEach(variant=>variant&&Object.assign(nextOverrides,overrides[variant]));return nextOverrides;}const transitions={default:{damping:60,delay:0,mass:1,stiffness: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 fs = require('fs').promises; | |
const path = require('path'); | |
async function scanDirectory(dir) { | |
let results = ''; | |
async function scan(currentPath) { | |
const files = await fs.readdir(currentPath); | |
for (const file of files) { |