Skip to content

Instantly share code, notes, and snippets.

View Deshan555's full-sized avatar
💭
I may be slow to respond.

Bloodraven Deshan555

💭
I may be slow to respond.
View GitHub Profile
@Deshan555
Deshan555 / app.jsx
Created February 6, 2025 06:24
This setup provides a responsive Ant Design dashboard with side navigation. Clicking on menu items updates the content dynamically. Let me know if you need additional features! 🚀
import { Layout, Menu } from 'antd';
import { UserOutlined, SettingOutlined, DashboardOutlined, PictureOutlined } from '@ant-design/icons';
import { useState } from 'react';
import "antd/dist/reset.css";
const { Header, Sider, Content } = Layout;
const Dashboard = () => <h2>Dashboard Page</h2>;
const Users = () => <h2>Profiles Page</h2>;
const Settings = () => <h2>Settings Page</h2>;
@Deshan555
Deshan555 / index.html
Created April 29, 2024 18:14
Google map Direction Drawing
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="initial-scale=1.0, user-scalable=no">
<meta charset="utf-8">
<title>Directions Service</title>
<style>
/* Always set the map height explicitly to define the size of the div
* element that contains the map. */
#map {
@Deshan555
Deshan555 / stack.js
Created August 10, 2023 18:06
stack Implementation of Javascript
/*
Stacks Follow Princiles of : LIFO
Push: Add an element to the top of a stack
Pop: Remove an element from the top of a stack
IsEmpty: Check if the stack is empty
IsFull: Check if the stack is full
Peek: Get the value of the top element without removing it
*/
class Stacks{
@Deshan555
Deshan555 / queue.js
Created August 10, 2023 18:05
Queue Implementation of Javascript
/*
Enqueue: Add an element to the end of the queue
Dequeue: Remove an element from the front of the queue
IsEmpty: Check if the queue is empty
IsFull: Check if the queue is full
Peek: Get the value of the front of the queue without removing it
*/
class queue{
constructor() {
@Deshan555
Deshan555 / hashmap.js
Created August 10, 2023 18:04
Hashmap implementation of Javascript
var hashmap = new Map(
[
["aa1689", "deshan jayashanka"],
["aa5678", "rashmi wijayawardana"],
["aa1234", "laksisis gunarathna"],
["aa1345", "amandi kavindya"],
]);
console.log(hashmap);
@Deshan555
Deshan555 / ans.py
Last active August 11, 2022 04:34
rainfall_mi is a string that contains the average number of inches of rainfall in Michigan for every month (in inches) with every month separated by a comma. Write code to compute the number of months that have more than 3 inches of rainfall. Store the result in the variable num_rainy_months. In other words, count the number of items with values…
rainfall_mi = "1.65, 1.46, 2.05, 3.03, 3.35, 3.46, 2.83, 3.23, 3.5, 2.52, 2.8, 1.85"
num_rainy_months = 0
data_sheet: list = rainfall_mi.split(", ")
for x in data_sheet:
conv = float(x)
@Deshan555
Deshan555 / index.html
Created July 29, 2022 15:46
Personal Portfolio Webpage
<header>
<div class="container mb-4 mb-lg-5">
<nav class="mynavbar border-bottom justify-content-md-start">
<a class="mynavbar-link" href="#about">About</a>
<a class="mynavbar-link" href="#portfolio">Portfolio</a>
</nav>
</div>
</header>
@Deshan555
Deshan555 / index.html
Created July 29, 2022 14:50
Text Glitch
<div class="content" id="title">Hello World</div>
<div class="content" id="text">numinous euro-pop hacker plastic geodesic realism sprawl. Tokyo tube assassin fetishism concrete weathered San Francisco. human receding tiger-team disposable gang sunglasses office. receding woman warehouse girl ablative claymore mine singularity. neon urban tanto wonton soup cardboard Chiba courier. face forwards rebar saturation point free-market artisanal camera human. systemic realism engine geodesic warehouse digital sprawl. city post- urban franchise nodality neon dome.
systema pre- Legba otaku bicycle otaku table. silent neural smart- narrative fluidity into tower. engine drone denim garage chrome pen shanty town. corporation -ware industrial grade uplink shoes drone concrete. math- industrial grade sensory A.I. hotdog neon dead. San Francisco cyber- advert into vinyl Shibuya pistol. towards marketing weathered pre- corrupted tattoo artisanal. drone 3D-printed lights euro-pop sentient tower urban.
</div>
<div class="co
@Deshan555
Deshan555 / Book.csv
Last active July 1, 2022 10:24
Linear Regressin Model Example 01.ipynb
videos views
channel1 30 34000
channel2 40 41000
channel3 50 42500
channel4 60 54300
channel5 70 56000