Skip to content

Instantly share code, notes, and snippets.

import MobileSidebar from "./MobileSidebar";
import search from "../assets/svgs/search-normal.svg";
import notification from "../assets/svgs/nav-notification.svg";
import Image from "next/image";
import { useRouter } from "next/router";
export const Navbar = () => {
const router = useRouter();
console.log(router.pathname);
const profilePic =
import React, { useState } from 'react';
import { AiOutlineMenu } from 'react-icons/ai';
import Sidebar from './Sidebar';
const MobileSidebar = () => {
const [isOpen, setIsOpen] = useState(false);
const toggleSidebar = () => {
setIsOpen(!isOpen);
};
import { ErrorBoundary } from "react-error-boundary";
import Sidebar from "./Sidebar";
import { Navbar } from "./Navbar";
interface DashboadLayoutProps {
children: React.ReactNode;
}
const DashboadLayout = ({ children }: DashboadLayoutProps) => {
return (
import { usePathname } from "next/navigation";
import Link from "next/link";
import { MdTimeline } from "react-icons/md";
import { IoIosPeople } from "react-icons/io";
import { FaCalendarDays, FaX } from "react-icons/fa6";
import { SlLogout, SlSettings } from "react-icons/sl";
import { cn } from "@/lib/utils";
interface SidebarProps {
onClickX?: () => void;
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
int main()
{
printf(" Truth Table\n");
printf("----------------------------------------\n");
printf("| x | y | x AND y | x OR y | NOT x |\n");
printf("----------------------------------------\n");
@The-CodeINN
The-CodeINN / solution.js
Created July 25, 2021 22:40
Solution to a leetcode problem by I4G
const L = {'2':"abc",'3':"def",'4':"ghi",'5':"jkl",
'6':"mno",'7':"pqrs",'8':"tuv",'9':"wxyz"}
var letterCombinations = function(D) {
let len = D.length, ans = []
if (!len) return []
const bfs = (pos, str) => {
if (pos === len) ans.push(str)
else {
let letters = L[D[pos]]
# M CHADO-CODEINN practice
import turtle
import time
wn = turtle.Screen()
wn.title("A demo traffic light")
wn.bgcolor("black")