repo
stringlengths
8
123
branch
stringclasses
178 values
readme
stringlengths
1
441k
description
stringlengths
1
350
topics
stringlengths
10
237
createdAt
stringlengths
20
20
lastCommitDate
stringlengths
20
20
lastReleaseDate
stringlengths
20
20
contributors
int64
0
10k
pulls
int64
0
3.84k
commits
int64
1
58.7k
issues
int64
0
826
forks
int64
0
13.1k
stars
int64
2
49.2k
diskUsage
float64
license
stringclasses
24 values
language
stringclasses
80 values
Santhoshmani1/Clear-Space
main
null
Browser extension to remove distractions from YT shorts, IG reels and helps to stay focussed.
browser-extension,productivity,javascript,collaborate
2023-10-24T14:50:44Z
2023-11-10T12:58:28Z
null
4
4
24
0
5
12
null
MIT
JavaScript
victor0089/Fix_My_Code_Challenge
main
# Fix_My_Code_Challenge
Fix my code is a new type of project, where we’ll jump into an existing code base and fix it! Sometimes you will know the language, sometimes not
c-programming,javascript,python3,ruby,ruby-on-rails
2023-10-16T07:15:22Z
2023-12-13T08:10:32Z
null
1
0
16
0
2
12
null
MIT
JavaScript
ShahramShakiba/JavaScript-Work-Showcase
main
# JavaScript Work Showcase <img src="https://skillicons.dev/icons?i=js" height="40" width="36" alt="javascript logo" /> <!----------------------------------------- Description ----------------------------------------> ### <img src="https://raw.githubusercontent.com/Tarikul-Islam-Anik/Animated-Fluent-Emojis/master/Emojis/Symbols/Bubbles.png" alt="Bubbles" width="40" height="40" />&nbsp; Description - Over time, I have dedicated myself to creating a diverse range of projects using JavaScript, with the primary goal of pushing the boundaries of my skills in this specific domain. - These projects have not only provided me with a platform for improving my abilities but have also presented me with the opportunity to tackle increasingly complex challenges. - Through this ongoing collection of work, I have been able to continuously test and improve my proficiency in JavaScript, ultimately allowing me to grow and develop as a proficient developer in this field. > Your time and consideration in reviewing my work are greatly appreciated. Please feel free to explore and share your thoughts. ### _List of projects :_ > ✅ Coming Soon Landing Page &nbsp;&nbsp;&nbsp; ✅ Login & Signup Form <br/> > ✅ Sidebar Menu &nbsp;&nbsp;&nbsp; ✅ Responsive Navigation Bar <br/> > ✅ Custom Form Validation &nbsp;&nbsp;&nbsp; ✅ Card Slider <br/> > ✅ Filterable Image Gallery &nbsp;&nbsp;&nbsp; ✅ Custom Captcha Generator <br/> > ✅ OTP Verification Form &nbsp;&nbsp;&nbsp; ✅ Password Validation <br/> > ✅ Popup Share Modal &nbsp;&nbsp;&nbsp; ✅ Drag and Drop List <br/> > ✅ Toggle Light/Dark Mode &nbsp;&nbsp;&nbsp; ✅ Download Button with Timer <br/> > ✅ Pagination &nbsp;&nbsp;&nbsp; ✅ Star Rating System <br/> > ✅ Popup Cookies Consent Box &nbsp;&nbsp;&nbsp; ✅ Toast Notification <br/> > ✅ Range Slider &nbsp;&nbsp;&nbsp; ✅ Show & Hide Password <br/> > ✅ Character Limit &nbsp;&nbsp;&nbsp; ✅ Text Typing Effect <br/> <br/> <!--===================== Coming Soon Page =============================--> ### 💻 Coming Soon Page &nbsp; <img src="https://skillicons.dev/icons?i=html" height="40" width="18" alt="html5 logo" /> <img src="https://skillicons.dev/icons?i=css" height="40" width="18" alt="css3 logo" /> <img src="https://skillicons.dev/icons?i=js" height="40" width="18" alt="javascript logo" /> - A Coming Soon Landing Page is a pre-launch page or placeholder for a page that isn't ready because a product, service, feature, or website hasn't launched yet. - It's a temporary location for visitors to learn more about something before that part of the website is finalized and ready to launch. <img src="https://raw.githubusercontent.com/Tarikul-Islam-Anik/Telegram-Animated-Emojis/main/Objects/Clapper%20Board.webp" alt="Clapper Board" width="35" /> https://github.com/ShahramShakiba/JavaScript-Work-Showcase/assets/110089830/076cb982-d874-40a5-9923-d1866f6be48d <br/> *** <!--======================= Login & Signup Form ===========================--> ### 💻 Login & Signup Form &nbsp; <img src="https://skillicons.dev/icons?i=html" height="40" width="18" alt="html5 logo" /> <img src="https://skillicons.dev/icons?i=css" height="40" width="18" alt="css3 logo" /> <img src="https://skillicons.dev/icons?i=js" height="40" width="18" alt="javascript logo" /> - Login forms are used in almost every website and Application. A login form utilizes the credentials of a user, in order to authenticate their access. - It generally consists of the typical username or email and password. But more fields can be added to improve the site's security. <img src="https://raw.githubusercontent.com/Tarikul-Islam-Anik/Telegram-Animated-Emojis/main/Objects/Clapper%20Board.webp" alt="Clapper Board" width="35" /> https://github.com/ShahramShakiba/JavaScript-Work-Showcase/assets/110089830/d6b7e4e4-0d50-4e0e-8ef8-aa72b594222a <br/> *** <!--======================= Sidebar Menu ===========================--> ### 💻 Sidebar Menu &nbsp; <img src="https://skillicons.dev/icons?i=html" height="40" width="18" alt="html5 logo" /> <img src="https://skillicons.dev/icons?i=css" height="40" width="18" alt="css3 logo" /> <img src="https://skillicons.dev/icons?i=js" height="40" width="18" alt="javascript logo" /> - A sidebar is the combination of several navigation links aligned vertically at the left or right side of the web page. - Sidebar helps users to get into the different webpage through the help of navigation links and they have open and close features. <img src="https://raw.githubusercontent.com/Tarikul-Islam-Anik/Telegram-Animated-Emojis/main/Objects/Clapper%20Board.webp" alt="Clapper Board" width="35" /> https://github.com/ShahramShakiba/JavaScript-Work-Showcase/assets/110089830/7d506e1b-1e28-4873-9008-9390e8234871 <br/> *** <!--======================= Responsive Navigation Bar ===========================--> ### 💻 Responsive Navigation Bar &nbsp; <img src="https://skillicons.dev/icons?i=html" height="40" width="18" alt="html5 logo" /> <img src="https://skillicons.dev/icons?i=css" height="40" width="18" alt="css3 logo" /> <img src="https://skillicons.dev/icons?i=js" height="40" width="18" alt="javascript logo" /> - The main purpose of Navigation Bar is to directly redirect into the web pages by clicking on the hyperlinks as they want. - Another main purpose of the Navigation Bar is to make the user’s works convenient and easier. <img src="https://raw.githubusercontent.com/Tarikul-Islam-Anik/Telegram-Animated-Emojis/main/Objects/Clapper%20Board.webp" alt="Clapper Board" width="35" /> https://github.com/ShahramShakiba/JavaScript-Work-Showcase/assets/110089830/4d8a3c72-fd97-46ce-b1bd-9baa69768299 <br/> *** <!--===================== Custom Form Validation =============================--> ### 💻 Custom Form Validation &nbsp; <img src="https://skillicons.dev/icons?i=html" height="40" width="18" alt="html5 logo" /> <img src="https://skillicons.dev/icons?i=js" height="40" width="18" alt="javascript logo" /> <img src="https://skillicons.dev/icons?i=tailwind" height="40" width="22" alt="tailwindcss logo" /> - In this project, I create a set of functions which can be used to validate a form using the HTML validation attributes that, by default, the browser uses to trigger its own validation. <img src="https://raw.githubusercontent.com/Tarikul-Islam-Anik/Telegram-Animated-Emojis/main/Objects/Clapper%20Board.webp" alt="Clapper Board" width="35" /> https://github.com/ShahramShakiba/JavaScript-Work-Showcase/assets/110089830/b407b264-a9ea-46be-977b-14097022e400 <br/> *** <!--===================== Card Slider =============================--> ### 💻 Card Slider &nbsp; <img src="https://skillicons.dev/icons?i=html" height="40" width="18" alt="html5 logo" /> <img src="https://skillicons.dev/icons?i=css" height="40" width="18" alt="css3 logo" /> <img src="https://skillicons.dev/icons?i=js" height="40" width="18" alt="javascript logo" /> - A card slider means the combination of cards aligned horizontally and has a feature to slide to watch the hidden cards. - The card can contain any content. Like profile cards, e-commerce product cards, blogs card, and others. <img src="https://raw.githubusercontent.com/Tarikul-Islam-Anik/Telegram-Animated-Emojis/main/Objects/Clapper%20Board.webp" alt="Clapper Board" width="35" /> https://github.com/ShahramShakiba/JavaScript-Work-Showcase/assets/110089830/8f459ab0-12dd-4cfd-b15b-23705bc0d8c8 <br/> *** <!--===================== Filterable Image Gallery =============================--> ### 💻 Filterable Image Gallery &nbsp; <img src="https://skillicons.dev/icons?i=html" height="40" width="18" alt="html5 logo" /> <img src="https://skillicons.dev/icons?i=css" height="40" width="18" alt="css3 logo" /> <img src="https://skillicons.dev/icons?i=js" height="40" width="18" alt="javascript logo" /> <img src="https://cdn.jsdelivr.net/gh/devicons/devicon/icons/bootstrap/bootstrap-original.svg" height="40" width="22" alt="bootstrap logo" /> - A filterable image gallery is a type of image gallery that allows users to filter or sort the displayed images based on certain categories or tags. - This is one of the essential elements on today’s website, as it allows users to easily find the images they are interested in without having to scroll through a long list of images. <img src="https://raw.githubusercontent.com/Tarikul-Islam-Anik/Telegram-Animated-Emojis/main/Objects/Clapper%20Board.webp" alt="Clapper Board" width="35" /> https://github.com/ShahramShakiba/JavaScript-Work-Showcase/assets/110089830/2646cd0a-65b2-4fb9-9996-09faea32dfb4 <br/> *** <!--===================== Custom Captcha Generator =============================--> ### 💻 Custom Captcha Generator &nbsp; <img src="https://skillicons.dev/icons?i=html" height="40" width="18" alt="html5 logo" /> <img src="https://skillicons.dev/icons?i=css" height="40" width="18" alt="css3 logo" /> <img src="https://skillicons.dev/icons?i=js" height="40" width="18" alt="javascript logo" /> - Captcha stands for “Completely Automated Public Turing test to tell Computers and Humans Apart”. - Captcha is a great way to protect privacy and provides a web experience free from the usability issues that SPAM creates. - Many web services, including Google, use CAPTCHA to help prevent unauthorized account entry. <img src="https://raw.githubusercontent.com/Tarikul-Islam-Anik/Telegram-Animated-Emojis/main/Objects/Clapper%20Board.webp" alt="Clapper Board" width="35" /> https://github.com/ShahramShakiba/JavaScript-Work-Showcase/assets/110089830/c1b4bf06-617e-446a-9bac-05b67186edfd <br/> *** <!--===================== OTP Verification Form =============================--> ### 💻 OTP Verification Form &nbsp; <img src="https://skillicons.dev/icons?i=html" height="40" width="18" alt="html5 logo" /> <img src="https://skillicons.dev/icons?i=css" height="40" width="18" alt="css3 logo" /> <img src="https://skillicons.dev/icons?i=js" height="40" width="18" alt="javascript logo" /> - One-time password (OTP) systems provide a mechanism for logging on to a network or service using a unique password that can only be used once, as the name suggests. - An OTP is more secure than a static password, especially a user-created password, which can be weak and/or reused across multiple accounts. - One of the most common uses of OTPs is the case where a user has forgotten their password, or had their account breached. <img src="https://raw.githubusercontent.com/Tarikul-Islam-Anik/Telegram-Animated-Emojis/main/Objects/Clapper%20Board.webp" alt="Clapper Board" width="35" /> https://github.com/ShahramShakiba/JavaScript-Work-Showcase/assets/110089830/8d81a4f0-4612-4373-89e8-91ce58fa3890 <br/> *** <!--===================== Password Validation =============================--> ### 💻 Password Validation &nbsp; <img src="https://skillicons.dev/icons?i=html" height="40" width="18" alt="html5 logo" /> <img src="https://skillicons.dev/icons?i=css" height="40" width="18" alt="css3 logo" /> <img src="https://skillicons.dev/icons?i=js" height="40" width="18" alt="javascript logo" /> - In today’s digital world, it is important to create strong and secure passwords that are difficult to guess or hack. - This is where password validation or strength checks come into play. - By implementing this password validation feature, website owners can ensure that users create strong passwords that are less likely to be compromised. <img src="https://raw.githubusercontent.com/Tarikul-Islam-Anik/Telegram-Animated-Emojis/main/Objects/Clapper%20Board.webp" alt="Clapper Board" width="35" /> https://github.com/ShahramShakiba/JavaScript-Work-Showcase/assets/110089830/136593a7-6126-48d8-95b7-c4a3270834fc <br/> *** <!--==================== Popup Share Modal ==============================--> ### 💻 Popup Share Modal &nbsp; <img src="https://skillicons.dev/icons?i=html" height="40" width="18" alt="html5 logo" /> <img src="https://skillicons.dev/icons?i=css" height="40" width="18" alt="css3 logo" /> <img src="https://skillicons.dev/icons?i=js" height="40" width="18" alt="javascript logo" /> - A modal window disables most of the page and requires users to focus on a specific window before continuing. - There is a view modal button, when you click on that button then the modal box appears with a popup animation. - In this share modal box, there are some social media icons with pretty cool hover animation and an input box to copy the link. <img src="https://raw.githubusercontent.com/Tarikul-Islam-Anik/Telegram-Animated-Emojis/main/Objects/Clapper%20Board.webp" alt="Clapper Board" width="35" /> https://github.com/ShahramShakiba/JavaScript-Work-Showcase/assets/110089830/8c98b8f0-bd6c-4e7d-9526-e1b483758c33 <br/> *** <!--===================== Drag and Drop List =============================--> ### 💻 Drag and Drop List &nbsp; <img src="https://skillicons.dev/icons?i=html" height="40" width="18" alt="html5 logo" /> <img src="https://skillicons.dev/icons?i=css" height="40" width="18" alt="css3 logo" /> <img src="https://skillicons.dev/icons?i=js" height="40" width="18" alt="javascript logo" /> - Drag and drop sortable lists are a widely used UI element allowing users to reorder items by dragging and dropping them on a desired position. - This functionality can be found in many web applications, like task managers and e-commerce websites. <img src="https://raw.githubusercontent.com/Tarikul-Islam-Anik/Telegram-Animated-Emojis/main/Objects/Clapper%20Board.webp" alt="Clapper Board" width="35" /> https://github.com/ShahramShakiba/JavaScript-Work-Showcase/assets/110089830/5e6e184f-0f3f-409c-90b2-a2798067e05b <br/> *** <!--======================= Toggle Light/Dark Mode ===========================--> ### 💻 Toggle Light/Dark Mode &nbsp; <img src="https://skillicons.dev/icons?i=html" height="40" width="18" alt="html5 logo" /> <img src="https://skillicons.dev/icons?i=css" height="40" width="18" alt="css3 logo" /> <img src="https://skillicons.dev/icons?i=js" height="40" width="18" alt="javascript logo" /> - The dark mode is ideal for reducing eye strain in low-light conditions and conserving battery power. - It might also enhance focus and productivity, particularly for late-night workers. On the other hand, the light mode can improve reading comprehension, speed and might even foster creativity. <img src="https://raw.githubusercontent.com/Tarikul-Islam-Anik/Telegram-Animated-Emojis/main/Objects/Clapper%20Board.webp" alt="Clapper Board" width="35" /> https://github.com/ShahramShakiba/JavaScript-Work-Showcase/assets/110089830/237faa87-4c80-44ee-87d4-4f0c4490a369 <br/> *** <!--===================== Download Button with Timer =============================--> ### 💻 Download Button with Timer &nbsp; <img src="https://skillicons.dev/icons?i=html" height="40" width="18" alt="html5 logo" /> <img src="https://skillicons.dev/icons?i=css" height="40" width="18" alt="css3 logo" /> <img src="https://skillicons.dev/icons?i=js" height="40" width="18" alt="javascript logo" /> - There is a download button that starts the timer for particular seconds, and the file download only after the timer is finished. - Users can easily sync downloaded files from the internet to their computer to anywhere of their own choice. <img src="https://raw.githubusercontent.com/Tarikul-Islam-Anik/Telegram-Animated-Emojis/main/Objects/Clapper%20Board.webp" alt="Clapper Board" width="35" /> https://github.com/ShahramShakiba/JavaScript-Work-Showcase/assets/110089830/afa119d1-b476-4539-90d1-03a8bb01f1a1 <br/> *** <!--===================== Pagination =============================--> ### 💻 Pagination &nbsp; <img src="https://skillicons.dev/icons?i=html" height="40" width="18" alt="html5 logo" /> <img src="https://skillicons.dev/icons?i=css" height="40" width="18" alt="css3 logo" /> <img src="https://skillicons.dev/icons?i=js" height="40" width="18" alt="javascript logo" /> - Pagination is the way of linking a series of pages with related content. - Where a user can use links such as "next", "previous", and page numbers to navigate between pages that display one page of results at a time. <img src="https://raw.githubusercontent.com/Tarikul-Islam-Anik/Telegram-Animated-Emojis/main/Objects/Clapper%20Board.webp" alt="Clapper Board" width="35" /> https://github.com/ShahramShakiba/JavaScript-Work-Showcase/assets/110089830/06310df5-ede0-4c3d-b4e4-c95a129d1408 <br/> *** <!--===================== Star Rating System =============================--> ### 💻 Star Rating System &nbsp; <img src="https://skillicons.dev/icons?i=html" height="40" width="18" alt="html5 logo" /> <img src="https://skillicons.dev/icons?i=css" height="40" width="18" alt="css3 logo" /> <img src="https://skillicons.dev/icons?i=js" height="40" width="18" alt="javascript logo" /> - A star rating system consists of a set of stars that are displayed on a website or application, and users can select a certain number of stars to represent their rating. - It is widely used to allow users to provide feedback or to rate items such as products, movies, or restaurants. <img src="https://raw.githubusercontent.com/Tarikul-Islam-Anik/Telegram-Animated-Emojis/main/Objects/Clapper%20Board.webp" alt="Clapper Board" width="35" /> https://github.com/ShahramShakiba/JavaScript-Work-Showcase/assets/110089830/820007b3-2012-4dcd-9d87-f1f9f1c6306f <br/> *** <!--=================== Popup Cookies Consent Box ===============================--> ### 💻 Popup Cookies Consent Box &nbsp; <img src="https://skillicons.dev/icons?i=html" height="40" width="18" alt="html5 logo" /> <img src="https://skillicons.dev/icons?i=css" height="40" width="18" alt="css3 logo" /> <img src="https://skillicons.dev/icons?i=js" height="40" width="18" alt="javascript logo" /> - Cookies are text files that are sent to your browser by a website you visit. - They assist the website in remembering information about your visit, which can both make it simpler for you to return to the site and increase its usefulness to you. <img src="https://raw.githubusercontent.com/Tarikul-Islam-Anik/Telegram-Animated-Emojis/main/Objects/Clapper%20Board.webp" alt="Clapper Board" width="35" /> https://github.com/ShahramShakiba/JavaScript-Work-Showcase/assets/110089830/55e46c6a-742d-418f-943c-3ab02f4227cf <br/> *** <!--======================= Toast Notification ===========================--> ### 💻 Toast Notification &nbsp; <img src="https://skillicons.dev/icons?i=html" height="40" width="18" alt="html5 logo" /> <img src="https://skillicons.dev/icons?i=css" height="40" width="18" alt="css3 logo" /> <img src="https://skillicons.dev/icons?i=js" height="40" width="18" alt="javascript logo" /> - Toast Notification is the message box that appears from any side of the gadget screen, mainly from the right top side. - The message can be a warning message, error message, or some positive message. <img src="https://raw.githubusercontent.com/Tarikul-Islam-Anik/Telegram-Animated-Emojis/main/Objects/Clapper%20Board.webp" alt="Clapper Board" width="35" /> https://github.com/ShahramShakiba/JavaScript-Work-Showcase/assets/110089830/2b6bced2-a4f8-44ef-a91f-916e45613b28 <br/> *** <!--==================== Range Slider ==============================--> ### 💻 Range Slider &nbsp; <img src="https://skillicons.dev/icons?i=html" height="40" width="18" alt="html5 logo" /> <img src="https://skillicons.dev/icons?i=css" height="40" width="18" alt="css3 logo" /> <img src="https://skillicons.dev/icons?i=js" height="40" width="18" alt="javascript logo" /> - Range Slider is the section that can be available on the webpage to increase and decrease the value. - For example when we have to increase or volume of the computer we have to use a range slider. <img src="https://raw.githubusercontent.com/Tarikul-Islam-Anik/Telegram-Animated-Emojis/main/Objects/Clapper%20Board.webp" alt="Clapper Board" width="35" /> https://github.com/ShahramShakiba/JavaScript-Work-Showcase/assets/110089830/611a2cc9-7b77-4bac-9484-3fd8004c3e1a <br/> *** <!--==================== Show & Hide Password ==============================--> ### 💻 Show & Hide Password &nbsp; <img src="https://skillicons.dev/icons?i=html" height="40" width="18" alt="html5 logo" /> <img src="https://skillicons.dev/icons?i=css" height="40" width="18" alt="css3 logo" /> <img src="https://skillicons.dev/icons?i=js" height="40" width="18" alt="javascript logo" /> - As a definition, password show and hide mean showing or hiding the letter of the passwords by clicking on the toggle button. - This type of feature is mostly added to the form for security purposes because many users do not want to show their passwords to those who are around them. <img src="https://raw.githubusercontent.com/Tarikul-Islam-Anik/Telegram-Animated-Emojis/main/Objects/Clapper%20Board.webp" alt="Clapper Board" width="35" /> https://github.com/ShahramShakiba/JavaScript-Work-Showcase/assets/110089830/4cb98fac-7d69-4de0-8065-8941b3f4bf9b <br/> *** <!--======================= Input Character Limit ===========================--> ### 💻 Character Limit &nbsp; <img src="https://skillicons.dev/icons?i=html" height="40" width="18" alt="html5 logo" /> <img src="https://skillicons.dev/icons?i=css" height="40" width="18" alt="css3 logo" /> <img src="https://skillicons.dev/icons?i=js" height="40" width="18" alt="javascript logo" /> - Character limits exist to keep things organized, and to prevent too much information from being included in one message. - Social media platforms impose character limits for different reasons, but most of them are similar regardless of the site and its users: - Keeps content clear and brief: By sticking to character limits, users are encouraged to get their point across as quickly and clearly as possible. <img src="https://raw.githubusercontent.com/Tarikul-Islam-Anik/Telegram-Animated-Emojis/main/Objects/Clapper%20Board.webp" alt="Clapper Board" width="35" /> https://github.com/ShahramShakiba/JavaScript-Work-Showcase/assets/110089830/3c5e36f0-21d3-4fca-b6b4-0be32ddf1098 <br/> *** <!--====================== Text Typing Effect ============================--> ### 💻 Text Typing Effect &nbsp; <img src="https://skillicons.dev/icons?i=html" height="40" width="18" alt="html5 logo" /> <img src="https://skillicons.dev/icons?i=css" height="40" width="18" alt="css3 logo" /> <img src="https://skillicons.dev/icons?i=js" height="40" width="18" alt="javascript logo" /> - In this typing animation, each letter of the word appears after the other, creating a typewriter effect. - There is also a blinking caret animation at the end of the word to make the effect more attractive. <img src="https://raw.githubusercontent.com/Tarikul-Islam-Anik/Telegram-Animated-Emojis/main/Objects/Clapper%20Board.webp" alt="Clapper Board" width="35" /> https://github.com/ShahramShakiba/JavaScript-Work-Showcase/assets/110089830/d753a957-938c-4726-ad23-3c878a18eefc <br/><br/> <!--======================= Social Media ===========================--> ## <img src="https://raw.githubusercontent.com/Tarikul-Islam-Anik/Telegram-Animated-Emojis/main/Objects/Telephone.webp" alt="Telephone" width="55" /> Find me around the Web : <a href="https://www.linkedin.com/in/shahramshakiba/" target="_blank"> <img src="https://raw.githubusercontent.com/maurodesouza/profile-readme-generator/master/src/assets/icons/social/linkedin/default.svg" width="52" height="40" alt="linkedin logo" /> </a> &nbsp;&nbsp;&nbsp; <a href="https://t.me/ShahramShakibaa" target="_blank"> <img src="https://raw.githubusercontent.com/maurodesouza/profile-readme-generator/master/src/assets/icons/social/telegram/default.svg" width="52" height="40" alt="telegram logo" /> </a> &nbsp;&nbsp;&nbsp; <a href="https://wa.me/message/LM2IMM3ABZ7ZM1" target="_blank"> <img src="https://raw.githubusercontent.com/maurodesouza/profile-readme-generator/master/src/assets/icons/social/whatsapp/default.svg" width="52" height="40" alt="whatsapp logo" /> </a> &nbsp;&nbsp;&nbsp; <a href="https://instagram.com/shahram.shakibaa?igshid=MzNlNGNkZWQ4Mg==" target="_blank"> <img src="https://raw.githubusercontent.com/maurodesouza/profile-readme-generator/master/src/assets/icons/social/instagram/default.svg" width="52" height="40" alt="instagram logo" /> </a> &nbsp;&nbsp;&nbsp; <a href="https://twitter.com/ShahramShakibaa" target="_blank"> <img src="https://raw.githubusercontent.com/maurodesouza/profile-readme-generator/master/src/assets/icons/social/twitter/default.svg" width="52" height="40" alt="twitter logo" /> </a>
JavaScript-Work-Showcase | My main goal is to learn and apply JavaScript concepts to enhance my development skills and showcase my growth as a developer. (🟡JavaScript)
javascript,html-css,portfolio
2023-10-26T08:01:43Z
2023-12-07T12:34:18Z
null
1
0
223
1
0
12
null
null
HTML
Open-Source-Chandigarh/Streamix-IMDb
main
Feel free to contribute! 🌈✨ # Streamix IMDb Streamix IMDb is an open-source web platform that allows users to explore, rate, and review their favorite movies and TV shows, creating a collaborative space for movie enthusiasts. [![Streamix IMDb Screenshot](./Data/logo/new.jpg)](https://streamixx39123.netlify.app/) ## Features - **Browse Movies and TV Shows:** Explore a vast collection of movies and TV shows, including details like cast, ratings, and descriptions. - **Rate and Review:** Share your opinions by rating and writing reviews for movies and TV shows you've watched. - **User Profiles:** Create and customize your user profile, showcasing your movie preferences and reviews. - **Search and Filter:** Easily find specific movies or shows using search and filter options. - **Community Interaction:** Connect with other users, follow their reviews, and create a network of movie enthusiasts. ## Hacktoberfest 2023 Streamix IMDb is participating in [Hacktoberfest 2023](https://hacktoberfest.digitalocean.com/), an annual celebration of open source contributions. Join us and contribute to the project to make it even better! ## Rules for Contributions We welcome contributions from developers of all experience levels. Here's how you can get started: 1. **Find Issues or Create Your Own:** Explore existing issues or create new ones in the repository's Issues tab. 2. **Fork the Repository:** Click the "Fork" button to create a copy in your GitHub account. 3. **Clone Your Fork:** Clone your fork to your local machine using `git clone`. 4. **Create a New Branch:** Create a new branch for your work with a descriptive name. ```bash git checkout -b new-branch ``` 6. **Make Changes:** Implement your desired feature, bug fix, or enhancement. 7. **Test and Commit:** Ensure your changes work as expected, write clear commit messages, and push your branch to your fork. 8. **Open a Pull Request:** Create a pull request from your fork to this repository. Provide a concise title and description. We'll review your contribution and work with you to merge it into the project. Please adhere to our code of conduct and guidelines. If you have questions or need assistance, feel free to open an issue. Happy coding and welcome to the Streamix IMDb community! ## Prerequisites - HTML - CSS - JavaScript --- Project By - Harshpreet Singh (https://github.com/harshpreet931) and Harshit Singla (https://github.com/harshit391) Maintained By - Sahil, Technical Head Open Source Chandigarh (https://github.com/Sa2003hil)
Streamix IMDb is an open-source web platform that allows users to explore, rate, and review their favorite movies and TV shows, creating a collaborative space for movie enthusiasts.Contribute to Streamix-IMDb a Hacktoberfes2023 repository
css,hacktoberfest-accepted,hacktoberfest2023,html,javascript,hacktoberfest
2023-10-19T18:30:46Z
2023-10-31T18:58:13Z
null
20
21
205
7
14
12
null
null
HTML
dbushell/dinossr
main
# 🦕 DinoSsr Documentation 👉 [ssr.rocks](https://ssr.rocks) A minimal web framework powered by [VelociRouter](https://github.com/dbushell/velocirouter). ## Usage Add dependency from JSR: [@ssr/dinossr](https://jsr.io/@ssr/dinossr) ```javascript import {DinoSsr} from 'dinossr'; const dir = new URL('./', import.meta.url).pathname; const dinossr = new DinoServer(dir); await dinossr.init(); ``` ## Documentation [DinoSsr Documentation](https://ssr.rocks) * * * [![ko-fi](https://ko-fi.com/img/githubbutton_sm.svg)](https://dbushell.com/tip/) [MIT License](/LICENSE) | Copyright © 2024 [David Bushell](https://dbushell.com)
🦕 A minimal web framework
deno,javascript,svelte,typescript
2023-11-02T15:48:06Z
2024-04-06T13:20:30Z
null
1
0
193
0
1
11
null
MIT
TypeScript
ErickKS/next-onnx
main
null
How to integrate the YOLOv8 ONNX model into your Next.js 13 application.
artificial-intelligence,ia,nextjs,nextjs13,onnx,typescript,javascript
2023-10-30T11:53:03Z
2023-10-30T14:15:36Z
null
1
0
4
0
0
11
null
null
TypeScript
hoangsonww/The-Event-Horizon-App
main
# The EventHorizon App ### User Interface: <p align="center"> <img src="images/ui.PNG" alt="The EventHorizon App Interface" width="100%" style="border-radius: 8px"> </p> ### Overview: The EventHorizon App is a countdown timer application designed to help users anticipate and count down to significant events in their lives. Whether it's a predefined event like New Year's Eve or a custom event, such as a birthday or an anniversary, this app has you covered. ### Features: 1. **Predefined Events:** Comes with a set of predefined events like New Year, Lunar New Year, and more. 2. **Custom Events:** Users can set their own events with a name and date. 3. **Automatic Event Update:** For some predefined events, once the date has passed, it automatically updates to the next year. 4. **Local Storage:** Remember the last event viewed, so when a user opens the app again, it displays the previously viewed event. 5. **Dynamic Backgrounds:** Alternates between different background images, providing a fresh look each time you open the app. 6. **Responsive Text Color:** Depending on the background, the text color adjusts for better readability. 7. **Inspiring Quotes:** Displays a random inspiring quote above the event title each time the app is loaded. 8. **About Page:** Provides more information about the app and its developer, with quick links to the developer's GitHub, LinkedIn, and Gmail. 9. **Mobile Friendly:** Optimized for mobile devices, so you can use it on the go. 10. **Editable Custom Events:** Users can edit the name and date of their custom events. ### How to Use: 1. **Selecting an Event:** Use the dropdown to select a predefined event or create a new custom event by entering its name and date. 2. **Deleting Custom Events:** Added an event by mistake? No worries, you can easily delete it from the custom events list. 3. **Check the Countdown:** Once an event is set or selected, the app will display a countdown timer, counting down days, hours, minutes, and seconds to the event. 4. **Know More:** Click on the 'About' button at the bottom to learn more about the app and the developer. 5. **Edit Custom Events:** Click on the 'Edit' button at the bottom to edit the name and date of your custom events. ### Technologies Used: 1. **HTML5:** For the structure and layout of the app. 2. **CSS3:** For the styling and design of the app. 3. **JavaScript:** For the functionality and interactivity of the app. 4. **Vue.js:** For the dynamic rendering of the app and the reactivity of the data. 5. **Local Storage:** To store the last event viewed and the custom events added by the user. 6. **Unsplash API:** To fetch random background images for the app. 7. **Quotes API:** To fetch random inspiring quotes for the app. 8. **GitHub Pages:** To host the app and make it accessible to everyone. 9. **Babel:** To transpile the JavaScript code for compatibility with older browsers. 10. **ESLint:** To maintain a consistent code style and quality. 11. **Prettier:** To format the code for better readability and maintainability. 12. **Docker:** To containerize the app for easy deployment and scaling. ### Setup: 1. **Clone the Repository:** Use `git clone https://github.com/hoangsonww/EventHorizon.git` to clone the repository. 2. **Open in Browser:** Navigate to the project directory and open the `index.html` in your favorite browser. 3. **Contribute:** Feel free to fork the repo and make your own changes. Pull requests are welcome! 4. **Report Issues:** If you find any bugs or issues, please report them [here]( 5. **Contact:** For feedback, collaboration, or inquiries, reach out through [GitHub](https://github.com/hoangsonww), [LinkedIn](https://www.linkedin.com/in/hoangsonw/), or [Gmail](mailto:hoangson091104@gmail.com). ### Credits: Developed by Son Nguyen Hoang in 2023-2024. For feedback, collaboration, or inquiries, reach out through [GitHub](https://github.com/hoangsonww), [LinkedIn](https://www.linkedin.com/in/hoangsonw/), or [Gmail](mailto:hoangson091104@gmail.com). --- Stay inspired and keep looking forward to the horizon of events in your life! 🌅🕰️
🎆 A dynamic countdown timer designed to anticipate significant life events. From predefined occasions like New Year's Eve to personalized dates like birthdays, EventHorizon offers an intuitive interface, changing backgrounds, chatbot, and inspiring quotes.
css,html,javascript,python,react,tailwindcss,countdown,countdown-application,countdown-clock,countdown-timer
2023-10-20T21:56:51Z
2024-05-23T10:14:01Z
null
1
1
34
1
7
11
null
CC0-1.0
JavaScript
sebastian-nunez/stock-pulse
main
# StockPulse > An efficient and intuitive inventory management application designed for e-commerce businesses. ## CodePath WEB103 Final Project **Designed and developed by:** Priscilla Colon, Sebastian Nunez **Link to deployed app:** <https://stockpulse.up.railway.app/> **Demo Video:** <https://www.youtube.com/watch?v=ZLVxP9Sl_cY> ![landing page](demos/screenshots/landingpage.png) ## Table of Contents - [Features](#features) - [Screenshots](#screenshots) - [Technologies](#technologies) - [Demos](#demos) - [Getting Started](#getting-started) - [Kanban Board](#kanban-board) - [Wireframes](#wireframes) - [ER Diagram](#er-diagram) - [System Design](#system-design) - [High Level](#high-level) - ["Get All Users" Trace](#get-all-users-trace) - [Tables](#tables) - [`product`](#product) - [`category`](#category) - [`tag`](#tag) - [`product_tag`](#product_tag) - [License](#license) ## Features - **Product Management:** - [x] Add, update, and remove products with ease. - [x] Categorize and tag products for efficient organization. - **Category & Tag Management:** - [x] Create, update, and remove categories and tags for products. - [x] Assign products to multiple tags. - **User-friendly Interface:** - [x] Browse products, view details, and manage inventory via an **Inventory** or "card view" - [x] Browse products, view details, and manage inventory via a **Dashboard** or "tabular view" - [x] End-to-end form and input validation - [ ] Login via OAuth using GitHub - **Inventory Control:** - [x] Monitor product quantities and make adjustments as needed. - [ ] Receive low-stock alerts for timely restocking. ## Screenshots ### Project Overview ![All wireframes](demos/stock-pulse-wireframes-overview.png) > _StockPulse - Design Process Overview_ ### Product Browser ![product view](demos/screenshots/productgrid.png) ### Inventory Table ![table view](demos/screenshots/tableview.png) ### Login ![login](demos/screenshots/login.png) ### Error Handling ![404](demos/screenshots/404.png) ![500](demos/screenshots/500%20error.png) ### Loading Skeletons ![loading skeleton 1](demos/screenshots/loading_skeleton_1.png) ![loading skeleton 2](demos/screenshots/loading_skeleton_2.png) ## Technologies - **Frontend** - **Languages:** JavaScript - **Frameworks:** React.js (Vite) - **UI Components:** NextUI, TailwindCSS - **Icons:** Lucide Icons - **Data Fetching:** useQuery, Axios - **Form Validation:** react-hook-form, Zod - **Notifications/Toasts:** react-hot-toast - **Backend:** - **Languages:** Node.js - **Frameworks:** Express - **Authentication:** Passport, OAuth2 - **Database:** PostgreSQL - **Hosting:** Railway - **Design:** Whimsical ## Demos ### Video Walkthrough [Here's a GIF walkthrough of the final project](https://www.youtube.com/watch?v=ZLVxP9Sl_cY) ### Product Details > Users are able to see an individual product's full details via a responsive modal ![Product Details Demo](demos/stock-pulse-details-2.gif) ### Responsive Design & Accessibility > StockPulse was design with a responsive architecture while following the latest WAI-ARIA accessability standards to accommodate a mobile and desktop experience. ![Responsive Design Demo](demos/stock-pulse-responsive-2.gif) ### Inventory Pagination > Users are able to scroll through different pages of products ![Pagination Demo](demos/stock-pulse-pagination-1.gif) ### Product Management Modals > Input forms are fully validated before submission including user-friendly error messages and hints. Error and success notifications are displayed. ![Product Modal Demo](demos/playground-product-modals-2.gif) ### Loading Skeletons & Error Handling > We've implemented loading skeletons to maximize UX and give users as much feedback as possible. Moreover, we've implemented extensive error handling through messages, modals, and cards. ![Loading Skeletons Demo](demos/stock-pulse-product-grid-loading-skeleton.gif) > _Loading Skeletons_ ![Error Handling Demo](demos/stock-pulse-error-handling.gif) > _Error Handling_ ### Filtering Capabilities > Users are able to filter items by their, related tags, and category. ![Product Filtering Demo](demos/stock-pulse-product-filtering-1.gif) ### Product Inventory Grid > Within the Inventory view, users will be able to see the most relevant details about a product. Also, they're able to click on an item and expand all it's details; moreover, users can edit an item. ![Product Grid Demo](demos/stock-pulse-product-grid-1.gif) ## End-to-End API Validation > All API endpoints validate their data and send helpful error messages back to the client. ![E2E Validation Demo](demos/stock-pulse-e2e-api-validation.gif) ## Getting Started 1. **Clone the repository:** `git clone https://github.com/sebastian-nunez/stock-pulse` 2. **Set up the backend:** - Navigate to the backend directory: `cd server` - Install dependencies: `npm install` - Update the environment variables: make a copy of the `.env.template` rename it to `.env` and fill in the variables - Run the backend server: `npm run start` 3. **Set up the frontend:** - Navigate to the frontend directory: `cd client` - Install dependencies: `npm install` - Run the frontend app: `npm run dev` 4. Open your browser and visit [http://localhost:5173](http://localhost:5173) to access StockPulse. **Note:** The service currently relies on `Railway` for database hosting and management. You can sign up and host your own instance. [Learn more about Railway](https://railway.app/) ## Kanban Board > You can find the full board on [Whimsical.](https://whimsical.com/kanban-board-7xwirWDMp5HDHfk6cUiFwX) ![Kanban Board](demos/stock-pulse-kanban-board.png) ## Wireframes ### Home ![Home](demos/stock-pulse-wireframes-home.png) ### Login/Sign up ![Sign up](demos/stock-pulse-wireframes-signup.png) ![Log in](demos/stock-pulse-wireframes-login.png) ### Dashboard ![Dashboard](demos/stock-pulse-wireframes-dashboard.png) ### Inventory ![Inventory](demos/stock-pulse-wireframes-inventory.png) ### Product Management ![Product Details](demos/stock-pulse-wireframes-product-details.png) ![Edit Product](demos/stock-pulse-wireframes-edit-product.png) ![Add Product](demos/stock-pulse-wireframes-add-product.png) ## ER Diagram ![ER Diagram](demos/stock-pulse-ER-diagram.png) ## System Design ### High Level ![System Design](demos/stock-pulse-system-design.png) ### "Get All Users" Trace ![High-level trace](demos/stock-pulse-design-1.png) _The diagram ignores any authentication/authorization measures_. ## Tables In this schema, we have the following relationships: 1. **One-to-Many Relationship (Category to Products):** - Each product belongs to one category. 2. **Many-to-Many Relationship (Products to Tags):** - Products can have multiple tags, and each tag can be associated with multiple products. ### `product` Stores information about individual products. | Field | Type | Description | Constraints | | ------------- | ------------- | --------------------------------------------------------- | --------------------------------------------- | | product_id | SERIAL | Unique identifier for the product | Primary Key | | name | VARCHAR(100) | Name of the product | Not Null, Unique | | brand | VARCHAR(100) | Brand or manufacturer of the product | Not Null | | description | VARCHAR(255) | Description of the product | Not Null | | image | VARCHAR(255) | Image of the product | Not Null | | quantity | INT | Quantity of the product in stock | Not Null | | price | DECIMAL(12,2) | Price of the product in USD | Not Null | | is_available | BOOLEAN | Information about the product's availability (true/false) | Not Null, true or false | | weight | DECIMAL(10,2) | Weight of the product (in lbs) | Not Null | | dimensions | VARCHAR(50) | Dimensions of the product (Length x Width x Height) | Default: "Unknown." | | warranty_info | VARCHAR(255) | Details about the product's warranty | Default: "No warranty information available." | | notes | TEXT | Any notes about the product | | | date_added | DATE | Date when the product was added to the inventory | Not Null, Default: CURRENT_DATE | | category_id | INT | Foreign key referencing a category | Foreign Key, ON DELETE SET NULL | ### `category` Stores information about product categories. | Field | Type | Description | Constraints | | ----------- | ------------ | ---------------------------------- | ----------------------------------- | | category_id | SERIAL | Unique identifier for the category | Primary Key | | name | VARCHAR(25) | Name of the category | Not Null, Unique | | description | VARCHAR(255) | Description of the category | Default: "No description provided." | ### `tag` Stores information about product tags. Ex. Discounted, Hotsale, Rebate etc. | Field | Type | Description | Constraints | | ----------- | ------------ | ----------------------------- | ----------------------------------- | | tag_id | SERIAL | Unique identifier for the tag | Primary Key | | name | VARCHAR(25) | Name of the tag | Not Null, Unique | | description | VARCHAR(255) | Description of the tag | Default: "No description provided." | ### `product_tag` Establishes a many-to-many relationship between products and tags. | Field | Type | Description | Constraints | | ----------- | -------------------- | -------------------------------- | ------------------------------ | | product_id | INT | Foreign key referencing products | Foreign Key, ON DELETE CASCADE | | tag_id | INT | Foreign key referencing tags | Foreign Key, ON DELETE CASCADE | | PRIMARY KEY | (product_id, tag_id) | Composite primary key | Primary Key | ## License This project is licensed under the [MIT License](https://github.com/sebastian-nunez/stock-pulse/blob/main/LICENSE)
An efficient and intuitive inventory management application designed for e-commerce businesses.
expressjs,javascript,nodejs,postgresql,railway,reactjs,tailwindcss,oauth
2023-10-14T23:21:38Z
2023-11-17T14:21:39Z
2023-11-15T17:26:33Z
3
21
551
1
0
11
null
MIT
JavaScript
wmalbos/JavaScript-from-Zero-to-Proficiency
main
null
Approfondissez votre compréhension théorique et pratique de l'écosystème JavaScript à travers des guides et des exercices progressifs, adaptés aussi bien aux débutants qu'aux niveaux avancés.
javascript,algorithms-and-data-structures,reactjs,typescript,phaserjs,threejs
2023-10-25T11:18:44Z
2023-10-27T10:37:08Z
null
1
0
23
10
1
11
null
null
HTML
Wilsmac/FantasyBot-MD
main
------------------ > **aviso**: 𝐄𝐬𝐭𝐞 𝐛𝐨𝐭 𝐲𝐚 𝐝𝐞𝐣𝐨 𝐝𝐞 𝒇𝒖𝒏𝒄𝒊𝒐𝒏𝒂𝒓 𝐩𝐨𝐫 𝐦𝐚𝐧𝐭𝐞𝐧𝐢𝐦𝐢𝐞𝐧𝐭𝐨, 𝐩𝐞𝐝𝐢𝐦𝐨𝐬 𝐪𝐮𝐞 𝐧𝐨 𝐥𝐨 𝐝𝐞𝐬𝐜𝐚𝐫𝐠𝐮𝐞𝐧 𝐪𝐮𝐞 𝐲𝐚 𝐧𝐨 𝐞𝐬𝐭𝐚 𝐞𝐧 𝐮𝐬𝐨, 𝐬𝐢 𝐝𝐞 𝐯𝐞𝐫𝐝𝐚𝐝 𝐥𝐨 𝐪𝐮𝐢𝐞𝐫𝐞𝐧 𝐜𝐨𝐧𝐭𝐚𝐜𝐭𝐚𝐦𝐞. 𝐦𝐮𝐜𝐡𝐚𝐬 𝐠𝐫𝐚𝐜𝐢𝐚𝐬 𝐪𝐮𝐞𝐫𝐢𝐝𝐨𝐬 𝐮𝐬𝐮𝐚𝐫𝐢𝐨𝐬 𝐩𝐨𝐫 𝐬𝐮 𝐩𝐫𝐞𝐟𝐞𝐫𝐞𝐧𝐜𝐢𝐚. ------------------ <a href="https://github.com/Wilsmac/FantasyBot-MD-v1" target="black"><img src="https://img.shields.io/badge/♥️-click el nuevo repositorio del bot-000000?style=for-the-badge&logo=GitHub&logoColor=black" /></a> </p> <p align="center"><img src="https://profile-counter.glitch.me/{FantasyBot-MD}/count.svg" alt="Wilsmac :: Visitor's Count" /></p> </p> <p align="center"> <a href="https://github.com/Wilsmac/FantasyBot-MD"><img src="http://readme-typing-svg.herokuapp.com?font=mono&size=17&duration=4000&color=[00FFFF]&center=falso&vCenter=falso&lines=𝑭𝒂𝒏𝒕𝒂𝒔𝒚𝑩𝒐𝒕-𝑴𝑫++;𝐻𝑂𝐿𝐴,+𝐺𝑅𝐴𝐶𝐼𝐴𝑆+𝑃𝑂𝑅+𝑉𝐼𝑆𝐼𝑇𝐴𝑅+𝐸𝐿+𝑅𝐸𝑃𝑂𝑆𝐼𝑇𝑂𝑅𝐼𝑂" height="100px"></a> </p> <p align="center"> <a href="https://github.com/Wilsmac"><img src="http://readme-typing-svg.herokuapp.com?font=mono&size=19&duration=4000&color=[00FFFF]&center=falso&vCenter=falso&lines=𝑭𝒂𝒏𝒕𝒂𝒔𝒚𝑩𝒐𝒕-𝑴𝑫++;Grupos+Oficiales+de" height="90px"></a> </p> <a href="https://chat.whatsapp.com/EAxOACyzjB6JhkRvQvw4zl" target="blank"><img src="https://img.shields.io/badge/Grupo-OfiCIAL DEL BOT-25D366?style=for-the-badge&logo=whatsapp&logoColor=white" /></a> <a href="https://chat.whatsapp.com/GK9jQ7sY7XRGxhu6UoTOle" target="blank"><img src="https://img.shields.io/badge/grupo de soporté-✨-25D366?style=for-the-badge&logo=whatsapp&logoColor=white" /></a> > LOS NUMEROS NO SON BOTS Y EN EL GRUPO NO SE PERMITEN NUMEROS QUE SEAN BOTS <p align="center"> <a href="https://github.com/Wilsmac"><img src="http://readme-typing-svg.herokuapp.com?font=mono&size=15&duration=4000&color=[00FFFF]&center=falso&vCenter=falso&lines=𝑭𝒂𝒏𝒕𝒂𝒔𝒚𝑩𝒐𝒕-𝑴𝑫++;𝐵𝑜𝑡𝑠+𝑂𝑓𝑖𝑐𝑎𝑙𝑒𝑠+𝑑𝑒" height="80px"></a> </p> <a href="https://api.whatsapp.com/send/?phone=50250101139&text=Hola%20vengo%20a%20pedir%20el%20numero%20del%20bot.&type=phone_number&app_absent=0" target="blank"><img src="https://img.shields.io/badge/BOT_OFICIAL_1-000000?style=for-the-badge&logo=whatsapp&logoColor=white" /> > NO SPAMEAR COMANDOS <p align="center"> <p align="center"> <a href="https://github.com/Wilsmac"><img src="http://readme-typing-svg.herokuapp.com?font=mono&size=15&duration=4000&color=[00FFFF]&center=falso&vCenter=falso&lines=𝑭𝒂𝒏𝒕𝒂𝒔𝒚𝑩𝒐𝒕-𝑴𝑫++;𝐶𝑂𝑁𝐹𝐼𝐺𝑈𝑅𝐴𝐶𝐼𝑂́𝑁+𝑃𝐴𝑅𝐴" height="100px"></a> <a href="https://github.com/Wilsmac/FantasyBot-MD/fork" target="black"><img src="https://img.shields.io/badge/♥️-clona_el_repositorio-000000?style=for-the-badge&logo=GitHub&logoColor=black" /></a> <a href="https://github.com/Wilsmac/FantasyBot-MD/blob/master/config.js" target="black"><img src="https://img.shields.io/badge/♥️-Cambiar el owner del bot-000000?style=for-the-badge&logo=GitHub&logoColor=black" /></a> <p align="center"> <a href="https://github.com/Wilsmac"><img src="http://readme-typing-svg.herokuapp.com?font=mono&size=15&duration=4000&color=[00FFFF]&center=falso&vCenter=falso&lines=replit++;activa+el+bot+en" height="100px"></a> </p> [![Run on Repl.it](https://repl.it/badge/github/Wilsmac/FantasyBot-MD)](https://repl.it/github/Wilsmac/FantasyBot-MD) ## <h1>Instalación automática por termux</h1> ```ts termux-setup-storage ``` ```ts apt update -y && yes | apt upgrade && pkg install -y bash wget mpv && wget -O - https://raw.githubusercontent.com/Wilsmac/FantasyBot-MD/master/Fantasy.sh | bash ``` <p align="center"> <a href="https://github.com/Wilsmac"><img src="http://readme-typing-svg.herokuapp.com?font=mono&size=20&duration=3000&color=[00FFFF]&center=falso&vCenter=falso&lines=Termux++;activa+el+Bot+en" height="100px"></a> </p> - ESCRIBE LOS SIGUIENTES COMANDOS UNO POR UNO: ``` cd && termux-setup-storage ``` ``` apt-get update -y && apt-get upgrade -y ``` ``` pkg install -y git nodejs ffmpeg imagemagick && pkg install yarn ``` ``` git clone https://github.com/Wilsmac/FantasyBot-MD.git ``` ```bash cd FantasyBot-MD ``` ``` yarn install ``` ```bash npm install ``` ```bash npm update ``` ```bash npm start ``` <p align="center"> <a href="https://github.com/Wilsmac"><img src="http://readme-typing-svg.herokuapp.com?font=mono&size=15&duration=4000&color=[00FFFF]&center=falso&vCenter=falso&lines=♥️✨++;en+caso+de+detenerse+en+termux" height="150px"></a> </p> ```bash ESCRIBE LOS SIGUIENTES COMANDOS UNO POR UNO: > cd > cd FantasyBot-MD > npm start ``` <p align="center"> <a href="https://github.com/Wilsmac"><img src="http://readme-typing-svg.herokuapp.com?font=mono&size=15&duration=4000&color=[000000]&center=falso&vCenter=falso&lines=✨♥️++;Pedir+otro+codigo+qr+en+termux" height="150px"></a> </p> > DETENER EL BOT DANDO CLICK EN EL SIMBOLO CTROL EN TERMUX MAS LA LETRA Z EN SU TECLADO MOVIL HASTA QUE SALGA ALGO EN VERDE SIMILAR A Fenix-termux $ ```bash ESCRIBE LOS SIGUIENTES COMANDOS UNO POR UNO: > cd > rm -rf FantasySession > npm start ``` ### `IMFORMACION` - EL ADD Y EL KICK PUEDEN OCASIONAR QUE EL NUMERO SE VAYA A SOPORTE POR ELLO SE ACTIVA CON #enable restrict - UNIFINED NO SE HACE RESPONSABLE DEL USO, NUMEROS, PRIVACIDAD Y CONTENIDO MANDADO, USADO O GESTIONADO POR USTEDES O EL BOT ### ` DUDAS SOBRE EL BOT?, CONTACTAME` <a href="http://wa.me/50258115623" target="blank"><img src="https://img.shields.io/badge/UNIFINED-OFC-25D366?style=for-the-badge&logo=whatsapp&logoColor=white" /> ## <h2>`PROPIETARIO DEL BOT`</h2> <a href="https://github.com/Wilsmac"><img src="https://github.com/Wilsmac.png" width="300" height="300" alt="Wilsmac"/></a> `DESARROLLADOR DEL BOT (@WILMER OFC)`
𝑯𝑶𝑳𝑨, 𝑩𝑰𝑬𝑵𝑽𝑬𝑵𝑰𝑫𝑶 𝑨𝑳 𝑹𝑬𝑷𝑶𝑺𝑰𝑻𝑶𝑹𝑰𝑶 𝑶𝑭𝑰𝑪𝑰𝑨𝑳 𝑫𝑬 𝑭𝒂𝒏𝒕𝒂𝒔𝒚𝑩𝒐𝒕-𝑴𝑫. 𝑺𝑰 𝑻𝑬 𝑨𝑮𝑹𝑨𝑫𝑨 𝑬𝑳 𝑹𝑬𝑷𝑶𝑺𝑰𝑻𝑶𝑹𝑰𝑶 𝑴𝑬 𝑨𝑷𝑶𝒀𝑨𝑺 𝑪𝑶𝑵 𝑼𝑵𝑨 🌟 𝑮𝑹𝑨𝑪𝑰𝑨𝑺.
api,ia,javascript,nodejs,whatsapp,whatsapp-bot
2023-10-24T23:23:37Z
2024-03-20T22:36:38Z
2023-11-08T17:32:12Z
3
2
578
0
7
11
null
null
JavaScript
chipweinberger/ShaderToyLite.js
main
<p align="center"> <img src="https://github.com/chipweinberger/ShaderToyLite.js/blob/main/logo.png?raw=true" /> </p> **ShaderToyLite.js** is a full featured ShaderToy renderer, in ~400 lines of code. ## Demo [ShaderToyLite-demo.html](https://chipweinberger.github.io/ShaderToyLite.js/ShaderToyLite-demo.html) ^ This demo renders [Paint Streams](https://www.shadertoy.com/view/WtfyDj) by [Michael Moroz](https://michaelmoroz.github.io/Reintegration-Tracking/) **Note:** iOS has rendering artifcacts due to `texelFetch` not being fully supported ## Features - direcly load any ShaderToy shaders (except sound & vr) without modification - supports buffer shaders (i.e BufferA, BufferB, BufferC, BufferD) - pixel perfect rendering - supports all uniforms - upload your own textures - shader common code (i.e. 'Common' tab in ShaderToy) - update shaders at any time - uses the same texture format as ShaderToy (RGBA float32) - WebGL 2.0 (only) **Not Supported:** - VR, Sound, Keyboard - pre-provided textures ('Wood', 'Rock Tiles', etc) ## Usage ```javascript // initialize var toy = new ShaderToyLite('myCanvas'); // add webgl textures (optional) toy.addTexture(texture, 'rock'); // set shaders toy.setCommon(""); toy.setBufferA({source: bufferA, iChannel0: 'rock'}); toy.setImage({source: image, iChannel0: 'A'}); // draw callback (optional) toy.setOnDraw((){ console.log(toy.getTime()); }) // start render loop toy.play(); // pause render loop toy.pause(); // currently playing? tod.getIsPlaying(); // reset time to zero toy.rewind(); ``` ## Minimal Example Minimal example showing multiple buffer usage. ```html <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>ShaderToyLite</title> </head> <body> <canvas id="myCanvas" width="840" height="472"></canvas> <script> var a = ` void mainImage( out vec4 fragColor, in vec2 fragCoord ) { vec2 uv = fragCoord/iResolution.xy; vec3 col = 0.5 + 0.5*cos(iTime+uv.xyx+vec3(0,2,4)); fragColor = vec4(col,1.0); } `; var image = ` void mainImage( out vec4 fragColor, in vec2 fragCoord ) { vec2 uv = fragCoord.xy / iResolution.xy; vec4 col = texture(iChannel0, uv); fragColor = vec4(col.rgb, 1.); } `; var toy = new ShaderToy('myCanvas'); toy.setCommon(''); toy.setBufferA({source: a}); toy.setImage({source: image, iChannel0: 'A'}); toy.play(); </script> </body> </html> ```
A full-featured ShaderToy renderer in ~400 lines of code.
shadertoy,glsl,webgl,webgl2,javascript,fragment-shader,renderer
2023-10-20T03:33:11Z
2024-01-27T19:39:58Z
2023-10-20T21:02:47Z
1
0
20
0
1
11
null
BSD-3-Clause
HTML
ladan-hazrati-web/personal-website
main
# personal-website ![viewfinal](https://github.com/ladan-hazrati-web/personal-website/assets/119695832/e9897027-f377-46cd-819c-b7b0e9f3cf68) **You can see information about my project** - [Demo Project](https://ladan-hazrati-web.github.io/personal-website/) - Developed by ladan hazrati - Created - 2023-10-28 - Technologies Used - Html , css , Tailwind - Hooks Used : useState - Role - Frontend - How to reach me : with my [instagram](https://www.instagram.com/ladan_hazrati_web) and [linkedin](https://www.linkedin.com/in/ladan-hazrati-web)
This is my first personal site that I coded with little knowledge of JavaScript.
css,html5,personal-website,tailwind,tailwindcss,javascript
2023-10-31T07:43:39Z
2023-10-31T07:51:00Z
null
1
0
2
0
1
11
null
null
JavaScript
antitoxic/import-single-ts
main
# `import-single-ts` ![Static Badge](https://img.shields.io/badge/version-1.0.3-green) ![NPM](https://img.shields.io/npm/l/import-single-ts) ![GitHub issues](https://img.shields.io/github/issues/antitoxic/import-single-ts) ![GitHub Sponsors](https://img.shields.io/github/sponsors/antitoxic) ## Description Drop-in replacement for the JS-native `import(..)` but **works with TypeScript files**. ## Use-case 1. You have a running `node.js` process, and you want to import `.ts` file from it 2. **BUT** you realize you can't do `import './myfile.ts'`, `require('./myfile.ts')` or `await import('./myfile.ts')`. 3. And you **DON'T want** an additional compilation step before the process starts **This is where `import-single-ts` comes in**. It allows you do `await importSingleTs('./myfile.ts')` with **_no extra steps needed_**. A common example would be defining things like configuration or setup in a type-safe (_ts_) environment. Think `vite.config.ts`, `webpack.config.ts`, etc. ## Usage 1. Make sure you've installed the `esbuild` (_it's a peer dependency_) 2. ```ts import { importSingleTs } from 'import-single-ts'; // or for cjs: const { importSingleTs } = require('import-single-ts'); // ... await importSingleTs('./some.ts'); // place where you need it ``` It has the same API as the native dynamic import — `import()`. ## Features & Limitations - 🔄 **Drop-in replacement for `import()`** — no learning curve, you can just replace the dynamic `await import('./some.js')` calls with `await importSingleTs('./some.ts')` and it will just work as expected. - ⚡ **Fast** — uses `esbuild` internally and learns from the best (_`vite`'s & esbuild plugins' source code_) - 📐 **Only compiles the minimum** — The `.ts` file being loaded may have multiple imports, which can, in turn, have more imports at any depth. Any imported files, which `node` can run by itself, are not compiled. Instead, they are loaded from their original path which means they are kept in the internal node module cache and there won't be duplicate module executions if they are imported again. - 🚀 **Single dependency** (`enhanced-resolve`) + 1 **peer** dependency of `esbuild` — It's using `enhanced-resolve` since it's the only package out there that supports up-to-date `node` resolution mechanisms like "exports" in `package.json` which are needed to determine which file can be executed by `node` itself - 🧩️ **Customizable import resolution** — it exposes options that are used in both `esbuild` and `enhanced-resolve`, so you can provide things like [custom conditions](https://nodejs.org/api/packages.html#packages_resolving_user_conditions) for [conditional exports](https://nodejs.org/api/packages.html#conditional-exports). Simply pass in a second argument like so: ```ts await importSingleTs('./some.ts', { conditions: ['mycompany-dev'], alias: { a: "b" }, ... }) ``` - 💻️ **Node.js REPL** is supported as well - ⛔️ Not intended for [`bun`](https://bun.sh/docs/runtime/typescript) — TypeScript is supported out of the box in `bun`, no need to use this package. - ⛔️ Not intended for `Windows` — it's not tested on `Windows` and I won't be able to dedicate extra time to debug problems there. ## Funding ![GitHub Sponsors](https://img.shields.io/github/sponsors/antitoxic) If this makes your work easier, [consider becoming a sponsor](https://github.com/sponsors/antitoxic). ## Inspiration - I wanted to load up the exports from `.ts` file and use it as a type-safe config. There didn't seem to be an easy way to do that. - I looked into [`vite`](https://github.com/vitejs/vite/blob/eef4aaa063ed420c213cb9e24f680230cf2132b2/packages/vite/src/node/config.ts)'s internal logic that deals with loading up `vite.config.ts` file. Before settling on using `esbuild` I wasn't sure if there was a better way to do compile on-the-fly. When I saw vite's approach I was relieved that looks like the only way, and I've also adapted pieces of their config handling code - I also researched [`esbuild` node-resolve plugin](https://github.com/remorses/esbuild-plugins/tree/master/node-resolve/). This was helpful to quickly glance `esbuild` plugin system. Sadly this relies on the [`resolve`](https://github.com/browserify/resolve) package which [doesn't support `package.json` "exports" at all](https://github.com/browserify/resolve/pull/224). - I noticed that [node `require.extensions` is deprecated](https://nodejs.org/api/modules.html#requireextensions). They actually recommend compiling ahead of time which is what this package does. ## Prior art - [`ts-import`](https://github.com/radarsu/ts-import) — it internally uses `tsc`, so loading up a file is **_slow_**. Another problem of `tsc` is it can run only for a single project, so if you are in a monorepo environment, and you depend on typescript files from other projects it won't work as expected. ## Possible improvements - replace `enhanced-resolve` when [web-infra-dev/oxc](https://github.com/web-infra-dev/oxc) ports it to Rust
⚡Fast drop-in replacement for the JS-native import(..) that works with TypeScript and compiles it on-the-fly.
esbuild,javascript,nodejs,typescript
2023-10-30T16:20:45Z
2024-02-04T09:05:27Z
null
1
0
11
0
0
11
null
null
TypeScript
hoangsonww/My-Portfolio-Website
main
null
🚀 A sleek showcase of my tech journey: Dive into my projects, experiences, and innovations. Built with passion, presented with flair! Constructed using React, jQuery, and SwiperJS!
css,html,javascript,php,react,reactjs,docker,expressjs,microfrontend,nodejs
2023-10-21T20:45:28Z
2024-05-19T10:21:55Z
null
1
3
126
0
7
11
null
CC0-1.0
HTML
barry-far/Personal-Website
main
# 💼💡 Portfolio: My Personal Website 🌟 Welcome to my personal portfolio website's GitHub repository! This site is a testament to my skills in modern web design, utilizing technologies like JavaScript, CSS, HTML, and Sass to create a visually appealing and responsive experience. 🔗 Check out the live site here: [Click Me!](https://barry.software/app) ## 📚 Topics - `javascript` 🟨 - `css` 🔵 - `html` 🟥 - `sass` 🎨 - `portfolio` 📁 - `modern` 🆕 - `css3` ✨ - `portfolio-website` 💻 - `html-css-javascript` 🌐 - `portfolio-template` 📝 - `portfolio-website-html-css` 🖥️ ## 📄 Resources - **Readme**: 📘 Comprehensive guide to understand and navigate this project. - **License**: 📜 MIT License. ## ⭐ Activity - **Stars**: 0 stars ⭐ (Be the first one to star it!) - **Watchers**: 1 watching 👀 - **Forks**: 0 forks 🍴 ## 🚀 Deployments - **Latest Deployment**: github-pages, 2 minutes ago ⏰ - **Total Deployments**: 20 deployments 🏗️ ## 🛠️ Languages Used - **CSS**: 74.6% 🎨 - **Sass**: 10.9% 👚 - **HTML**: 9.2% 📄 - **JavaScript**: 5.1% 🟨 - **SCSS**: 0.2% 🧵 --- 🤝 Feel free to contribute or suggest improvements to this project!
💯 Portfolio : My Personal Website with Modern Design
css,css3,html,html-css-javascript,javascript,modern,portfolio,portfolio-template,portfolio-website,portfolio-website-html-css
2023-10-30T08:26:40Z
2023-12-12T15:45:13Z
null
1
2
40
0
1
11
null
MIT
CSS
bitwisegaurav/ReactLearning
main
null
This repo conatins basic projects for understanding react and its fundamentals by using react with vite
react,reactjs,vitejs,context-api,javascript,react-hooks,react-redux,react-router,react-state-management,redux-toolkit
2023-10-19T18:59:40Z
2023-11-15T18:31:13Z
null
1
0
19
0
0
11
null
null
JavaScript
wakhiwemathuthu/threadsocket
main
# ThreadSocket Chat App ThreadSocket is a real-time chat application powered by React, designed to facilitate seamless communication among users. Whether you need to engage in group discussions or have private one-on-one conversations, ThreadSocket has you covered. **View live version** : https://wakhiwemathuthu.github.io/threadsocket/ ## Tech Stack Used ![React](https://img.shields.io/badge/react-%2320232a.svg?style=for-the-badge&logo=react&logoColor=%2361DAFB) ![TypeScript](https://img.shields.io/badge/typescript-%23007ACC.svg?style=for-the-badge&logo=typescript&logoColor=white) ![Vite](https://img.shields.io/badge/vite-%23646CFF.svg?style=for-the-badge&logo=vite&logoColor=white) ![React Router](https://img.shields.io/badge/React_Router-CA4245?style=for-the-badge&logo=react-router&logoColor=white) ![TailwindCSS](https://img.shields.io/badge/tailwindcss-%2338B2AC.svg?style=for-the-badge&logo=tailwind-css&logoColor=white) <!-- ![Firebase](https://img.shields.io/badge/firebase-%23039BE5.svg?style=for-the-badge&logo=firebase) --> ## Features - **Channels**: Create and join discussion channels based on your interests or teams. - **Direct Messages**: Send private messages to individuals for more personalized conversations. - **User Authentication**: Securely register and log in to your account. - **Responsive Design**: Enjoy a smooth chat experience on various devices and screen sizes. ## Getting Started Follow these steps to get the ThreadSocket app up and running on your local machine: 1. Clone this repository: ``` https://github.com/wakhiwemathuthu/threadsocket.git ``` 2. Navigate to the project directory: ``` cd threadsocket ``` 3. Install dependencies: ``` npm install ``` 4. Start the development server: ``` npm start ``` ## How to Contribute If you're interested in collaborating on ThreadSocket, we welcome your contributions. Here's how you can get involved: - Give It a Star: If you find this project useful or interesting, please consider giving it a star on GitHub. - Collaborate: If you have ideas for improvements or new features, feel free to open an issue or submit a pull request. We'd love to work together to make ThreadSocket even better. - Contact Us: To discuss collaboration or share your thoughts, you can reach out to us via email at wakhiwemathuthu6@gmail.com.
null
chat-application,chatweb,javascript,react,react-components,react-hooks,react-router,react-router-dom,reactjs,tailwindcss
2023-10-17T23:06:39Z
2024-04-05T09:25:37Z
null
2
1
20
0
1
11
null
null
TypeScript
morshedulmunna/software-engineering-core-concept
main
## Table of Contents <a name="table"></a> - [JavaScript in-depth Architecture](#javascript-architecture) - [JavaScript Execution Context](#javascript-execution-context) - [Call Stack](#call-stack) - [Function Details](#function-details) - [Function Declaration or Function Statement](#function-declaration-or-function-statement) - [Function Expression](#function-expression) - [Anonymous Function](#anonymous-function) - [IIFE (Immediately Invoked Function Expression)](#iife-immediately-invoked-function-expression) - [Arrow Function](#arrow-function) - [First-Class Function or Higher-Order Function](#first-class-function-or-higher-order-function) - [Callback Function](#callback-function) - [Parameters vs Arguments](#parameters-vs-arguments) - [JavaScript Errors](#javascript-errors) - [ReferenceError](#referenceerror) - [SyntaxError](#syntaxerror) - [TypeError](#typeerror) - [AggregateError](#aggregateerror) - [JavaScript Scope & Scope Chain](#javascript-scope-chain) - [Variable Shadowing , let const [Solve memory leak problem]](#variable-shadowing) - [JavaScript Hoisting](#javascript-hoisting) - [JavaScript closure](#javascript-closure) - [Temporal Dead Zone (TDZ) in JavaScript ( Time zone)](#temporal-dead) - [Undefined vs not Defined in JavaScript](#undefined-vs-notdefined) - [Asynchronous JavaScript & EVENT LOOP from scratch](#asynchronous-javascript--event-loop-from-scratch) - [Polyfill Bind Method](#polyfill-bind) - [Debounce Strategy](#debounce) ![important] **_Abbreviation_** ```text TCP => Transmission Control Protocol UDP => User Datagram Protocol MQTT-> Message Queuing Telemetry Transport CoAP - Constrained Application Protocol AMQP - Advanced Message Queuing Protocol RESTapi => Representational state transfer API => Application programming interface (API or web API) ``` # Learn JavaScript core Concept! <a name="javascript-execution-context"></a> ### How javaScript Work : #### **Execution Context** In JavaScript, the execution context refers to the environment in which the code is executed. **Global Execution Context:** This is the default execution context. When the JavaScript code is executed, the global execution context is created in the call stack, which contains global variables and functions. It's essentially the environment where code that isn't inside any function is executed. **Function Execution Context:** Every time a function is invoked, a new execution context is created for that function. It includes information about the function's arguments, local variables, and any nested functions declared within it. When a function is called, a new function execution context is pushed onto the execution stack. - Parts of Each Execution Context : - Memory Component or variable environment - Code Component or thread of execution - Phase of Each Execution Context : - Creation Phase or memory creation phase - Execution phase or code execution phase ![execution-context](./readmeImage/context.png) ### **Call Stack**<a name="call-stack"></a> The call stack in JavaScript is a mechanism used to keep track of the functions being executed in a program. It operates on a Last In, First Out (LIFO) basis, meaning that the last function that gets pushed onto the stack is the first one to be popped off and executed. When a function is called in JavaScript, it's added to the call stack. As functions are executed, they are removed from the stack. If a function calls another function, the new function gets added on top of the previous one, forming a stack of function calls. When a function finishes executing, it is removed from the stack, and the control returns to the previous function in the stack. ![call-stack](./readmeImage//call-back.png) <div style="text-align: right;"> <a href="#table"> <button>Go to top</button> </a> </div> --- ### Function Details :<a name="function-details"></a> **Function Declaration or Function Statement** : <a name="function-declaration-or-function-statement"></a> This is a basic way to declare a function using the `function` keyword. or arrow function. it's just declared as a function never call. when it's called that means it's invoked. ```plaintext function greet() { console.log("Hello!"); } ``` **Function Expression** : <a name="function-expression"></a> A function expression stores a function as a value in a variable. ```plaintext const sayHello = function() { console.log("Hi there!"); }; or ----------------------------------- var greet = () => { console.log("Hello!"); } ``` <a href="#table"> <button>Go to top</button> </a> </div> **Anonymous Function** : <a name="anonymous-function"></a> An anonymous function doesn't have a name; it's assigned to a variable without a specific name. ```plaintext const add = function(a, b) { return a + b; }; ``` **IIFE (Immediately Invoked Function Expression)** : <a name="iife-immediately-invoked-function-expression"></a> An IIFE runs immediately after it's defined, encapsulating its scope. ```plaintext (function() { console.log("IIFE running!"); })(); ``` **Arrow Function** : <a name="arrow-function"></a> Arrow functions provide a more concise syntax for writing functions. ```plaintext const multiply = (a, b) => { return a * b; }; ``` | Aspect | Arrow Functions | Normal Functions | | -------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------- | | Syntax | Concise syntax | More verbose syntax | | `this` binding | Inherits `this` from surrounding context. that means this keyword point her outer scope. | Has its own `this` context determined by how it's called | | `arguments` object | Does not have its own `arguments` object | Has its own `arguments` object containing passed arguments | | Constructor usage | Cannot be used with `new` to create objects | Can be used with `new` to create objects | | `prototype` property | Does not have a `prototype` property | Has a `prototype` property for object creation | | Implicit return | Can implicitly return a value if single expression | Explicit `return` statement needed | **First-Class Function or Higher-Order Function** : <a name="first-class-function-or-higher-order-function"></a> Functions are treated as first-class citizens; they can be assigned as values, passed as arguments, and returned from other functions. or Received functions as a parameter and return a function. ```javascript function sayName(name) { return function () { console.log(`Hello, ${name}!`); }; } const greeting = sayName("Alice"); greeting(); // Outputs: Hello, Alice! ``` **Callback Function** :<a name="callback-function"></a> A callback function is passed as an argument to another function and executed after an operation is completed. ```plaintext function fetchData(callback) { // Simulated asynchronous operation setTimeout(() => { const data = "Some data"; callback(data); }, 1000); } function displayData(data) { console.log(`Data received: ${data}`); } fetchData(displayData); // Outputs: Data received: Some data ``` **Parameters vs Arguments**: <a name="parameters-vs-arguments"></a> Parameters are variables in a function definition, while arguments are the actual values passed to the function when it's invoked. ```plaintext function addNumbers(x, y) { // x and y are parameters return x + y; } const result = addNumbers(3, 5); // 3 and 5 are arguments ``` <div style="text-align: right;"> <a href="#table"> <button>Go to top</button> </a> </div> --- ## JavaScript Errors<a name="javascript-errors"></a> Certainly! JavaScript has various types of errors that can occur during code execution. Here's an overview of some common errors: **ReferenceError:**<a name="referenceerror"></a> This error occurs when trying to use a variable that has not been declared or is not within the current scope. For instance, accessing a variable that doesn't exist will result in a ReferenceError. ``` console.log(x); // Uncaught ReferenceError: x is not defined let x = 20 ``` **SyntaxError:**<a name="syntaxerror"></a> This error occurs when there's a mistake in the syntax of the code, making it impossible for the interpreter to parse correctly. Common examples include missing brackets, semicolons, or incorrect keywords. **TypeError:**<a name="typeerror"></a> This error occurs when a value is not of the expected type. For instance, attempting to call a method on a variable that is not a function will result in a TypeError. **_when you can try to mutated const declarations value will result in a TypeError instead of a TypeError._** ``` const foo = 30; foo = 90 // Uncaught TypeError: Assignment to constant variable. ``` **AggregateError:**<a name="aggregateerror"></a> Introduced in ES2020, it's used to represent multiple errors in the context of operations like Promise.allSettled() or Promise.any(). This error aggregates several errors into a single object, allowing handling multiple errors simultaneously. \_\_\_access Errors using:\_\_\_ ``` try{ }catch(e){ console.error(err.error); } ``` These errors can be caught using try...catch blocks in JavaScript to handle exceptional cases gracefully. Each type of error provides specific information that can be helpful for debugging, allowing developers to identify and fix issues in their code effectively. <div style="text-align: right;"> <a href="#table"> <button>Go to top</button> </a> </div> --- ### JavaScript Scope & Scope Chain <a name="javascript-scope-chain"></a> Before learning about scope , scope chain , or even closures , you need to understand the Lexical Environment . **What is Lexical Environments?** English “Lexical” means connection from outside in a certain order. A function’s “Lexical Environment” includes the function’s local memory plus its parent’s “Lexical Environment”. For example, the above function y is nested inside the function x ( y is a child of x ), and the function x is inside the global scope ( x is a child of global ). Also called y is lexically inside the x function. x is lexically inside global . As soon as an “Execution Context” is initialized, a “Lexical Environment” is also initialized. Let’s see the corresponding parent’s lexical environment in the example above: ![lexical-enviroment](./readmeImage/laxi-env.png) Now, lets go to deep drive on Scope and Scope chain, **What is Scope?** Scope can be defined as the space in which variables and statements are accessible. In JavaScript we have three types of scope: - Global scope, - Function/local scope (Script) - Block scope. **Global scope :** - The default scope - There is only one global scope in the program - It is the top scope that englobes the entire code - The declarations inside this space can be accessed anywhere in the code ![global-scope](./readmeImage/image.png) **Block scope :** - The space between a pair of curly braces (if block, for block, etc.) - Applicable to let and const - Declarations are only accessible inside the block ```java { //block start statement1; statement2; // ... more statements } // block end ``` In the example below we are able to print the variable msgOne but not constant msgTwo. As mentioned before **const** and **let** are block scoped so they are only visible inside the block, in this case inside the if statement. On the other hand **var** is function scope so can be accessed within the function. ![block-scope](./readmeImage/block-scope.png) let's talk about scope chaining............ **SCOPE CHAIN** ![lexical-enviroment](./readmeImage/laxi-env.png) Looking at the image, can you see how the program looks up the values ​​of the variable? The search order will be from the **purple ring** of **_Y_** to the purple ring of **_x_** and then to the purple ring of global and still not found, it will encounter null and end this search. Assuming c does not exist at the violet ring x as above, the program will continue to look for the purple rings y , then global . If it is still not found, an error will be reported. If it is found somewhere first, then the local value will be used. These are the things that JS Engine looks for from the inside out, called Scope Chain . Or to put it more simply, the Scope Chain is the chain of the Lexical Environments. **_Note: If the variable is not found in the local memory of the execution context , it will search the lexical environment until the end of the string._** <div style="text-align: right;"> <a href="#table"> <button>Go to top</button> </a> </div> --- <a name="variable-shadowing"></a> ### Variable Shadowing , let const [Solve memory leak problem] at first, need to understand why needs **let** **const** variables. what is the problem in **var** keyword let's see the code below, ```javascript var x = 90 { var x = 80 //global x pointer point same memory location console.log(x) } console.log(x) output: 80 80 // why output same for the different variables scope. it's memory leak issue. here x shadows the global x variables ``` When you declare a variable using **var** within a block (like within {}), it doesn't create a new block scope; instead, it modifies the existing variable of the same name in the outer scope. This behavior can lead to unexpected results, as you rightly pointed out. The introduction of `let` and `const` in ES6 provides a solution to this problem by introducing block-scoped variables: - `let` allows the variable to be reassigned within its scope but doesn't allow redeclaration within the same scope. - `const` also creates block-scoped variables but doesn't allow reassignment after declaration. By using `let` or `const`, you can avoid variable shadowing and prevent unintentional modification of variables in outer scopes. In your example, using `let` or `const` instead of `var` would resolve the issue: ```javascript let x = 90; // or const x = 90; if it's not meant to be reassigned { let x = 80; // This x is in a different scope console.log(x); // Outputs 80 } console.log(x); // Outputs 90 ``` This way, the variable x within the block has its own scope and doesn't affect the outer x variable, thereby preventing unintended behavior and potential memory leaks. **let const and var** ![Alt text](./readmeImage/variable.png) **Block Scope Shadowing with let or const:** ```javascript let a = 10; { let a = 20; // This is legal and creates a new 'a' variable within this block scope console.log(a); // Output: 20 } console.log(a); // Output: 10 (Global 'a' remains unaffected) ``` **Function Scope Shadowing with var:** ```javascript var b = 15; function example() { var b = 25; // This is legal and creates a new 'b' variable within this function scope console.log(b); // Output: 25 } example(); console.log(b); // Output: 15 (Global 'b' remains unaffected) ``` **_Illegal Variable Shadowing:_** **Block Scope Illegal Shadowing let/const with var:** ```javascript let c = 30; { var c = 40; // Illegal - 'var' cannot shadow 'let' or 'const' within the same scope console.log(c); // This will cause an error } console.log(c); ``` **JavaScript Scoping and Variable Declaration: Understanding Block Scope and Shadowing** ```javascript { let x = 90; { let y = 50; console.log(x); // 90 { console.log(y); // 50 const x = "Happy Day"; { console.log(x); // happy day } } } console.log(x); // 90 } //Output: Happy Day; 90; 50; Happy Day; 90; ``` Remember, JavaScript follows **lexical scoping rules**, where inner scopes have access to variables defined in outer scopes, but redeclaring variables within inner scopes creates new variables that only exist within those inner scopes. **Is variable shadowing good or bad?** If we already had some variable and we shadowed it inside another scope, we are losing access to the original variable and will not receive the output we need inside another scope. Shadowing can lead to unneeded bugs and results and will be harder to debug when you have many variables. That’s why it’s always better to name variables in a more explanatory way <div style="text-align: right;"> <a href="#table"> <button>Go to top</button> </a> </div> --- ### JavaScript Hoisting Concept <a name="javascript-hoisting"></a> When the JS engine gets our script, the first thing it does is setting up memory for the data in our code. No code is executed at this point, it’s simply just preparing everything for execution. The way that function declarations and variables are stored is different. Functions are stored with a reference to the entire function. see image below ![Alt text](./readmeImage/hoisting.png) after setting up memory then go to execute patch ![Alt text](./readmeImage/gif12.gif) All done! 🎉 Quick recap: - **Functions** and **variables** are stored in memory for an execution context before we execute our code. This is called hoisting. - **Functions are stored with a reference** to the entire functions, variables with the **var keyword with the value of undefined**, and variables with the **let and const keyword are stored uninitialized**. > [!IMPORTANT] <details> <summary><b>Isn't there hoisting in let/const or function?</b></summary> <p > Variables declared with var are hoisted to the top of their scope and initialized with a value of `undefined`. This means you can access var variables before they're actually declared in the code. However, variables declared with let and const are also hoisted to the top of their scope but are not initialized. They're in a **_"temporal dead zone"_** until the actual declaration is encountered in the code. Accessing let and const variables before their declaration results in a `ReferenceError`. For functions, **function declarations are hoisted entirely**, so you can call a function declared using function myFunction() before its actual placement in the code. However, function expressions, such as arrow functions or functions assigned to variables using const, are not hoisted in the same way. They behave similarly to let and const variables in terms of hoisting. </p> </details> <div style="text-align: right;"> <a href="#table"> <button>Go to top</button> </a> </div> --- ### JavaScript Closure <a name="javascript-closure"></a> A closure is the combination of a **function bundled together (enclosed) with references to its surrounding state (the lexical environment).** In other words, a closure gives you access to an outer function's scope from an inner function. In JavaScript, **_closures are created every time a function is created, at function creation time._** ```JavaScript function outer() { let b = 1; function inner() { return b; } return inner; } let get_func_inner = outer(); //here create closure outer function /* how can access b after returning a outer function. normally it's could not be access b because outer function return then it's not stay in call stack and memory. but it's still accessible because of javaScript closure*/ console.log(get_func_inner()); ``` Another Example ![js-closure](./readmeImage/closure.png) <div style="text-align: right;"> <a href="#table"> <button>Go to top</button> </a> </div> --- <a name="javascript-deadzone"></a> [!Important] > Create a Function which one Print 1 first 1 sec > again 2 sec print 2 > again 3 sec print 3. for 10 times Possible solutions but not correct: ```javascript function x() { for (var i = 0; i <= 10; i++) { setTimeout(function () { console.log(i); }, i * 1000); } } x() output: 10 10 10 10 . . . its not working, because of closure. var x point all setTimeout function same memory location. function x() { for (let i = 0; i < 10; i++) { setTimeout(function () { console.log(i); }, i * 1000); } } x() output: 1 2 3 4 . . ``` <a name="temporal-dead"></a> ### Temporal Dead Zone (TDZ) in JavaScript ( Time zone) In JavaScript, the temporal dead zone (TDZ) refers to the **period of time** during which a variable declared with the `let` or `const` keyword cannot be accessed or used. The TDZ begins at the point of declaration and ends when the variable is initialized with a value. [!Important] Variable declarations থেকে শুরু করে initializations হাওয়ার আগে মুহুর্ত পর্যন্ত সময়কে TDZ বলে। এই সময় এর মধ্যে যদি কোন variables কে access করতে চাই তাহলে তা `ReferenceError: __ is not defined` দিয়ে থাকে। বিদ্রঃ এটা শুধু মাত্র `let & const` এর সময় হয়ে থাকে। var এ কোন সময় হয় না। ```javascript console.log(num); // ReferenceError: num is not defined let x = 23; ``` <div style="text-align: right;"> <a href="#table"> <button>Go to top</button> </a> </div> --- <a name="undefined-vs-notdefined"></a> ### Undefined VS Not defined in JavaScript - Undefined: It's a Placeholder for JavaScript which is place in the memory. It's not exactly a **placeholder in memory**; rather, it's a specific value that JavaScript uses to denote the absence of an assigned value. When a variable is created but not initialized, JavaScript **automatically** assigns it the value of undefined until a value is explicitly assigned to it. This is different from languages like **C or C++ where uninitialized variables can contain random or garbage values.** > It's Take Memory Usage but not defined in JavaScript not use memory ```javascript let a; console.log(a); // Output will be 'undefined' ``` - Not Defined: means not allocated memory in our Ram --- --- <a name="asynchronous-javascript--event-loop-from-scratch"></a> ### Asynchronous JavaScript & EVENT LOOP from scratch 🔥 Asynchronous programming model has become so popular these days that programmers use it without actually understanding it. This leads to confusions such as conflating concurrency with parallelism. !["Event-loop"](./readmeImage/event-loop.gif) **Models of programming** Programming model is an abstract concept that explains how the program is structured and how it will run when executed. In order to appreciate asynchronous programming model, <!-- TODO=> --> --- <a name="polyfill-bind"></a> ### Polyfill for bind Method Polyfill is nothing but support to older browsers which doesn’t have new methods. just add this method to Function.prototype ```javascript Create a myoOwn MyBind method let info = { name: "Muhib Khan", age: 12, }; let printName = function (birthday, university, hello) { console.log( `${hello} My name is ${this.name} and age is ${this.age}. my birthday ${birthday}. my university name is ${university}` ); }; let printMyInfo = printName.bind(info, "21/04/1997", "BUBT"); printMyInfo("Hi"); Function.prototype.myBind = function (...arg) { console.log("arg:", arg); let obj = this; let params = arg.slice(1); console.log("params:", params); return function (...arg2) { obj.apply(arg[0], [...params, ...arg2]); }; }; let printMyInfo2 = printName.myBind(info, "21/04/1997", "BUBT"); printMyInfo2("Hello"); ``` --- <a name="debounce"></a> ### Debouching & Throttling Strategy **Debouncing: Taming Rapid Fire Actions** Debouncing is a technique used to control the frequency of function execution. It is particularly useful when dealing with events that fire rapidly, such as resizing a browser window or handling input from a user typing on a keyboard. - **Search Input:** In an autocomplete search bar, debounce can be used to delay the search query until the user has stopped typing for a short period, reducing the number of unnecessary API requests. - **Text Editor Autosave:** When implementing an autosave feature in a text editor, debounce can ensure that the save operation only occurs after the user has paused typing. - **Window Resize Handling:** Debounce can be useful when handling window resize events, allowing you to recalculate and adjust the layout only after the user has finished resizing the window. let's build Search Suggestions - Imagine you're implementing an autocomplete feature in a search bar. Without debouncing, the function responsible for fetching suggestions from a server might be called repeatedly as the user types each letter, causing unnecessary network requests. Debouncing allows you to delay these requests until the user has paused typing. lets implement the function ```javascript let count = 0; const doNetwork = () => { console.log("network calling..", count++); }; const debouching = function (fn, delay) { let timer; return function () { clearTimeout(timer); timer = setTimeout(() => { doNetwork.apply(this, arguments); }, delay); }; }; const batterFunction = debouching(doNetwork, 600); ``` **Throttling: Limiting Function Calls** Throttling is a method used to limit the rate at which a function is executed. It is beneficial when you want to ensure a function isn't invoked more often than a certain threshold, such as handling scroll events or preventing button double-clicks. - **Scroll Animation:** Throttling can be used to control the rate at which scroll events trigger animations or transitions on elements as the user scrolls down a page. - **Mousemove Tracking:** Throttle mousemove events to create interactive effects like parallax scrolling without overloading the browser with constant updates. - **Button Clicks:** Throttle button clicks to prevent double-clicking or rapid successive clicks from triggering multiple actions. let's build Scrolling Animations - Suppose you're creating a parallax scrolling effect where elements change position based on the user's scroll. Without throttling, the position update function could be called rapidly as the user scrolls, resulting in a jittery animation. Throttling ensures the function is called at a controlled rate. ```javascript function throttle(func, limit) { let inThrottle; return function (...args) { if (!inThrottle) { func(...args); inThrottle = true; setTimeout(() => { inThrottle = false; }, limit); } }; } const handleScroll = throttle(() => { // Update element positions based on scroll here console.log("Updating scroll position"); }, 200); window.addEventListener("scroll", handleScroll); ```
Learn Software Engineering core concept.
database,distributed-systems,javascript,nodejs,algorithms,data-structures
2023-11-06T06:50:53Z
2024-01-31T16:18:33Z
null
1
1
65
0
3
11
null
null
JavaScript
sbt-teavm/sbt-teavm
main
# sbt-teavm [![scaladex](https://index.scala-lang.org/sbt-teavm/sbt-teavm/sbt-teavm/latest.svg)](https://index.scala-lang.org/sbt-teavm/sbt-teavm/sbt-teavm) [![maven central](https://img.shields.io/maven-central/v/io.github.sbt-teavm/sbt-teavm_2.12_1.0.svg?label=Maven%20Central)](https://search.maven.org/search?q=g:io.github.sbt-teavm%20AND%20a:sbt-teavm_2.12_1.0) [![javadoc](https://javadoc.io/badge2/io.github.sbt-teavm/sbt-teavm_2.12_1.0/javadoc.svg)](https://javadoc.io/doc/io.github.sbt-teavm/sbt-teavm_2.12_1.0/latest/sbtteavm/index.html) [sbt](https://www.scala-sbt.org/) plugin for [TeaVM](https://teavm.org/). Generate JavaScript and WebAssembly from Java bytecode. ## setup ### require - install JDK 11 or later - [sbt](https://www.scala-sbt.org/) ### optional - [wasmtime](https://github.com/bytecodealliance/wasmtime) for run WebAssembly(WASI) - [Node.js](https://Node.js.org) and Chrome for run WebAssembly and JavaScript ### install #### `project/plugins.sbt` ```scala addSbtPlugin("io.github.sbt-teavm" % "sbt-teavm" % version) ``` #### `build.sbt` note: Maybe Scala 3 does not work due to default `lazy val` implementation use [`sun.misc.Unsafe`](https://github.com/lampepfl/dotty/blob/3.3.1/library/src/scala/runtime/LazyVals.scala) ```scala scalaVersion := // recommend 2.13.x enablePlugins(SbtTeaVM) ``` ## usage ### basic sbt tasks #### build - `teavmJS`: build js - `teavmWasm`: build WebAssembly (for web browser) - `teavmWasi`: build WebAssembly (WASI) - `teavmC`: build C (native) #### run - `teavmJS/run <args>`: require Node.js and Chrome - `teavmWasm/run <args>`: require Node.js and Chrome - `teavmWasi/run <args>`: require wasmtime #### runMain - `teavmJS/runMain` - `teavmWasm/runMain` - `teavmWasi/runMain`
sbt plugin for TeaVM. Generate JavaScript and WebAssembly from Java bytecode
java,javascript,sbt,sbt-plugin,scala,webassembly
2023-11-07T23:13:45Z
2024-05-06T22:16:56Z
null
2
24
35
3
1
10
null
MIT
Scala
Joao-Darwin/speech-to-text-whatsapp
main
# Speech to Text Whatsapp [![NPM](https://img.shields.io/npm/l/react)](https://github.com/Joao-Darwin/speech-to-text-whatsapp/blob/main/LICENSE) # Sobre o projeto O Projeto é um conversor de áudio para texto, especialmente projetado para lidar com áudios do WhatsApp. Foi desenvolvido com o propósito de simplificar e tornar mais acessível a compreensão de mensagens de áudio no WhatsApp. Frequentemente, pode ser desafiador ouvir essas mensagens devido a ambientes ruidosos ou outras circunstâncias. Portanto, o projeto se torna uma solução valiosa para garantir que o conteúdo do áudio seja facilmente acessível. Além disso, tem um impacto positivo na comunicação com pessoas com deficiência auditiva. Agora, eles têm a capacidade de converter mensagens de áudio em texto, o que melhora significativamente a acessibilidade da plataforma e possibilita uma comunicação mais inclusiva e eficaz. # Tecnologias utilizadas - JavaScript - NodeJS - Dotenv - OpenAI # Como executar o projeto ### Clonar repositório ```bash git clone https://github.com/Joao-Darwin/speech-to-text-whatsapp speechToTextWhatsapp ``` ### Entrar na pasta do projeto ```bash cd speechToTextWhatsapp ``` ### Configurar variáveis de ambiente #### Copiar e colar arquivo de exemplo ```bash cp .env.example .env ``` #### Definir variáveis de ambiente ![Exemplo definição](https://github.com/Joao-Darwin/repoImgs/blob/main/Imgs%20-%20SpeechToTextWhatsapp/exemploenv.png) ### Instalar depedências do projeto ```bash sudo npm install ``` ### Executar o projeto ```bash sudo npm run start ``` ### Leia o QR Code que aparecer no terminal ![Exemplo QR Code](https://github.com/Joao-Darwin/repoImgs/blob/main/Imgs%20-%20SpeechToTextWhatsapp/QRcode.png) # Autor <div> <a href="https://www.linkedin.com/in/joao-darwin/" target="_blank"><img src="https://img.shields.io/badge/-LinkedIn-%230077B5?style=for-the-badge&logo=linkedin&logoColor=white" style="border-radius: 30px"></a> </div>
Bot de conversão de áudio no whatsapp para texto
javascript,nodejs,openai,whisper
2023-11-02T03:49:37Z
2023-11-16T23:14:34Z
null
1
0
25
0
0
10
null
MIT
JavaScript
arjuncvinod/HackerRank-Solutions
main
# Here is my HackerRank Solutions >The repository contains the solutions to various HackerRank problems.Organize the solutions so they are easy to navigate and understand. Each solution includes a reference to the problem statement and is well-documented to explain the logic and approach. ### 1.Angry Professor - [Problem](https://www.hackerrank.com/challenges/angry-professor/problem) - [Solution](/AngryProfessor.js) - Explanation: This function, named `angryProfessor`, is designed to determine whether a professor will cancel a class or not based on the attendance of students. Let's break down how it works: ```javascript function angryProfessor(k, a) { ``` The function is defined with two parameters: `k` and `a`. - `k` is an integer representing the minimum number of students required for the professor to conduct the class. - `a` is an array of integers where each element represents the arrival time of a student. If `a[i]` is less than or equal to 0, it means the student arrived on time or early. If `a[i]` is greater than 0, it means the student arrived late. ```javascript let at = 0; ``` A variable `at` is initialized to 0. This variable will be used to count the number of students who arrived on time or early. ```javascript for (let i = 0; i < a.length; i++) { if (a[i] <= 0) at++; } ``` A `for` loop is used to iterate through the `a` array. For each student arrival time, it checks if `a[i]` is less than or equal to 0. If this condition is true, it means the student arrived on time or early, so the `at` counter is incremented. ```javascript if (at >= k) { return "NO"; } else { return "YES"; } ``` After counting the students who arrived on time or early, the function checks if the value of `at` is greater than or equal to `k`. If there are `k` or more students who arrived on time or early, the professor will not cancel the class, so the function returns the string "NO." Otherwise, if there are fewer than `k` students who arrived on time or early, the professor will cancel the class, and the function returns the string "YES." In summary, this function takes in the minimum required attendance (`k`) and an array of student arrival times (`a`) and determines whether the professor will cancel the class ("YES") or conduct it ("NO") based on the number of students who arrived on time or early. ### 2.Bon Appetit - [Problem](https://www.hackerrank.com/challenges/bon-appetit/problem) - [Solution](/BonAppetit.c) - Explanation: The `bonAppetit` function calculates how much money one person should pay for a meal, taking into account that they want to split the bill with their friends. The function takes four parameters: 1. `bill_count`: An integer representing the number of items on the bill. 2. `bill`: A pointer to an array of integers, where each element of the array represents the cost of a particular item on the bill. 3. `k`: An integer representing the 0-based index of the item that one person did not consume or wants to exclude from their share. 4. `b`: An integer representing the amount of money that the person contributed initially. Here's an explanation of what the function does: 1. It initializes an integer variable `s` to 0. This variable will be used to keep track of the total cost of the items that the person did consume. 2. The function then enters a `for` loop, iterating through the items on the bill from index 0 to `bill_count - 1`. 3. Inside the loop, it checks if the current item's index `i` is equal to the index `k`, which represents the item the person did not consume. If `i` is equal to `k`, it uses the `continue` statement to skip that item and proceeds to the next iteration of the loop. 4. For all other items (i.e., items not at index `k`), it adds their cost to the variable `s`. This is effectively calculating the total cost of the items that the person did consume. 5. After the loop, it checks if half of the total cost (`s/2`) is equal to the initial contribution `b`. If they are equal, it means that the person has contributed the correct amount for their share of the bill, and it prints "Bon Appetit" to indicate that everything is okay. 6. If `s/2` is not equal to `b`, it means the person contributed too much or too little. In this case, it calculates the difference between what they should have paid and what they initially contributed, which is `b - (s/2)`, and prints this value. This value could be positive or negative, indicating whether the person overpaid or underpaid, respectively. So, in summary, the function helps determine whether a person's initial contribution to a shared meal bill is correct and provides feedback accordingly. ### 3.Cats And Mouse - [Problem](https://www.hackerrank.com/challenges/cat-and-mouse/problem) - [Solution](/CatsAndMouse.c) - Explanation: 1. `abs(z-x)` calculates the absolute difference between the position of Cat A (at `x`) and the position of the mouse (at `z`). 2. `abs(z-y)` calculates the absolute difference between the position of Cat B (at `y`) and the position of the mouse (at `z`). The function then compares these absolute differences to determine which cat will catch the mouse first, or if the mouse escapes: - If `abs(z-x) < abs(z-y)`, it means Cat A is closer to the mouse than Cat B, and the function returns the string "Cat A." Cat A catches the mouse first. - If `abs(z-x) == abs(z-y)`, it means both Cat A and Cat B are equidistant from the mouse. In this case, the function returns the string "Mouse C." The mouse escapes because it's in the middle. - If neither of the above conditions is met, it means `abs(z-y) < abs(z-x)`, which indicates that Cat B is closer to the mouse than Cat A. In this case, the function returns the string "Cat B." Cat B catches the mouse first. So, the function essentially determines which of the two cats will catch the mouse first based on their positions and returns the appropriate string. ### 4.Compare The Triplets - [Problem](https://www.hackerrank.com/challenges/compare-the-triplets/problem) - [Solution](/CompareTheTriplets.c) - Explanation: `compareTriplets`function compare two sets of integer values and determine the number of elements that are greater in one set compared to the other. The function takes as input two arrays, `a` and `b`, each of which represents a set of values. It also takes two integers, `a_count` and `b_count`, which specify the number of elements in each array. Finally, it takes a pointer to an integer, `result_count`, which will be used to store the number of elements in the result array. Here's how the function works: 1. It initializes two variables, `alice` and `bob`, to zero. These two variables will be used to keep track of the number of elements that are greater in `a` and `b`, respectively. 2. It then enters a `for` loop that iterates over the elements in the arrays `a` and `b`. The loop uses an index variable `i` to access each element in both arrays. 3. Inside the loop, it compares the elements at the same index in the `a` and `b` arrays: - If `a[i]` is greater than `b[i]`, it means that Alice's score is incremented by 1 because the element in array `a` is greater. - If `b[i]` is greater than `a[i`, it means that Bob's score is incremented by 1 because the element in array `b` is greater. - If the elements are equal, nothing happens. 4. After the loop has finished, the function sets `*result_count` to 2. This is because the result array will always have two elements: Alice's score and Bob's score. 5. It then creates a static integer array `c` of size 2. The use of the `static` keyword here ensures that the array retains its value between function calls, making it safe to return a pointer to this array. 6. The function stores the values of `alice` and `bob` in the `c` array. `c[0]` stores Alice's score, and `c[1]` stores Bob's score. 7. Finally, it returns a pointer to the `c` array, which contains the scores for Alice and Bob. The caller of the function can use this pointer to access the results. In summary, this function takes two arrays, compares their elements, and calculates the scores for Alice and Bob based on the comparisons. It then returns a pointer to an array containing these scores. ### 5.Diagonal Difference - [Problem](https://www.hackerrank.com/challenges/diagonal-difference/problem) - [Solution](/DiagonalDifference.c) - Explanation: The `diagonalDifference` function calculates the absolute difference between the sums of two types of diagonals in a 2D array, typically representing a square matrix. Let's break down the function step by step: ```c int diagonalDifference(int arr_rows, int arr_columns, int** arr) { ``` This function takes three parameters: - `arr_rows`: An integer representing the number of rows in the 2D array. - `arr_columns`: An integer representing the number of columns in the 2D array. - `arr`: A pointer to a pointer to an integer, representing the 2D array itself. ```c int pdsum = 0, sdsum = 0, diff = 0; ``` Three integer variables are declared: - `pdsum`: This variable will be used to store the sum of elements on the primary diagonal. - `sdsum`: This variable will be used to store the sum of elements on the secondary diagonal. - `diff`: This variable will store the absolute difference between the sums of the two diagonals. ```c for (int i = 0; i < arr_columns; i++) { sdsum += arr[i][arr_columns - i - 1]; } ``` The function then enters a loop that iterates through the columns of the 2D array. Inside the loop, it calculates the sum of elements on the secondary diagonal. The secondary diagonal is formed by elements at positions `[0][n-1]`, `[1][n-2]`, `[2][n-3]`, and so on. It calculates the sum by accessing the array elements at positions `[i][arr_columns - i - 1]` and adding them to the `sdsum` variable. ```c for (int i = 0; i < arr_columns; i++) { pdsum += arr[i][i]; } ``` Next, there's another loop that iterates through the columns, and it calculates the sum of elements on the primary diagonal. The primary diagonal consists of elements at positions `[0][0]`, `[1][1]`, `[2][2]`, and so on. It calculates the sum by accessing the array elements at positions `[i][i]` and adding them to the `pdsum` variable. ```c diff = abs(pdsum - sdsum); ``` After calculating the sums of both diagonals, it calculates the absolute difference between the sums and stores it in the `diff` variable. Finally, the function returns the absolute difference as its result. In summary, this function takes a square 2D array and calculates the absolute difference between the sums of its primary and secondary diagonals. It's often used in programming challenges related to matrix manipulation. ### 6.Divisible Sum Pairs - [Problem](https://www.hackerrank.com/challenges/divisible-sum-pairs/problem) - [Solution](/DivisibleSumPairs.js) - Explanation: The`divisibleSumPairs` function takes three parameters: 1. `n` - An integer, which represents the length of the array `ar`. 2. `k` - An integer, which is the divisor you want to check for divisibility. 3. `ar` - An array of integers. The purpose of this function is to count pairs of elements from the `ar` array such that the sum of the elements in each pair is divisible by `k`. Let's break down how it works: 1. It initializes a variable `count` to 0. This variable will be used to keep track of the count of pairs that meet the divisibility condition. 2. The function uses two nested `for` loops to iterate through all possible pairs of elements in the `ar` array. The outer loop iterates over elements with index `i` from 0 to `n - 1`, and the inner loop iterates over elements with index `j` from 0 to `n - 1`. 3. In each iteration of the loops, it checks whether `i` is less than `j` to ensure that it doesn't count the same pair twice. It's interested in unique pairs, so it avoids counting pairs with the same elements in reverse order (e.g., if it has already counted the pair (ar[i], ar[j]), it won't count the pair (ar[j], ar[i])). 4. Inside the conditional statement, it calculates the sum of the elements at indices `i` and `j` in the `ar` array using `ar[i] + ar[j]`. It then checks if this sum is divisible by `k` using the modulo operator (`%`). If the sum is divisible by `k` (i.e., the remainder is 0), it increments the `count` variable by 1. 5. After both loops have finished iterating over all pairs of elements, the function returns the final value of the `count` variable, which represents the count of pairs in the `ar` array for which the sum of elements is divisible by `k`. In summary, this function counts pairs of elements in an array such that the sum of the elements in each pair is divisible by a given integer `k`. It uses nested loops to compare all possible pairs and increments a counter when a valid pair is found. ### 7.Find The Median - [Problem](https://www.hackerrank.com/challenges/find-the-median/problem) - [Solution](/FindTheMedian.js) - Explanation: The`findMedian` function find and return the median value of an array of numbers. The median is the middle value of a dataset when it is ordered. Here's a step-by-step explanation of how the function works: 1. `function findMedian(arr)`: This line defines a function named `findMedian`, which takes one argument, `arr`, representing an array of numbers. 2. `let len = arr.length;`: This line calculates the length of the input array `arr` and stores it in the variable `len`. The length of an array represents the number of elements in that array. 3. `arr.sort();`: This line sorts the elements of the input array `arr` in ascending order. This is a crucial step for finding the median because it ensures that the elements are in the correct order for determining the middle value. 4. `let med = Math.floor(len / 2);`: Here, the code calculates the index of the middle element. It divides the length of the array `len` by 2 and then uses `Math.floor()` to round down to the nearest integer. This ensures that if the array has an even number of elements, you will get the lower of the two middle values, which is the correct approach for calculating the median. 5. `return arr[med];`: Finally, the function returns the value at the index `med` in the sorted array `arr`. This value is the median of the input array because, after sorting and determining the middle index, it corresponds to the median value. ### 8.Flipping Bits - [Problem](https://www.hackerrank.com/challenges/flipping-bits/problem) - [Solution](/FlippingBits.c) - Explanation: The function `flippingBits` takes a single argument `n`, which is a long integer, and it returns the result of flipping all the bits in the binary representation of `n`. Let's break down how it works: 1. `4294967295` is a 32-bit unsigned integer with all its bits set to 1. In binary, it looks like this: `11111111111111111111111111111111`. 2. `n` is also a long integer, and it is expected to be a 32-bit value, but it can be of any size. When you subtract `n` from `4294967295`, it effectively inverts all the bits in `n`. This is done using bitwise negation. - Bitwise negation (complement) of a binary number flips all its bits from 0 to 1 and from 1 to 0. For example, if `n` is `10101010` in binary, then bitwise negation of `n` will be `01010101`. 3. The function returns the result of this operation, which will be a long integer with all the bits in `n` flipped. This function can be used to "flip" the bits of a binary number, effectively changing all 0s to 1s and all 1s to 0s, assuming that the input `n` is a 32-bit integer. It's important to note that if `n` is not a 32-bit integer, the function might not produce the desired result, as it relies on a fixed value of `4294967295` which corresponds to a 32-bit integer. ### 9.Migratory Birds - [Problem](https://www.hackerrank.com/challenges/migratory-birds/problem) - [Solution](/MigratoryBirds.js) - Explanation: This `migratoryBirds(arr)`function find and return the most common type of bird based on an array of bird sightings. It uses a counting approach to determine which bird type appears most frequently in the array. Here's a step-by-step explanation of how it works: 1. `let sorted = arr.sort();`: The function starts by sorting the input array `arr`. This sorts the elements in `arr` in lexicographic (alphabetical) order. Note that this will not work correctly if the bird types are not represented by numbers or simple strings. If the bird types are represented by complex objects or need more sophisticated comparisons, you may need to provide a custom comparison function to the `sort` method. 2. `let ans = sorted[0];`: The `ans` variable is initialized with the first element of the sorted array. This initial value assumes that the first element is the most common bird type. The function will update this value if it finds a bird type with a higher occurrence count. 3. `let maxOccur = 1, counter = 0;`: `maxOccur` is initialized to 1, and `counter` is initialized to 0. `maxOccur` will keep track of the maximum occurrence count, and `counter` will help count the occurrences of the current bird type. 4. The function then enters a `for` loop that iterates over the sorted array. It starts at the first element (index 0) and goes through each element in the array. 5. `counter = sorted[i] === sorted[i - 1] ? counter + 1 : 0;`: In this line, the code checks if the current bird type (`sorted[i]`) is the same as the previous bird type (`sorted[i - 1]`). If they are the same, `counter` is incremented by 1 to keep track of the consecutive occurrences of the same bird type. If they are not the same, `counter` is reset to 0. 6. `if (counter > maxOccur) { ans = sorted[i]; maxOccur = counter; }`: This conditional statement checks if the `counter` is greater than the current maximum occurrence count (`maxOccur`). If it is, it updates `ans` with the current bird type (`sorted[i]`) and updates `maxOccur` to the new maximum occurrence count. 7. The loop continues, and if a bird type with a higher occurrence count is found, `ans` and `maxOccur` are updated. This process continues until the end of the sorted array is reached. 8. Finally, the function returns `ans`, which should now hold the bird type with the highest occurrence count in the input array `arr`. The purpose of this function is to determine the most common bird type in a given array of sightings and return that bird type. ### 10.Strange Advertising - [Problem](https://www.hackerrank.com/challenges/strange-advertising/problem) - [Solution](/StrangeAdvertising.js) - Explanation: The`viralAdvertising(n)` function calculates the number of people who "like" a product or service through a viral advertising campaign, given a certain number of days `n`. The function simulates how advertising spreads through a network of people, with each person exposed to the product or service sharing it with others. Here's a step-by-step explanation of the function: 1. `let rec = 5, like = 0;`: This line initializes two variables, `rec` and `like`. - `rec` is the number of people who see the ad on the first day (in this case, 5 people). - `like` is the running total of people who "like" the ad. 2. `for (let i = 0; i < n; i++) {`: This line starts a loop that iterates for `n` days. It simulates the advertising campaign for `n` days. 3. `like += Math.floor(rec / 2);`: Inside the loop, this line updates the `like` variable. It calculates how many people "like" the ad on the current day and adds it to the running total `like`. - `rec / 2` represents the number of people who see the ad and decide to "like" it. `Math.floor` is used to round down to the nearest whole number because you can't have a fraction of a person "liking" something. 4. `rec = Math.floor(rec / 2) * 3;`: This line updates the `rec` variable for the next day. It calculates how many people will be exposed to the ad on the following day. - `rec / 2` represents the number of people who saw the ad on the current day and shared it with others (assuming each person shares it with exactly 2 others, which is why it's divided by 2). - Multiplying by 3 simulates the idea that each person who saw the ad on the current day shared it with 3 new people on the next day. - 5. The loop continues for `n` days, updating `like` and `rec` each day. 6. Finally, after the loop has completed, the function returns the total number of people who "liked" the ad, which is stored in the `like` variable. In summary, the function models a viral advertising campaign by tracking how many people like the ad each day and how many new people are exposed to the ad through sharing. It returns the cumulative number of people who liked the ad over the specified number of days `n`.
HackerRank solutons
c,javascript
2023-10-18T13:38:37Z
2023-10-27T16:12:16Z
null
1
4
35
0
0
10
null
null
JavaScript
k4itrun/shop-managerx-milrato
main
# Arcades Management 🚨 *discontinued* *Easy to configure, it is only to change each ID of each `channel`, `category`, `emojis`, `roles`, `messages`* > you can change everything from the folder called **[config](https://github.com/k4itrun/discord-js-arcades-management-official/tree/master/config)** ### Recommendations To change all the IDS more quickly you can do a global search with Visual Studio Code and do global replacement to avoid errors 🤙 ### Important To save the bot's database on your server use the `,ensure` command to avoid errors
The official version of shop manager a bot to create a bot store in discord you can manage the bots from one
bot,discord,discord-js,discordbot,javascript,manager,milrato,shop-manager,tomato
2023-10-14T18:44:56Z
2024-03-16T03:55:39Z
null
1
0
3
0
3
10
null
null
JavaScript
Sanjeev-Kumar78/Travel-Itinerary-Generator
main
# [Travel Itinerary Generator](https://sanjeev02.pythonanywhere.com) *** [![GitHub license](https://img.shields.io/github/license/Sanjeev-Kumar78/Travel-Itinerary-Generator)](LICENSE) [![GitHub issues](https://img.shields.io/github/issues/Sanjeev-Kumar78/Travel-Itinerary-Generator)]() [![GitHub contributors](https://img.shields.io/github/contributors/Sanjeev-Kumar78/Travel-Itinerary-Generator)]() [![GitHub last-commit](https://img.shields.io/github/last-commit/Sanjeev-Kumar78/Travel-Itinerary-Generator)]() <img title="Travel-Itinerary-Generator" align='right' src="/static/logo.svg" alt="Travel Itinerary Generator Logo" width="150"/> Plan your dream trip effortlessly with the Travel Itinerary Generator! This powerful trip planner is your ultimate companion for crafting seamless travel experiences. Whether you're embarking on a road trip, city excursion, or overseas adventure, our tool simplifies the entire planning process. ## Sample: https://github.com/Sanjeev-Kumar78/Travel-Itinerary-Generator/assets/62820550/d55374a9-41bd-4454-8c2b-4f037b1f010b <p align="center"> Make your travel dreams a reality. Start planning your next adventure with the Travel Itinerary Generator today! </p> <p align="center"> <i>Explore, discover, and make every trip unforgettable.*</i> </p> ## Table of Contents - [Travel Itinerary Generator](#travel-itinerary-generator) - [Sample:](#sample) - [Table of Contents](#table-of-contents) - [About](#about) - [Limitations \& Future Work](#limitations--future-work) - [Features](#features) - [Requirements](#requirements) - [Setup and Installation](#setup-and-installation) - [API Keys](#api-keys) - [Usage](#usage) - [Screenshots](#screenshots) - [License](#license) ## About Travel Itinerary Generator is a computer program that empowers travelers to effortlessly create personalized travel itineraries. By considering users' interests, budgets, and travel dates, this application generates comprehensive lists of activities, attractions, and accommodations. Whether you're an experienced traveler or a novice, the Travel Itinerary Generator is your key to saving time and ensuring an enriching and well-rounded travel experience. ## Limitations & Future Work - The Travel Itinerary Generator works only based on the user's source and destination and time of travel. ***Future Work*** - The Travel Itinerary Generator is not able to generate itineraries for multiple destinations. - The Travel Itinerary Generator is not able to suggest hotels and flights. - **Real-time Collaboration:** In an increasingly interconnected world, we plan to introduce real-time collaboration features. Users will be able to share their itineraries with travel companions or collaborators, making group travel planning an effortless and collaborative experience. ## Features - **Weather Forecast:** The Travel Itinerary Generator provides a weather forecast of the destination for the whole travel time. - **Travel Itinerary:** The Travel Itinerary Generator provides a travel itinerary for the whole travel time in an optimum budget. ## Requirements - Python 3.11 - Flask - Flask-SQLAlchemy - google-generativeai==0.2.2 ## Setup and Installation 1. Clone the repository: ```shell https://github.com/Sanjeev-Kumar78/Travel-Itinerary-Generator.git cd Travel-Itinerary-Generator 2. Install required packages: ```shell pip install -r requirements.txt ``` ## API Keys - Visual Crossing Weather API Key: [Sign up](https://www.visualcrossing.com/weather-api) for a free account and get your API key. - Google Palm API: [Sign up](https://makersuite.google.com) for a free account and get your API key. ## Usage - Please follow the instructions below to run the application locally. Write API keys: In a `.env` file. ```shell WEATHER_API_KEY='Your Visual Crossing Weather API Key' PALM_API_KEY='Your Google Palm API Key' ``` and save it in the root directory of the project. Run the following command to start the application: ```shell python wsgi.py ``` ## Screenshots **Home Page of Travel Itinerary Generator without Login.** ![image](https://github.com/Sanjeev-Kumar78/Travel-Itinerary-Generator/assets/62820550/a5e0f1c9-b0c4-4c1b-ba50-1a0b6c2a56bf) **Register Page / Sign Up** ![image-1](https://github.com/Sanjeev-Kumar78/Travel-Itinerary-Generator/assets/62820550/2c2f90ff-c81d-48e6-a64f-ed71a1485cc8) **Login Page** ![image-2](https://github.com/Sanjeev-Kumar78/Travel-Itinerary-Generator/assets/62820550/7f50219b-546a-43d0-83bd-ca5d2262c261) **For Testing, I have taken Source Point as Varanasi & Destination as Mumbai, Starting Date of Journey: 06/11/2023, Return Date: 10/11/2023** ![image-3](https://github.com/Sanjeev-Kumar78/Travel-Itinerary-Generator/assets/62820550/9b429e5a-722c-4d0c-ae39-b4e64440a34a) **Itinerary Page** ![image-4](https://github.com/Sanjeev-Kumar78/Travel-Itinerary-Generator/assets/62820550/9f91a253-7ab8-4211-9b58-0a843cc66f0e) ## License This project is licensed under the [Apache License 2.0](LICENSE) - see the [LICENSE](LICENSE) file for details.
A web-based tool that simplifies travel planning.
api,bootstrap5,css,flask,html,javascript,python,web-frontend,frontend,itinerary-generator
2023-11-06T09:57:04Z
2024-04-30T18:26:51Z
null
1
4
50
0
7
10
null
Apache-2.0
HTML
MastooraTurkmen/Redux-Project
main
# Redux Toolkit [Live Site Link](https://redux-toolkit-your-bag-project.netlify.app/) ![Screenshot](./screenshots/image.png) ![Screenshot](./screenshots/image-1.png) ![Screenshot](./screenshots/image-2.png) #### Docs [Redux Toolkit Docs](https://redux-toolkit.js.org/introduction/getting-started) #### Install Template ```sh npx create-react-app my-app --template redux ``` - @latest ```sh npx create-react-app@latest my-app --template redux ``` #### Existing App ```sh npm install @reduxjs/toolkit react-redux ``` #### @reduxjs/toolkit consists of few libraries - redux (core library, state management) - immer (allows to mutate state) - redux-thunk (handles async actions) - reselect (simplifies reducer functions) #### Extras - redux devtools - combine reducers #### react-redux connects our app to redux #### Setup Store - create store.js ```js import { configureStore } from "@reduxjs/toolkit"; export const store = configureStore({ reducer: {}, }); ``` #### Setup Provider - index.js ```js import React from "react"; import ReactDOM from "react-dom"; import "./index.css"; import App from "./App"; // import store and provider import { store } from "./store"; import { Provider } from "react-redux"; ReactDOM.render( <React.StrictMode> <Provider store={store}> <App /> </Provider> </React.StrictMode>, document.getElementById("root") ); ``` #### Setup Cart Slice - application feature - create features folder/cart - create cartSlice.js ```js import { createSlice } from "@reduxjs/toolkit"; const initialState = { cartItems: [], amount: 0, total: 0, isLoading: true, }; const cartSlice = createSlice({ name: "cart", initialState, }); console.log(cartSlice); export default cartSlice.reducer; ``` - store.js ```js import { configureStore } from "@reduxjs/toolkit"; import cartReducer from "./features/cart/cartSlice"; export const store = configureStore({ reducer: { cart: cartReducer, }, }); ``` #### Redux DevTools - extension #### Access store value - create components/Navbar.js ```js import { CartIcon } from "../icons"; import { useSelector } from "react-redux"; const Navbar = () => { const { amount } = useSelector((state) => state.cart); return ( <nav> <div className="nav-center"> <h3>redux toolkit</h3> <div className="nav-container"> <CartIcon /> <div className="amount-container"> <p className="total-amount">{amount}</p> </div> </div> </div> </nav> ); }; export default Navbar; ``` #### Hero Icons - [Hero Icons](https://heroicons.com/) ```css nav svg { width: 40px; color: var(--clr-white); } ``` #### Setup Cart - cartSlice.js ```js import cartItems from "../../cartItems"; const initialState = { cartItems: cartItems, amount: 0, total: 0, isLoading: true, }; ``` - create CartContainer.js and CartItem.js - CartContainer.js ```js import React from "react"; import CartItem from "./CartItem"; import { useSelector } from "react-redux"; const CartContainer = () => { const { cartItems, total, amount } = useSelector((state) => state.cart); if (amount < 1) { return ( <section className="cart"> {/* cart header */} <header> <h2>your bag</h2> <h4 className="empty-cart">is currently empty</h4> </header> </section> ); } return ( <section className="cart"> {/* cart header */} <header> <h2>your bag</h2> </header> {/* cart items */} <div> {cartItems.map((item) => { return <CartItem key={item.id} {...item} />; })} </div> {/* cart footer */} <footer> <hr /> <div className="cart-total"> <h4> total <span>${total}</span> </h4> </div> <button className="btn clear-btn">clear cart</button> </footer> </section> ); }; export default CartContainer; ``` - CartItem.js ```js import React from "react"; import { ChevronDown, ChevronUp } from "../icons"; const CartItem = ({ id, img, title, price, amount }) => { return ( <article className="cart-item"> <img src={img} alt={title} /> <div> <h4>{title}</h4> <h4 className="item-price">${price}</h4> {/* remove button */} <button className="remove-btn">remove</button> </div> <div> {/* increase amount */} <button className="amount-btn"> <ChevronUp /> </button> {/* amount */} <p className="amount">{amount}</p> {/* decrease amount */} <button className="amount-btn"> <ChevronDown /> </button> </div> </article> ); }; export default CartItem; ``` #### First Reducer - cartSlice.js - Immer library ```js const cartSlice = createSlice({ name: "cart", initialState, reducers: { clearCart: (state) => { state.cartItems = []; }, }, }); export const { clearCart } = cartSlice.actions; ``` - create action ```js const ACTION_TYPE = "ACTION_TYPE"; const actionCreator = (payload) => { return { type: ACTION_TYPE, payload: payload }; }; ``` - CartContainer.js ```js import React from "react"; import CartItem from "./CartItem"; import { useDispatch, useSelector } from "react-redux"; const CartContainer = () => { const dispatch = useDispatch(); return ( <button className="btn clear-btn" onClick={() => { dispatch(clearCart()); }} > clear cart </button> ); }; export default CartContainer; ``` #### Remove, Increase, Decrease - cartSlice.js ```js import { createSlice } from "@reduxjs/toolkit"; import cartItems from "../../cartItems"; const initialState = { cartItems: [], amount: 0, total: 0, isLoading: true, }; const cartSlice = createSlice({ name: "cart", initialState, reducers: { clearCart: (state) => { state.cartItems = []; }, removeItem: (state, action) => { const itemId = action.payload; state.cartItems = state.cartItems.filter((item) => item.id !== itemId); }, increase: (state, { payload }) => { const cartItem = state.cartItems.find((item) => item.id === payload.id); cartItem.amount = cartItem.amount + 1; }, decrease: (state, { payload }) => { const cartItem = state.cartItems.find((item) => item.id === payload.id); cartItem.amount = cartItem.amount - 1; }, calculateTotals: (state) => { let amount = 0; let total = 0; state.cartItems.forEach((item) => { amount += item.amount; total += item.amount * item.price; }); state.amount = amount; state.total = total; }, }, }); export const { clearCart, removeItem, increase, decrease, calculateTotals } = cartSlice.actions; export default cartSlice.reducer; ``` - CartItem.js ```js import React from "react"; import { ChevronDown, ChevronUp } from "../icons"; import { useDispatch } from "react-redux"; import { removeItem, increase, decrease } from "../features/cart/cartSlice"; const CartItem = ({ id, img, title, price, amount }) => { const dispatch = useDispatch(); return ( <article className="cart-item"> <img src={img} alt={title} /> <div> <h4>{title}</h4> <h4 className="item-price">${price}</h4> {/* remove button */} <button className="remove-btn" onClick={() => { dispatch(removeItem(id)); }} > remove </button> </div> <div> {/* increase amount */} <button className="amount-btn" onClick={() => { dispatch(increase({ id })); }} > <ChevronUp /> </button> {/* amount */} <p className="amount">{amount}</p> {/* decrease amount */} <button className="amount-btn" onClick={() => { if (amount === 1) { dispatch(removeItem(id)); return; } dispatch(decrease({ id })); }} > <ChevronDown /> </button> </div> </article> ); }; export default CartItem; ``` - App.js ```js import { useEffect } from "react"; import Navbar from "./components/Navbar"; import CartContainer from "./components/CartContainer"; import { useSelector, useDispatch } from "react-redux"; import { calculateTotals } from "./features/cart/cartSlice"; function App() { const { cartItems } = useSelector((state) => state.cart); const dispatch = useDispatch(); useEffect(() => { dispatch(calculateTotals()); }, [cartItems]); return ( <main> <Navbar /> <CartContainer /> </main> ); } export default App; ``` #### Modal - create components/Modal.js ```js const Modal = () => { return ( <aside className="modal-container"> <div className="modal"> <h4>Remove all items from your shopping cart?</h4> <div className="btn-container"> <button type="button" className="btn confirm-btn"> confirm </button> <button type="button" className="btn clear-btn"> cancel </button> </div> </div> </aside> ); }; export default Modal; ``` - App.js ```js return ( <main> <Modal /> <Navbar /> <CartContainer /> </main> ); ``` #### modal slice - create features/modal/modalSlice.js ```js import { createSlice } from "@reduxjs/toolkit"; const initialState = { isOpen: false, }; const modalSlice = createSlice({ name: "modal", initialState, reducers: { openModal: (state, action) => { state.isOpen = true; }, closeModal: (state, action) => { state.isOpen = false; }, }, }); export const { openModal, closeModal } = modalSlice.actions; export default modalSlice.reducer; ``` - App.js ```js const { isOpen } = useSelector((state) => state.modal); return ( <main> {isOpen && <Modal />} <Navbar /> <CartContainer /> </main> ); ``` #### toggle modal - CartContainer.js ```js import { openModal } from "../features/modal/modalSlice"; return ( <button className="btn clear-btn" onClick={() => { dispatch(openModal()); }} > clear cart </button> ); ``` - Modal.js ```js import { closeModal } from "../features/modal/modalSlice"; import { useDispatch } from "react-redux"; import { clearCart } from "../features/cart/cartSlice"; const Modal = () => { const dispatch = useDispatch(); return ( <aside className="modal-container"> <div className="modal"> <h4>Remove all items from your shopping cart?</h4> <div className="btn-container"> <button type="button" className="btn confirm-btn" onClick={() => { dispatch(clearCart()); dispatch(closeModal()); }} > confirm </button> <button type="button" className="btn clear-btn" onClick={() => { dispatch(closeModal()); }} > cancel </button> </div> </div> </aside> ); }; export default Modal; ``` #### async functionality with createAsyncThunk - [Course API](https://course-api.com/) - https://course-api.com/react-useReducer-cart-project - cartSlice.js - action type - callback function - lifecycle actions ```js import { createSlice, createAsyncThunk } from "@reduxjs/toolkit"; const url = "https://course-api.com/react-useReducer-cart-project"; export const getCartItems = createAsyncThunk("cart/getCartItems", () => { return fetch(url) .then((resp) => resp.json()) .catch((err) => console.log(error)); }); const cartSlice = createSlice({ name: "cart", initialState, extraReducers: { [getCartItems.pending]: (state) => { state.isLoading = true; }, [getCartItems.fulfilled]: (state, action) => { console.log(action); state.isLoading = false; state.cartItems = action.payload; }, [getCartItems.rejected]: (state) => { state.isLoading = false; }, }, }); ``` - App.js ```js import { calculateTotals, getCartItems } from "./features/cart/cartSlice"; function App() { const { cartItems, isLoading } = useSelector((state) => state.cart); useEffect(() => { dispatch(getCartItems()); }, []); if (isLoading) { return ( <div className="loading"> <h1>Loading...</h1> </div> ); } return ( <main> {isOpen && <Modal />} <Navbar /> <CartContainer /> </main> ); } export default App; ``` #### Options ```sh npm install axios ``` - cartSlice.js ```js export const getCartItems = createAsyncThunk( "cart/getCartItems", async (name, thunkAPI) => { try { // console.log(name); // console.log(thunkAPI); // console.log(thunkAPI.getState()); // thunkAPI.dispatch(openModal()); const resp = await axios(url); return resp.data; } catch (error) { return thunkAPI.rejectWithValue("something went wrong"); } } ); ``` #### The extraReducers "builder callback" notation cart/cartSlice ```js const cartSlice = createSlice({ name: "cart", initialState, reducers: { // reducers }, extraReducers: (builder) => { builder .addCase(getCartItems.pending, (state) => { state.isLoading = true; }) .addCase(getCartItems.fulfilled, (state, action) => { // console.log(action); state.isLoading = false; state.cartItems = action.payload; }) .addCase(getCartItems.rejected, (state, action) => { console.log(action); state.isLoading = false; }); }, }); ```
null
css,css3,html,html5,javascript,redux-toolkit,api
2023-10-13T15:41:06Z
2024-04-28T06:31:35Z
null
1
0
402
0
0
10
null
null
JavaScript
leoneedpro/instapi-followers
main
![instapi-followers](/readme/images/banner.jpg) # Instapi-followers **Версия:** 1.0<br> **Описание:** Instagram-парсер, сбор подписчиков и подписок на основе fetch-запросов с интерфейсом управления и возможностью скачать данные в формате JSON или Excel (CSV)<br><br> [![buymeacoffee](/readme/images/buymeacoffee.png)](https://pay.mysbertips.ru/72317565) ### Состав проекта: - каталог [`/readme/images`](/readme/images/) содержит изображения для файла [`readme.md`](README.md) - каталог [`/src-interface`](/src-interface) содержит исходный код интерфейса - файл [`instapi-followers.js`](instapi-followers.js) - полный код скрипта - файл [`instapi-followers.min.js`](instapi-followers.min.js) - предпочтительный (сжатый) ### Во избежание блокировки > Старайтесь не использовать личный аккаунт для сбора данных и не превышайте лимиты Instagram. Сбор данных осуществляется только с открытого аккаунта, либо вы должны быть на него подписаны. ## Как запустить? На примере браузера Google Chrome 1. В браузере переходим в [https://instagram.com](https://instagram.com) и авторизуемся 2. Далее переходим на страницу интересующего аккаунта 3. Открываем в браузере **инструменты Разработчика**<br> <sub>(CTRL-SHIFT-J для Windows, OPTION-COMMAND-J для MacOS)</sub> 4. После, в открывшемся окне, переходим на вкладку **Консоль (Console)** 5. В открывшуюся консоль, вставляем код скрипта:<br><br> [`instapi-followers.js`](instapi-followers.js) <sub>- полный код скрипта</sub><br> [`instapi-followers.min.js`](instapi-followers.min.js) <sub>- предпочтительный (без лишнего и сжатый)</sub><br><br> 6. Нажимаем клавишу **ENTER** и на странице появится интерфейс парсера 7. Настраиваем параметры сбора и нажимаем на кнопку **СТАРТ** ## Интерфейс и параметры настройки В интерфейсе парсера по-каждому параметру настройки написано примечание.<br> Разберем каждый параметр в отдельности. ![full-parser](/readme/images/instaparser_01.jpg) ## Информация и параметры по аккаунту сбора ![first-block](/readme/images/instaparser_02.jpg) <br> В данном разделе представлена общая **информация по аккаунту** сбора, а также параметры настройки **Сбор данных** и **Формат данных**<br><br> ### Информация по аккаунту<br> 1. Изображение аккаунта 2. Название аккаунта 3. ID аккаунта 4. Доступность аккаунта для сбора: <br><br> `Открытый` <sub>- сбор разрешен</sub> <br> `Закрытый (подпишитесь)` <sub>- сбор запрещен, нужно сначала подписаться</sub> <br> `Закрытый (подписаны)` <sub>- сбор разрешен, аккаунт подписан</sub><br> <br> 5. Кол-во подписчиков 6. Кол-во подписок 7. Кол-во публикаций ### Сбор данных На выбор два варианта: **Подписчики** или **Подписки**<br> Выберете тот вариант, который Вам требуется.<br><br> **Примечание:** при переключении, параметра сбора данных, будет сброшен текущий сбор (кол-во собранных аккаунтов, время сбора) и сам файл данных для загрузки. Общее кол-во отправленных запросов останется неизменным. ### Формат данных На выбор два варианта: **Формат JSON** или **Формат Excel (CSV)**<br> Выберете тот вариант, который Вам требуется.<br><br> **Примечание:** переключать формат данных можно в любой момент времени - этот параметр не влияет на поведение парсера. Данный параметр привязан к кнопке **Скачать данные**, а от выбора зависит формат файла при скачивании собранных данных. ## Ограничение кол-ва запросов ![limit-requests](/readme/images/instaparser_03.jpg) <br> В данном разделе представлен параметр отвечающий за **ограничение кол-ва запросов** при сборе данных. Ограничение нужно, чтобы не попасть под блокировку.<br><br> **Лимиты Instagram:** в сутки, с вашего зарегистрованного аккаунта, можно сделать не более 150-500 запросов на сбор данных (это примерно 15-50К аккаунтов, которые можно собрать). **Рекомендуемое кол-во запросов: 150** на сбор в сутки с одного аккаунта. <br><br> **Примечание:** чтобы полностью убрать ограничение парсера на кол-во запросов - очистите значение в поле или поставьте 0. ## Имитация человека ![imitation](/readme/images/instaparser_04.jpg) <br> В данном разделе представлен параметр отвечающий за возможность отправки запросов с разными интервалами (от 1 до 8 секунд), т.е. **имитирует деятельность человека, а не программы** при сборе данных. По умолчанию запросы отправляются без задержек. <br><br> **Примечание:** используйте этот параметр, чтобы уменьшить риск блокировки аккаунта со стороны Instagram, но время сбора данных увеличится. Данный параметр можно **включать/отключать** в любой момент времени. ## Точка остановки и кнопка СТАРТ ![endpoint](/readme/images/instaparser_05.jpg) <br> В данном разделе представлен параметр отвечающий за возможность начать сбор данных с места прерывания - **Точка остановки** и кнопка запуска работы самого парсера - кнопка **СТАРТ**.<br> ### Точка остановки При сборе данных, в поле будет появляется код, который служит отметкой кол-ва собранных аккаунтов. Так как в Instagram "списки" подписчиков/подписок пополняются последовательно (новые подписавшиеся всегда сверху "списка"), то данный код служит именно отметкой в этих "списках". Т.е. имея код-отметку, можно начинать сбор именно с того места в "списке", где он был сформирован. <br><br> **Пример 1:** у аккаунта сбора 7000 подписчиков, при сборе данных допустим вы собрали уже 3500 подписчиков и принудительно остановили сбор, нажав кнопу **СТОП**. в поле **Точки остановки** есть код. Если нажать снова **СТАРТ**, то сбор продолжится не сначала, а с 3500 подписчиков и будет дополнятся в файл данных для скачивания. <br><br> **Пример 2:** допустим вы запустили сбор данных, данные собираются, но что-то пошло не так (отключили интернет, вылезла ошибка лимитов и т.д.). В итоге вы всегда можете скачать данные, а сохранив код **Точки остановки** и перейдя позже в аккаунт сбора, вставив данный код в поле - у вас начнется сбор данных именно с того места, где было прерывание. Но файл данных, при загрузке, будет уже новый и именно с той отметки сбора. <br><br> **Примечание:** если удалить код-отметку **Точки остановки**, то файл данных будет сброшен и сбор начнется с начала. ### кнопка: СТАРТ Это кнопка запуска работы сбора данных. <br> Кнопка имеет три состояния: **СТАРТ**, **СТОП** и **ГОТОВО**: <br><br> `СТАРТ` <sub>- запуск сбора данных</sub> <br> `СТОП` <sub>- остановка сбора данных</sub> <br> `ГОТОВО` <sub>- появляется при выполнении сбора данных</sub><br> ## Статистика и сохранение данных ![statistics](/readme/images/instaparser_06.jpg) <br> В данном разделе представлены краткая информация по статистике сбора данных и кнопка для скачмвания собранных данных **Скачать данные**. ### Статистика Представлены 3 информационных параметра:<br><br> `Кол-во запросов` <sub>- общее кол-во отправленных запросов</sub> <br> `Собрали аккаунтов` <sub>- кол-во аккаунтов собранных за текущий сбор</sub> <br> `Время сбора` <sub>- время сбора за каждый запуск работы парсера</sub><br> **Примечание:** при каждом нажатии кнопки **СТАРТ**, параметр **Кол-во запросов** остается неименным, параметр **Собрали аккаунтов** - будет неизменным, если не переключали параметр **Сбор данных**, параметр **Время сбора** - всегда показывает только время текущего сбора. ### кнопка: Скачать данные Данная кнопка отвечает за скачивание собранных данных. Кнопка связана с параметром **Формат данных**, при изменении данного параметра, файл данных будет именно в том формате, который выбрали. # Консоль ![console](/readme/images/instaparser_07.jpg) <br> В консоле браузера, выводятся логи работы парсера, данные по отправленным запросам и разного рода техническая информация, включая ошибки. # Дисклеймер >Я не несу ответственности за ваши действия. Скачивание, использование, распространение программного обеспечения из этого репозитория - является вашей зоной ответственности. # [Telegram](https://t.me/leoneedpro) | [Instagram](https://instagram.com/leoneedpro) | [Youtube](https://youtube.com/@leoneedpro) | [Вконтакте](https://vk.com/leoneedstudio)
Instagram-парсер, сбор подписчиков и подписок на основе fetch-запросов с интерфейсом управления и возможностью скачать данные в формате JSON или Excel (CSV)
instagram,instagram-api,instagram-bot,instagram-followers,instagram-followers-parser,instagram-parser,instagram-scraper,javascript,javascript-parser,parser
2023-10-15T02:32:18Z
2024-02-26T08:07:19Z
null
1
1
8
0
5
9
null
GPL-3.0
JavaScript
Jad31/pokemon-card-maker
main
# Pokemon Card Maker Welcome to the Pokemon Card Maker project! This is an open-source web application that allows users to create and customize their own Pokemon cards using Angular 17. The project aims to showcase modern web development practices and Angular's powerful features. This project is hosted with GitHub Pages and can be accessed at https://jad31.github.io/pokemon-card-maker/. ## Features - **Create Your Own Pokemon Cards**: Customize the name, abilities, and more! - **Download**: Export your creations and share them with your friends. - **Responsive Design**: Craft and view your Pokemon cards on any device. - **Interactive UI**: A user-friendly interface that makes card creation simple and fun. ## Getting Started To get a local copy up and running, follow these simple steps. ### Prerequisites - [Node.js](https://nodejs.org/) - [Yarn](https://yarnpkg.com/) ### Installation 1. Clone the repo ```bash git clone https://github.com/Jad31/pokemon-card-maker.git ``` 2. Navigate to the project directory ```bash cd pokemon-card-maker ``` 3. Install dependencies ```bash yarn install ``` 4. Serve the application locally ```bash yarn start ``` ## Usage After running the application, visit http://localhost:4200 in your web browser to start creating your Pokemon cards! ## Contributing Contributions are what make the open-source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated. Please read through our [CONTRIBUTING.md](./CONTRIBUTING.md) document for details on our code of conduct, and the process for submitting pull requests. ## Code of Conduct Please read [CODE_OF_CONDUCT.md](./CODE_OF_CONDUCT.md) for details on our code of conduct. ## License Distributed under the MIT License. See [LICENSE](./LICENCE) for more information. ## Contact Project Link: https://github.com/Jad31/pokemon-card-maker ## Acknowledgements [Angular](https://angular.dev/) [Nx](https://nx.dev/) [Yarn](https://yarnpkg.com/) And all contributors ## Support If you like this project, don't forget to give it a star! ⭐
Pokémon Card Maker using Angular 17
angular,angular-material,javascript,monorepo,nx,nx-workspace,typescript
2023-11-05T09:23:09Z
2023-11-23T19:41:11Z
null
1
8
52
4
0
9
null
MIT
TypeScript
ahmedrazabaloch/QuizApp
main
null
Quiz Application
animation,form-validation,javascript,localstorage,login-system,quizapp,registration-forms
2023-10-17T20:04:51Z
2023-10-26T22:18:01Z
null
1
0
34
0
0
9
null
null
CSS
kyoshidajp/dep-doctor
main
# dep-doctor [![Coverage Status](https://coveralls.io/repos/github/kyoshidajp/dep-doctor/badge.svg?branch=main&kill_cache=1)](https://coveralls.io/github/kyoshidajp/dep-doctor?branch=main) [![Go Reference](https://pkg.go.dev/badge/github.com/kyoshidajp/dep-doctor.svg)](https://pkg.go.dev/github.com/kyoshidajp/dep-doctor) `dep-doctor` is a tool to diagnose whether your software dependency libraries are maintained. Today, most software relies heavily on external libraries. Vulnerabilities in those libraries can be detected by vulnerability scanners ([dependabot](https://docs.github.com/en/code-security/dependabot), [trivy](https://aquasecurity.github.io/trivy), [Grype](https://github.com/anchore/grype), etc) if they are publicly available. However, some libraries have archived their source code repositories or have had their development stopped, although not explicitly. `dep-doctor` will notify you of those libraries in the dependencies file. ![overview](doc/images/dep-doctor_overview.png "dep-doctor overview") ## Support dependencies files | language | package manager | dependencies file (e.g.) | status | | -------- | ------------- | -- | :----: | | Dart | pub | pubspec.lock | :heavy_check_mark: | | Erlang/Elixir | mix | mix.lock | :heavy_check_mark: | | Go | golang | go.mod | :heavy_check_mark: | | Java | gradle | gradle.lockfile | (later) | | Java | maven | pom.xml | (later) | | JavaScript | npm | package-lock.json | :heavy_check_mark: | | JavaScript | yarn | yarn.lock | :heavy_check_mark: | | PHP | composer | composer.lock | :heavy_check_mark: | | Python | pip | requirements.txt | :heavy_check_mark: | | Python | pipenv | Pipfile.lock | :heavy_check_mark: | | Python | poetry | poetry.lock | :heavy_check_mark: | | Ruby | bundler | Gemfile.lock | :heavy_check_mark: | | Rust | cargo | Cargo.lock | :heavy_check_mark: | | Swift | cocoapods | Podfile.lock | :heavy_check_mark: | ## Support repository hosting services Only GitHub.com ## Install ### Homebrew (macOS and Linux) ```console $ brew tap kyoshidajp/dep-doctor $ brew install kyoshidajp/dep-doctor/dep-doctor ``` ### Binary packages [Releases](https://github.com/kyoshidajp/dep-doctor/releases) ## How to use `GITHUB_TOKEN` must be set as an environment variable before execution. ```console Usage: dep-doctor diagnose [flags] Flags: --disable-cache without using cache -f, --file string dependencies file path -h, --help help for diagnose -i, --ignores string ignore dependencies (separated by a space) -p, --package string package manager --strict exit with non-zero if warnings exist -y, --year int max years of inactivity (default 5) ``` For example: ```console $ dep-doctor diagnose --package bundler --file /path/to/Gemfile.lock concurrent-ruby dotenv faker i18n method_source paperclip ...... [error] paperclip (archived): https://github.com/thoughtbot/paperclip Diagnosis completed! 6 dependencies. 1 error, 0 warn (0 unknown), 0 info (0 ignored) ``` ## Report level | level | e.g. | | :---: | :---------- | | *error* | Source code repository is already archived. | | *warn* | Source code repository is not active or unknown. | | *info* | Other reasons. (specified to be ignored) | | ## Useful options ### `--year` The maximum number of blank years to be considered maintained. A source code repository is considered maintained if it has been committed within this number of years. The default is `5` years, but if longer is desired, for example ```console $ dep-doctor diagnose --package bundler --file /path/to/Gemfile.lock --year 7 ``` In the above case, if there are commits within the last 7 years, it is considered to be maintained. ### `--ignores` You can specify libraries not to notify you of errors or warnings. This may be useful if you plan to address the issue in the near future but wish to ignore it at this time. Please specify this option with the understanding that there is a risk. If there is more than one, you can specify each one separated by a space as follows. ```console $ dep-doctor diagnose --package bundler --file /path/to/Gemfile.lock \ --ignores "lib1 lib2 lib3" ``` ### `--disable-cache` When a status result is retrieved from the source code repository, the URL is kept in a file as a cache (`.dep-doctor.yml`). Normally, the repository URL is not changed frequently. To speed up the running, this cache is referenced on the second and subsequent runs. With the `--disable-cache` option, this cache is not referenced. It always retrieves the latest source code URL from the package registry. ## GitHub Actions Installs an dep-doctor binary for Linux(x86_64) into /usr/local/bin. This action runs install only. ```yml jobs: diagnose: name: dep-doctor runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - uses: kyoshidajp/dep-doctor@v1 with: version: v1.3.0 # or latest - run: dep-doctor diagnose --package golang --file go.mod env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} ``` ## How it works ![how_works](doc/images/how_works.png "dep-doctor how works") ## Author Katsuhiko YOSHIDA
Diagnose whether your software dependency libraries are maintained.
dependencies,javascript,ruby,php,python,golang,security,dart,elixir,erlang
2023-10-21T07:25:05Z
2024-04-07T09:02:35Z
2024-04-07T09:02:35Z
2
76
220
0
1
9
null
MIT
Go
kanugurajesh/SnapScale
main
#### ⭐ star this repo if you like it <div align="center"> <img src="https://ik.imagekit.io/hbzknb1hm/resize.png?updatedAt=1697969118065" alt="SnapScale Logo" width="150" height="150"> </div> <br/> # SnapScale SnapScale is an Image Resizer used to resize any image easily and it can setup on windows, mac, linux systems locally ## Problem Statement Image resizers are commonly found online, 🌐 but many of them require sign-ups or offer subscription models. 😫 Even though some are free, people often find it cumbersome to navigate to a website, upload an image, 📷 wait for the resizing process, and then download the final result. 🕒📥 ## Solution SnapScale is the ultimate solution to your image resizing needs! 🌟 No subscription model or annoying sign-up required. 🚫💳 Install it right on your local machine for super-convenient image handling. 🖥️🎉 With SnapScale, resizing images is a piece of 🍰 – no need to hassle with downloading images, they're automatically fetched after resizing! ⚙️💨 It's lightning-fast and incredibly user-friendly! 🏃‍♂️💨 Try it out today! ## Features - Eye Friendly colors - Fullscreen mode - Cross platform - Offline - Easy to use ## Prerequisites ```bash 1. git setup on local machine 2. npm ``` ## Installation ```bash git clone git@github.com:rajesh604/SnapScale.git cd SnapScale npm install npm start ``` ## Screenshots ### Splash Screen ![Splash Screen](https://ik.imagekit.io/hbzknb1hm/Screenshot%202023-10-22%20140626.png?updatedAt=1697967029718) ### Starting Screen ![Starting Screen](https://ik.imagekit.io/hbzknb1hm/Screenshot%202023-10-22%20150508.png?updatedAt=1697967364437) ### Image Uploading ![Image Uploading](https://ik.imagekit.io/hbzknb1hm/Screenshot%202023-10-22%20150516.png?updatedAt=1697967364757) ### After Image Upload ![After Image Upload](https://ik.imagekit.io/hbzknb1hm/Screenshot%202023-10-22%20150522.png?updatedAt=1697967364753) ### After Resizing download Image opens ![After Resizing downloaded image opens](https://ik.imagekit.io/hbzknb1hm/Screenshot%202023-10-22%20150536.png?updatedAt=1697967365630) ## Demo [![Watch the video](https://ik.imagekit.io/hbzknb1hm/Screenshot%202023-10-22%20150508.png?updatedAt=1697967364437)](https://youtu.be/ISmqmLtC4fc?feature=shared) ## 🔗 Links [![portfolio](https://img.shields.io/badge/my_portfolio-000?style=for-the-badge&logo=ko-fi&logoColor=white)](https://rajeshportfolio.me/) [![linkedin](https://img.shields.io/badge/linkedin-0A66C2?style=for-the-badge&logo=linkedin&logoColor=white)](https://www.linkedin.com/in/rajesh-kanugu-aba8a3254/) [![twitter](https://img.shields.io/badge/twitter-1DA1F2?style=for-the-badge&logo=twitter&logoColor=white)](https://twitter.com/exploringengin1) ## Tech Stack - Html - Css - JavaScript - Electron.js - Node.js ## Contributing I want to add more features and Contributions are always welcome! See [contributing.md](https://github.com/rajesh604/SnapScale/blob/main/contributing.md) for ways to get started. Please adhere to this project's [code of conduct](https://github.com/rajesh604/SnapScale/blob/main/code_of_conduct.md). ## Authors - [@kanugurajesh](https://github.com/kanugurajesh) ## Support For support, you can buy me a coffee <a href="https://www.buymeacoffee.com/kanugurajen" target="_blank"><img src="https://cdn.buymeacoffee.com/buttons/default-orange.png" alt="Buy Me A Coffee" height="41" width="174"></a> [![MIT License](https://img.shields.io/badge/License-MIT-green.svg)](https://choosealicense.com/licenses/mit/)
A desktop application which can be used to resize images
cross-platform,desktop-app,electronjs,image-resizer,javascript,user-friendly-interface
2023-10-21T10:10:51Z
2024-01-14T04:12:45Z
null
2
0
42
0
0
9
null
MIT
CSS
yasir2002/js-learning-jupyter
main
# JavaScript Learning Notebooks 📚 Welcome to my JavaScript learning journey captured through Jupyter notebooks! 🚀 This repository serves as a collection of my interactive code snippets, experiments, and projects as I delve deeper into the world of JavaScript. ## Introduction In this repository, you'll find Jupyter notebooks containing my progress, insights, and challenges as I explore various aspects of JavaScript. From basic syntax and data types to advanced topics like DOM manipulation and asynchronous programming, I aim to document my learning process for both personal reference and to assist fellow learners. ## Run Locally 1. Clone this repository: ```bash git clone https://github.com/yasir2002/js-learning-jupyter 2. Navigate to folder: ```bash cd ./js-learning-jupyter 3. Node and Jupyter is required to run all the snippets. Download node from [here](https://nodejs.org/en), Jupyter can be installed in VS Code from [here](https://marketplace.visualstudio.com/items?itemName=ms-toolsai.jupyter). 4. Open the project in VS code and easily learn JavaScript executing every example individually. ## Usage 🚀 Feel free to explore the notebooks and use them as a reference for your own JavaScript learning journey. If you find any errors or have suggestions for improvement, please don't hesitate to reach out. ## Contributions 🤝 I welcome contributions and feedback from the community. If you have any valuable insights or code examples to add, please feel free to open a pull request. Let's learn and grow together! ## License 📋 This project is licensed under the [GPL License](LICENSE). Happy coding! 🌟
Your ultimate hub for JavaScript exploration and mastery, featuring a diverse collection of meticulously curated code snippets and projects.
javascript,javascript-learning,jupiter-notebook
2023-11-06T16:39:55Z
2024-01-17T09:37:14Z
null
2
2
42
0
0
9
null
GPL-3.0
Jupyter Notebook
Soheib-Kiani/WebRTC
main
# WebRTC ### Product This is a WebRTC project which you can make video + voice call. --- ### Technologies Vanilla JS + Node.js(express) + CSS <br> <br> NPM packages : express – socket.io – peerjs – uuid - ejs --- ### Integration : The web app runs on its own node server Step 1: ```bash npm install ``` Step 2 : ```bash npm run dev ``` Step 3 : run through 2 browser tabs (with same URL) --- ### Backend API : It doesn’t contain. --- ### Folder & File structure : WebRTC <br> │ ───package.json # npm dependencies and run scripts <br> │ ───Readme.md # Documentation <br> │─── server. js # Contain app configuration <br> │ ───public # Main application folder <br> │ ├───script.js # Main operations <br> │ ───view # view model <br> │ ├───page.ejs #view engine <br> ---
WebRTC project which you can make video calls.
express,javascript,nodejs,socket,socket-io
2023-10-21T05:49:29Z
2023-10-21T08:53:02Z
null
1
1
13
0
1
9
null
null
JavaScript
vtp6/vtp6.github.io
main
<div align="center"> <!-- https://github.com/vtp6/vtp6.github.io/assets/55329600/3ef8c29f-f455-468a-9a42-8dcc6af51b9a --> <a href="https://vtp6.github.io/"> <img src="https://github.com/vtp6/vtp6.github.io/assets/55329600/9e5f6eda-afa5-44c0-bb06-0b72a6670878" height="200px" alt="VTP6 logo" title="https://vtp6.github.io/" /> </a> <br /> <img src="https://github.com/vtp6/vtp6.github.io/actions/workflows/jekyll-gh-pages.yml/badge.svg" /> <a href="https://vtp6.github.io" style="text-decoration: none;"> <img src="https://img.shields.io/website/https/vtp6.github.io/index.html.svg" /> </a> <br /> <img src="https://img.shields.io/github/v/release/vtp6/vtp6.github.io?color=orange" /> <a href="https://github.com/vtp6/vtp6.github.io/blob/main/LICENSE" style="text-decoration: none;"> <img src="https://img.shields.io/badge/License-MIT-blue.svg" /> </a> </div> <hr /> **[VTP6]**: a minimalistic online successor to the app-based [VTP5](https://github.com/vtp5/vtp5) vocab-testing program. Just head over to **[vtp6.github.io][VTP6]** and select your study set. Then, select the number of words you want to revise using the slider and press start. Email any feedback or suggestions to **vtp6_feedback@outlook.com**. *** ## Import your own set In case you want to study something other than the pre-loaded sets on VTP6, you can study your own custom set. Click "Import custom set" on the homepage to load in your own set. Then, choose your file and format and click "Upload". ### VTP5 format VTP6 is backwards-compatible with VTP5 TXT files, which are in the following format: ```c Term Definition Term Definition ``` ### VTP6 format VTP6 also has its own format, with terms and definitions separated on the same line by a tab character: ```c Term Definition Term Definition ``` ### CSV format Comma-separated value (CSV) files are also supported. You do not have to select anything: it will automatically recognise a CSV file and change its behaviour appropriately. The format of a CSV file is as follows: ```c Term,Definition Term,Definition ``` If the term or definition contains a comma, put quotes around it. *** ## Modes ### Classic Mode Classic mode is the basic VTP6 option. You can choose the number of words you want to revise using the slider and then press start. Then, answer the questions using the input box. Classic mode is _**case-insensitive**_ and _**ignores punctuation**_. <!-- ![Classic Mode Screenshot](https://github.com/vtp6/vtp6.github.io/assets/55329600/e71eba22-715f-4f48-82a8-5d8395537275) --> ![Classic Mode Recording](https://github.com/vtp6/vtp6.github.io/assets/55329600/ba21fc88-af3e-45b0-a12a-9b77893b2833) ### Match Mode When you press start, twelve boxes will appear on your screen. The six on the left are terms; the six on the right are definitions. You need to match the terms and definitions by clicking on them. There's a timer at the top to tell you how long it took. <!-- ![Match Mode Screenshot](https://github.com/vtp6/vtp6.github.io/assets/55329600/9a9745e8-4890-4343-9ef7-d71637750df8) --> <!-- ![Match Mode Recording](https://github.com/vtp6/vtp6.github.io/assets/55329600/a01e0522-9f7e-4731-8755-2d820302e1d6) --> ![Match Mode Recording](https://github.com/vtp6/vtp6.github.io/assets/55329600/f20180ed-dd0c-42d2-b411-5d1faf8e7dd3) ### Hangman Mode Just like the Hangman game, each time you get something wrong, the hangman picture progresses to the next stage. Choose the number of words you want to revise and complete them before the hangman is fully formed. ![Hangman Mode Recording](https://github.com/vtp6/vtp6.github.io/assets/55329600/13f5949c-8c41-44f8-b2a1-f5ad72c3b359) *** ![Logo](https://github.com/vtp6/vtp6.github.io/assets/55329600/d7b16a93-0efc-4ecb-9990-2fdf45c52b37) <sub>© Rujul Nayak 2023-24</sub> [VTP6]: https://vtp6.github.io/
Vocabulary Testing Program 6 - an online platform to help students revise vocabulary
educational,vocabulary,vocabulary-learning,vocabulary-test,website,vtp6,css,html,javascript
2023-10-21T16:49:27Z
2024-05-23T15:50:46Z
2024-04-20T08:41:19Z
2
2
228
0
2
9
null
MIT
HTML
Ayoubull/Scribd-Downloader
main
# Scribd-Downloader ## Scribd Downloader for Free Scribd is a popular document sharing platform that offers a variety of content, including e-books, audiobooks, magazines, and more. However, to access most of this content, you need to subscribe to a paid plan. If you're looking for a way to download Scribd documents for free, there are a number of different options available. One popular option is to use a Scribd downloader. A Scribd downloader is a software application that allows you to download Scribd documents to your computer or device. Most Scribd downloaders are easy to use and require no technical expertise. ## Benefits of using a Scribd downloader There are a number of benefits to using a Scribd downloader, including: Save money: You can avoid the need to pay for a subscription to Scribd. Save time: You can download documents quickly and easily. Access documents offline: You can access documents even without an internet connection. Convert documents to other formats: You can convert Scribd documents to other formats, such as Word, PowerPoint, and EPUB. Share documents with others: You can share Scribd documents with others via email or social media. How to use a Scribd downloader ## To use a Scribd downloader, simply follow these steps: Choose a Scribd downloader and download it to your computer or device. Open the Scribd downloader and enter the URL of the Scribd document that you want to download. Click the "Download" button. The Scribd downloader will download the document to your computer or device. ### how to setup this script a your webhost please add style script a line 6 , remplaced a this ``` <b:skin><![CDATA[ ////////////// [!] Please her paste style script /////////// --------------------------- # Scribdvpdf v1.2 Style # --------------------------- ]]></b:skin> ``` and remlace js script a line 310 ``` <script>/*<![CDATA[*/ ///////////// JAVASCRIPT PASTE HER ///////////////////// /*]]>*/</script> ``` ### or upload the script aggregated to your host, if is supported
Download your books from Scribd in PDF format for personal and offline use
doc,downloader,hack,javascript,pdf,scribd,scriptish,scribddownloader,html
2023-10-28T21:54:38Z
2024-05-22T19:05:37Z
null
1
1
19
0
3
9
null
null
HTML
rmuratov/sourcemap.tools
main
# sourcemap.tools ![image](public/app-demo.jpeg) This repo contains the source code for the https://sourcemap.tools. This little web app allows you to paste a stack trace of minified JavaScript code, apply source maps to it, and see the original positions of the errors. The application may help investigate errors in production if you do not host source maps but can still extract them from build artifacts. Inspired by https://sourcemaps.info/, but does everything on the client and does not try to fetch sources or source maps. ## How to use 1. Paste your stack trace on the left. 2. Provide source maps by choosing files or pasting the content of the source map. 3. See the results on the right. ## Development 1. Clone the repository 2. Go to the project's directory and install dependencies ```shell npm ci ``` 3. Run and go to http://localhost:5173/ ```shell npm run dev ``` 4. Optionally run tests ```shell npm test ```
A little web app to decipher error stack traces of the minified JavaScript.
javascript,sourcemaps,developer-tools,error-handling,stacktrace
2023-10-12T13:01:43Z
2024-05-09T20:31:02Z
null
1
0
57
0
1
9
null
AGPL-3.0
TypeScript
Luancss/react-admin-dashboard
master
<h1 align="center">Dashboard</h1><br> ### Desktop (screenshot): | Dark Mode | White Mode | | --- | --- | | <img src="./.github/painel dark.JPG" /> | <img src="./.github/painel white.JPG" /> | | Team | Contacts | | --- | --- | | <img src="./.github/Team.JPG" /> | <img src="./.github/Contatos.JPG" /> | | Invoices | Form | | --- | --- | | <img src="./.github/faturas.JPG" /> | <img src="./.github/Form.JPG" /> | | Calendar | FAQ | | --- | --- | | <img src="./.github/Calendario.JPG" /> | <img src="./.github/FAQ.JPG" /> | | Bars | Pizza | | --- | --- | | <img src="./.github/barras.JPG" /> | <img src="./.github/setores.JPG" /> | | Lines | Geography | | --- | --- | | <img src="./.github/linhas.JPG" /> | <img src="./.github/geografico.JPG" /> | --- Dashboard baseado em dados reais com a interface criada com Material UI ## 🚀 Introdução Desenvolvi um dashboard React robusto, simplificando dados complexos em visualizações intuitivas. A interface dinâmica oferece insights instantâneos, promovendo uma análise eficiente. Integração fluida e design responsivo garantem uma experiência de usuário otimizada. ## :clipboard: Pré-requisitos - [Node.js 12+](https://nodejs.org/en/download/) - [Yarn](https://classic.yarnpkg.com/en/docs/install/#windows-stable) ## :wrench: Instalação Para clonar o projeto via HTTPS execute o seguinte comando: ``` git clone https://github.com/Luancss/react-admin-dashboard ``` Em seguida instale as dependências: ``` npm install ``` ## 🔨 Execução em ambiente de desenvolvimento ``` npm start ``` ## :hammer_and_wrench: Principais tecnologias utilizadas - [Create-react-app](https://create-react-app.dev/) - Conjunto de scripts para criar facilmente um projeto React pré-configurado. - [Material UI](https://mui.com/material-ui/) - Biblioteca de componentes React que implementa o design do Material Design - [Nivo Charts](https://nivo.rocks/) - Biblioteca React para construção de gráficos reutilizáveis e elegantes. - [Formik](https://formik.org/) - Biblioteca para gerenciar formulários em React com facilidade. - [Full Calendar](https://fullcalendar.io/) - Plugin JavaScript para exibição de calendários interativos no navegador. - [React Pro Sidebar](https://github.com/azouaoui-med/react-pro-sidebar) - Barra lateral responsiva e personalizável para aplicações React. - [Yup](https://github.com/jquense/yup) - Biblioteca para validação de formulário largamente utilizada em projetos Javascript. ## ✍ Autor <img alt="Luancss" title="Luancss" src="https://avatars.githubusercontent.com/u/104950187?v=4" width="100"> <p> Made with 💜 by Luancss </p> <p align="left"> <a href="https://www.linkedin.com/in/luan-carlos-30035b246/" target="_blank"> <img align="center" src="https://img.shields.io/badge/LinkedIn-%230077B5?style=for-the-badge&logo=linkedin&logoColor=white" alt="Linkedin Luan Carlos" /> </a> <a href="mailto:luancss.contact@gmail.com" target="_blank"> <img align="center" src="https://img.shields.io/badge/Gmail-FF0000?style=for-the-badge&logo=gmail&logoColor=white" alt="Gmail Luan Carlos" /> </a> </p> Feito com :heart: por [Luan Carlos](https://github.com/Luancss)
Developed a robust administrative dashboard using React, integrating data from various sources to provide a comprehensive view of operational performance.
3d-animation,formik,fullcalendar,javascript,material-ui,nivo-charts,react-pro-sidebar,reactjs,yup-validation
2023-10-28T05:44:12Z
2023-12-23T02:09:30Z
null
1
0
34
0
0
9
null
null
JavaScript
MastooraTurkmen/Twitter
main
# Twitter https://twitter-twimba.netlify.app/ A simple Twitter project. You can write and read comments there. And also, you can write on What's happening place and tweet it below. ![Screenshot-twimba](./screenshots/twimba-one.png) ![Screenshot-twimba](./screenshots/twimba-three.png) ![Screenshot-twimba](./screenshots/twimba-two.png) ----- ## Languages and Tools are used 🛠 🗣️ 1. **Languages** 🗣️ + [HTML](https://github.com/topics/html) + [HTML5](https://github.com/topics/html5) + [CSS](https://github.com/topics/css) + [CSS3](https://github.com/topics/css3) + [JavaScript](https://github.com/topics/javascript) 2. **Tools** 🔧 + [Chrome](https://github.com/topics/chrome) + [VSCode](https://github.com/topics/vscode) + [Figma](https://github.com/topics/figma) + [Netlify](https://github.com/topics/netlify) ----- ## For cloning the project 🪛 ``` # Clone this repository $ git clone MastooraTurkmen/Twitter # Go inside the repository $ cd Twitter ``` ------ ## Deployment📥 1. How to deploy our project to the Netlify site? 2. I use [Netlify App](https://app.netlify.com/) for deploying my projects. 4. From there select **_Deploy with Github_**. 5. Then write your project name and select it. 6. After selecting here you can see that the project **_Review configuration for twitter_** and then select the **_Deploy twitter_** Button. 7. Now your project is Live. ------ ## Author 👩🏻‍💻 **Mastoora Turkmen** [LinkedIn](https://www.linkedin.com/in/mastoora-turkmen/) <br> [Github](https://github.com/MastooraTurkmen/) <br> [Twitter](https://twitter.com/MastooraJ22) <br>
Share your opinions here in Twimba
css,css3,html,html5,javascript
2023-10-13T15:54:57Z
2023-12-11T04:22:07Z
null
1
0
62
0
0
9
null
null
JavaScript
fifomori/chromori
main
# ChrOMORI OMORI in a browser ![hero_capitalism](.github/assets/hero_capitalism.png) # Prerequisites - [OMORI](https://store.steampowered.com/app/1150690/OMORI) - [Node.js](https://nodejs.org) (Select LTS) - pnpm: run `npm install -g pnpm` in command line # Installing 1. Clone this repo - With Git: `git clone https://github.com/fifomori/chromori` - Or [download .zip](https://github.com/fifomori/chromori/archive/refs/heads/main.zip) and unzip it 1. Install dependencies - Run `install.bat` (Windows) or `./install.sh` (Linux, macOS) # Running 1. Run Steam (if you want to collect achievements) 1. Run `app.bat` (Windows) or `./app.sh` (Linux, macOS) 1. Open `http://localhost:8000` in your browser # Compatibility - Chrome (tested with 119) - works very well - Firefox (tested with 119) - has some sound stutters on synchronus fs operations (mainly in menu) # OneLoader ![warning](.github/assets/warning.gif) - doesn't load .zip mods - **WORKAROUND: unzip mods** - node_stream_zip using fs.open, which is hard to implement without WebSockets - TODO: rewrite fs async api to WebSockets - dosesn't patch xhr requests (fonts, some assets) - OneLoader's vfs_web uses the Chrome Extensions API, which is unavailable for regular website - **WORKAROUND: replace these assets manually** # TODO - Publish prebuilt package - Build greenworks for linux and darwin - Test all greenworks binaries - Autoextract game path while getting key # Info - Steamworks SDK version: v1.58a
OMORI in a browser
javascript,omori,rpgmaker,rpgmakermv,rpg-maker,rpg-maker-mv
2023-10-26T04:33:29Z
2024-04-14T13:02:47Z
null
1
1
67
0
3
8
null
MIT
JavaScript
MastooraTurkmen/Cars-Project
main
# The Best Cars Simple Project 🚘 🚗 > https://cars-simple-project.netlify.app/ > There are 15 cars that match your criteria ----- ### Mobile 📱📲 ![Alt text](./screenshots/Screenshot-3.png) ![Alt text](./screenshots/Screenshot-4.png) ### Tablet 📱 💻 ![Alt text](./screenshots/tablet.png) ![Alt text](./screenshots/tablet-1.png) ### Descktop 💻 ![Alt text](./screenshots/Screenshot-1.png) ![Alt text](./screenshots/Screenshot-2.png) ----- ### _Available Cars_ There are 15 nice **_Cars_** that match your criteria. Following, we wanna show you few of them. ***CAR DETAILS--LOCATION--PRICE*** 1. 2017 Toyota Highlander V4 + Youngstown, OH 44481 + $17,400 2. 2012 Toyota Tundra 4x4 + 301 Fantasy Dr Beverly Hills, CA 90210 + $23,900 3. 2004 Dodge Ram 4x4 + 9104 Falsety Ave AnonyVille, FL 40440 + $7,998 4. 2021 Tesla Model 3 + 993 Fiscal St Boulder, CO 93391 + $37,490 5. 2012 Toyota Tundra 4x4 + 301 Fantasy Dr Beverly Hills, CA 90210 + $23,900 6. 2004 Dodge Ram 4x4 + 9104 Falsety Ave AnonyVille, FL 40440 + $7,998 7. 2021 Tesla Model 3 + 993 Fiscal St Boulder, CO 93391 + $37,490 ------ ## Languages and Tools are used 📒📝 1. **Languages** 🗣 🖍 + [HTML](https://github.com/topics/html) + [HTML5](https://github.com/topics/html5) + [CSS](https://github.com/topics/css) + [CSS3](https://github.com/topics/css3) + [JavaScript](https://github.com/topics/javascript) 2. **Tools** 🔧 🔨 + [Chrome](https://github.com/topics/chrome) + [VSCode](https://github.com/topics/vscode) + [Figma](https://github.com/topics/figma) + [Netlify](https://github.com/topics/netlify) ----- ## For cloning the project 🪛 📌 ``` # Clone this repository $ gh repo clone MastooraTurkmen/Cars-Project # Go inside the repository $ cd cars-project ``` ## Deployment 📥 📦 1. How to deploy our project to netlify site? 2. I use [Netlify App](https://app.netlify.com/) for deploying my projects. 3. Go to Netlify site and select Add a new site. 4. From there select **_Deploy with Github_**. 5. Then write your project name and select it. 6. After selecting here you can see that the project **_Review configuration for Cars-Project_** and then select the **_Deploy Cars-Project_** Button. 7. Now your project is Live. ----- ## Author 👩🏻‍💻 **Mastoora Turkmen** [LinkedIn](https://www.linkedin.com/in/mastoora-turkmen/) [Github](https://github.com/MastooraTurkmen/) [Twitter](https://twitter.com/MastooraJ22)
There are 15 cars that match your criteria<
css,html,html-css-javascript,javascript
2023-11-02T04:39:22Z
2023-12-09T02:34:29Z
null
1
0
119
0
0
8
null
null
HTML
ahmedrazabaloch/stopWatch
main
null
Stop Watch & Timer
javascript,stopwatch,timer
2023-11-03T12:32:43Z
2023-11-07T18:15:48Z
null
1
0
22
0
0
8
null
null
JavaScript
akashdeep023/MAJOR_PROJECT
main
# MAJOR PROJECT (AIRBNB.COM) ## Description ### This project is an attempt to create a simplified version of the Airbnb website using Node.js, Express, MongoDB, EJS, and CSS. ## Features - User Authentication: Allow users to sign up, log in, and log out. - Property Listings: Display a list of properties, including details, map and images. - User : Enable users to create, edit, delete listings and create, delete reviews properties. <!-- User Dashboard: Provide a dashboard for users to manage their bookings and profile. --> ## How to Use - 1st : Click CODE button and download zip file - 2nd : Right click on zip folder then click Extract all - 3rd : Open Major project folder in vscode - 4th : Install all package - Type command in terminal -> npm i - 5th : Data initialize - Type command in terminal -> node init/index.js - 6th : Run server - Type command in terminal -> node app.js ## Technologies used : 1. HTML 2. CSS 3. JAVASCRIPT 4. NODE.JS 5. EXPRESS 6. MONGODB 7. EJS 8. BOOTSTRAP 9. MVC (MODEL, VIEW, CONTROLLER) AND ETC.. ## Package used : 1. mongoose-atlas 2. password 3. flash 4. session 5. multer 6. mapbox 7. cookies 8. doenv 9. cloudinary and etc.. ## Author : Akash Deep <br> Email: ad3500476@gmail.com <br> LinkedIn : https://www.linkedin.com/in/akashdeep023/ ## Website Link : - https://airbnb-com-project-jack.onrender.com/listings ## Ex- Image **Home Page** ![Screenshot 2023-12-10 180615](https://github.com/akashdeep023/MAJOR_PROJECT/assets/126412088/d922998a-50fe-4028-ac3a-61a00f5f7ec4) **Footer Page** ![Screenshot 2023-12-10 180641](https://github.com/akashdeep023/MAJOR_PROJECT/assets/126412088/e2600d98-6981-472a-b696-a3536810ed16) **SignUp Page** ![Screenshot 2023-12-10 180738](https://github.com/akashdeep023/MAJOR_PROJECT/assets/126412088/1153e250-21bc-4b7c-a214-d7d641c991b4) **LogIn Page** ![Screenshot 2023-12-10 180812](https://github.com/akashdeep023/MAJOR_PROJECT/assets/126412088/bc959f3a-c258-4af8-8863-01527d9ba99f) **Alert Msg** ![Screenshot 2023-12-10 180906](https://github.com/akashdeep023/MAJOR_PROJECT/assets/126412088/f98c285a-99fa-4e3d-adbe-bd0360d25449) **Create New Hotel** ![Screenshot 2023-12-10 181504](https://github.com/akashdeep023/MAJOR_PROJECT/assets/126412088/b922953e-8df6-4e98-9011-7236abb42c8e) ![Screenshot 2023-12-10 181615](https://github.com/akashdeep023/MAJOR_PROJECT/assets/126412088/d06c9611-7146-4ebf-976b-7b2bdba66280) **Show Page** ![Screenshot 2023-12-10 181834](https://github.com/akashdeep023/MAJOR_PROJECT/assets/126412088/8e8588de-3a5b-43b4-a809-0a788b3b4f1c) ![Screenshot 2023-12-10 192544](https://github.com/akashdeep023/MAJOR_PROJECT/assets/126412088/1b8b86a1-b779-493c-9823-c514f4105fcf) **Edit Page** ![Screenshot 2023-12-10 192741](https://github.com/akashdeep023/MAJOR_PROJECT/assets/126412088/4d67a691-8824-4bbd-ae1e-35348986b454) **Filter Page** ![Screenshot 2023-12-10 193647](https://github.com/akashdeep023/MAJOR_PROJECT/assets/126412088/c2f7ecb0-dfb4-483d-b836-470cd54134b2) ![Screenshot 2023-12-10 201457](https://github.com/akashdeep023/MAJOR_PROJECT/assets/126412088/8f74b3dc-3e5f-41c9-952b-1daaf9ae93a1) ### Thanks for visit... 😊😊😊
MAJAR PROJECT
cookie,cookie-parser,ejs,error-handling,express,express-session,flash-messages,javascript,mongodb,nodejs
2023-10-16T11:20:42Z
2024-01-06T18:05:17Z
null
1
0
11
0
2
8
null
null
JavaScript
hamzalodhi2023/royal-thread
master
# ROYAL THREAD E-Commerce Website ## AUTHOR: HAMZA KHAN LODHI ### Click Here To Visit The Site: https://hamzalodhi2023.github.io/royal-thread/ ![Royal Thread](images/Royalthread.png) ![Royal Thread](images/Royalthread2.png) ## Features - **User-friendly Interface** - **Responsive** - **Beautiful Layout** - **Interactive Layout** ## Getting Started ### To Buy Contact On #### E-mail ``` lodhiumar2023@gmail.com ``` ### Phone Number ``` 03350020257 ```
Royal Thread, This is the modern Ecommerce website usign HTML, CSS and JAVASCRIPT. Give it a star 🌟 if you find it useful.
css3,javascript,json,html5,ecommerce,ecommerce-website,responsive,responsive-design,responsive-web-design,responsive-layout
2023-10-15T06:19:52Z
2023-12-24T05:34:03Z
null
2
0
136
0
0
8
null
MIT
HTML
MastooraTurkmen/cats-memes
main
# Cats Meme Picker oo hoo! My favorite app by selecting Get Image you can get lots of funny, moody, hungry, and so on images. ![Alt text](Screenshot-cat.png) ![Alt text](Screenshot-cat-2.png) ![Alt text](moody-cat.png) ![Alt text](relaxed-cat.png) # Updating the images to the direct links I updated image data to direct links because when I uploaded to Netlify, my images didn't show, so I used the "PostImages" https://postimages.org/
Get lots of cats meme and Select Your Current Emotion
css,html,javascript
2023-10-18T05:38:57Z
2023-10-18T06:52:47Z
null
1
0
9
0
0
8
null
null
JavaScript
zacharynoble/next-typescript-auth-template
main
# How to run this project ### Create a .env file at the app root level for configurations NEXT_PUBLIC_NODE_ENV = DEVELOPMENT NEXT_PUBLIC_API_URL = http://localhost:8080/api ### Install Packages npm install ### Start the application in dev mode npm run dev ### Start the application in production mode npm run build npm run start ### Visit the application in your browser at: http://localhost:3000
A Next.js frontend template setup with authentication logic to integrate with a RESTful API. Included examples for fetching data and validating auth info on both the client and server.
react,tailwindcss,typescript,zod,eslint,prettier,css,html,javascript,shadcn-ui
2023-10-13T00:55:52Z
2024-05-19T23:11:13Z
null
1
0
1
0
3
8
null
MIT
TypeScript
carbongo/simple-new-tab-page
main
# Simple New Tab Page Welcome to *Simple New Tab Page*, a custom New Tab page for all kinds of web browsers. ![Screenshot](<thumbnail.png>) ## Features - Clean and minimalistic design - Add as many websites as you want - Customise website names, URLs, and icons - Export and import your settings for easy setup across multiple devices - Free and always will be - Self-hosted, no tracking or analytics ## 🌟 Support the Project 🌟 If you find *Simple New Tab Page* 🖥️ useful, you can support the project by [☕️ buying me a coffee](https://www.buymeacoffee.com/carbongo). 🙏 Any support is greatly appreciated! ❤️ ## Usage ### Installation 1. Download the latest release from the [releases page](https://github.com/carbongo/simple-new-tab-page/releases) 2. Place `index.html` somewhere on your computer and ensure it is not moved or renamed 3. Open your browser's settings and set the New Tab page to the location of `index.html` 4. Edit websites to your liking using the `+` button and right-click on the website to edit it 5. **Don't forget to export your settings and save the file somewhere safe** 6. Enjoy! ### Adding a Website 1. Click the `+` button on the bottom-right corner 2. Enter the website's name and URL, then click `OK` 3. Search for a suitable icon on [Icons8](https://icons8.com) 4. Right-click on the desired icon and click `Copy Image URL` 5. Paste the URL into the `Icon URL` field, then click `OK` ### Editing a Website 1. Right-click on the website you wish to edit 2. Click `Edit` or `Delete` ## F.A.Q. >Q: You mentioned this is compatible with all kinds of web browsers, but I can't find the setting to change the New Tab page in mine. What do I do? > >A: Some browsers don't allow changing the New Tab page. In such cases, you can use extensions like [Fast New Tab Redirect](https://chromewebstore.google.com/detail/fast-new-tab-redirect/ohnfdmfkceojnmepofncbddpdicdjcoi) for Chrome or [New Tab Override](https://addons.mozilla.org/en-GB/firefox/addon/new-tab-override/) for Firefox. Alternatively, you can set your start page (homepage) to the location of `index.html`. >Q: How do I use this on my phone? > >A: Use a browser that allows you to change the New Tab page, or set your start page (homepage) to the location of `index.html`. >Q: Is mobile support available? > >A: Yes, it is. However, you'll need to find a way to store `index.html` on your phone or host it, which I do not provide support for. >Q: Why should I export my settings? > >A: In case you need to reinstall your browser or switch to a different one. Also, in rare instances, your browser may reset your settings. If that happens, you can import your settings so you won't have to set everything up again. >Q: I have a feature suggestion! > >A: Feel free to open an issue or a pull request. >Q: I found a bug! > >A: Please open an issue or a pull request. >Q: My question isn't answered here! > >A: Open an issue or a pull request for any unanswered questions. ## Development If you wish to contribute to the project, follow these steps: 1. Clone the repository 2. Install dependencies with `yarn` 3. Run the application using `yarn dev` 4. Open a web browser and navigate to `http://localhost:1234` ## Credits The default icons for websites are sourced from [Icons8](https://icons8.com). ## License This project is licensed under the [MIT License](https://opensource.org/licenses/MIT).
A simple custom New Tab page for all kinds of web browsers
new-tab,speed-dial,simple-new-tab-page,html,inline,javascript,parcel,scss
2023-10-16T17:34:11Z
2023-10-17T04:13:25Z
2023-10-17T04:13:25Z
1
0
4
0
0
8
null
MIT
JavaScript
itamarpambo751/vue.js-lading-page
master
# vue-project This template should help get you started developing with Vue 3 in Vite. ## Recommended IDE Setup [VSCode](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=Vue.volar) (and disable Vetur) + [TypeScript Vue Plugin (Volar)](https://marketplace.visualstudio.com/items?itemName=Vue.vscode-typescript-vue-plugin). ## Customize configuration See [Vite Configuration Reference](https://vitejs.dev/config/). ## Project Setup ```sh npm install ``` ### Compile and Hot-Reload for Development ```sh npm run dev ``` ### Compile and Minify for Production ```sh npm run build ```
null
javascript,vuejs
2023-10-25T12:35:28Z
2023-10-26T13:00:36Z
null
1
0
11
0
0
8
null
null
Vue
hoangsonww/The-GitPeek-App
main
# The GitPeek App ## Description The GitPeek App is a sleek, user-friendly web application designed to provide quick and comprehensive information about any GitHub user. Simply type in a GitHub username, and get instant access to a variety of data including bio, follower count, repository information, and much more, presented in an elegant and readable format. This app is built with HTML, CSS, and JavaScript, ensuring a lightweight and responsive user experience. ## User Interface <p align="center" style="cursor: pointer"> <img src="icons/ui.PNG" alt="The GitPeek App Interface" width="100%" style="border-radius: 8px" </p> ## Features - **User Search**: Easily search for any GitHub user by typing the username into the search bar. - **Comprehensive User Data**: View detailed information including bio, follower count, following count, repository information, location, company, and much more. - **Top Repositories**: Discover a user’s top repositories sorted by the number of stars. - **Dark Mode**: Switch between light and dark themes for optimal readability. - **User History**: Quickly access previously searched users. - **User Not Found Page**: Get instant feedback when a searched user is not found, with an option to navigate back to the main page. - **About Page**: Learn more about The GitPeek App, including its purpose and functionalities. ## How to Use 1. **Search for a User** - Type a GitHub username into the search bar and press enter. - The app will display detailed information about the user. 2. **View User Repositories** - The user’s top repositories are displayed at the bottom of the user card. 3. **Navigate to About Page** - Click the "About" button below the user card to learn more about the app. 4. **Toggle Dark Mode** - Click the "Toggle Dark Mode" button at the top of the page to switch between light and dark themes. 5. **View Recent Users** - Recently searched users are displayed at the bottom for quick access. 6. **User Not Found** - If the app cannot find the entered username, it will display a "User not found" message with a button to return to the main page. ## GitHub API Note This app uses the GitHub API to fetch user data. The API has a rate limit of 60 requests per hour for unauthenticated users (based on IP address). If you encounter any issues with the app, please wait for a few minutes before trying again. ## Local Development ### Prerequisites - A modern web browser. - A text editor for editing HTML, CSS, and JavaScript. ### Steps 1. Clone this repository or download the ZIP file. - `git clone https://github.com/hoangsonww/The-GitPeek-App.git` 2. Navigate to the project directory. - `cd The-GitPeek-App` 3. Open the `index.html` file in your web browser. 4. To view different users, type a GitHub username into the search bar and press enter. 5. Explore other features like dark mode, about page, and user history. ## Technologies Used - **HTML5**: For structuring the web content. - **CSS3**: For styling the web content. - **JavaScript**: For adding interactive features and fetching data from the GitHub API. ## License This project is open source and available under the [MIT License](LICENSE). ## Contributions Contributions, issues, and feature requests are welcome! Feel free to check [issues page](https://github.com/yourusername/thegitpeekapp/issues) or open pull requests. Enjoy using The GitPeek App! 💻🚀
🧑‍💻 The GitPeek App allows users to effortlessly search and view detailed profiles of GitHub users. With a clean and intuitive interface, the app displays key user data, top repositories, and offers features like dark mode and search history. NOTE: GitHub API has a rate limit based on IP address, so be aware that our service may be down sometimes.
css,html,javascript,react,reactjs,github,github-pages-website,github-profile
2023-10-20T20:07:34Z
2024-05-23T10:02:27Z
null
1
9
42
1
6
8
null
CC0-1.0
JavaScript
hongquant17/CourseX
master
# CourseX: Nền tảng giáo dục của tương lai ## Cách chạy server trên platform ### Yêu cầu Bản build của server cùng NodeJs18 được tải sẵn lên platform, các tham số môi trường đã đặt sẵn trong `./CourseX/.env` ### Chạy server - Tại thư mục home trên platform của nhóm (VD:`jovyan@jupyter-fall2324w3g2:~$`), tiến hành bật tmux lên và chạy bash script `start.sh`, ```shell jovyan@jupyter-fall2324w3g2:~$ bash start.sh ``` Truy cập trang web http://fall2324w3g2.int3306.freeddns.org Link video demo: https://youtu.be/xGjlS_0WA1c - Chi tiết file `start.sh` - `cd CourseX`: Di chuyển vào folder CourseX - `/etc/jupyter/bin/expose 8000`: Mở cổng 8000 - `export PATH=$HOME/node-v18.18.2-linux-x64/bin:$PATH`: Thêm PATH ENVIRONMENT của Node 18 - `npm run start`: Chạy ứng dụng ## Cách cài đặt và chạy trên local ### Yêu cầu Phiên bản Node JS: `18.x.x` ### Cài đặt thư viện ```shell npm i ``` ### Cấu hình local enviroment Cấu hình local enviroment, gồm Database URL [Uploadthing API](https://uploadthing.com/), [Mux API](https://www.mux.com/), NextAuth Secret key, Github và Google OAuth API. Ví dụ file `env`: ```js DATABASE_URL= UPLOADTHING_SECRET= UPLOADTHING_APP_ID= MUX_TOKEN_ID= MUX_TOKEN_SECRET= NEXTAUTH_URL= NEXTAUTH_SECRET= GITHUB_ID= GITHUB_SECRET= GOOGLE_ID= GOOGLE_SECRET= ``` ### Cài đặt Prisma Sau khi thêm Database URL, cài đặt Prisma: ```shell npx prisma generate npx prisma db push ``` ### Chạy development server ```shell npm run dev ``` ### Build server Build server với lệnh: ```shell npm run build ``` Sau đó chạy lệnh sau để khởi động server: ```shell npm run start ```
An Online Learning Platform For Learners And Educators
css,education,html,javascript,lms,mysql,nextjs,nodejs,prisma,tailwind
2023-10-14T16:44:58Z
2024-01-07T16:19:24Z
null
5
60
283
0
3
8
null
null
TypeScript
ysnhasan1/E-Commerce-App
main
# E-Commerce-App E-commerce website using React.js and Redux Toolkit. ## About The Project * In this project, I wanted to create an E-Commerce website using `React.js` and `Redux Toolkit`. The project consists of a home page with all products, a specific detail page for each product and a shopping cart page where users can add the products they want. All products on the homepage are fetched from an API. During this time, a loading screen is shown to the user. You can see the details of the product that you want by clicking on its image and you can add it to the cart. You can also change the number of products you added or delete the product from the cart. While you are doing these operations, you will see an information message on the navbar. <br /> * State management is very easy using Redux Toolkit. It allows that using a state on different pages. The navbar shows the number of products in the cart that we can access on each page. * Another important point of the project is routing between pages. `React Router` was used for this. * `Local Storage: Products in the cart are not deleted when the page is refreshed.` * `The website is responsive to all screen sizes.` ## Main Technologies For The Project ![React](https://img.shields.io/badge/react-%2320232a.svg?style=for-the-badge&logo=react&logoColor=%2361DAFB) ![Redux](https://img.shields.io/badge/redux-%23593d88.svg?style=for-the-badge&logo=redux&logoColor=white) ![React Router](https://img.shields.io/badge/React_Router-CA4245?style=for-the-badge&logo=react-router&logoColor=white) ## Website Link 👇 * You can visit my website by clicking the link below. Feel free to share your observations with me. https://hasan-e-commerce.netlify.app/ ## Website Overview https://github.com/ysnhasan1/E-Commerce-App/assets/102024926/ab739ec9-917c-4dba-b2fd-6a2215c5dd82 ## Screenshots <div align="center"> `Loading Screen` <img src="https://github.com/ysnhasan1/E-Commerce-App/assets/102024926/1ff52573-a162-46e9-81e3-543ab57060da"><br /> `Home Page` <img src="https://github.com/ysnhasan1/E-Commerce-App/assets/102024926/b30ae86d-da96-4107-a17d-2ba02500741c"><br /> <img src="https://github.com/ysnhasan1/E-Commerce-App/assets/102024926/a02cec30-0743-4beb-9b28-3402a098baa2"><br /> <img src="https://github.com/ysnhasan1/E-Commerce-App/assets/102024926/f277173a-4aa2-4eea-9b16-d40494a68de2"><br /> <img src="https://github.com/ysnhasan1/E-Commerce-App/assets/102024926/e7f91421-5e63-40e9-8058-c750c85d60d4"><br /> <img src="https://github.com/ysnhasan1/E-Commerce-App/assets/102024926/62f36174-f48b-4e23-9b19-d27dfdba1814"><br /> `Details Page` <img src="https://github.com/ysnhasan1/E-Commerce-App/assets/102024926/ff3ae818-c629-4f78-a296-99df22ba9712"><br /> <img src="https://github.com/ysnhasan1/E-Commerce-App/assets/102024926/326af687-6eea-4f66-a0c9-2d3fc39cc666"><br /> <img src="https://github.com/ysnhasan1/E-Commerce-App/assets/102024926/a1b0156f-d187-4b53-a341-a46ab5b62d1c"><br /> <img src="https://github.com/ysnhasan1/E-Commerce-App/assets/102024926/5da4d509-34ef-48ca-b513-fe8a6dc43a6c"><br /> `Shopping Cart Page` <img src="https://github.com/ysnhasan1/E-Commerce-App/assets/102024926/54d69f10-5642-4f48-8c9a-32a66d0e7937"><br /> <img src="https://github.com/ysnhasan1/E-Commerce-App/assets/102024926/3399f9a8-3972-43db-b395-ec2205869704"><br /> </div> ## Responsive to Smaller Screen Size (Phone View) <div align="center"> <img src="https://github.com/ysnhasan1/E-Commerce-App/assets/102024926/7743dbab-6f79-4556-9563-f19a70a6891c" height="450"> <img src="https://github.com/ysnhasan1/E-Commerce-App/assets/102024926/cd0f300b-e0ad-4bdb-a661-e7be1a47f01e" height="450"> </br> <img src="https://github.com/ysnhasan1/E-Commerce-App/assets/102024926/be6c6b3c-f461-458d-80d2-44769b0fbbc5" height="450"> <img src="https://github.com/ysnhasan1/E-Commerce-App/assets/102024926/0156c640-be69-48f4-9f0c-b827e5bfd53a" height="450"> </br> <img src="https://github.com/ysnhasan1/E-Commerce-App/assets/102024926/50f2bc33-5764-4e13-b6d4-eab3c0b87a3f" height="450"> <img src="https://github.com/ysnhasan1/E-Commerce-App/assets/102024926/475cd1e8-af8e-4bad-b9d9-23aa819ea991" height="450"> </div> ## Npm * To install packages `npm install` after that to run `npm run dev`.
E-commerce website using React.js and Redux Toolkit.
css3,html5,javascript,react-router,reactjs,redux-toolkit
2023-10-31T18:56:05Z
2023-12-02T12:34:06Z
null
1
0
20
0
3
8
null
MIT
JavaScript
deepgram/deepgram-js-captions
main
# Deepgram Captions [![Discord](https://dcbadge.vercel.app/api/server/xWRaCDBtW4?style=flat)](https://discord.gg/xWRaCDBtW4) [![npm version](https://badge.fury.io/js/@deepgram%2Fcaptions.svg)](https://badge.fury.io/js/@deepgram%2Fcaptions) This package is the JavaScript implementation of Deepgram's WebVTT and SRT formatting. Given a transcription, this package can return a valid string to store as WebVTT or SRT caption files. > Works with ANY transcription format. ## Installation ```bash npm install @deepgram/captions # - or - # yarn add @deepgram/captions ``` ## WebVTT from Deepgram Transcriptions ```ts import { webvtt } from "@deepgram/captions"; const result = webvtt(deepgram_transcription_result); ``` ## SRT from Deepgram Transcriptions ```ts import { srt } from "@deepgram/captions"; const result = srt(deepgram_transcription_result); ``` ## Converters This package has been built to convert any transcription format. You only need to provide a `converter` class to provide the formatters with the correct data. ### Example Converter A generic converter would look like this: ```ts import { chunkArray, WordBase, IConverter } from "@deepgram/captions"; export class GenericConverter implements IConverter { constructor(public transcriptionData: any) {} getLines(lineLength: number = 8): WordBase[][] { const results = this.transcriptionData; let content: WordBase[][] = []; results.paragraphs.forEach((paragraph) => { if (paragraph.words.length > lineLength) { content.push(...chunkArray(paragraph.words, lineLength)); } else { content.push(paragraph.words); } }); return content; } } ``` It requires that `getLines` return the following data structure: ```ts // const transcriptionData: WordBase[][] = [ const transcriptionData = [ [ { word: string; start: number; end: number; punctuated_word: string; // optional } ] ] ``` Using your converter will look like this: ```ts import { srt } from "@deepgram/captions"; const result = srt(new GenericConverter(transcription_result)); ``` ### Included Converters #### Assembly AI ```ts import { webvtt, AssemblyAiConverter } from "@deepgram/captions"; const result = webvtt(new AssemblyAiConverter(assembly_result)); ``` ## Output WebVTT When transcribing https://dpgr.am/spacewalk.wav, and running it through our library, this is the WebVTT output. ```ts import { webvtt } from "@deepgram/captions"; const result = webvtt(deepgram_transcription_result); console.log(result); ``` This is the result: ```text WEBVTT NOTE Transcription provided by Deepgram Request Id: 686278aa-d315-4aeb-b2a9-713615544366 Created: 2023-10-27T15:35:56.637Z Duration: 25.933313 Channels: 1 00:00:00.080 --> 00:00:03.220 Yeah. As as much as, it's worth celebrating, 00:00:04.400 --> 00:00:05.779 the first, spacewalk, 00:00:06.319 --> 00:00:07.859 with an all female team, 00:00:08.475 --> 00:00:10.715 I think many of us are looking forward 00:00:10.715 --> 00:00:13.215 to it just being normal and 00:00:13.835 --> 00:00:16.480 I think if it signifies anything, It is 00:00:16.779 --> 00:00:18.700 to honor the the women who came before 00:00:18.700 --> 00:00:21.680 us who, were skilled and qualified, 00:00:22.300 --> 00:00:24.779 and didn't get the same opportunities that we 00:00:24.779 --> 00:00:25.439 have today. ``` ## Output SRT When transcribing https://dpgr.am/spacewalk.wav, and running it through our library, this is the SRT output. ```ts import { srt } from "@deepgram/captions"; const result = srt(deepgram_transcription_result); console.log(result); ``` This is the result: ```text 1 00:00:00,080 --> 00:00:03,220 Yeah. As as much as, it's worth celebrating, 2 00:00:04,400 --> 00:00:07,859 the first, spacewalk, with an all female team, 3 00:00:08,475 --> 00:00:10,715 I think many of us are looking forward 4 00:00:10,715 --> 00:00:14,235 to it just being normal and I think 5 00:00:14,235 --> 00:00:17,340 if it signifies anything, It is to honor 6 00:00:17,340 --> 00:00:19,820 the the women who came before us who, 7 00:00:20,140 --> 00:00:23,580 were skilled and qualified, and didn't get the 8 00:00:23,580 --> 00:00:25,439 same opportunities that we have today. ``` ## Documentation You can learn more about the Deepgram API at [developers.deepgram.com](https://developers.deepgram.com/docs). ## Development and Contributing Interested in contributing? We ❤️ pull requests! To make sure our community is safe for all, be sure to review and agree to our [Code of Conduct](./.github/CODE_OF_CONDUCT.md). Then see the [Contribution](./.github/CONTRIBUTING.md) guidelines for more information. ## Getting Help We love to hear from you so if you have questions, comments or find a bug in the project, let us know! You can either: - [Open an issue in this repository](https://github.com/deepgram/[reponame]/issues/new) - [Join the Deepgram Github Discussions Community](https://github.com/orgs/deepgram/discussions) - [Join the Deepgram Discord Community](https://discord.gg/xWRaCDBtW4) [license]: LICENSE.txt
This package is the JavaScript implementation of Deepgram's WebVTT and SRT formatting. Given a transcription, this package can return a valid string to store as WebVTT or SRT caption files.
asr,audio,closed-captions,deepgram,ffmpeg,speech-to-text,srt,stt,subtitles,transcription
2023-10-27T12:49:10Z
2023-11-07T08:30:21Z
2023-11-07T08:29:38Z
10
4
24
2
1
8
null
MIT
TypeScript
MastooraTurkmen/My-Cats
main
# Getting Started with Create React App This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app). ## Available Scripts In the project directory, you can run: ### `npm start` Runs the app in the development mode.\ Open [http://localhost:3000](http://localhost:3000) to view it in your browser. The page will reload when you make changes.\ You may also see any lint errors in the console. ### `npm test` Launches the test runner in the interactive watch mode.\ See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information. ### `npm run build` Builds the app for production to the `build` folder.\ It correctly bundles React in production mode and optimizes the build for the best performance. The build is minified and the filenames include the hashes.\ Your app is ready to be deployed! See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information. ### `npm run eject` **Note: this is a one-way operation. Once you `eject`, you can't go back!** If you aren't satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project. Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you're on your own. You don't have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn't feel obligated to use this feature. However we understand that this tool wouldn't be useful if you couldn't customize it when you are ready for it. ## Learn More You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started). To learn React, check out the [React documentation](https://reactjs.org/). ### Code Splitting This section has moved here: [https://facebook.github.io/create-react-app/docs/code-splitting](https://facebook.github.io/create-react-app/docs/code-splitting) ### Analyzing the Bundle Size This section has moved here: [https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size](https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size) ### Making a Progressive Web App This section has moved here: [https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app](https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app) ### Advanced Configuration This section has moved here: [https://facebook.github.io/create-react-app/docs/advanced-configuration](https://facebook.github.io/create-react-app/docs/advanced-configuration) ### Deployment This section has moved here: [https://facebook.github.io/create-react-app/docs/deployment](https://facebook.github.io/create-react-app/docs/deployment) ### `npm run build` fails to minify This section has moved here: [https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify](https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify)
Enjoy with my cats pictures :)
css,html,javascript,react
2023-10-19T01:52:38Z
2024-05-01T05:15:43Z
null
1
0
328
0
0
8
null
null
JavaScript
jacobmarks/audio-retrieval-plugin
main
## Audio-to-Image Search Plugin 🔉 👉 🖼️ https://github.com/jacobmarks/audio-retrieval-plugin/assets/12500356/5365716f-5d65-4215-b6c4-889ee1d16f65 This plugin allows you to search your dataset for images that are similar to a given audio clip. How does it work? - ImageBind embedding model embeds images and audio clips into a shared space (1024 dim) - Qdrant similarity index stores the embeddings and allows for fast similarity search - FiftyOne provides a UI for uploading the audio clip, pre-filtering, and searching the similarity index. It demonstrates how to work with custom media types in FiftyOne, and how to create custom vector similarity indices. Note: This plugin is a proof of concept and is not intended for production use. It works with `ogg` and `wav` audio files, but not `mp3` files, and makes an API call to replicate rather than running the embedding model locally, to avoid potential installation issues. ## Watch On Youtube [![Video Thumbnail](https://img.youtube.com/vi/dn5DA4H9b-o/0.jpg)](https://www.youtube.com/watch?v=dn5DA4H9b-o&list=PLuREAXoPgT0RZrUaT0UpX_HzwKkoB-S9j&index=12) ## Installation ```shell fiftyone plugins download https://github.com/jacobmarks/audio-retrieval-plugin ``` You will also need to install `replicate` and `qdrant-client`: ```shell pip install replicate qdrant-client ``` ## Operators ### `open_audio_retrieval_panel` - Opens the audio retrieval panel on click ### `create_imagebind_index` - Creates an index for the dataset using the ImageBind embedding model. This operation can take a little while to run, so it is recommended to run it in delegated execution mode. To do so, check the `Delegated` box in the operator's modal, and then in a terminal run: ```shell fiftyone delegated launch ``` ### `search_images_from_audio` - Searches the index for images that are similar to the given audio clip. This should be relatively fast, although it may take a minute for the replicate server to start up. ## Usage Before you can use the plugin, you will need to create an account on [Replicate.com](https://replicate.com/). Once you have created an account, you can create an API token, and then add this token as an environment variable: ```shell export REPLICATE_API_TOKEN=<your token> ``` You will also need to start a Qdrant server locally. To do so, start up your Docker daemon, and then run: ```shell docker run -p "6333:6333" -p "6334:6334" -d qdrant/qdrant ``` Then, you can run the `create_imagebind_index` operator, and the `open_audio_retrieval_panel` operator. The latter will open a panel that allows you to upload an audio clip, and then search for similar images.
FiftyOne Plugin for searching images by audio clip using ImageBind and Qdrant
fiftyone,imagebind,javascript,machine-learning,mui,multimodal,plugins,python,qdrant,react
2023-10-15T22:45:30Z
2023-11-01T20:06:37Z
null
1
0
4
0
0
8
null
null
TypeScript
PRich57/react-portfolio
main
# Pete's React Portfolio ![404 Badge](https://img.shields.io/badge/No_License_Chosen-red) ## Description Welcome to my portfolio! I'm Pete Richards, a Software Developer and recent graduate of the University of Denver's Coding Boot Camp. My portfolio provides a snapshot of my coding journey, skills, and experiences. It's built using React and serves as a guide to who I am as a developer. To visit my portfolio click [here!](https://pete-richards.netlify.app/) ## Table of Contents - [Installation](#installation) - [Usage](#usage) - [Navigation](#navigation) - [About Me](#about-me) - [Projects](#projects) - [Contact](#contact) - [Resume](#resume) - [Questions](#questions) ## Installation No installation is required. ## Usage To navigate through my portfolio, follow the instructions below: <a id="navigation"></a> ##### Navigation - Easily switch between different sections using the navigation bar at the top of the page. - Your current location will always be highlighted in the navigation bar to keep track of the active page. - Find links to my GitHub and LinkedIn accounts at the bottom left of any page. - If vertical scrolling is needed on a page, a scroll-to-top button in the form of a white circle with an arrow pointing - up will appear on the bottom right. Click it to return to the top of the page. ![Video of Navigation usage](./src/assets/navigation.gif) <a id="about-me"></a> ##### About Me - The homepage features my About Me section, providing insights into both my developer journey and personal life. - Content is organized within a custom accordion component. - Click on any accordion header to reveal the contents of that section while hiding the others. - This section offers a brief summary of my coding journey, along with a recent photograph to add a personal touch. ![Video of About Me Page](./src/assets/about-me-page.gif) <a id="projects"></a> ##### Projects - Click "Projects" in the navigation bar to access the Projects page, showcasing four of my top projects. - Scroll through project cards to view screenshots, titles, descriptions, and links to live sites and GitHub repositories. - Each card has dynamic tilt functionality that responds to mouse movement when hovering. ![Video of Projects Page](./src/assets/projects-page.gif) <a id="contact"></a> ##### Contact - The Contact page includes a form with fields for Name, Email Address, and Message. - Fill out all fields before submitting. - Ensure the email address is correctly formatted (e.g., example@email.com) for successful submission. - Upon submission, a success or failure message will appear for 3 seconds. - If successful, I will receive your email and respond promptly. - In case of an error, verify your information and try again. ![Video of Contact Page](./src/assets/contact-page.gif) <a id="resume"></a> ##### Resume - The Resume page displays Technical Skills at the top, followed by a button to access my official resume. - Below Technical Skills, you'll find Soft Skills on the left and Relevant Experience on the right, with Education at the bottom. - Click the button under "Resume" to open my official resume in a new tab. - Technical Skills are represented by icons, with technology names and skill levels displayed sequentially at a 2-second interval. Hovering over an icon interrupts the sequence and shows details. - Soft Skills correlate with Relevant Experience. Hovering over experience items highlights associated soft skills. - Relevant Experience emphasizes work history that demonstrates valuable soft skills for software development roles. - The Education section lists my B.S. from Ohio University and recent Software Development certificates. ![Video of Resume Page](./src/assets/resume-page.gif) ## Questions Please feel free to contact me with any questions! You can message me on LinkedIn via the link below or email me through the contact page on my portfolio. LinkedIn: [PRich57](https://www.linkedin.com/in/peterrichards57/)
(Full-Stack) This is my updated portfolio created with React. Users will find a brief summary of my coding journey, some of my best solo and collaborative projects, a contact form connected to my email, and a resume page with a downloadable pdf.
javascript,react,css,html
2023-10-29T23:54:28Z
2024-01-04T22:02:16Z
null
1
0
102
1
1
7
null
null
JavaScript
ArthurGamaJorge/codedrafts
main
<h1>CodeDrafts</h1> Acesse o site em: <a href="https://codedrafts-5as0.onrender.com/" target="_blank" >https://codedrafts-5as0.onrender.com</a> <br> Código no GitHub: <a href="https://github.com/ArthurGamaJorge/codedrafts/" target="_blank" >https://github.com/ArthurGamaJorge/codedrafts/</a> ### Trabalho de Práticas Profissionais II * <a href="https://github.com/ArthurGamaJorge" target="_blank" >Arthur Gama Jorge</a> - RA: 23578 - 1o Info * <a href="https://github.com/DanielDoriganCC" target="_blank" >Daniel Dorigan de Carvalho Campos</a> - RA: 23124 - 1o Info * <a href="https://github.com/ionmateus" target="_blank" >Ion Mateus Nunes Oprea</a> - RA: 23135 - 1o Info <br> ### Web <div style="display: flex"> <img src= "https://github.com/ArthurGamaJorge/codedrafts/assets/129080603/1b5e321a-80d0-40e2-bfc2-b371173a1132"> <img src = "https://github.com/ArthurGamaJorge/codedrafts/assets/129080603/81007d6d-6812-4fbc-aa45-8876cb2f0240"> <br><br> <img src= "https://github.com/ArthurGamaJorge/codedrafts/assets/129080603/b535147c-4192-4076-bcbe-8eb6b0a7ca3c" width=75%> <img src = "https://github.com/ArthurGamaJorge/codedrafts/assets/129080603/bb91c9af-f3a5-4d81-85be-d36c027b5d09" width=20%> ### Java <img src = "https://github.com/ArthurGamaJorge/codedrafts/assets/129080603/6adf92ff-35a9-46bd-b4ee-79b1a9d8cf61" width=34%> <img src = "https://github.com/ArthurGamaJorge/codedrafts/assets/129080603/eb814623-89fd-42ba-bde7-910d35c19726" width=61%> </div> <br><br> <h2>Dependências do projeto para execução local:</h2> Clonar o repositório com: ```console git clone https://github.com/cc23135/codedrafts.git ``` ### Java (VSCODE) Instalar o <a href="https://openjfx.io/"> JavaFx SDK</a> (link alternativo: <a href="https://jdk.java.net/javafx21/"> JavaFx21</a>) e <a href="https://www.oracle.com/br/database/technologies/appdev/jdbc-downloads.html"> JDBC Driver </a> Ir na pasta `.vscode` e criar um arquivo nela chamado `launch.json` nesse arquivo colocar o seguinte código: <br><br> ```json { "version": "0.2.0", "configurations": [ { "type": "java", "name": "Java/App", "request": "launch", "mainClass": "App", "vmArgs": "--module-path 'Diretório/para/javafx/lib' --add-modules javafx.controls,javafx.fxml" } ] } ``` Exemplo de vmArgs: ```json "vmArgs": "--module-path 'C:/Users/arthu/Downloads/openjfx-21.0.1_windows-x64_bin-sdk/javafx-sdk-21.0.1/lib' --add-modules javafx.controls,javafx.fxml" ``` Ir na pasta `src` localizada dentro da pasta `java` e criar um arquivo txt chamado `ConnectionString.txt` <br><br> Dentro desse arquivo txt colocar sua string de conexão, como por exemplo: <br><br> ```console jdbc:sqlserver://<ENDEREÇO DO SERVIDOR>:1433;database=<NOME DO SEU DATABASE>;user=<NOME DO SEU USUÁRIO>;password=<SUA SENHA>;encrypt=true;trustServerCertificate=true;schema=CodeDrafts" ``` <br> ### Web Abrir o projeto criado e no terminal digitar os seguintes comandos ```console cd src ``` ```console npm init -y ``` ```console npm install express --save ``` ```console npm i express body-parser multer ``` ```console npm i @google-cloud/storage ``` ```console npm install prisma --save-dev ``` ```console npm install @prisma/client ``` Criar arquivo `.env` na pasta `src` e inserir conexão ao banco de dados como no exemplo abaixo: ```console DATABASE_URL="sqlserver://<ENDEREÇO DO SERVIDOR>:1433;database=<NOME DO SEU DATABASE>;user=<NOME DO SEU USUÁRIO>;password=<SUA SENHA>;encrypt=true;trustServerCertificate=true;schema=CodeDrafts" ``` ```console npm prisma init ``` ```console npx prisma db pull ``` ```console npx prisma generate ``` Sempre que quiser visualizar o site, execute o comando ```console node app ``` Abra seu browser e digite <b> `localhost:3000` </b>
Trabalho de práticas - Arthur, Daniel e Ion - 2023
css,html,java,javascript,mssql,node,sql,tsql,website
2023-10-20T19:29:03Z
2023-12-06T14:32:48Z
null
5
0
359
0
1
7
null
null
JavaScript
AbhineshJha/Redstore
main
<div align="center"> <img src="img/logo.png" alt="Redstore Banner" width="400px"> </div> <h1 align="center">Redstore - Trendsetting Fashion for Men and Women</h1> Welcome to Redstore, your ultimate destination for staying ahead of the fashion curve, offering the latest trends in clothing for both men and women. This repository houses the HTML and CSS codebase for the Redstore website. ## About Redstore At Redstore, we're passionate about keeping you in style. Our mission is to provide trendsetting fashion for men and women that reflects your unique style. We take pride in offering exclusive collections and top-notch customer service. ## Features and Highlights - Explore our latest collections, from casual wear to formal attire. - Discover limited-edition fashion items that you won't find anywhere else. - Stay in the loop with our fashion blog, offering style tips and industry insights. ## Getting Started To embark on your journey with Redstore, follow these simple steps: 1. **Show Your Support:** Click on the "Star" button at the top of this page to express your appreciation. 2. **Fork this Repository:** Click on the "Fork" button to create your personal copy of the project. ## Technologies Used Redstore is built using the following technologies: - HTML - CSS ## Project Structure The project is organized as follows: - `/css`: Contains CSS stylesheets. - `/img`: Stores image assets. ## Contributing We wholeheartedly welcome contributions from the community! Here's how you can begin contributing to Redstore: 1. **Create an Issue:** If you discover a bug, have suggestions, or wish to request a new feature, please create an issue on this repository. Be sure to provide comprehensive details. 2. **Pull Requests:** We greatly value your contributions. If you want to fix a bug or introduce a new feature, fork the repository, implement your changes, and submit a pull request. We will promptly review it. 3. **Code of Conduct:** All contributors are expected to adhere to our [Code of Conduct](/CODE_OF_CONDUCT.md). We prioritize maintaining a positive and inclusive community. ## License This project is licensed under the [License Name](link) - see the [LICENSE](LICENSE) file for details. ## Contact Information For questions or feedback, feel free to reach out to us at [email@example.com] or connect with us on [Social Media](link). Enjoy your shopping experience at Redstore and relish contributing! 😄🛍️
A website of Trending clothes for men and women .!! College Project in 1st sem
css3,hacksquad,hacktoberfest,hacktoberfest-accepted,html5,javascript
2023-10-23T19:52:58Z
2024-01-17T17:52:43Z
null
24
38
92
17
25
7
null
null
HTML
B1NARY-GR0UP/tabsnapshot
main
# TABSNAPSHOT ![TABSNAPSHOT](images/TABSNAPSHOT.png) TABSNAPSHOT is a Chrome extension that allows you to create a snapshot for the current open tabs. ## Install Since TABSNAPSHOT has not been released on the Chrome Web Store yet (it will be released later), you can install it using the following steps: 1. Download the source code zip file from the [releases](https://github.com/B1NARY-GR0UP/tabsnapshot/releases). 2. Extract the zip file to a location you prefer (usually where you store other software). 3. Open Chrome's `Extensions` page. 4. Turn on the `Developer mode` toggle in the upper right corner. 5. Click the `Load unpacked` button and select the source code folder you just extracted. 6. You will see that TABSNAPSHOT has been successfully installed in your Chrome. 7. Turn off developer mode. ## Usage The current features supported by TABSNAPSHOT include: - Save all currently open tabs in Chrome as a snapshot item. - Open, Rename, Update and Delete saved snapshots. - Preview saved snapshots. - Open or Delete All saved snapshots at once. **Note: All TABSNAPSHOT features are integrated into the plugin's pop-up panel. Make sure to have TABSNAPSHOT properly installed and pinned to your Chrome for these functionalities.** ![userguide](./images/userguide.png) 1. The open-source address of the extension. 2. Use `Create` to capture a snapshot of all currently open tab pages in Chrome. 3. Use `Open All` to open all saved snapshots at once. 4. Use `Delete All` to delete all saved snapshots at once. 5. The snapshots are named by default based on the creation time (down to minute). 6. A saved snapshot item. 7. If you create multiple snapshots within the same minute, they will be automatically numbered. 8. Use `Open` to open a saved snapshot item. 9. Use `Rename` to rename a saved snapshot item. 10. Use `Update` to update a saved snapshot item. 11. Use `Delete` to delete a saved snapshot item. 12. Click on the snapshot's name in blue to open a preview window and view all the links saved in the snapshot item. 13. The number indicates the quantity of tabs included in the snapshot item. ## Blogs - [How to Build Your Own Chrome Extension Using ChatGPT](https://dev.to/justlorain/how-to-build-your-own-chrome-extension-using-chatgpt-1pfa) | [中文](https://juejin.cn/post/7297124052175798308) ## License TABSNAPSHOT is distributed under the [Apache License 2.0](./LICENSE). ## ECOLOGY <p align="center"> <img src="https://github.com/justlorain/justlorain/blob/main/images/MYLS.png" alt="MYLS"/> <br/><br/> TABSNAPSHOT is a Subproject of the <a href="https://github.com/B1NARY-GR0UP">Make Your Life Simpler</a> </p>
TABSNAPSHOT is a Chrome extension that allows you to create a snapshot for the current open tabs.
chrome-extension,javascript,snapshot
2023-10-30T16:18:52Z
2024-02-22T07:12:42Z
2024-02-22T07:12:42Z
1
0
41
0
0
7
null
Apache-2.0
JavaScript
iamabhiCH/codepen-clone9
master
null
Creating a React-based CodePen clone – a versatile HTML, CSS, and JavaScript editor. This tool offers a user-friendly interface for coding, editing, and live previewing web projects. Perfect for developers of all levels, it streamlines the creative process and facilitates collaborative coding.
css,html,javascript,rectjs
2023-10-19T19:42:26Z
2023-10-19T19:45:55Z
null
1
0
1
0
0
7
null
null
JavaScript
VineeTagarwaL-code/30-Java-Projects
main
# 30-JAVA-PROJECTS "Welcome to the '30-JAVA-PROJECTS' repository, your gateway to a world of Java programming possibilities! 🚀 Are you a newcomer to the realm of open-source development or just getting started with Java? Look no further! This open-source treasure trove is here to empower beginners with the knowledge and experience they need to kickstart their coding journey. In '30-JAVA-PROJECTS,' we've curated a collection of beginner-friendly Java projects, tailor-made to be your learning companions. Whether you're new to programming or just beginning your open-source adventure, these projects offer hands-on experience in a supportive and educational environment. What can you expect from this repository? - **A Learning Playground:** Each project is designed to teach you essential Java concepts and coding techniques, step by step. - **Newcomer-Friendly:** No prior experience required! We've crafted these projects with newcomers in mind. - **Open Source Spirit:** Embrace the culture of open source and gain experience by contributing to real projects and collaborating with fellow learners. - **Diverse Topics:** From simple console-based games to practical applications, our projects cover a wide range of Java applications. - **Community Support:** Join a welcoming community of learners and mentors here to guide you through your coding journey. '30-JAVA-PROJECTS' is not just a repository; it's your launchpad into the open-source world. Dive in, experiment, learn, and begin your journey toward becoming a proficient Java developer. Ready to take the plunge? Start exploring, coding, and creating with '30-JAVA-PROJECTS.' Your adventure in Java programming begins here!" 🌟👩‍💻👨‍💻 # Project Structure We encourage you to maintain a consistent project structure and adhere to best coding practices to keep this repository beginner-friendly. Please follow these guidelines: Each project should have its directory with a clear and descriptive name. Include a README file in each project directory with instructions on how to run and understand the project. Ensure that your code is well-documented and follows best practices for Java development. Test your projects to ensure they work as expected. # 🛡Rules to Contribute - ⚓Star this repo to get the latest updates. - ⚓Only Projects in Java are accepted - ⚓Name your file related to your topic. - ⚓Make sure you have entered your GitHub - username, aim, and date in your file as a comment. - ⚓Make sure you have entered your name in CONTRIBUTORS.md file as mentioned (It's your responsibility) (optional). - ⚓You can follow ME😁. ### ⚡If you are creating any PR then Add your name to the CONTRIBUTORS.md file # Contributing to '30-JAVA-PROJECTS' Thank you for your interest in contributing to '30-JAVA-PROJECTS'! We welcome contributions from beginners and experienced developers alike. Your help is invaluable in making this repository a valuable resource for newcomers to Java and open source. ## How to Contribute 1. **Fork the Repository:** Click the 'Fork' button on the top right to create a copy of this repository in your GitHub account. 2. **Clone Your Fork:** Use `git clone` to create a local copy of your fork on your development machine: ```bash git clone https://github.com/your-username/30-JAVA-PROJECTS.git 3. Create a New Branch: Before making changes, create a new branch for your contribution: ```bash git checkout -b your-feature 4. Make Changes: Make your desired changes, add new projects, or improve existing ones. We encourage you to follow our project structure and coding standards. 5. Commit Your Changes: Commit your changes with clear, concise commit messages: ```bash git commit -m "Add new Java project: Your-Project-Name" 6. Push Your Changes: Push your changes to your fork on GitHub: ```bash git push -u origin your-feature 7. Create a Pull Request: Go to the original repository and create a pull request (PR) to merge your changes into the main branch. Be sure to provide a detailed description of your contribution. 8. Code Review: Your PR will be reviewed by our team. Be prepared to make necessary adjustments if requested. 9. Acceptance: Once your PR is approved and passes any required tests, it will be merged into the main repository. ![Alt](https://repobeats.axiom.co/api/embed/f3eb583e183621a5270fde48289c62f757dc3b54.svg "Repobeats analytics image")
A Simple Repo for all programmers and coders. All contributors are requested to star🌟this repo and and folllllow me. Contribute to start your journey . Happy Hacking💻!!!
git,github,java,javascript,open-source,hacktoberfest
2023-10-22T10:39:43Z
2023-10-31T16:59:52Z
null
7
8
32
2
8
7
null
MIT
Java
izure1/tissue-roll
main
# Tissue Roll ![node.js workflow](https://github.com/izure1/tissue-roll/actions/workflows/node.js.yml/badge.svg) <p align="center"> <img src="./docs/asset/image/logo_tissue.svg"> </p> Very simple read/write database with a **NoSQL**. It's written in JavaScript using pure Node.js API and pretty easy and small. **tissue-roll** comes in two flavors: **key-value** database and **document-oriented** database. You have the freedom to choose based on your needs, **but most users will likely prefer the *document-oriented* database.** For details on how to use each database, please refer to the links below. * [**Document-oriented Database**](./docs/document/README.md) * [**Key-value Database**](./docs/core/README.md) ## Why ### Why use **tissue-roll**? JavaScript has numerous fantastic database libraries available, but at times, they can seem overly complex. This particular solution is ideal for situations where you need to store data for an extended period, making it well-suited for less critical data that doesn't require a rigid structure. Or, when everything is too bothersome. ### Why should I use this instead of **JSON**? When the **JSON** files get large, quick data read and write operations can become challenging. **tissue-roll** handles data input and output in real-time, ensuring fast and lightweight performance. Check the performance tests below. ## How ### How does it differ from a **Map** object? The **Map** object is memory-based, while **tissue-roll** is file system-based. ### How does **tissue-roll** work? **tissue-roll** manages files by breaking them into blocks called pages. You can set the page size when creating the database. When you insert data, the ID you get back includes information about where the data is stored on the page. This makes it possible to work with large files quickly. This value could be seen by users, but it's encrypted to make it hard to predict. This way, it stops users from trying to steal data by requesting fake record IDs. ### How many can I own data? **tissue-roll** can make a unsigned 32bit range of page block. This is a **4,294,967,296**. And each page can own unsigned 32bit range of records also. So you can theoretically insert **4,294,967,295** * **4,294,967,295** records. ## Performance Test The test result is the average value from 10 attempts. **tissue-roll** supports two databases, and this test tested the core functions of data reading/writing of the two databases. Therefore, it's not a perfect test result, but it's enough to show the time complexity. If you're adding data to the database in real-time, the results would be as follows: ### WRITE For a little data, JSON is faster, but when you've got a big file, it's the other way around, and the gap gets bigger. |`WRITE`|JSON|TISSUE-ROLL|`RESULT`| |---|---|---|---| |1,000 times|1014ms|1990ms|*-49% Slower*| |2,000 times|2200ms|3800ms|*-42% Slower*| |4,000 times|5674ms|7509ms|*-24% Slower*| |8,000 times|15332ms|14788ms|***+4% Faster***| |16,000 times|46617ms|29755ms|***+57% Faster***| ### READ **tissue-roll** maintains a steady reading speed no matter the database size. In contrast, JSON files slow down as they get bigger. |`READ`|JSON|TISSUE-ROLL|`RESULT`| |---|---|---|---| |from 8,000 records|1.8ms|5.6ms|*-68% Slower*| |from 16,000 records|4ms|2ms|***+100% Faster***| |from 32,000 records|5.4ms|2.2ms|***+145% Faster***| |from 64,000 records|11.4ms|2ms|***+470% Faster***| |from 128,000 records|26.4ms|2.6ms|***+915% Faster***| ### RESULT ![WRITE](./docs/asset/image/svg_perf_write.svg) ![READ](./docs/asset/image/svg_perf_read.svg) **NOTICE!** *This is the usual case, but the results can be different depending on programming optimizations. Please note that this test takes a square of the sample size to easily show the error with a small number of tests. Therefore, the graph appears to increase exponentially, but in terms of time complexity, JSON has **O(n)**, and tissue-roll has a speed of **O(1)**.* ## Install |Site|Link| |---|---| |**NPM**|[View](https://www.npmjs.com/package/tissue-roll)| |**Github**|[View](https://github.com/izure1/tissue-roll)| ## License MIT LICENSE
Very simple read/write database with a No-SQL. It's written in JavaScript using pure Node.js API and pretty easy and small.
database,db,store,key-value-database,key-value-store,document-database,document-oriented,javascript,nosql-database,typescript
2023-10-14T20:07:11Z
2024-05-17T17:50:29Z
null
1
0
84
0
0
7
null
MIT
TypeScript
kishanrajput23/30-Days-of-JavaScript
main
# 30 Days of JavaScript <img src="https://miro.medium.com/v2/resize:fit:1400/1*kGttkqhpEy_QS1Q5tsD7xw.png" alt=""> ## Challenge 1 ``` Write a JavaScript function that reverses a number. Sample Data and output: Example: x = 32243; Expected Output: 34223 ``` ## Challenge 2 ``` Write a JavaScript function that accepts a string as a parameter and converts the first letter of each word into upper case. Example string: 'the quick brown fox' Expected Output: 'The Quick Brown Fox' ``` ## Challenge 3 ``` Write a JavaScript program to check whether two given integer values are in the range 50..99 (inclusive). Return true if either of them falls within the range. ``` ## Challenge 4 ``` Write a JavaScript program to find the area of a triangle where three sides are 5, 6, 7. ``` ## Challenge 5 ``` Write a JavaScript exercise to get the filename extension. ``` ## Challenge 6 ``` Write a JavaScript program to compute the sum of the two given integers. If the two values are the same, then return triple their sum. ``` ## Challenge 7 ``` Write a JavaScript program to check a pair of numbers and return true if one of the numbers is 50 or if their sum is 50. ``` ## Challenge 8 ``` Write a JavaScript function to get all possible subsets with a fixed length (for example 2) combinations in an array. Sample array : [1, 2, 3] and subset length is 2 Expected output : [[1, 2], [1, 3], [2, 3]] ``` ## Challenge 9 ``` Write a JavaScript function to find the first not repeated character. Sample arguments : 'abacddbec' Expected output : 'e' ``` ## Challenge 10 ``` Write a JavaScript function to apply the Bubble Sort algorithm. Note : According to wikipedia "Bubble sort, sometimes referred to as sinking sort, is a simple sorting algorithm that works by repeatedly stepping through the list to be sorted, comparing each pair of adjacent items and swapping them if they are in the wrong order". Sample array: [12, 345, 4, 546, 122, 84, 98, 64, 9, 1, 3223, 455, 23, 234, 213] Expected output: [3223, 546, 455, 345, 234, 213, 122, 98, 84, 64, 23, 12, 9, 4, 1] ``` ## Challenge 11 ``` Write a JavaScript program to list the properties of a JavaScript object. Sample object: var student = { name : "David Rayy", sclass : "VI", rollno : 12 }; Sample Output: name,sclass,rollno ``` ## Challenge 12 ``` Write a JavaScript program to create a clock. Note: The output will come every second. Expected Console Output: "14:37:42" "14:37:43" "14:37:44" "14:37:45" "14:37:46" "14:37:47" ``` ## Challenge 13 ``` Problem Statement: Implement a memoization function. Description: Write a function that takes a function as its argument and returns a memoized version of the function. Solution Approach: Store the function's results for previous inputs and return the stored result for repeated inputs. ``` ## Challenge 14 ``` Write a JavaScript function to concatenate a given string n times (default is 1). Go to the editor Test Data : console.log(repeat('Ha!')); console.log(repeat('Ha!',2)); console.log(repeat('Ha!',3)); Outputs "Ha!" "Ha!Ha!" "Ha!Ha!Ha!" ``` ## Challenge 15 ``` Problem Description - create a string_chop function that takes a string and chop factor(size) and chops out the string into the factor(size) that has been passed Test Data : console.log(string_chop('Scaler')); console.log(string_chop('Scaler',2)); ["Scaler"] ['Sc' , 'al' ,'er'] ``` ## Challenge 16 ``` Problem Description: Write a JavaScript function named sumArray that takes an array of numbers and returns the sum of all the numbers in the array using the reduce() method. Inputs: An array of numbers. Outputs: A number representing the sum of the array. Hints: The reduce() method applies a function against an accumulator and each element in the array (from left to right) to reduce it to a single value. Solution Approach: Initialize the reduce() method with an initial accumulator value of 0. Then, for each value in the array, add it to the accumulator. ``` ## Challenge 17 ``` Problem Description: Write a JavaScript function named filterOutOdd that uses the filter() method to filter out odd numbers from an array. Inputs: An array of numbers. Outputs: An array of numbers without odd numbers. Hints: Use the filter() method to create a new array with all elements that pass the test implemented by the provided function. Solution Approach: Use the filter() method and provide a callback that checks if the number is even. ``` ## Challenge 18 ``` Problem Description: Write a JavaScript function named doubleValues that takes an array of numbers and returns a new array where each number is doubled using the map() method. Inputs: An array of numbers. Outputs: An array of numbers where each number is doubled. Hints: The map() method creates a new array with the results of calling a function for every array element. ``` ## Challenge 19 ``` Problem Description: Write a JavaScript function named allPositive that checks whether all numbers in a given array are positive using the every() method. Inputs: An array of numbers. Outputs: A boolean value. Return true if all numbers are positive, otherwise false. Hints: The every() method tests whether all elements in the array pass the test implemented by the provided function. Solution Approach: Use the every() method and provide a callback that checks if the number is positive. ``` ## Challenge 20 ``` Problem Description: Write a JavaScript function named findFirstNegative that finds and returns the first negative number in an array using the find() method. Inputs: An array of numbers. Outputs: A number representing the first negative number in the array or undefined if there are no negative numbers. Hints: The find() method returns the value of the first element in the array that satisfies the provided testing function. Solution Approach: Use the find() method and provide a callback that checks if the number is negative. ``` ## Challenge 21 ``` Problem Statement: Write an asynchronous loop function that iterates over an array and performs an asynchronous operation on each element. Description: The function should take an array and an async function, applying the async function to each element in the array in sequence. Solution Approach: Use async/await within a for...of loop. ``` ## Challenge 22 ``` Problem Statement: Write a function to deeply compare two objects for equality. Description: Given two objects, the function should return true if they are deeply equal and false otherwise. Solution Approach: Recursively compare properties of both objects. ``` ## Challenge 23 ``` Problem : Closure Challenge Description: Write a function counter that returns a new function on each invocation. The returned function, when called, should increment the counter value and return it. Solution Approach: Utilize closure to maintain the state of the counter. ``` ## Challenge 24 ``` Description: Implement a debounce function that takes a function and a delay as arguments. The returned function should ensure that the original function is not called more than once in the specified delay. Solution Approach: Use a timer and clear it on each invocation to delay the function execution. ``` ## Challenge 25 ``` Description: Write a function getData that returns a Promise. Use this function to fetch data from two different APIs sequentially, and return the combined result. Use any random API that you want Solution Approach: Utilize the .then method to chain promises. ``` ## Challenge 26 ``` Description: Write a function calculateTotal that takes an array of numbers, filters out the even numbers, squares the remaining numbers, and then calculates their sum. Solution Approach: Combine map, filter, and reduce array methods. ``` ## Challenge 27 ``` Description: Write a generator function range that takes two arguments, start and end, and yields all the numbers in that range. Solution Approach: Use the function syntax for generator functions and the yield keyword. ``` ## Challenge 28 ``` Description: Create a proxy object that intercepts and logs all property access. Solution Approach: Use the Proxy object to create a wrapper around another object. ``` ## Challenge 29 ``` Description: Write a function raceWithTimeout that takes an array of promises and a timeout value. The function should resolve when the first promise resolves or reject if none resolve within the given timeout. Solution Approach: Use Promise.race and a timeout promise. ``` ## Challenge 30 ``` Description: Implement a throttle function that ensures a given function is not called more than once in a specified time interval. Solution Approach: Use a timestamp to track the last invocation time and prevent calling the function if it's within the throttle interval. ```
30 Days of JS challenge by Scaler.
30-days-of-code,30-days-of-code-solutions,30-days-of-javascript,30-days-of-js,coding-challenge,coding-challenge-practice,javascript,javascript-30,javascript-challenges,js
2023-11-06T09:45:32Z
2023-12-05T12:35:42Z
null
1
0
56
0
0
7
null
MIT
JavaScript
dobiadi/bot-detect
master
# Javascript bot and automation detection library **NOTE**: The research and evaluation of this library was done in 2021. I can not guarantee that it is still able to detect all listed bots, nor do I provide support for this library. I also do not plan on continuing the development. ## Detected bots The library is aiming to detect the following tools primarily: * PhantomJS ([https://github.com/ariya/phantomjs](https://github.com/ariya/phantomjs)) * Selenium Chrome/Firefox ([https://github.com/SeleniumHQ/selenium](https://github.com/SeleniumHQ/selenium)) * Selenium undetected_chromedriver ([https://github.com/ultrafunkamsterdam/undetected-chromedriver](https://github.com/ultrafunkamsterdam/undetected-chromedriver)) * Selenium stealth ([https://github.com/diprajpatra/selenium-stealth](https://github.com/diprajpatra/selenium-stealth)) * Puppeteer Chrome/Firefox ([https://github.com/puppeteer/puppeteer](https://github.com/puppeteer/puppeteer)) * Puppeteer-extra-plugin-stealth ([https://github.com/berstend/puppeteer-extra/tree/master/packages/puppeteer-extra-plugin-stealth](https://github.com/berstend/puppeteer-extra/tree/master/packages/puppeteer-extra-plugin-stealth)) * Playwright Chrome/Firefox/WebKit ([https://github.com/microsoft/playwright](https://github.com/microsoft/playwright)) * SecretAgent/Hero ([https://github.com/ulixee/secret-agent](https://github.com/ulixee/secret-agent)) These are higher level bots, which have a JavaScript engine enabled. To fully utilize the bot detecting capabilities you should ensure that your site cannot be used without enabling JavaScript. You can also find some documentation for each bot detection signal under `src/collector/detections`. ## Demo The demo page is accessible at [https://bot.dobiadi.dev](https://bot.dobiadi.dev). (Please do not use the 'Back' button on your browser because then you will always get `Invalid proof of work` as a result) ## Usage This library is not published as an npm package. You can build it using ```bash npm run build ``` This will output two files, `botdetect.min.js` and `botdetect-clean.min.js`. The only difference between the two is whether it includes polyfills or not. Include one of them on your website and then you can utilize the bot detection functionality. Initialize it on site load: ```javascript BotDetect.collector.enableTraps(); ``` Then later on a user action that requires validation: ```javascript const results = await BotDetect.collector.collect(); // 'results' will contain a list of suspicious flags related to bots // You can do whatever you want with it, but a default evaluator is available // as BotDetect.detector to return 'human'/'bot' based on the flags. const output = BotDetect.detector.detect(results); // By default the output is either 'bot' or 'human' ``` ## Considerations It is always better to catch threats as soon as possible so if you can, you should also enable server-side protections as well. For example the demo page uses HAProxy with the following features: * Request rate limiting on a per IP basis * IP blacklist based on https://github.com/stamparm/ipsum * User-Agent HTTP header filtering based on https://github.com/JayBizzle/Crawler-Detect/blob/master/src/Fixtures/Crawlers.php * Proper Content-Security-Policy header to prohibit the browser from loading unwanted scripts Additionally, the method described in the `Usage` section of this document is just a quick example. If you purely rely on JavaScript to block requests from bots to your backend, then it is easy to bypass. Imagine that someone can just send POST requests to `/login` via `curl` without even loading your page. The simplest way to solve this is via CSRF tokens: * Generate a random token server-side and send it to the client when they load the login page. * When they submit the login form, also pass this token alongside other data in the POST request. * The server should validate that the token is present, and it has the expected value. Note that in practice it only ensures that the attacker loaded the webpage first before sending a POST request. It is still possible to automate this via `curl` if you can parse out the token from the HTML. The demo page follows a similar logic: * The webserver generates a random token and sends it to the client when they load the page. * The `BotDetect` library's `detector` can take an arbitrary function via its `BotDetect.detector.setProofOfWorkFn` method. This function takes two arguments; the bot detection result (boolean) and the token (string), and outputs a new token generated from the two. This new token is then added to the POST request. * The server receives this new token. It also knows the original token and the proofOfWork function and the fact that the bot detection can result in either true or false. So it calculates both possibilities and compares them to the received token to determine whether the request came from a bot or a human. Of course invalid tokens are simply rejected.
JavaScript based bot and automation detection library
botdetector,javascript,bot-detection
2023-10-23T23:19:01Z
2023-10-23T23:19:16Z
null
1
0
1
0
1
7
null
MIT
TypeScript
marwan-alshalabi/Egens-Bootstarp-Landing-page
main
# Egens Bootstarp Landing page Landing Page using html, css, bootstrap &amp; javascript ### Demo ![project demo](Screenshot.png)
Landing Page using html, css, bootstrap & javascript
bootstrap5,css,html,javascript
2023-10-22T01:25:54Z
2023-11-20T16:41:49Z
null
1
0
14
0
0
7
null
null
HTML
itamarpambo751/App-Finance-React-Native
master
null
Aprimorando conhecimentos mobile com ReactNative, o mesmo App também será contruido em Flutter
javascript,react,react-native
2023-11-02T11:59:24Z
2023-11-02T14:38:14Z
null
1
0
13
0
0
7
null
null
TypeScript
Rajmalpankaj786/ReadyToRide_BusReservationSystem
main
# 🚌🎫 ReadyToRide Bus Reservation System Portal <p align="center"> <a href="https://git.io/typing-svg"><img src="https://readme-typing-svg.demolab.com?font=Delicious+Handrawn&weight=100&size=53&pause=1000&color=purpale&center=true&vCenter=true&width=605&height=118&lines=Ready+To+Ride" alt="Typing SVG" /></a><br></br> </p> ## Logo <img src="/Images/Book_My_Bus_Logo.jpg"/> ## Contributors - [Rajmal Pankaj](https://github.com/Rajmalpankaj786) - [Chandan Sharma](https://github.com/chandansharma65914) - [Sunny dev](https://github.com/Sunnysingh1231) - [Aman Choure](https://github.com/amanacr0358) <br> Welcome to the Bus Reservation System Portal! This project aims to simplify travel by allowing users to search, select, and reserve bus tickets seamlessly, making their journey easy and convenient. ## Features - Search for available bus routes and schedules. - Select preferred seats and view seating arrangements. - Reservation and give Feedback on bus tickets securely. - User-friendly and intuitive interface for a seamless booking experience. - Real-time updates on bus availability and ticket status. - Customizable settings for user preferences. ### <h2 style="margin-top:100px ;"><i>👨🏻‍💻 Tech Stack & Languages used</i></h2> ![HTML5](https://img.shields.io/badge/HTML5-E34F26?style=for-the-badge&logo=html5&logoColor=white) ![CSS3](https://img.shields.io/badge/CSS3-1572B6?style=for-the-badge&logo=css3&logoColor=white) ![Java](https://img.shields.io/badge/Java-ED8B00?style=for-the-badge&logo=java&logoColor=white) ![JavaScript](https://img.shields.io/badge/JavaScript-323330?style=for-the-badge&logo=javascript&logoColor=F7DF1E) <img src="https://img.shields.io/badge/Libraries-563D7C?style=for-the-badge&logo=bootstrap&logoColor=white" alt="bootstrap" /> <img src="https://img.shields.io/badge/Git-f44d27?style=for-the-badge&logo=git&logoColor=white" alt="git" /> <img src="https://img.shields.io/badge/GitHub-100000?style=for-the-badge&logo=github&logoColor=white" alt="github" /> ### <h2><i>🚀 Libraries & Frameworks</i></h2> <a href="" target="blank"><img src="https://img.shields.io/static/v1?style=for-the-badge&message=Spring&color=852100&label=" alt=""/></a> <a href="" target="blank"><img src="https://img.shields.io/static/v1?style=for-the-badge&message=SpringBoot&color=00d09c&label=" alt="" /></a> <a href="" target="blank"><img src="https://img.shields.io/static/v1?style=for-the-badge&message=Hibernate&color=000030&label=" alt=""/></a> <a href="" target="blank"><img src="https://img.shields.io/static/v1?style=for-the-badge&message=JDBC&color=400030&label=" alt=""/></a> <a href="" target="blank"><img src="https://img.shields.io/static/v1?style=for-the-badge&message=Servlets&color=700030&label=" alt=""/></a> ### <h2><i>💻 Databases</i></h2> ![MySQL](https://img.shields.io/badge/MySQL-00000F?style=for-the-badge&logo=mysql&logoColor=white) ## Landing Page ![Landing page](</Images/1.jpeg>) ## login Page ![login page](</Images/2.jpeg>) ## Service Page ![Product page](</Images/3.jpeg>) ## Booking Page ![Product page](</Images/4.jpeg>) ## Admin Dashboard ![admin page](</Images/5.jpeg>) ## Admin See List OF Users ![admin page](</Images/6.jpeg>) ## Admin See List OF Buses ![admin page](</Images/7.jpeg>) ## Admin Can add New Buses ![admin page](</Images/8.jpeg>) ## Admin Can Add New Routes ![admin page](</Images/9.jpeg>) ## User and Route Controller <img src="/Images/sw1.jpeg"/> ## Feedback and Bus Controller <img src="/Images/sw2.jpeg"/> ## Reservation Controller <img src="/Images/sw3.jpeg"/> ## ER Diagram <img src="/Images/Er.png"/> ## API Root Endpoint ``` https://localhost:8080/ ``` ``` http://localhost:8080/swagger-ui/index.html#/ ``` ## Modules - Admin Module - User Module - Route Module - Bus Module - Reservation Module - Feedback Module ## Getting Started 1. Clone the repository using the command: ``` https://github.com/Rajmalpankaj786/ReadyToRide_BusReservationSystem.git ``` 2.Open MySQL Create the new Database and Create application.yml file: <br></br> spring:<br></br> datasource:<br></br> driver-class-name: com.mysql.cj.jdbc.Driver<br></br> password: rajmal<br></br> url: jdbc:mysql://localhost:3306/bus_reservation_database<br></br> username: root<br></br> jpa:<br></br> hibernate:<br></br> ddl-auto: update<br></br> show-sql: true <br></br> 2. Compile and run the Java application to launch the console-based shopping platform. ## Deployed Link https://65848c96215c8c312d6c9c3f--ubiquitous-pudding-c58264.netlify.app/ ## Contributions We welcome contributions! Feel free to fork the repository, enhance functionalities, and submit pull requests. ## License This project is licensed under the MIT License. Refer to the [LICENSE](LICENSE) file for detailed terms. --- For any inquiries or feedback, contact us at [contact@readyToride.com](mailto:contact@readyToride.com). Embark on your bus journey with readyToride today!
The Full Stack Bus Reservation System optimizes bus ticket booking with a user-friendly interface. It enables users to browse, select routes, and reserve seats seamlessly. Utilizing modern front-end technologies and robust server-side capabilities, the project exemplifies full-stack proficiency.
css3,hibernate-jpa,html5,java,javascript,mysql,swagger-ui,spring-boot
2023-10-31T17:04:30Z
2023-12-21T19:12:52Z
null
4
25
70
3
2
7
null
null
Java
joalisonpereira/react-modal-easy
master
# React Modal Easy > Simple modal with good accessibility ![](./docs/badge-statements.svg) ![](./docs/badge-functions.svg) ![](./docs/badge-lines.svg) ![](./docs/badge-branches.svg) The purpose of this component is to provide a simple interface. You won't find predefined styles to cause you problems or unnecessary customizations. ## Install ```bash npm i react-modal-easy ``` ## Usage ```tsx // include styles import 'react-modal-easy/dist/style.css'; const [visible, setVisible] = useState(false); return ( <Modal isVisible={visible} onClose={() => setVisible(false)}> <div style={{ backgroundColor: 'white', width: 500, padding: 20 }}> <Modal.Title>React Modal Easy</Modal.Title> ... </div> </Modal> ); ``` ![](./docs/usage1.png) ## Acessibility By internally using the [Radix Dialog](https://www.radix-ui.com/primitives/docs/components/dialog), this component comes with accessibility configurations by default. However, for the best use of this feature, also utilize the `Title`, `Description` and `Close` components. ```tsx ... return ( <Modal isVisible={visible} onClose={onClose} closeButton={ <Modal.Close onClick={onClose} aria-label='Close'> X </Modal.Close> } > <Modal.Title>Lorem Ipsum is simply</Modal.Title> <Modal.Description> Lorem Ipsum is simply dummy text of the printing and typesetting industry. </Modal.Description> ... </Modal> ); ``` ## Props | Property | Type | Default | Description | | ----------------- | ------------------------------ | --------- | --------------------------------------- | | isVisible | boolean | | whether to show dialog | | onClose | function | | handler called onClose of modal | | animation? | 'scale' , 'translate' , 'none' | scale | animation type | | closeButton? | React.ReactNode | Component | close component, use `null` to disable. | | className? | string | | modal component class | | overlayClassName? | string | | overlay component class | ## Components | Name | Description | | ------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | | [Modal.Title](https://www.radix-ui.com/primitives/docs/components/dialog#title) | An accessible title to be announced when the dialog is opened. | | [Modal.Description](https://www.radix-ui.com/primitives/docs/components/dialog#description) | An optional accessible description to be announced when the dialog is opened. | | [Modal.Close](https://www.radix-ui.com/primitives/docs/components/dialog#close) | The button that closes the dialog. |
Simple modal with good accessibility
accessibility,javascript,modal,react
2023-10-15T01:05:21Z
2024-05-08T12:25:56Z
null
1
0
27
0
0
6
null
MIT
TypeScript
cvs0/CVSCode
main
# CVSCode ![Banner](images/banner.png) CVSCode is an elegant scripting language crafted with TypeScript, developed by CVS0. It leverages Deno to initiate the REPL (Read-Eval-Print Loop). Through this, you can employ the CVSCode command-line interface to effortlessly launch and debug your CVSCode scripts. ## Table of Contents - [Installation](#installation) - [Usage](#usage) - [Language Basics](#language-basics) - [Features](#features) - [Todo](#todo) - [Credits](#credits) - [Known Issues](#known-issues) - [Pull Request Requirements](#pull-request-requirements) - [Legal](#legal) ## Installation To get started with CVSCode, follow these steps: 1. Clone the CVSCode GitHub repository to your local machine: ```bash git clone https://github.com/cvs0/cvscode.git ``` 2. Navigate to the CVSCode directory: ```bash cd cvscode ``` 3. Start the REPL interface: ```bash deno run -A main.ts ``` 4. Run your CVSCode script (while in the REPL interface): ```shell run <filename>.cvs ``` ## Usage CVSCode provides an easy-to-use scripting language for various applications. Here's a basic example: ```cvscode let x = 25; if (x == 25) { print("X is 25.") } ``` For more examples and detailed instructions, please refer to the [Language-basics](#language-basics) section. # Language Basics CVSCode provides a versatile scripting language with a syntax that is familiar to JavaScript and TypeScript developers. This section covers some fundamental concepts and examples to help you get started with CVSCode. ## Basic Output Program You can print messages to the console using the `print` function. Here's a simple program that checks a variable and prints a message: ```cvscode let x = 25; if (x == 25) { print("X is 25.") } ``` ## Basic While Loop Program While loops can be utilized with parameters that evaluate to a boolean value. Below is a straightforward program demonstrating this concept, where a condition is checked within the while loop before printing. ```cvscode let x = 25 while (x < 100) { print(x) } ``` ## Operators CVSCode supports a range of operators for performing operations on variables. Here's an example of using operators to check the result of an addition: ```cvscode let x = 25; let y = 20; if (x + y == 45) { print("Result was true.") } ``` In this code, we declare two variables, `x` and `y`, and use the addition operator to calculate their sum. Then, we use an `if` statement to check if the result is equal to 45 and print a message accordingly. These are just basic examples of CVSCode's functionality. You can explore more advanced features, data structures, and control flow as you delve deeper into your CVSCode scripts. ## Native Functions cvsCode has many built-in functions, the list is [here](/docs/natives.md) # Features CVSCode offers a wide range of features, including: - **Let / Const Variables** - **Frequent Updates** - **High Performance** - **Detailed Error Logs** - **JavaScript/TypeScript-Like Syntax** - **Custom User-Defined Functions** - **Objects** - **While loops** - **User-Defined Structures** - **Function Calls** - **Object Member Expressions** - **Conditional Statements** - **Comments** These features collectively make CVSCode a versatile and powerful programming language for a wide range of applications. ## Todo We are actively working on adding support libraries and more assignment expressions. ## Roadmap - For Loops - Package Manager (In progress) - Imports - Function parameters - Integers in variable names - ## Credits This project is made possible by the contributions and efforts of the following individuals: - **cvs0:** Lead developer and creator of CVSCode. - **tlaceby:** Provided lots of assistance in the creation of CVSCode. ## Known Issues Note: All of these issues are planned to be fixed. This section is for making them public knowledge for contributors and active users. - ~~The `run` file command only works inside the VSCode integrated terminal.~~ - Variable names cannot contain integers. - ~~Some operators do not work as of now.~~ ## Pull Request Requirements ### TypeScript and Deno Specific Guidelines To ensure consistency and maintain the quality of the CVSCode project, we have established the following requirements for pull requests specifically related to TypeScript and Deno: 1. **Code Conformance** | Your code must fit with the style of the rest of our code to create a clean codebase for anyone who wants to commit. 2. **Linting** | Your code must pass all linter tests. 3. **Testing** | Your code must be tested and confirmed that it does indeed do whatever it was intended to do without causing other issues. 4. **Documentation** | You must provide at least some documentation for your code, if it is a new feature we will add it to our docs. 5. **Dependencies** | If you add any new dependencies you must state it. 6. **Commit Messages** | Make sure to add a meaningful commit message that describes your changes. 7. **Branching Strategy** | Make sure to use the correct branch. 8. **Review and Discussion** | If you do not respond do reviews / discussions within a week your pull request will be cancelled. By following these TypeScript and Deno-specific guidelines, you will help us maintain the project's code quality and streamline the contribution process. Thank you for your contributions to the CVSCode project! ## Legal ### License This project is licensed under the MIT License. For more details on the MIT License, please refer to the [LICENSE](LICENSE) file in this repository. ### Contributors We welcome contributions from the community. By contributing to this project, you agree to release your contributions under the terms of the MIT License. See [CONTRIBUTING.md](docs/CONTRIBUTING.md) for guidelines on how to contribute. ### Disclaimer This project is provided as-is, and the authors and contributors are not liable for any issues or damages that may arise from its use. For more information, please read our [DISCLAIMER](docs/DISCLAIMER.md) statement.
A high-speed scripting language built with TypeScript.
javascript,lang,language,programming-language,scripting,scripting-language,typescript,cvscode,ai,automation
2023-10-16T01:13:08Z
2024-05-23T16:20:39Z
2023-11-02T22:34:18Z
1
0
160
0
2
6
null
MIT
TypeScript
gemi254/ControlAssist-ESP32-ESP8266
main
# ControlAssist Multi-platform library for controlling html elements in a esp webpages at runtime using web sockets. ## Description A library allowing linking **html elements** to **sketch variables** on pages hosted on **esp32/esp8266** devices. It uses a **web socket server** on the esp **device** and a JavaScript **web socket client** implementation on the web **page** allowing bi-directional real-time communication between **device** and **page**. In a typical webpage, html **elements** like ``input box``, ``textbox``, ``range``, ``checkbox`` can be **binded** with ControlAssist internal variables using their unique **html ids** in order to associate their values. A **vectors** list will be generated to hold all associated element keys and their values. ## How it works Every time an element is changing its value in the **web page**, a web socket message will be send to server and ControlAssist will update its internal value. Also if you change a ControlAssist value inside your sketch, a message will be automatically send to client and the value of the associated html element will be updated. ControlAssist will automatically add JavaScript **onChange** handlers to the web page html code, so the binded elements will transmit their changes automatically to the server. It will also add JavaScript code to handle **incoming** web sockets messages so the values of the binded html elements can be updated. ESP device will transmit **changes** to all connected **web socket** clients. This will make possible to have one ESP device and multiple Web pages opened from different places inside the network, receiving and sending changes. ## Features * Automate **variables** and html **elements** in a typical ``ESP32/ESP8266`` project using web sockets communication. * Automatic reconnects on wifi disconnections. * Auto **synchronize** ESP32/ESP8266 internal **variables** with webpage elements. * Automatically generate required **webpage scripts** to handle connections and changes. * Support bi-directional hi-speed communications. * Allow **mult-client** applications. (One esp, multiple pages) * Support web sockets over **AP** connections. <p align="center"> <img src="docs/scope.png"> </p> ## How to use Define yours internal page html code sections at Program mem. ``` PROGMEM const char HTML_HEADERS[] = R"=====(<!DOCTYPE HTML>)====="; PROGMEM const char HTML_BODY[] = R"=====(<body></body>)====="; PROGMEM const char HTML_FOOTER[] = R"=====(</htmll>)====="; ``` You can also upload page html code sections to spiffs as a html files ## ControlAssist init functions Define and initialize you class + include the **ControlAssist** class - `#include <ControlAssist.h> //ControlAssist class` + Define your static instance - `ControlAssist ctrl; //Default port 81 ` - `ControlAssist ctrl(port); //Use port ` + in your setup you must initialize control class by setting your webpage html code. - `ctrl.setHtmlHeaders(HTML_HEADERS);` - `ctrl.setHtmlBody(HTML_BODY);` - `ctrl.setHtmlFooter(HTML_SCRIPT);` + You can also use spiffs for the html code. Upload the files contained in the /data folder to your spiffs and define the file names. - `#define HTML_HEADERS_FILENAME "/src/ESPVisualizer/ESP8266Wemos-VisH.html"` - `#define HTML_BODY_FILENAME "/src/ESPVisualizer/ESP8266Wemos-VisB.html"` - `#define HTML_SCRIPT_FILENAME "/src/ESPVisualizer/ESP8266Wemos-VisF.html"` + Set the files to be loaded when the page is requested. - `ctrl.setHtmlHeadersFile(HTML_HEADERS_FILENAME);` - `ctrl.setHtmlBodyFile(HTML_BODY_FILENAME);` - `ctrl.setHtmlFooterFile(HTML_SCRIPT_FILENAME);` See example <a href="examples/ControlAssist-ESPVisualizer">ControlAssist-ESPVisualizer</a> + in your setup you must bind the html elements you want to control. - `ctrl.bind("html_id");` to link the html element - `ctrl.bind("html_id", start_value );` if you need to bind and init for sending on connection - `ctrl.bind("html_id", start_value, changeFunction);` if you need also to handle changes + in your setup specify if you want ot auto send key initial values during web socket connection. - `ctrl.setAutoSendOnCon("html_id",true /* send: enable/disable */);` - `ctrl.put("html_id", value); // Set a default value to be send` + Configure web server to handle control assist page on a uri - ` ctrl.setup(server, "/"); // Add a web server handler on url "/"` + Or define a custom web server handler to host your webpage - `void handleRoot(){ ctrl.sendHtml(server); }` + If you want to use a global callback function to handle key changes - `ctrl.setGlobalCallback(globalChangeFuncion);` + Start websockets server and listen for web socket client connections - `ctrl.begin();` ## ControlAssist control functions Controlling your elements inside you loop function + Change the values of html elements - `ctrl.put("html_id", value, /* forceSend: send even no change */, /* forceAdd: add key if not exists */ );` + Read current value of html element - `html_val = ctrl["html_id"]` + Handle changes inside your code with a handler function - `void globalChangeFuncion(uint8_t ndx){ String key = ctrl[ndx].key; int val = ctrl[ndx].val.toInt() }` + Inside your main loop() call ControlAssist loop() to handle web sockets server clients - `ctrl.loop();` ## JavaScript handlers inside your webpage A JavaScript event ``wsChange`` will be automatically send to each html element when the esp device changes it's value. You can add a JavaScript event listener on this event at your web page. So it will be possible to perform custom tasks when elements value is updated by web sockets. ``` html_id.addEventListener("wsChange", (event) => { //Get the changed value value = event.target.value event.preventDefault(); return false; }); ``` See example ``ControlAssist-Gauge.ino`` <p align="center"> <img src="docs/gauge.png"> </p> ## Logging and debugging with log level In you application you use **LOG_E**, **LOG_W**, **LOG_I**, **LOG_D** macros instead of **Serial.prinf** to print your messages. **ControlAssist** displays these messages with **timestamps** You can define log level for each module ```#define LOGGER_LOG_LEVEL 4``` ``` #define _LOG_LEVEL_NONE (0) #define _LOG_LEVEL_ERROR (1) #define _LOG_LEVEL_WARN (2) #define _LOG_LEVEL_INFO (3) #define _LOG_LEVEL_DEBUG (4) #define _LOG_LEVEL_VERBOSE (5) ``` ## Compile Download library files and place them on ./libraries directory under ArduinoProjects Then include the **ControlAssist.h** in your application and compile.. + compile for arduino-esp3 or arduino-esp8266. + In order to compile you must install **WebSocketsServer** library. ###### If you get compilation errors on arduino-esp32 you need to update your arduino-esp32 library in the IDE using Boards Manager
Generate webserver pages on esp devices and control their html elements at runtime using web sockets.
controller,esp32,esp8266,html,http-server,javascript,multiclient,page-generator,runtime,webserver
2023-10-25T13:23:18Z
2024-05-18T05:53:40Z
2024-05-18T05:53:40Z
1
0
201
1
1
6
null
MIT
HTML
francosion042/console-watcher
master
# console-watcher <!-- markdownlint-disable MD029 --> <!-- markdownlint-disable MD033 --> <div align="center"> [![Publish Package to npmjs](https://github.com/francosion042/console-watcher/actions/workflows/npm-publish.yml/badge.svg)](https://github.com/francosion042/console-watcher/actions/workflows/npm-publish.yml) [![npm version](https://img.shields.io/npm/v/console-watcher.svg?style=flat-square)](https://www.npmjs.org/package/console-watcher) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) [![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](http://makeapullrequest.com) [![Downloads](https://img.shields.io/npm/dm/console-watcher.svg)](https://www.npmjs.com/package/console-watcher) ## </div> `console-watcher` is a utility library that provides extended logging capabilities for Node.js applications. It overrides the native console methods, allowing developers to customize how logs are handled. Logs can be saved to a file, or even synced to a dedicated cloud while retaining the ability to display or hide them in the console for security reasons. ## Features - Override native console logging methods (`console.log`, `console.info`, `console.error`). - Configurable behavior to print in console or save to a file. - Supports both JSON and non-JSON file types for logs saving. - Encrypt and sync logs to a dedicated cloud for better visualization and management. - Register your custom error handling function which will be called whenever an error occurs within the library. ## Installation ```bash npm install console-watcher ``` ## Usage To use `console-watcher`, first import the class in your app's entry file and create a new instance. ```typescript import ConsoleWatcher from 'console-watcher' const watcher = new ConsoleWatcher(config) ``` ## Configuration When initializing `console-watcher`, you can pass in a configuration object with the following properties: - `printInConsole`: Determines if the log should be displayed in the console. Default is `true`. - `saveToFile`: Determines if the log should be saved to a file. Default is `true`. - `logFilePath`: Specifies the path of the log file. The utility checks for the file type to determine if it's JSON or non-JSON. Default file path is `console-watcher.log`. ```typescript const config = { printInConsole: true, saveToFile: true, logFilePath: 'consoleWatcher.json', } ``` ## Global Error Handling Console Watcher supports a global error handler. You can register your custom error handling function which will be called whenever an error occurs within the library. ```typescript watcher.registerGlobalErrorHandler((error) => { console.error( 'An error occurred in Console Watcher:', error.message ?? error?.response?.statusText ?? 'Unknown' ) }) ``` By registering a global error handler, you have the flexibility to handle errors in a way that best suits your application, whether it’s logging, alerting the user, or other custom behaviors. ## Syncing to ConsoleWatcher Cloud ConsoleWatcher provides the flexibility to sync your logs to a dedicated cloud, either manually or at regular intervals. This feature enhances log visualization and management. To manually sync logs: ```typescript watcher.syncToConsoleWatcherCloud({ apiKey: 'YOUR_API_KEY', applicationKey: 'YOUR_APPLICATION_KEY', encryptionKey: 'YOUR_ENCRYPTION_KEY', }) ``` For automated intervals, you can set up a routine using JavaScript's `setInterval`: ```typescript setInterval(() => { watcher.syncToConsoleWatcherCloud({ apiKey: 'YOUR_API_KEY', applicationKey: 'YOUR_APPLICATION_KEY', encryptionKey: 'YOUR_ENCRYPTION_KEY', }) }, YOUR_DESIRED_INTERVAL_IN_MILLISECONDS) ``` Replace `YOUR_DESIRED_INTERVAL_IN_MILLISECONDS` with the frequency you want the sync operation to occur (e.g., `60000` for every minute). Adjust as needed to suit your application's requirements. Sync Configuration: - `apiKey`: Your dedicated API key for the ConsoleWatcher platform. - `applicationKey`: Your application’s unique key on the ConsoleWatcher platform. - `encryptionKey`: A private key unique to you. Ensure you keep this key safe and don’t lose it to prevent data loss. This key must be exactly 16 characters in length. Note: The encryption key is used to encrypt logs before they’re sent to the cloud. This ensures data privacy and security. It’s vital not to lose or change this key to avoid losing already encrypted data. ## Contributing First and foremost, thank you for your interest in contributing to ConsoleWatcher! Open source projects like this thrive because of contributors like you. Here's how you can help: ### Getting Started 1. **Fork the Repository**: Start by forking the console-watcher repository to your own GitHub account. 2. **Clone the Repository**: Once you have forked the repo, clone it to your local machine: ```bash git clone https://github.com/YOUR_USERNAME/console-watcher.git ``` 3. **Install Dependencies**: After cloning, navigate to the project directory and install the necessary dependencies: ```bash cd console-watcher npm install ``` ### Making Changes 4. **Create a New Branch**: Always create a new branch for your changes: ```bash git checkout -b feature/your-feature-name ``` 5. **Make Your Changes**: Implement your feature or bug fix. 6. **Run Tests**: Ensure that your changes do not break any existing functionality. Add new tests if necessary. 7. **Commit Your Changes**: Once you're satisfied with your changes, stage and commit them: ```bash git add . git commit -m "Add some feature or fix some bug" ``` 8. **Push to Your Fork**: Push your changes to your forked repository: ```bash git push origin feature/your-feature-name ``` ### Submitting a Pull Request 9. **Open a Pull Request**: Navigate to the ConsoleWatcher repository and click on "Pull Requests". Click the "New Pull Request" button and select your fork and branch. 10. **Describe Your Changes**: In the pull request description, explain your changes, why you made them, and any additional context if necessary. 11. **Wait for Review**: The maintainers will review your pull request, provide feedback, and merge it once it's approved. ### Additional Notes - **Respect the Code of Conduct**: Please ensure that you follow the project's code of conduct in all interactions. - **Ask for Help**: If you're stuck or unsure about something, don't hesitate to ask for help. The community is here to assist. - **Stay Updated**: Make sure to pull the latest changes from the `master` branch before creating a new pull request. Thank you for your contribution! Your efforts help make ConsoleWatcher better for everyone. ## License MIT --- This README provides a basic introduction and guide to using the `console-watcher` utility. Additional sections, such as a more detailed installation guide, examples, and information about dependencies, can be added as required.
console-watcher is a utility library that provides extended logging capabilities for NodeJs applications. It overrides the native console methods, allowing developers to customize how logs are handled. Logs can be saved to a file, or synced to a dedicated server while retaining the ability to display or hide them in the console for security reasons
javascript,logging,nodejs,npm,server,hacktoberfest
2023-10-16T21:55:10Z
2023-11-16T12:16:03Z
null
2
9
78
0
0
6
null
MIT
JavaScript
miftahganzz/AI-Bot-Telegram-v2
main
<p align="center"> <img src="https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcS0uzFzEpGE1pH5fwJSbPCVF5t_piVbNDIcc6fkIIrzD9s2G1iQZHJYvoKzBjNM0d-_YGU&usqp=CAU" alt="BOT TELEGRAM" width="400"/> <p align="center"> <a href="https://miftahganzz.github.io"> <img src="https://readme-typing-svg.herokuapp.com?size=15&width=280&lines=AI+ChatBot+Created+By+Miftah+GanzZ+🌐" alt="Miftah GanzZ" /> </a> </p> </p> <p align="center"> <a href="#"> <img title="AI-Bot-Telegram-v2" src="https://img.shields.io/badge/Bot-Telegram-green?colorA=%23ff0000&colorB=%23017e40&style=for-the-badge"> </a> </p> <p align="center"> <a href="https://github.com/miftahganzz/followers"> <img title="Followers" src="https://img.shields.io/github/followers/miftahganzz?color=red&style=flat-square"> </a> <a href="https://github.com/miftahganzz/AI-Bot-Telegram-v2/stargazers/"> <img title="Stars" src="https://img.shields.io/github/stars/miftahganzz/AI-Bot-Telegram-v2?color=blue&style=flat-square"> </a > <a href="https://github.com/miftahganzz/AI-Bot-Telegram-v2/network/members"> <img title="Forks" src="https://img.shields.io/github/forks/miftahganzz/AI-Bot-Telegram-v2?color=red&style=flat-square"> </a> <a href="https://github.com/miftahganzz/AI-Bot-Telegram-v2/watchers"> <img title="Watching" src="https://img.shields.io/github/watchers/miftahganzz/AI-Bot-Telegram-v2?label=Watchers&color=blue&style=flat-square"> </a> <a href="https://github.com/miftahganzz/AI-Bot-Telegram-v2"> <img title="Open Source" src="https://badges.frapsoft.com/os/v2/open-source.svg?v=103"> </a> <a href="https://github.com/miftahganzz/AI-Bot-Telegram-v2/"> <img title="Size" src="https://img.shields.io/github/repo-size/miftahganzz/AI-Bot-Telegram-v2?style=flat-square&color=green"> </a> <a href="https://hits.seeyoufarm.com"> <img src="https://hits.seeyoufarm.com/api/count/incr/badge.svg?url=https%3A%2F%2Fgithub.com%2Fmiftahganzz%2FAI-Bot-Telegram-v2&count_bg=%2379C83D&title_bg=%23555555&icon=probot.svg&icon_color=%2300FF6D&title=hits&edge_flat=false"/> </a> <a href="https://github.com/miftahganzz/AI-Bot-Telegram-v2/graphs/commit-activity"> <img height="20" src="https://img.shields.io/badge/Maintained%3F-yes-green.svg"></a>&nbsp;&nbsp; </p> <p align="center"> <a href="https://github.com/miftahganzz/AI-Bot-Telegram-v2#feature">Feature</a> • <a href="https://github.com/miftahganzz/AI-Bot-Telegram-v2#howtoinstall">How To Install</a> • <a href="https://github.com/miftahganzz/AI-Bot-Telegram-v2#installing">Installing</a> • <a href="https://github.com/miftahganzz/AI-Bot-Telegram-v2#thanks-to">Thanks to</a> • <a href="https://github.com/miftahganzz/AI-Bot-Telegram-v2#donate">Donate</a> </p> </div> ---------- # Feature ## AI * Gpt 3 * Gpt 3.5 * Gpt 4 * Bard * Simi * Kuncoro * Siska * Dokter * Gori * Miftah Bot ## Other * Owner * Donasi * Ping # Image <img src="https://file-uploader.miftahganzz.repl.co/file/WZdvYrJR1m.png" alt="Feature" width="350"/> ---------- # How To Install 1. Get Telegram Bot Tokens from [Bot Father](https://t.me/@BotFather) 2. Get Group ID & Chat Owner ID from [Bot ID](https://t.me/@username_to_id_bot) 3. Get API Key from [Miftah API](https://api-miftah.xyz) 4. Download or forks this github repository. 5. Install the dependencies by running `npm install`. 6. Configure the bot token, group id, and API key in the `config.js` file. 7. Run the bot by running `node index.js`. 8. Open the Telegram app and search for the bot you have created. 9. Start a chat with your bot. ## Installing ```bash git clone https://github.com/miftahganzz/AI-Bot-Telegram-v2 npm install node index.js ``` # Settings <details> <summary>SETTING</summary> You can edit owner and other in `'./config.js'` ```ts module.exports = { botToken: 'your_token_bot', miftahkey: 'your_apikey', // apikey api-miftah.xyz miftahkey2: 'free', // Apikey api.miftahganzz.my.id (default: free or global) apimiftah: 'https://api-miftah.xyz', apimiftah2: 'https://api.miftahganzz.my.id', langsimi: 'id', versi: '2.1.0', // version bot prefix: '/', groupChatId: 'your_id_group', grupUrl: 'your_grup_url', // your url grup web1: 'https://s.id/miftahbotz', // your web web2: 'https://api-miftah.xyz', // your web ownerContact: { ownerChatID: 'your_id', username: 'username_telegram', phoneNumber: 'your_number', firstName: 'first_name', lastName: 'last_name', }, qrisImage: './qris.jpg', //image qris for donation }; ``` </details> ---------- ## Donate - [Saweria](https://saweria.co/miftahganz) - [SociaBuzz](https://sociabuzz.com/miftahganz/tribe) - [Microsite](https://s.id/miftahbotz) - [Qris All Pay](https://telegra.ph/file/be286c967baac1546bd95.jpg) ---------- # Thanks to <a href="https://github.com/miftahganzz"><img src="https://github.com/miftahganzz.png?size=100" width="100" height="100"></a> | ---| [Miftah GanzZ](https://github.com/miftahganzz) | Developer |
Source Code for AI Telegram Bot, Using Rest API Website https://api-miftah.xyz, Don't Forget to Give Stars ⭐
ai,bard,bot,openai-chatgpt,restful-api,simisimi,telegraf,telegram-bot,nodejs,javascript
2023-10-14T04:49:28Z
2023-10-24T12:21:00Z
null
1
0
17
0
4
6
null
MIT
JavaScript
gisdev1203/nextapp-typescript
master
This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app). ## Getting Started First, run the development server: ```bash npm run dev # or yarn dev # or pnpm dev # or bun dev ``` Open [http://localhost:3000](http://localhost:3000) with your browser to see the result. You can start editing the page by modifying `app/page.tsx`. The page auto-updates as you edit the file. This project uses [`next/font`](https://nextjs.org/docs/basic-features/font-optimization) to automatically optimize and load Inter, a custom Google Font. ## Learn More To learn more about Next.js, take a look at the following resources: - [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API. - [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial. You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js/) - your feedback and contributions are welcome! ## Deploy on Vercel The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js. Check out our [Next.js deployment documentation](https://nextjs.org/docs/deployment) for more details.
nextjs tilewindcss
javascript,material,nextjs,reactjs,typescript
2023-10-14T08:22:11Z
2023-10-14T08:17:51Z
null
1
0
1
0
3
6
null
null
TypeScript
mindfiredigital/react-canvas-editor
main
<h1 align="center">React Document Editor </h1><br><br> <p align="center"> <a href="https://www.npmjs.com/package/@mindfiredigital/react-canvas-editor"><img src="https://img.shields.io/npm/v/@mindfiredigital/react-canvas-editor.svg?sanitize=true" alt="Version"></a> <a href="https://www.npmjs.com/package/@mindfiredigital/react-canvas-editor"><img src="https://img.shields.io/badge/PRs-welcome-brightgreen.svg" alt="PRs"></a> </p> <br> <p align="center"> Experience powerful document creation with our React-based editor. Craft and manage multi-page documents effortlessly </p> The `@mindfiredigital/react-canvas-editor` is a tool that allows developers to integrate multi page document editors built on top of Canvas using React. <br> ## Table of Contents - [Why canvas over HTML Editor](#why-canvas-over-html-editor) - [Features](#features) - [Installation](#installation) - [Getting Started](#getting-started) - [Contributing](#contributing) - [License](#license) <br> # Why canvas over HTML Editor The canvas element in HTML serves as a versatile space for drawing graphics using JavaScript, enabling the creation of dynamic, interactive, and visually engaging content on web pages. Within this context, a Canvas editor emerges as a powerful tool or application that harnesses the capabilities of the canvas element. This editor facilitates the creation, editing, and manipulation of graphics or drawings directly within a web browser. - **Fine-Grained Control**: Fine-Grained Control: Total freedom to manipulate pixels, dictate rendering, and create custom elements and interactivity beyond what HTML offers out of the box. - **Scalable Performance**: Blazing fast rendering and lightweight data synchronization fueled by the raw power of canvas APIs rather than heavy HTML DOM reconciliation. - **Easy Multiplayer Integration**: Canvas state using simple coordinate vectors flows seamlessly cross-device enabling effortless real-time collaborative editing at scale. - **Unleashed Creativity**: No limits enforced by page markup frees imagination to run wild. Build beyond editor chrome right on the infinite canvas with total creative liberty. - **Future Facing Setup**: Canvas as a technology continues rapid innovation, unlike stale HTML editors. What’s created today on canvas can easily harness tomorrow’s new features. - **Skill Transferability**: Canvas skills open doors across cutting edge domains like metaverse experiences, game dev, 3D, generative art, and other growth areas. To know more you can check the link [Canvas vs HTML Editor](https://mindfiredigital.github.io/react-canvas-editor/docs/Why-we-use-canvas/) <br> ## Features - **Undo**: This feature allows you to reverse the most recent action you performed. It's particularly useful when you make a mistake and want to go back one step. - **Redo**: Redo is the opposite of undo. It allows you to reapply an action that you've previously undone. - **Bold**: When you apply bold formatting to text, it makes the selected text appear thicker and more prominent. - **Italic**: Italic text is slanted to the right. - **Underline**: Underlining text places a horizontal line beneath it. - **Subscript**: Subscript lowers the selected text below the baseline. - **Superscript**: Superscript raises the selected text above the baseline. - **Strikethrough**: Text with a strikethrough line through it is used to indicate that the content should be deleted or is no longer valid. - **Left Align**: This feature aligns text to the left margin, creating a straight left edge. - **Center Align**: Center alignment places text in the middle of the page or text box. - **Right Align**: Text is aligned to the right margin, creating a straight right edge. - **Justify**: Justification spreads text evenly between both the left and right margins, creating a clean and straight appearance on both sides. - **Bullet List**: Bullet lists present information as a series of items with bullets. - **Numbered List**: Numbered lists provide a sequential order to items. - **Font Type**: Font type refers to the specific style of text characters. Examples include Arial, Times New Roman, and Calibri. - **Insert Table**: This feature allows you to create tables to organize data. - **Text Color**: Text color lets you change the color of the text. - **Highlight Color**: Highlighting text adds a background color. - **Font Size**: Font size controls the size of the text characters. - **Heading**: Headings are typically used to divide a document into sections or chapters. They are usually styled differently, such as with larger text or bold formatting. - **Hyperlink**: A hyperlink is a clickable link that connects to a webpage or another location within the document. - **Image**: This feature allows you to insert images or graphics into your document to enhance its visual appeal or convey additional information. - **Customizable UI**: Easily customize the document editor's user interface to match your application's branding. <br> ## Installation To install the `@mindfiredigital/react-canvas-editor` npm package in your project, use the following command: ```bash npm install @mindfiredigital/react-canvas-editor ``` <br> ## Getting Started - **Initialization**: Initialize the canvas document editor in your project, specifying the container element where the editor will be embedded. <table> <tr> <th>React Component</th> <th>Web Component for React</th> <th>Web Component for JavaScript</th> </tr> <tr> <td> ```javascript import { DocumentEditor } from "@mindfiredigital/react-canvas-editor"; import React from "react"; export const App = () => { const toolbarItem: any = { bold: true, italic: true, underline: true, undo: true, redo: true, image: true, }; const handleChange = (data) => { console.log("test ->", data); }; const handleSelectedText = (text) => { console.log(text); }; return ( <DocumentEditor toolbar={toolbarItem} on_change={handleChange} on_select={handleSelectedText} value='Hello world' /> ); }; ``` </td> <td> ```javascript import { DocumentEditorWebComponent } from "@mindfiredigital/react-canvas-editor"; const toolbarItem: any = { bold: true, italic: true, underline: true, undo: true, redo: true, image: true, }; const handleChange = (data) => { console.log("test ->", data); }; const handleSelectedText = (text) => { console.log(text); }; const props = { toolbar:toolbarItem on_change:handleChange on_select:handleSelectedText value:'Hello world' }; DocumentEditorWebComponent(props); export const App = () => <div id='document-editor'></div>; ``` </td> <td> ```html <!-- In you html file add following code in a body tag where you want to use react canvas editor --> <body> <div id="document-editor"></div> <script type="module" src="/main.js"></script> </body> ; ``` ```javascript // In main.js file(i.e. used as a script in html file) add the following code import { DocumentEditorWebComponent } from "@mindfiredigital/react-canvas-editor"; const toolbarItem = { bold: true, italic: true, underline: true, undo: true, redo: true, image: true, }; function handleChange(data) { console.log(`test1 -> ${data}`); } function handleSelectedText(text) { console.log(`select1 ->, ${text}`); } DocumentEditorWebComponent({ toolbar:toolbarItem on_change:handleChange on_select:handleSelectedText value:'Hello world' }); ``` </td> </tr> </table> <br> - **Customization**: Customize the editor's UI and behavior to match your application's requirements. <table> <tr> <th>React Component</th> <th>Web Component for React</th> <th>Web Component for JavaScript</th> </tr> <tr> <td> ```javascript import { DocumentEditor } from "@mindfiredigital/react-canvas-editor"; import React from "react"; export const App = () => { const toolbarClass: any = { container: { // backgroundColor: "red" }, primaryToolbar: { justifyContent: "center", }, item: { undo: { // border: 'red solid 2px', // background:'yellow' }, redo: { // border: 'black solid 3px', // background:'blue' }, bold: { // border: 'black solid 3px', // background:'blue' }, italic: { // border: 'black solid 3px', // background:'blue' }, underline: { // border: 'black solid 3px', // background:'blue' }, image: { // border: 'black solid 3px', // background:'blue' }, fontType: { // background:'green' }, table: { // background:'green' }, fontColor: { // background:'green' }, highlight: { // background:'green' }, fontSize: { // background:'green' }, heading: { // background:'green' }, selectedToolbarItemColor: { // color: "#1a73e8", }, }, }; const canvasClass = { editorMain: { // background:'antiquewhite' }, margin: {}, }; return ( <DocumentEditor toolbar_class={toolbarClass} canvas_class={canvasClass} /> ); }; ``` </td> <td> ```javascript import { DocumentEditorWebComponent } from "@mindfiredigital/react-canvas-editor"; const toolbarClass: any = { container: { // backgroundColor: "red" }, primaryToolbar: { justifyContent: "center", }, item: { undo: { // border: 'red solid 2px', // background:'yellow' }, redo: { // border: 'black solid 3px', // background:'blue' }, bold: { // border: 'black solid 3px', // background:'blue' }, italic: { // border: 'black solid 3px', // background:'blue' }, underline: { // border: 'black solid 3px', // background:'blue' }, image: { // border: 'black solid 3px', // background:'blue' }, fontType: { // background:'green' }, table: { // background:'green' }, fontColor: { // background:'green' }, highlight: { // background:'green' }, fontSize: { // background:'green' }, heading: { // background:'green' }, selectedToolbarItemColor: { // color: "#1a73e8", }, }, }; const canvasClass = { editorMain: { // background:'antiquewhite' }, margin: {}, }; const props = { toolbar_class: toolbarClass, canvas_class: canvasClass, }; DocumentEditorWebComponent(props); export const App = () => <div id='document-editor'></div>; ``` </td> <td> ```html <!-- In you html file add following code in a body tag where you want to use react canvas editor --> <body> <div id="document-editor"></div> <script type="module" src="/main.js"></script> </body> ; ``` ```javascript // In main.js file(i.e. used as a script in html file) add the following code import { DocumentEditorWebComponent } from "@mindfiredigital/react-canvas-editor"; const toolbarClass: any = { container: { // backgroundColor: "red" }, primaryToolbar: { justifyContent: "center", }, item: { undo: { // border: 'red solid 2px', // background:'yellow' }, redo: { // border: 'black solid 3px', // background:'blue' }, bold: { // border: 'black solid 3px', // background:'blue' }, italic: { // border: 'black solid 3px', // background:'blue' }, underline: { // border: 'black solid 3px', // background:'blue' }, image: { // border: 'black solid 3px', // background:'blue' }, fontType: { // background:'green' }, table: { // background:'green' }, fontColor: { // background:'green' }, highlight: { // background:'green' }, fontSize: { // background:'green' }, heading: { // background:'green' }, selectedToolbarItemColor: { // color: "#1a73e8", }, }, }; const canvasClass = { editorMain: { // background:'antiquewhite' }, margin: {}, }; DocumentEditorWebComponent({ toolbar_class: toolbarClass, canvas_class: canvasClass, }); ``` </td> </tr> </table> <br> - **DOM handlers**: - **on_change**: The onchange event occurs when the value is changed. - **on_select**: The onSelect event occurs when the value is selected. - **value**: The value attribute on an tag sets the value of the page. <br> ## Contributing We welcome contributions from the community. If you'd like to contribute to the `react-document-editor` npm package, please follow our [Contributing Guidelines](CONTRIBUTING.md). <br> ## License Copyright (c) Mindfire Digital llp. All rights reserved. Licensed under the MIT license.
React version of canvas editor
canvas2d,document,documenteditor,editor,javascript,react,svg,text-editor
2023-10-13T10:17:43Z
2024-02-06T15:30:27Z
2024-03-01T07:45:55Z
4
48
229
4
2
6
null
MIT
TypeScript
theprinceraj/Profile-Cards-API
main
# Profile Cards API ![Profile Card Example](https://profile-cards-api.vercel.app/api/profile?name=Prince%20Raj&location=India&title=Software%20Developer&imageLink=https://images.unsplash.com/photo-1514501259756-f4b6fbeffa67&socialMedia=Linkedin&socialMediaUsername=theprinceraj) The Profile Cards API is an open-source service that generates profile card images based on the information provided via API requests. These profile cards can be used in various applications, including GitHub profiles, personal websites, and more. ## Usage To generate a profile card, make a GET request to the API with the following query parameters: - `name`*: The name to be displayed on the profile card. - `location`*: The user's location or city. - `title`*: The user's job title or description. - `imageLink`*: The URL of the user's profile picture. - `socialMedia`: The name of social media whose username you want to show - `socialMediaUsername`: The username of the previously specified social media The parameters marked with asterisk(*) are required paramaters. However, if they are not provided, the API will still generate an image with default values. Example API request: ```plaintext GET https://profile-cards-api.vercel.app/api/profile?name=Prince%20Raj&location=India&title=Web%20Developer&imageLink=https://images.unsplash.com/photo-1514501259756-f4b6fbeffa67&socialMedia=Github&socialMediaUsername=theprinceraj ``` This will return an image of a profile card with the provided information. ## Latest Updates 1. Added front-end interface website for forming and copying direct links of the generated images instead of manually editing links. The webpage is available at [Profiles Cards API](https://profile-cards-api.vercel.app/) Frontend. The frontend website also shows a live preview based on input field values in real time. 2. Implemented debouncing logic to API calls made on the front-end website to show a live preview only when the user stops typing or editing a field. ## Customization It does not support design customisation as of now but I plan to implement it sometime later. Contributions in this regard are most welcome. ## Dependencies - Express.js: The web server framework for handling API requests. - canvas-constructor: Used to generate profile card images. - canvas: Used to generate profile card images. ## Contributors Contributions to this project are welcome. Feel free to open issues or pull requests to suggest improvements or report bugs. Once we have contributors, we will list them down in this section. I hope we will have more soon!❤️ 1. sarcasterXO 2. theprinceraj 3. ## License This project is open-source and available under the [MIT License](LICENSE). ---
An open-source API that returns image of a profile card based on the information provided.
api,css,html,open-source,hacktoberfest,canvas,expressjs,javascript
2023-10-26T12:03:54Z
2024-04-30T12:23:36Z
null
2
17
162
0
1
6
null
MIT
JavaScript
hammadsaedi/regex-pro
main
# Regex Pro Regex Pro is a regular expression tester. It allows you to test your regular expressions against a string of your choice. ## Demo Visit [Regex Pro](https://hammadsaedi.github.io/regex-pro/) <a href="https://hammadsaedi.github.io/regex-pro/"><img src="https://user-images.githubusercontent.com/71373419/279142999-1a6dcd95-1998-4011-850f-b6d443b989ff.png" /></a> ## Tech Stack HTML, CSS, JavaScript ## Contributing Contributions are always welcome! See [CONTRIBUTING.md](CONTRIBUTING.md) for ways to get started. Please adhere to this project's `code of conduct`. ## License [MIT](https://choosealicense.com/licenses/mit/)
Regex Pro is a regular expression tester. It allows you to test your regular expressions against a string of your choice.
css,dom-manipulation,hacktoberfest,html,javascript,regex
2023-10-28T22:23:09Z
2023-11-01T21:46:06Z
null
14
25
53
5
17
6
null
MIT
JavaScript
thelight0804/subak
main
<h1 align="center">수박마켓</h1> <div align="center"> <img width="80%" src="https://github.com/thelight0804/subak/assets/69424845/4ec71d02-afc5-4211-a25f-b8757c312908"> <p align="center">당근마켓 서비스를 클론코딩한 수박마켓 프로젝트입니다.</p> </div> <br> ## 기술 스택 <table> <thead> <tr> <th>Backend</th> <th>Frontend</th> </tr> </thead> <tbody> <tr> <td>Java 11</td> <td>JavaScript</td> </tr> <tr> <td>Spring Boot 2.7.17</td> <td>React Native</td> </tr> <tr> <td>Spring Data JPA</td> <td>Axios</td> </tr> <tr> <td>Swagger</td> <td>Redux</td> </tr> <tr> <td>MariaDB</td> <td>React Navigation</td> </tr> <tr> <td>Cloudinary</td> <td>Async Storage</td> </tr> <tr> <td></td> <td>StyleSheet</td> </tr> </tbody> </table> <br> ## 아키텍처 <div align="center"> <img src="https://github.com/thelight0804/subak/assets/69424845/bdcd3d85-2ccc-46ff-8c42-a0cbf3b65064"> </div> <br> ## API 명세서 <table> <thead> <tr> <th align="center">Name</th> <th align="center">Method</th> <th align="center">URL</th> <th align="center">Tag</th> </tr> </thead> <tbody> <tr> <td>회원가입</td> <td>POST</td> <td>/user</td> <td>회원</td> </tr> <tr> <td>로그인</td> <td>POST</td> <td>/user/sign-in</td> <td>회원</td> </tr> <tr> <td>회원 프로필 수정</td> <td>PUT</td> <td>/user/{userId}/profile</td> <td>회원</td> </tr> <tr> <td>회원 이메일 찾기</td> <td>POST</td> <td>/user/email</td> <td>회원</td> </tr> <tr> <td>회원 비밀번호 재설정</td> <td>POST</td> <td>/user/password</td> <td>회원</td> </tr> <tr> <td>회원 탈퇴</td> <td>PATCH</td> <td>/user/withdraw</td> <td>회원</td> </tr> <tr> <td>게시글 생성</td> <td>POST</td> <td>/post</td> <td>게시글</td> </tr> <tr> <td>게시글 수정</td> <td>GUT</td> <td>/post/{postId}</td> <td>게시글</td> </tr> <tr> <td>게시글 삭제</td> <td>DELETE</td> <td>/post/{postId}</td> <td>게시글</td> </tr> <tr> <td>전체 게시글 조회</td> <td>GET</td> <td>/posts</td> <td>게시글</td> </tr> <tr> <td>게시글 상세 페이지 조회</td> <td>GET</td> <td>/posts/{postId}</td> <td>게시글</td> </tr> <tr> <td>상품 상태 수정</td> <td>PATCH</td> <td>/post/{postId}/product-status</td> <td>게시글</td> </tr> <tr> <td>게시글 상태 수정</td> <td>PATCH</td> <td>/post/{postId}/status</td> <td>게시글</td> </tr> <tr> <td>게시글 좋아요, 취소</td> <td>POST</td> <td>/post/{postId}/hearts</td> <td>게시글</td> </tr> <tr> <td>끌어올리기</td> <td>PUT</td> <td>/post/{postId}/recent</td> <td>게시글</td> </tr> <tr> <td>판매중 게시글 조회</td> <td>GET</td> <td>/posts/selling</td> <td>게시글</td> </tr> <tr> <td>숨김 게시글 조회</td> <td>GET</td> <td>/posts/hide</td> <td>게시글</td> </tr> <tr> <td>판매완료 게시글 조회</td> <td>GET</td> <td>/posts/completed</td> <td>게시글</td> </tr> <tr> <td>구매완료 게시글 조회</td> <td>GET</td> <td>/posts/purchased</td> <td>게시글</td> </tr> <tr> <td>관심 게시글 조회</td> <td>GET</td> <td>/posts/likedBy</td> <td>게시글</td> </tr> <tr> <td>게시글 검색</td> <td>GET</td> <td>/posts/search</td> <td>게시글</td> </tr> <tr> <td>카테고리별 게시글 검색</td> <td>GET</td> <td>/posts/category/{category}</td> <td>게시글</td> </tr> <tr> <td>판매중 게시글 개수 조회</td> <td>GET</td> <td>/posts/selling/count</td> <td>게시글</td> </tr> <tr> <td>숨김 게시글 개수 조회</td> <td>GET</td> <td>/posts/hide/count</td> <td>게시글</td> </tr> <tr> <td>판매완료 게시글 개수 조회</td> <td>GET</td> <td>/posts/completed/count</td> <td>게시글</td> </tr> <tr> <td>판매하기</td> <td>POST</td> <td>/posts/{postId}/sell</td> <td>게시글</td> </tr> <tr> <td>댓글 추가</td> <td>POST</td> <td>/post/{postId}/comments</td> <td>댓글</td> </tr> <tr> <td>댓글 수정</td> <td>PUT</td> <td>/post/{postId}/comments/{commentId}</td> <td>댓글</td> </tr> <tr> <td>댓글 삭제</td> <td>DELETE</td> <td>/post/{postId}/comments/{commentId}</td> <td>댓글</td> </tr> <tr> <td>후기 추가</td> <td>POST</td> <td>/review/{postId}</td> <td>후기</td> </tr> <tr> <td>후기 조회</td> <td>GET</td> <td>/review/{postId}</td> <td>후기</td> </tr> <tr> <td>구매자 후기 작성 여부 조회</td> <td>GET</td> <td>/reviews/{postId}/buyer-status</td> <td>후기</td> </tr> <tr> <td>판매자 후기 작성 여부 조회</td> <td>GET</td> <td>/reviews/{postId}/seller-status</td> <td>후기</td> </tr> </tbody> </table> <br> ## 기능 ### 게시글 <table> <thead> <tr> <th><img src="https://github.com/thelight0804/subak/assets/69424845/3e08af05-1a72-4531-b80f-6dd7240b5f9b"></th> <th><img src="https://github.com/thelight0804/subak/assets/69424845/9329fc72-bf03-43c3-9752-932a55295ed8"></th> <th><img src="https://github.com/thelight0804/subak/assets/69424845/edb5d8f8-78fa-4203-b324-cf125e33bd55"></th> <th><img src="https://github.com/thelight0804/subak/assets/69424845/2fcb5e98-b450-4676-afb3-f35d19d5bf2a"></th> </tr> </thead> <tbody> <tr> <td align="center">목록</td> <td align="center">글 작성</td> <td align="center">상세 페이지</td> <td align="center">게시글 관리</td> </tr> </tbody> </table> ### 조회 <table> <thead> <tr> <th><img src="https://github.com/thelight0804/subak/assets/69424845/baa3c638-487d-4156-9e82-940486e24fea" width="80%"></th> <th><img src="https://github.com/thelight0804/subak/assets/69424845/8048122b-322c-47fc-897a-bb7e159334b4" width="80%"></th> <th><img src="https://github.com/thelight0804/subak/assets/69424845/289aba62-94b9-4e44-b5c3-94405beec121" width="80%"></th> </tr> </thead> <tbody> <tr> <td align="center">판매내역</td> <td align="center">구매내역</td> <td align="center">관심목록</td> </tr> </tbody> </table> ### 댓글 <table> <thead> <tr> <th><img src="https://github.com/thelight0804/subak/assets/69424845/ed5f5984-1a17-420e-b419-05eee77b7b15" width="50%"></th> <th><img src="https://github.com/thelight0804/subak/assets/69424845/4e97c5a4-b8ad-41d8-a9a7-9353986cfc7d" width="50%"></th> </tr> </thead> <tbody> <tr> <td align="center">추가</td> <td align="center">수정</td> </tr> </tbody> </table> ### 유저 관리 <table> <thead> <tr> <th><img src="https://github.com/thelight0804/subak/assets/69424845/9e3e05a0-27dd-4861-a918-d2ebe3a9c8be"></th> <th><img src="https://github.com/thelight0804/subak/assets/69424845/a99a5744-fa0d-4d1e-ab47-129af0324fbd"></th> <th><img src="https://github.com/thelight0804/subak/assets/69424845/96f88919-1b40-4779-ad39-47ea806eb6ae"></th> <th><img src="https://github.com/thelight0804/subak/assets/69424845/d0a6c267-439d-4f59-a635-03c27cd0b8db"></th> </tr> </thead> <tbody> <tr> <td align="center">회원가입</td> <td align="center">로그인</td> <td align="center">이메일 및 비밀번호 찾기</td> <td align="center">프로필 수정</td> </tr> </tbody> </table> ### 판매 및 구매 <table> <thead> <tr> <th><img src="https://github.com/thelight0804/subak/assets/69424845/8ea2f965-cf0f-42b7-9adc-304e78007715" width="80%"></th> <th><img src="https://github.com/thelight0804/subak/assets/69424845/48a439a0-fe3d-410d-94df-adb332012864" width="80%"></th> <th><img src="https://github.com/thelight0804/subak/assets/69424845/6fae0e9c-64d8-4f1a-966e-41ec3f6af8a6" width="80%"></th> </tr> </thead> <tbody> <tr> <td align="center">내 물건 팔기</td> <td align="center">후기 작성</td> <td align="center">후기 확인</td> </tr> </tbody> </table> <br> ## 팀원 <table> <thead> <tr> <th>박상현(FE)</th> <th>윤성민(BE)</th> </tr> </thead> <tbody> <tr> <td align="center"> <img src="https://github.com/thelight0804/subak/assets/69424845/d496ac68-8229-4428-b5a5-7771acecc782" width="100px"> </td> <td align="center"> <img src="https://github.com/thelight0804/subak/assets/69424845/6a2dc105-21b4-42a8-8ad8-b78e4ce13729" width="100px"> </td> </tr> <tr> <td align="center"> <a href="https://github.com/thelight0804" target="GitHub"> <img src="https://img.shields.io/badge/thelight0804-000000?style=flat-square&logo=GitHub&logoColor=white"/> </td> <td align="center"> <a href="https://github.com/s-minii" target="GitHub"> <img src="https://img.shields.io/badge/s%E2%80%90minii-000000?style=flat-square&logo=GitHub&logoColor=white"/> </td> </td> </tr> </tbody> </table>
Aims to implement key features of the "당근마켓" (a Korean online marketplace) as a clone coding exercise.
axios,javascript,react-native,react-navigation,redux
2023-11-02T05:33:56Z
2024-03-22T07:13:30Z
2024-03-15T02:55:52Z
2
46
349
4
1
6
null
null
JavaScript
Frienducation7/AlgoDev
main
# AlgoDev An beginner project to give a kickstart to you open source journey
An open source project to give a kickstart to you open source journey
algorithms-and-data-structures,cpp,development,hacktoberfest,hacktoberfest-accepted,java,javascript,open-source
2023-10-15T15:39:10Z
2023-10-31T09:45:24Z
null
11
57
81
4
14
6
null
null
C++
ViktorSvertoka/simply-bank-app-js
main
# Simply Bank App ![Screenshoot](./images/screencapture.png)
Simply Bank JS App💳
css3,html5,javascript
2023-10-26T12:51:44Z
2023-12-24T17:20:53Z
null
1
0
4
0
0
6
null
null
JavaScript
Azure-Samples/copilot-openai-todo
main
# 🤖 copilot-openai-todo This project is an example Todo app implementation, that aims to showcase how to use [GitHub Copilot](https://copilot.github.com/) to build an AI-powered todo app using [Azure OpenAI](https://azure.microsoft.com/products/ai-services/openai-service) and [Azure Cosmos DB](https://azure.microsoft.com/services/cosmos-db/). **The completed application is located in the [completed branch](https://github.com/Azure-Samples/copilot-openai-todo/tree/completed).** ## Prerequisites - **Node.js v18+** - **Docker v20+** - **Azure account**. If you're new to Azure, [get an Azure account for free](https://azure.microsoft.com/free/?WT.mc_id=javascript-0000-yolasors) to get free Azure credits to get started. - **Azure subscription with access enabled for the Azure OpenAI service**. You can request access with [this form](https://aka.ms/oaiapply). * Alternatively, you can use an [OpenAI API key](https://platform.openai.com/docs/api-reference/authentication) instead of the Azure OpenAI service. You can use [GitHub Codespaces](https://github.com/features/codespaces) to work on this project directly from your browser: select the **Code** button, then the **Codespaces** tab and click on **Create Codespaces on main**. You can also use the [Dev Containers extension for VS Code](https://aka.ms/vscode/ext/devcontainer) to work locally using a ready-to-use dev environment. After you cloned or opened the project in your dev environment, run the following command to install the dependencies: ```bash npm install ``` ## Project details This project is structured as monorepo and makes use of [NPM Workspaces](https://docs.npmjs.com/cli/using-npm/workspaces). It's organized as follows: ```sh .devcontainer/ # Dev container configuration .github/ # GitHub Actions CI/CD pipeline packages/ # The different parts of our app |- server/ # The Express server, hosting the API and the website +- client/ # The website client package.json # NPM workspace configuration ``` ## How to build the project ```bash npm run build ``` This command will build the client and server packages. ## How to setup deployment To provision the resources on Azure and deploy the services, we use the [Azure Dev CLI](https://learn.microsoft.com/azure/developer/azure-developer-cli/). ```bash # Only needed once azd auth login --use-device-code # Provision and deploy infrastructure azd up ``` You can also provision and deploy the infrastructure separately: ```bash # Provision infrastructure azd provision # Deploy infrastructure azd deploy ``` ## How to run locally In order to run the application locally, you'll need to setup the following environment variables in a `.env` file at the root of the project with the following content: ```sh AZURE_OPENAI_ENDPOINT=<your Azure OpenAI endpoint> AZURE_COSMOS_DB_ENDPOINT=<your Azure Cosmos DB endpoint> ``` As the application rely on Azure services for the OpenAI completions and Cosmos DB storage, you'll need to provision these resources on Azure first (see [How to setup deployment](#how-to-setup-deployment)). Then, run the following commands to generate your `.env` file: ```bash azd env get-values > .env ``` Once your `.env` file is ready, you can start the application by running the following command at the root of the project: ```bash npm run start ``` This will run both the client and server: - The client will be available at http://localhost:4200. - The server will be available at http://localhost:3000. ## Contributing This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.opensource.microsoft.com. When you submit a pull request, a CLA bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., status check, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA. This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments. ## Trademarks This project may contain trademarks or logos for projects, products, or services. Authorized use of Microsoft trademarks or logos is subject to and must follow [Microsoft's Trademark & Brand Guidelines](https://www.microsoft.com/en-us/legal/intellectualproperty/trademarks/usage/general). Use of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship. Any use of third-party trademarks or logos are subject to those third-party's policies.
Discover how to use GitHub Copilot to quickly build a Node.js application with OpenAI and Azure
angular,azure,copilot,express,generative-ai,javascript,nodejs,openai,todolist,typechat
2023-10-25T07:32:31Z
2024-04-03T12:18:34Z
null
27
1
47
0
3
6
null
MIT
Bicep
webdevsk/FB-Mobile-Clean-my-feeds
main
<br /> <div align="center"> <a href="https://www.flaticon.com/free-icon/cleaning_573848?term=sweep&page=1&position=2&origin=search&related_id=573848"> <img width="100" height="100" src="./logo.png" alt="sweeper logo"/> </a> <h2 align="center">FB Mobile - Clean my feeds (UserScript)</h2> [Greasy Fork](https://greasyfork.org/en/scripts/479868-fb-mobile-clean-my-feeds) </div> <br /> Hides Suggested and Unwanted posts from **Facebook Mobile** feed. Get a clean Newsfeeds with posts only from your friends, pages and groups you follow. **⚠️ Works on Android Only** <details> <summary>Table of contents</summary> - [Removes](#removes) - [Languages Supported](#languages-supported) - [How to use](#how-to-use) - [Want to use it like an App?](#want-to-use-it-like-an-app) - [Known issues (Must Read)](#known-issues-must-read) - [How it works](#how-it-works) </details> ### Removes - Suggested for you - Sponsored - Unlabeled posts containing "Follow" button - Unlabeled posts containing "Join" button Facebook has an enhanced Mobile version of facebook which only works on Chromium browsers. The browsing experience is not as good as the App you are used to. It shows low quality photos and videos. But this is all we got that we can inject a script into. **ℹ️ So keep the original App installed and use it only for leisure browsing.** ### Languages Supported - English - বাংলা **⚠️ Still unstable. Works best on English** _You can contribute by adding more languages_ ### How to use 1. Find an `Android` phone somewhere. 1. Install [Kiwi Browser](https://play.google.com/store/apps/details?id=com.kiwibrowser.browser) from PlayStore. - Facebook enhanced version won't load on Firefox based browsers. - Use any Chromium based browser that supports extensions. 1. Launch `Kiwi Browser` then Install the [Violentmonkey](https://chrome.google.com/webstore/detail/violent-monkey/jinjaccalgkegednnccohejagnlnfdag) extension from Chrome Web Store. - You can try other similiar extensions but I haven't tried them myself. 1. **(Optional)** Install [uBlock Origin](https://chromewebstore.google.com/detail/ublock-origin/cjpalhdlnbpafiamejdnhcphjbkeiagm) extension. - Not required for this script but will improve your overall browsing experience by a mile. 1. Head over to this link and Press `Install` and Confirm installation: https://greasyfork.org/en/scripts/479868-fb-mobile-clean-my-feeds 1. Browse https://m.facebook.com/ without all the trash. #### Want to use it like an App? 1. Open https://m.facebook.com/ 1. Press the Kiwi Browser `3 dot menu` 1. Press `Add to Homescreen` 1. Set your preferred Label and press `Add` 1. Find it in your Android Home screen ### Known issues (Must Read) - **Jitters when scrolling** - You actually scroll faster than you think. So new posts get added pretty frequently. While the execution of the script isn't slow, shrinking of unwanted posts causes constant Page height shifts. You can find learn more about it inside the script. - **Blank Posts when coming back to NewsFeed** - **Firefox based browsers not supported** - The enhanced version of `m.facebook` only loads on Chromium browsers. Nothing I can do about it for now. - **Api rate limit** **⚠️Please scroll slowly** - After a while they keep pushing hundreds of Suggested posts in a row. As you keep scrolling faster than usual, it is possible to hit Api rate limit. `Or in general term: they put a timer between each post requests and you asked for posts before the timer ended` - **Doesn't work when coming back after a break** - Instead of doing the "Pull down to refresh", press the 3 dot menu and press Refresh there. ### How it works ```mermaid graph TD; A[DOM Loads]-->B[Waits for new posts using Mutation Observer]; B-->C[Searches through new posts] C-->|Regular Posts| D[Shown] C-->|Unwanted Posts| E[Hidden] ``` <br /> ⭐ If you like this project a Star would be nice. ⭐ You can request for new filters or submit issues here: [Github/issues](https://github.com/webdevsk/FB-Mobile-Clean-my-feeds/issues) ⭐ Want to contribute? Fork this repo and create a pull request here: [Github/pulls](https://github.com/webdevsk/FB-Mobile-Clean-my-feeds/pulls) _For PC browsers, use this instead: https://github.com/zbluebugz/facebook-clean-my-feeds_
A browser script that removes unwanted posts from Facebook Mobile
adblock,greasemonkey-script,greasyfork,javascript,kiwibrowser,tampermonkey,tempermonkey-script,userscript,vanilla-javascript,violentmonkey
2023-10-23T14:34:48Z
2023-11-23T13:36:58Z
null
1
0
11
3
1
6
null
GPL-3.0
JavaScript
ViktorSvertoka/goit-advancedjs-hw-03
main
# Критерії приймання - Створено репозиторій `goit-advancedjs-hw-03`. - Домашня робота містить два посилання: на вихідні файли і робочу сторінку на `GitHub Pages`. - В консолі відсутні помилки і попередження під час відкриття живої сторінки завдання. - До роботи прiкрiплено файл репозиторiю у форматi `zip`. - Проект зібраний за допомогою [vanilla-app-template](https://github.com/goitacademy/vanilla-app-template). - Код відформатований за допомогою `Prettier`. #### Формат оцінювання: - Оцінка від 0 до 100 #### Формат здачi: - Два посилання: на вихідні файли і робочу сторінку на `GitHub Pages` Прикрiплений файл репозиторію у форматi zip ## Стартові файли [Завантажуй стартові файли](https://minhaskamal.github.io/DownGit/#/home?url=https:%2F%2Fgithub.com%2Fgoitacademy%2Fjavascript-homework%2Ftree%2Fmain%2Fv2%2F10%2Fsrc) з базовою розміткою та стилями завдання. Скопіюй їх собі в проєкт, повністю замінивши папку src у [vanilla-app-template](https://github.com/goitacademy/vanilla-app-template). ## Завдання - Котопошук Створи фронтенд частину застосунку для пошуку інформації про кота за його породою. Подивися демо відео роботи програми, використовуй його як орієнтир для необхідного функціоналу. https://textbook.edu.goit.global/lms-js-homework/v2/uk/assets/medias/catsearch-demo-7a9eca87a69c1131c828592a49f6f647.mp4 ## HTTP-запити Використовуй публічний The Cat API. Для початку роботи необхідно зареєструватися й отримати унікальний ключ доступу, щоб прикріплювати його до кожного запиту. Заходимо на головну сторінку та натискаємо нижче кнопку Signup for free, дотримуємося інструкції, ключ буде надіслано на вказану пошту. Для використання ключа необхідно використовувати HTTP-заголовок x-api-key. Рекомендується використовувати axios та додати заголовок до всіх запитів. import axios from "axios"; axios.defaults.headers.common["x-api-key"] = "твій ключ"; ## Колекція порід Під час завантаження сторінки має виконуватися HTTP-запит за колекцією порід. Для цього необхідно виконати GET-запит на ресурс https://api.thecatapi.com/v1/breeds, що повертає масив об'єктів. У разі успішного запиту, необхідно наповнити select.breed-select опціями так, щоб value опції містило id породи, а в інтерфейсі користувачеві відображалася назва породи. Напиши функцію fetchBreeds(), яка виконує HTTP-запит і повертає проміс із масивом порід - результатом запиту. Винеси її у файл cat-api.js та зроби іменований експорт. ## Інформація про кота Коли користувач обирає якусь опцію в селекті, необхідно виконувати запит за повною інформацією про кота на ресурс https://api.thecatapi.com/v1/images/search. Не забудь вказати в цьому запиті параметр рядка запиту breed_ids з ідентифікатором породи. Ось як буде виглядати URL-запит для отримання повної інформації про собаку за ідентифікатором породи: https://api.thecatapi.com/v1/images/search?breed_ids=ідентифікатор_породи Напиши функцію fetchCatByBreed(breedId), яка очікує ідентифікатор породи, робить HTTP-запит і повертає проміс із даними про кота - результатом запиту. Винеси її у файл cat-api.js і зроби іменований експорт. Якщо запит був успішний, під селектом у блоці div.cat-info з'являється зображення і розгорнута інформація про кота: назва породи, опис і темперамент. ## Опрацювання стану завантаження Поки відбувається будь-який HTTP-запит, необхідно показувати завантажувач - елемент p.loader. Поки запитів немає або коли запит завершився, завантажувач необхідно приховувати. Використовуй для цього додаткові CSS класи. - Поки виконується запит за списком порід, необхідно приховати select.breed-select та показати p.loader. - Поки виконується запит за інформацією про кота, необхідно приховати div.cat-info та показати p.loader. - Як тільки будь-який запит завершився, p.loader треба приховати. ## Опрацювання помилки Якщо у користувача сталася помилка під час будь-якого HTTP-запиту, наприклад, впала мережа, була втрата пакетів тощо, тобто проміс було відхилено, необхідно відобразити елемент p.error, а при кожному наступному запиті приховувати його. Використовуй для цього додаткові CSS класи. Протестувати працездатність відображення помилки дуже просто - зміни адресу запиту додавши в кінець будь-який символ, наприклад замість https://api.thecatapi.com/v1/breeds використай https://api.thecatapi.com/v1/breeds123. Запит отримання списку порід буде відхилено з помилкою. Аналогічно для запиту інформації про кота за породою. ## Інтерфейс - Додай мінімальне оформлення елементів інтерфейсу. - Замість select.breed-select можеш використовувати будь-яку бібліотеку з красивими селектом, наприклад https://slimselectjs.com/ - Замість p.loader можеш використовувати будь-яку бібліотеку з красивими CSS-завантажувачами, наприклад https://cssloaders.github.io/ - Замість завантажувача p.error можеш використовувати будь-яку бібліотеку з гарними сповіщеннями, наприклад iziToast ![Cat](./assets/screen.png)
Homework for the course JavaScript📒 ---HTTP Requests and Fetch API---
goit,html5,javascript,goit-advancedjs-hw-03,vite,css3,goit-js-hw-10
2023-11-01T20:23:32Z
2023-11-08T00:55:51Z
null
1
0
30
0
0
6
null
null
CSS
ChandraPrakash-Bathula/Full-Stack-Web-Development
master
# Full Stack Web Development Mastery Repository [MERN Stack] 🚀 ## ( MERN Stack: MongoDB, Express, React.JS, Node.JS Concepts with projects included. ) ### Welcome to the Full Stack Web Development Mastery repository..! Your ultimate resource hub for mastering the MERN (MongoDB, Express.js, React.js, Node.js) stack, enriched with fundamental web technologies like HTML, CSS, and JavaScript. Here, you'll discover a treasure trove of resources and practical examples designed to elevate your web development skills. ## Repository Highlights : - **HTML5** : Dive into the world of HTML with our extensive range of examples and resources, essential for structuring sophisticated web pages. - **CSS3** : Explore the art of styling with CSS, featuring examples and resources to craft visually stunning HTML elements and layouts. - **JavaScript** (ES6): Unleash the power of JavaScript through our comprehensive resources, perfect for adding dynamic interactivity to web pages. - **MongoDB** : Delve into MongoDB resources, a cornerstone NoSQL database for high-performance MERN stack applications. - **Express.JS** : Navigate the realm of Express.js, a vital framework for Node.js, through our curated examples, ideal for crafting efficient APIs and web servers. - **React.JS** : Engage with React.js resources, a pivotal JavaScript library for constructing intuitive and interactive user interfaces. - **Node.JS** : Explore the versatility of Node.js with our resources and examples, indispensable for robust server-side development. ## About : This repository is more than just a collection of resources, it's a comprehensive guide for those passionate about FullStack Web Development, with a special focus on the MERN stack. Catering to both beginners and seasoned developers, we provide an array of informative content and practical examples to help you build dynamic and resilient web applications. # Understanding JavaScript: Execution and Threading ## Overview JavaScript is a powerful and widely-used programming language known for its role in web development. This document provides a fundamental explanation of how JavaScript operates, specifically addressing its synchronous nature and threading model. ### Is JavaScript Synchronous or Asynchronous? **Answer:** JavaScript is fundamentally synchronous and single-threaded. This means that it processes one command at a time in a sequence. Each line of code is executed in the order it appears, barring the use of features like callbacks, promises, and async/await which are used to handle asynchronous operations. ### Is JavaScript Single-Threaded or Multi-Threaded? **Answer:** JavaScript is single-threaded. This means it has a single call stack and can perform one task at a time in a single thread. However, JavaScript can handle asynchronous code through mechanisms such as the event loop, and Web APIs provided by browsers like DOM APIs, fetch API, and timers. ## Core Fundamentals of JavaScript ### Execution Context The concept of an "execution context" is central to understanding how JavaScript executes code. You can think of the execution context as a container or a big box in which the JavaScript code is evaluated and executed. #### Components of Execution Context The execution context of JavaScript can be visualized as consisting of two main components: 1. **Memory Component**: This is also referred to as the "Variable Environment" where all the variables and functions are stored as key-value pairs. 2. **Code Component**: Known as the "Thread of Execution", this component takes care of reading and executing the script line by line. By understanding these components, developers can better grasp how JavaScript interprets and runs the code. ## Contributing to Our Community : Your insights and expertise can help enrich this repository! We invite contributions that range from typo corrections to the addition of new examples or best practices. To contribute, simply fork this repository, make your enhancements, and submit a pull request. We appreciate every contribution and eagerly await to integrate valuable additions that align with our mission. Thank you for choosing our FullStack Web Development Mastery repository. We're excited to accompany you on your journey to mastering web development with the MERN stack and beyond. Here's to coding excellence...! 🚀
Full Stack Web Development repository ! This repository is dedicated to providing comprehensive resources and examples covering the MERN (MongoDB, Express.js, React.js, Node.js) stack, along with fundamental web development technologies such as HTML, CSS, and JavaScript.
css3,expressjs,git,github,html5,javascript,nodejs,nosql,reactjs
2023-10-17T20:13:15Z
2024-05-10T19:02:44Z
null
1
233
582
0
0
6
null
null
HTML
aston-cs2tp-evotech/evotech
main
![evotech; logo](https://github.com/aston-cs2tp-evotech/evotech/blob/main/view/images/evotechLogoCropped.webp?raw=true) ![PHP](https://img.shields.io/badge/php-%23777BB4.svg?style=for-the-badge&logo=php&logoColor=white) ![MariaDB](https://img.shields.io/badge/MariaDB-003545?style=for-the-badge&logo=mariadb&logoColor=white) ![HTML5](https://img.shields.io/badge/html5-%23E34F26.svg?style=for-the-badge&logo=html5&logoColor=white) ![CSS3](https://img.shields.io/badge/css3-%231572B6.svg?style=for-the-badge&logo=css3&logoColor=white) ![JavaScript](https://img.shields.io/badge/javascript-%23323330.svg?style=for-the-badge&logo=javascript&logoColor=%23F7DF1E) ![Apache](https://img.shields.io/badge/apache-%23D42029.svg?style=for-the-badge&logo=apache&logoColor=white) ![GitHub commit activity (branch)](https://img.shields.io/github/commit-activity/m/aston-cs2tp-evotech/evotech) ![GitHub contributors](https://img.shields.io/github/contributors/aston-cs2tp-evotech/evotech) ![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/aston-cs2tp-evotech/evotech/test_and_depoly.yml) # evotech; An e-commerce website for selling computer parts and accessories built using PHP, MariaDB, HTML, CSS and JavaScript. Built as part of the Aston University Computer Science Team Project module. ## Table of Contents - [Contributing](#contributing) - [Documentation](#documentation) - [Testing](#testing) - [Running locally](#running-locally) - [Windows](#windows) - [macOS](#macos) - [Linux](#linux) - [Constructing the database](#constructing-the-database) - [Using supplied dummy data](#using-supplied-dummy-data) - [Credits](#credits) ## Contributing For information on how to contribute to the project, please see the [CONTRIBUTING.md](CONTRIBUTING.md) file. ## Documentation Documentation for the project can be found in the project's [Wiki](https://github.com/aston-cs2tp-evotech/evotech/wiki). ## Testing The project uses PHPUnit for testing. To run the tests, follow the instructions below. Ensure you have PHP and Composer installed on your machine. You can check if you have PHP installed by running `php -v` in your terminal. You can check if you have Composer installed by running `composer -v` in your terminal. 1. Clone the repository using `git clone` and change directory to the root of the repository ```bash cd evotech ``` 2. Install PHPUnit ```bash composer install ``` 3. Run the tests ```bash ./vendor/bin/phpunit tests ``` ## Running locally These instructions will guide you through setting up the project to run locally on your machine for development and testing purposes. ### Windows 1. Install XAMPP ```powershell winget install -e --id ApacheFriends.Xampp.8.2 ``` 2. Clone the repository using `git clone` and change directory to the root of the repository ```powershell cd evotech ``` 3. Open XAMPP and start Apache and MySQL 4. Run the setup script for Windows ```powershell .\setup\setupWindows.ps1 ``` 5. Open the following links in your browser: - http://localhost - http://localhost/phpmyadmin 6. Complete the evotech; setup in your browser The script will have configured everything so in the future if you need to run locally again: 1. Start Apache and MySQL in XAMPP 2. Open the following links in your browser: - http://localhost - http://localhost/phpmyadmin To use the website, you will need to construct the database as per the instructions in [Constructing the database](#constructing-the-database). ### macOS 1. Install xcode command line tools ```bash xcode-select --install ``` 2. Install brew ```bash /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh) NONINTERACTIVE=1" ``` 3. Install XAMPP ```bash brew install --cask xampp ``` 4. Clone the repository using `git clone` and change directory to the root of the repository ```bash cd evotech ``` 5. Start Apache and MySQL in XAMPP (manager-osx) 6. Run the setup script for macOS ```bash ./setup/setupMac.sh ``` 7. Open the following links in your browser: - http://localhost/phpmyadmin - http://localhost 8. Complete the evotech; setup in your browser The script will have configured everything so in the future if you need to run locally again: 1. Start Apache and MySQL in XAMPP 2. Open the following links in your browser: - http://localhost - http://localhost/phpmyadmin To use the website, you will need to construct the database as per the instructions in [Constructing the database](#constructing-the-database). ### Linux 1. Install XAMPP ```bash wget "https://sourceforge.net/projects/xampp/files/XAMPP%20Linux/8.2.12/xampp-linux-x64-8.2.12-0-installer.run" chmod +x xampp-linux-x64-8.2.12-0-installer.run sudo ./xampp-linux-x64-8.2.12-0-installer.run ``` 2. Clone the repository using `git clone` 3. Change directory to the root of the repository ```bash cd evotech ``` 4. Start Apache and MySQL in XAMPP ```bash sudo /opt/lampp/lampp start ``` 5. Run the setup script for Linux ```bash ./setup/setupLinux.sh ``` 6. Open the following links in your browser: - http://localhost - http://localhost/phpmyadmin 7. Complete the evotech; setup in your browser The script will have configured everything so in the future if you need to run locally again: 1. Start Apache and MySQL in XAMPP 2. Open the following links in your browser: - http://localhost - http://localhost/phpmyadmin To use the website, you will need to construct the database as per the instructions in [Constructing the database](#constructing-the-database). ## Constructing the database The database needs to be constructed before the website can be used. [!TIP] The OOBE evotech; setup will automatically construct the database for you. If you have not used the OOBE setup, follow the instructions below. 1. Open the following link in your browser: - http://localhost/phpmyadmin 2. Log in with your MySQL credentials - Default username: `root` - Default password: `''` (empty string) 3. The database name is your username followed by '_db' - For example, if your username is `root`, the database name is `root_db` 4. Click on the `SQL` tab 5. Open the `evotechDB.sql` file in the `setup` directory 6. Copy the contents of the file and paste them into the SQL tab 7. Click `Go` to run the SQL commands ## Using supplied dummy data The database can be populated with dummy data to test the website. [!TIP] The OOBE evotech; setup will automatically populate the database with dummy data for you if you choose to do so. If you have not used the OOBE setup, follow the instructions below. ### SQL Product Data This will populate the database with dummy product data. The site **requires** some products to be present in the database to function correctly. 1. Open the following link in your browser: - http://localhost/phpmyadmin 2. Log in with your MySQL credentials - Default username: `root` - Default password: `''` (empty string) 3. Ensure you have created the database as per the instructions in [Constructing the database](#constructing-the-database) 4. Click on the database name - The database name is your username followed by '_db' - For example, if your username is `root`, the database name is `root_db` 5. Click on the `SQL` tab 6. Open the `dummyProductData.sql` file in the `setup` directory 7. Copy the contents of the file and paste them into the SQL tab 8. Click `Go` to run the SQL commands ### Image Product Data This will populate the `images` directory with dummy product images. Whilst not necessary for the site to function, it will make the site look more realistic. 1. Copy the image folders inside of `setup/examplePhotos/products` to `view/images/products` - For example, `setup/examplePhotos/products/1` should be copied to `view/images/products/1` - This can be done using the file explorer or the command line ## Credits - [220064521 - Mohammed Kalam](https://github.com/YourKalamity) - Team Leader | Project Manager | Full Stack Developer - [220073925 - Viktor Dvornik](https://github.com/ToadallyStupid) - Backend Lead | Backend Code Review | Backend Developer - [220043504 - Aaron Dosanjh](https://github.com/Aaron3455454) - Frontend Lead | Frontend Code Review | Frontend Developer - [220070614 - Hanzalah Naguthane](https://github.com/realhanzalah) - UI/UX Lead | UI/UX Design | Frontend Developer - [220216876 - Reece Edwards](https://github.com/Reece-Edwards) - Backend Developer | Documentation - [220095086 - Thomas Evans](https://github.com/TomE134) - Frontend Developer - [220164359 - Gurjot Dhillon](https://github.com/gurjotsd) - Frontend Developer - [220098548 - Mahdi Egal](https://github.com/PhantomCodeing) - Frontend Developer
An e-commerce website for selling computer parts and accessories built using PHP, MariaDB, HTML, CSS and JavaScript. Built as part of the Aston University Computer Science Team Project module.
apache2,css3,html5,javascript,mariadb,php,sql
2023-10-24T14:41:53Z
2024-03-26T15:20:02Z
2024-03-25T11:50:06Z
8
196
844
0
8
6
null
null
PHP
EuJinnLucaShow/cats-api
main
# Критерії приймання - Створено репозиторій `goit-advancedjs-hw-03`. - Домашня робота містить два посилання: на вихідні файли і робочу сторінку на `GitHub Pages`. - В консолі відсутні помилки і попередження під час відкриття живої сторінки завдання. - До роботи прiкрiплено файл репозиторiю у форматi `zip`. - Проект зібраний за допомогою [vanilla-app-template](https://github.com/goitacademy/vanilla-app-template). - Код відформатований за допомогою `Prettier`. #### Формат оцінювання: - Оцінка від 0 до 100 #### Формат здачi: - Два посилання: на вихідні файли і робочу сторінку на `GitHub Pages` Прикрiплений файл репозиторію у форматi zip ## Стартові файли [Завантажуй стартові файли](https://minhaskamal.github.io/DownGit/#/home?url=https:%2F%2Fgithub.com%2Fgoitacademy%2Fjavascript-homework%2Ftree%2Fmain%2Fv2%2F10%2Fsrc) з базовою розміткою та стилями завдання. Скопіюй їх собі в проєкт, повністю замінивши папку src у [vanilla-app-template](https://github.com/goitacademy/vanilla-app-template). ## Завдання - Котопошук Створи фронтенд частину застосунку для пошуку інформації про кота за його породою. Подивися демо відео роботи програми, використовуй його як орієнтир для необхідного функціоналу. [Демо-відео](./assets/promo.mp4) ## HTTP-запити Використовуй публічний The Cat API. Для початку роботи необхідно зареєструватися й отримати унікальний ключ доступу, щоб прикріплювати його до кожного запиту. Заходимо на головну сторінку та натискаємо нижче кнопку Signup for free, дотримуємося інструкції, ключ буде надіслано на вказану пошту. Для використання ключа необхідно використовувати HTTP-заголовок x-api-key. Рекомендується використовувати axios та додати заголовок до всіх запитів. import axios from "axios"; axios.defaults.headers.common["x-api-key"] = "твій ключ"; ## Колекція порід Під час завантаження сторінки має виконуватися HTTP-запит за колекцією порід. Для цього необхідно виконати GET-запит на ресурс https://api.thecatapi.com/v1/breeds, що повертає масив об'єктів. У разі успішного запиту, необхідно наповнити select.breed-select опціями так, щоб value опції містило id породи, а в інтерфейсі користувачеві відображалася назва породи. Напиши функцію fetchBreeds(), яка виконує HTTP-запит і повертає проміс із масивом порід - результатом запиту. Винеси її у файл cat-api.js та зроби іменований експорт. ## Інформація про кота Коли користувач обирає якусь опцію в селекті, необхідно виконувати запит за повною інформацією про кота на ресурс https://api.thecatapi.com/v1/images/search. Не забудь вказати в цьому запиті параметр рядка запиту breed_ids з ідентифікатором породи. Ось як буде виглядати URL-запит для отримання повної інформації про собаку за ідентифікатором породи: https://api.thecatapi.com/v1/images/search?breed_ids=ідентифікатор_породи Напиши функцію fetchCatByBreed(breedId), яка очікує ідентифікатор породи, робить HTTP-запит і повертає проміс із даними про кота - результатом запиту. Винеси її у файл cat-api.js і зроби іменований експорт. Якщо запит був успішний, під селектом у блоці div.cat-info з'являється зображення і розгорнута інформація про кота: назва породи, опис і темперамент. ## Опрацювання стану завантаження Поки відбувається будь-який HTTP-запит, необхідно показувати завантажувач - елемент p.loader. Поки запитів немає або коли запит завершився, завантажувач необхідно приховувати. Використовуй для цього додаткові CSS класи. - Поки виконується запит за списком порід, необхідно приховати select.breed-select та показати p.loader. - Поки виконується запит за інформацією про кота, необхідно приховати div.cat-info та показати p.loader. - Як тільки будь-який запит завершився, p.loader треба приховати. ## Опрацювання помилки Якщо у користувача сталася помилка під час будь-якого HTTP-запиту, наприклад, впала мережа, була втрата пакетів тощо, тобто проміс було відхилено, необхідно відобразити елемент p.error, а при кожному наступному запиті приховувати його. Використовуй для цього додаткові CSS класи. Протестувати працездатність відображення помилки дуже просто - зміни адресу запиту додавши в кінець будь-який символ, наприклад замість https://api.thecatapi.com/v1/breeds використай https://api.thecatapi.com/v1/breeds123. Запит отримання списку порід буде відхилено з помилкою. Аналогічно для запиту інформації про кота за породою. ## Інтерфейс - Додай мінімальне оформлення елементів інтерфейсу. - Замість select.breed-select можеш використовувати будь-яку бібліотеку з красивими селектом, наприклад https://slimselectjs.com/ - Замість p.loader можеш використовувати будь-яку бібліотеку з красивими CSS-завантажувачами, наприклад https://cssloaders.github.io/ - Замість завантажувача p.error можеш використовувати будь-яку бібліотеку з гарними сповіщеннями, наприклад iziToast
The Cat API
api,vite,goit,homework,advancedjs,javascript,js,localstorage
2023-11-04T21:31:20Z
2023-12-18T06:07:20Z
null
2
2
30
0
0
6
null
null
CSS
bgdesign23/Front
dev_Front
# React + Vite This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules. Currently, two official plugins are available: - [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react/README.md) uses [Babel](https://babeljs.io/) for Fast Refresh - [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh #
Black Group Design
axios,bootstrap,chartjs,handsontable,hook-form,hot-toast,mercadopago-sdk,react-hooks,react-router,reactjs
2023-10-22T17:54:27Z
2023-11-20T14:34:19Z
null
8
234
599
0
2
6
null
null
JavaScript
madhanmaaz/white-spikes
master
# WHITE SPIKES - 2.0.0 - The Best Automatic Social Media Phishing Tool. Recall that this is solely for awareness-raising or educational purposes only. Through the use of this tool, we are able to gather and store data such as usernames, passwords, emails, OTPs, TWO-FACTOR-AUTHENDICATION BYPASSES, RESEND OTPs, etc. And store in our database for later use. 1. Username (email, password, mobile number, username) Bypass 2. Passwords Bypass 3. 2FA (otp codes, authenticator app codes, Qr scanning) Bypass 4. Resend otp code Bypass 5. Select auth device Bypass ### Disclaimer ``` Title: white-spikes Copyright (c) 2024 Madhanmaaz All rights owned by Madhanmaaz. The "white-spikes" tool is an educational resource designed for awareness-raising and ethical purposes only. It is free to use, but any commercial distribution or sale is restricted. The tool is intended to be used responsibly and with the explicit permission of the relevant network administrators or owners. The creators and copyright owners of "white-spikes" are not liable for any misuse or unauthorized use of the tool. For educational and awareness-raising purposes only. Unauthorized use is prohibited. ``` ### DEMO VIDEO https://github.com/madhanmaaz/white-spikes/assets/120784875/ce15e65b-0d8a-4f49-baac-d04cc5464ef2 ![banner](./public/assets/src/banner.jpg) #### Contact info - [Linkedin](https://www.linkedin.com/in/madhan-s-4418b5255/) - [Instagram](https://www.instagram.com/madhanmaaz) - [Website](https://madhanmaaz.netlify.app) ## Requirements - [Nodejs](https://nodejs.org/en) ## Installation Install **WHITE SPIKES** with GIT ```bash git clone https://github.com/madhanmaaz/white-spikes ``` ```bash cd white-spikes ``` - Install Dependencies ```bash npm install ``` - Run - The default port is `3411` ```bash npm run start ``` - To run in server ```bash npm run headless ``` - `http://localhost:3411` Open on your browser - USER-INTERFACE ![userinterface](./scr/dashboard.png) #### Change the default username and password of whitespikes. - Default username : `admin` - Default password : `admin` ![admin-setting](./scr/settings.png) #### Create ![create](./scr/create.png) #### Panel ![panel](./scr/panel.png) #### Updates - `SERVER CAPABILITY`: Run on a Windows server (only). - `CREATOR`: Create the target instance. - `PANEL`: In version 2, there is a separate panel for each target. - `RESPONSE TO TARGET`: Custom response page. - `DOWNLOAD COOKIES`: Download cookies option, access account from another white-spikes application. - `FORCE COOKIES`: When the hijack is complete, you can force the cookies to save properly. - `SCREENSHOT`: Screenshot for a headless browser. - `OPEN BROWSER WITH COOKIES`: Here you can upload your cookie file, **target-id.wszip**.
World's No.1 😁 Automated Social Media Phishing Tool. Automated tool that allow us to hack accounts with 2FA Bypass.
ethical-hacking,ethical-hacking-tools,hacking-tool,javascript,madhan,madhan-hacker,madhanmaaz,nodejs,phishing,phishing-attacks
2023-10-23T01:50:27Z
2024-03-10T15:04:14Z
null
1
0
7
2
3
6
null
GPL-3.0
JavaScript
devmamunur/Advanced-JavaScript-Guide
main
<h1 align="center"> Advanced JavaScript Guide </h1> <h3 align="center"> This repository is designed to enhance your JavaScript proficiency and prepare you effectively for job interviews. </h3> <br> ## Table of Contents - **[Basic JavaScript](#basic-javascript) 🌟** - **[Intermediate JavaScript](#intermediate-javascript) 🚀** - **[Advanced JavaScript](#advanced-javascript) 🔥** - **[ES6 and Modern JavaScript](#es6-and-modern-javascript) ⚡** - **[DOM and Web API](#dom-and-web-api) 🌐** - **[Testing and Debugging](#testing-and-debugging) 🛠️** - **[Package Managers and Build Tools](#package-managers-and-build-tools) 🧰** - **[Security and Best Practices](#security-and-best-practices) 🔐** - **[Performance Optimization](#performance-optimization) 🚀** - **[APIs and Asynchronous Programming](#apis-and-asynchronous-programming) 🌐** - **[JavaScript Patterns and Best Practices](#javascript-patterns-and-best-practices) 🛠️** - **[Beginner ReactJS](#beginner-reactjs) ⚛️** - **[Intermediate ReactJS](#intermediate-reactjs) ⚛️ 🚀** - **[Advanced ReactJS](#advanced-reactjs) ⚛️ 🔥** ## Basic JavaScript ### 1. What is JavaScript? <details> <summary><b>Answer</b></summary> #### Articles - 📜 [What is JavaScript?](https://developer.mozilla.org/en-US/docs/Learn/JavaScript/First_steps/What_is_JavaScript) #### Videos - 🎬 [What is JavaScript?](https://youtu.be/upDLs1sn7g4?si=z8MWR3EbFOwItCs3) </details> --- ### 2. How do you declare a variable in JavaScript? <details> <summary><b>Answer</b></summary> #### Articles - 📜 [JavaScript Variables](https://www.w3schools.com/js/js_variables.asp) #### Videos - 🎬 [How to Create Variables in JavaScript](https://youtu.be/9aGIAL16DL4?si=buUB1kNogREofHBe) </details> --- ### 3. Explain the difference between "null" and "undefined" in JavaScript. <details> <summary><b>Answer</b></summary> #### Articles - 📜 [Undefined Vs Null in JavaScript](https://www.geeksforgeeks.org/undefined-vs-null-in-javascript/) #### Videos - 🎬 [Null vs Undefined - Beau teaches JavaScript](https://youtu.be/VwaqJy_clnc?si=zY5HL7ULslsl5LMn) </details> --- ### 4. What are the different data types in JavaScript? <details> <summary><b>Answer</b></summary> #### Articles - 📜 [JavaScript data types and data structures](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures) - 📜 [JavaScript Data Types](https://www.w3schools.com/js/js_datatypes.asp) #### Videos - 🎬 [Different Data Types in JavaScript](https://youtu.be/O9by2KcR2v4?si=zSsVKRKED2OIJ0fb) </details> --- ### 5. How do you check the data type of a variable? <details> <summary><b>Answer</b></summary> #### Articles - 📜 [The typeof Operator](https://www.w3schools.com/js/js_typeof.asp#:~:text=You%20can%20use%20the%20typeof,type%20of%20a%20JavaScript%20variable.) #### Videos - 🎬 [JavaScript for Beginners — Checking Variable Types](https://youtu.be/bBg8JCsmUi0?si=97tsCPtFC2Kf4cBG) </details> --- ### 6. What is a closure in JavaScript? <details> <summary><b>Answer</b></summary> #### Articles - 📜 [Closures](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Closures) - 📜 [Closure in JavaScript](https://www.geeksforgeeks.org/closure-in-javascript/) - 📜 [JavaScript Closures](https://www.w3schools.com/js/js_function_closures.asp) #### Videos - 🎬 [Learn Closures In 7 Minutes](https://youtu.be/3a0I8ICR1Vg?si=fprzFGZcn0baPX_Z) </details> --- ### 7. Explain the concept of hoisting in JavaScript. <details> <summary><b>Answer</b></summary> #### Articles - 📜 [What is Hoisting in JavaScript?](https://www.freecodecamp.org/news/what-is-hoisting-in-javascript/) - 📜 [JavaScript Hoisting](https://www.w3schools.com/js/js_hoisting.asp) - 📜 [JavaScript Hoisting](https://www.geeksforgeeks.org/javascript-hoisting/) #### Videos - 🎬 [Learn JavaScript Hoisting In 5 Minutes](https://youtu.be/EvfRXyKa_GI?si=mRTxs9qRYM6VO9Z5) </details> --- ### 8. What is the difference between "==" and "===" operators in JavaScript? <details> <summary><b>Answer</b></summary> #### Articles - 📜 [How is == Different from === in JavaScript?](https://www.freecodecamp.org/news/loose-vs-strict-equality-in-javascript/) - 📜 [Equality comparisons and sameness](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Equality_comparisons_and_sameness) #### Videos - 🎬 [== vs === in JavaScript | Which one is better? | Strict vs Loose Equality](https://youtu.be/nQJrfphxKBg?si=BMmaluqphvRRmBCh) - 🎬 [JavaScript == VS ===](https://youtu.be/C5ZVC4HHgIg?si=MLIQAxCzl4EfSbWo) </details> --- ### 9. How do you comment in JavaScript? <details> <summary><b>Answer</b></summary> #### Articles - 📜 [JavaScript Comments](https://www.w3schools.com/js/js_comments.asp) #### Videos - 🎬 [JavaScript for Beginners — Code Comments](https://youtu.be/Uso-h6n7x2A?si=1X18rORCgTj1m39J) </details> --- ### 10. Explain the purpose of the "use strict" directive. <details> <summary><b>Answer</b></summary> #### Articles - 📜 [Strict mode](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Strict_mode) - 📜 [JavaScript Use Strict](https://www.w3schools.com/js/js_strict.asp) #### Videos - 🎬 [Strict Mode — "use strict" - Beau teaches JavaScript](https://youtu.be/uqUYNqZx0qY?si=OpfJy5E99Hmvv8Pb) </details> --- ## Intermediate JavaScript ### 1. What is the DOM, and how do you manipulate it using JavaScript? <details> <summary><b>Answer</b></summary> #### Articles - 📜 [JavaScript HTML DOM](https://www.w3schools.com/js/js_htmldom.asp) - 📜 [Manipulating documents](https://developer.mozilla.org/en-US/docs/Learn/JavaScript/Client-side_web_APIs/Manipulating_documents) - 📜 [How to Manipulate the DOM - the Ultimate Beginner's Guide](https://www.freecodecamp.org/news/how-to-manipulate-the-dom-beginners-guide/) #### Videos - 🎬 [JavaScript DOM Manipulation – Full Course for Beginners](https://youtu.be/5fb2aPlgoys?si=cJnpobcIl2yZWG5d) - 🎬 [Learn DOM Manipulation In 18 Minutes](https://youtu.be/y17RuWkWdn8?si=EbnkiHRcCPqAOLlL) </details> --- ### 2. Explain the concept of event delegation. <details> <summary><b>Answer</b></summary> #### Articles - 📜 [Event Delegation in JavaScript –Explained with an Example](https://www.freecodecamp.org/news/event-delegation-javascript/) - 📜 [What is Event Delegation in JavaScript?](https://medium.com/@bretdoucette/part-4-what-is-event-delegation-in-javascript-f5c8c0de2983) - 📜 [Event Delegation in JavaScript](https://www.geeksforgeeks.org/event-delegation-in-javascript/) #### Videos - 🎬 [Event Delegation in JavaScript, Simplified](https://youtu.be/aZ3JWv0ofuA?si=JtqCU-HMgziem-h6) - 🎬 [What is Event Delegation?](https://youtu.be/pKzf80F3O0U?si=nKQcQS9znI6qpjzA) - 🎬 [Event Delegation in Javascript](https://youtu.be/3KJI1WZGDrg?si=3FbKE0DoYO80WddG) </details> --- ### 3. What is a callback function, and why is it used in JavaScript? <details> <summary><b>Answer</b></summary> #### Articles - 📜 [JavaScript Callbacks](https://www.w3schools.com/js/js_callback.asp) - 📜 [Callback function](https://developer.mozilla.org/en-US/docs/Glossary/Callback_function) - 📜 [JavaScript Callback Functions – What are Callbacks in JS and How to Use Them](https://www.freecodecamp.org/news/javascript-callback-functions-what-are-callbacks-in-js-and-how-to-use-them/) #### Videos - 🎬 [JavaScript Callbacks Explained in 5 Minutes](https://youtu.be/kz_vwAF4NHI?si=erLDHFpbu-YGjztm) - 🎬 [Callback Functions in JS ft. Event Listeners](https://youtu.be/btj35dh3_U8?si=Gp5ttNXnBgUXWmlW) - 🎬 [WHAT IS A CALLBACK FUNCTION IN JAVASCRIPT? - Explained with Callback Examples](https://youtu.be/qtfi4-8dj9c?si=e7x-NbKkyB4UJlAv) </details> --- ### 4. Describe the purpose of "this" in JavaScript and how it is determined. <details> <summary><b>Answer</b></summary> #### Articles - 📜 [This](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/this) - 📜 [The JavaScript this Keyword](https://www.w3schools.com/js/js_this.asp) - 📜 [A super-easy way to determine 'this' in JavaScript](https://dev.to/kelvin0712/a-super-easy-way-to-determine-this-in-javascript-ob5) #### Videos - 🎬 [JavaScript this Keyword](https://youtu.be/gvicrj31JOM?si=lCROKAOHlXn8pT23) - 🎬 [What is this? | JavaScript](https://youtu.be/kE93zNJBCBw?si=5XL05ldgwJBo6ZYj) </details> --- ### 5. How does prototypal inheritance work in JavaScript? <details> <summary><b>Answer</b></summary> #### Articles - 📜 [Inheritance and the prototype chain](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Inheritance_and_the_prototype_chain) - 📜 [JavaScript Prototypes and Inheritance](https://www.freecodecamp.org/news/prototypes-and-inheritance-in-javascript/) - 📜 [Prototypal Inheritance using __proto__ in JavaScript](https://www.geeksforgeeks.org/prototypal-inheritance-using-__proto__-in-javascript/) #### Videos - 🎬 [Prototype and Prototypal Inheritance in Javascript ](https://youtu.be/wstwjQ1yqWQ?si=8iRD5kdU6y9xB3Bu) - 🎬 [JavaScript Prototypal inheritance ](https://youtu.be/1UTqFAjYx1k?si=gcgSo_3EA2ytLnRV) </details> --- ### 6. What are promises in JavaScript, and how do they work? <details> <summary><b>Answer</b></summary> #### Articles - 📜 [JavaScript Promise](https://www.geeksforgeeks.org/javascript-promise/) - 📜 [JavaScript Promises](https://www.w3schools.com/js/js_promise.asp) - 📜 [How Promises Work in JavaScript ](https://www.freecodecamp.org/news/guide-to-javascript-promises) #### Videos - 🎬 [JavaScript Promises -- Tutorial for Beginners](https://youtu.be/TnhCX0KkPqs?si=efYcK87KXHZxMyTG) - 🎬 [Promises](https://youtu.be/ap-6PPAuK1Y?si=mmz5HguoLYytRylH) </details> --- ### 7. Explain what "async/await" is and how it works. <details> <summary><b>Answer</b></summary> #### Articles - 📜 [Async/Await Function in JavaScript](https://www.geeksforgeeks.org/async-await-function-in-javascript/) - 📜 [Async/await](https://javascript.info/async-await) - 📜 [How to Use Async/Await in JavaScript with Example JS Code](https://www.freecodecamp.org/news/async-await-in-javascript/) #### Videos - 🎬 [Async Await vs. Promises - JavaScript Tutorial for beginners](https://youtu.be/spvYqO_Kp9Q?si=VcTKJ9TOOmXT5AKK) - 🎬 [async await](https://youtu.be/6nv3qy3oNkc?si=NoJBS9KHrkYdv_na) </details> --- ### 8. How can you handle errors in JavaScript? <details> <summary><b>Answer</b></summary> #### Articles - 📜 [JavaScript Errors](https://www.w3schools.com/js/js_errors.asp) - 📜 [Error handling, "try...catch"](https://javascript.info/try-catch) #### Videos - 🎬 [try, catch, finally, throw - error handling in JavaScript](https://youtu.be/cFTFtuEQ-10?si=lwPJas1oGoG55V5x) - 🎬 [The EASY Way to Handle Errors in JavaScript (For Beginners)](https://youtu.be/7nG2shBeWUo?si=bUVxJyzKl1lz0Zv5) </details> --- ### 9. What is the difference between "let," "const," and "var" when declaring variables. <details> <summary><b>Answer</b></summary> #### Articles - 📜 [var, let, and const in JavaScript – the Differences Between These Keywords Explained](https://www.freecodecamp.org/news/differences-between-var-let-const-javascript/) - 📜 [Difference between var, let and const keywords in JavaScript](https://www.geeksforgeeks.org/difference-between-var-let-and-const-keywords-in-javascript/) #### Videos - 🎬 [JavaScript Let vs Var vs Constant](https://youtu.be/XgSjoHgy3Rk?si=s-LGJ718BqqDV6E7) - 🎬 [let & const in JS 🔥Temporal Dead Zone](https://youtu.be/BNC6slYCj50?si=-O8qYF50913QkyuD) - 🎬 [Differences Between Var, Let, and Const](https://youtu.be/9WIJQDvt4Us?si=Mdd-PfA2nN_7P74-) </details> --- ### 10. Explain the differences between "setTimeout" and "setInterval." <details> <summary><b>Answer</b></summary> #### Articles - 📜 [JavaScript Timing Events](https://www.w3schools.com/js/js_timing.asp) - 📜 [JavaScript Timing Events: setTimeout and setInterval](https://www.freecodecamp.org/news/javascript-timing-events-settimeout-and-setinterval/) #### Videos - 🎬 [setTimeout() and setInterval() – JavaScript Tutorial](https://youtu.be/kTg-5HBqiyQ?si=Nvcw9MCyv7QxsB3f) - 🎬 [How to use setTimeout() and setInterval() ](https://youtu.be/0ewbT5YJdR8?si=aDrGCB25TrA61JCv) </details> --- ### 11. How does the module system work in JavaScript (e.g., CommonJS, ES6 modules)? <details> <summary><b>Answer</b></summary> #### Articles - 📜 [Modules in JavaScript – CommonJS and ESmodules Explained](https://www.freecodecamp.org/news/modules-in-javascript/) - 📜 [Difference between node.js require and ES6 import and export](https://www.geeksforgeeks.org/difference-between-node-js-require-and-es6-import-and-export/) #### Videos - 🎬 [Require vs Import Javascript](https://youtu.be/mK54Cn4ceac?si=gbXj873VXxSBOcL4) - 🎬 [JavaScript Modules: From IIFEs to CommonJS to ES6 Modules](https://youtu.be/qJWALEoGge4?si=D7_tt7f4_SgNf8-o) </details> --- ### 12. What is the difference between "map," "filter," and "reduce" in JavaScript? <details> <summary><b>Answer</b></summary> #### Articles - 📜 [JavaScript Map, Reduce, and Filter ](https://www.freecodecamp.org/news/javascript-map-reduce-and-filter-explained-with-examples/) - 📜 [How to use map(), filter(), and reduce() in JavaScript ?](https://www.geeksforgeeks.org/how-to-use-map-filter-and-reduce-in-javascript/) #### Videos - 🎬 [map, filter & reduce ](https://youtu.be/zdp0zrpKzIE?si=JWm-YjfL-mk_ETJa) - 🎬 [ map, filter, reduce, some, every, find, findIndex, forEach](https://youtu.be/Urwzk6ILvPQ?si=iN1qlIgipgF0_qHf) - 🎬 [Map, Filter & Reduce EXPLAINED](https://youtu.be/8MoElay6dWU?si=OUxAZWFnRZrKxCmr) </details> --- ### 13. Explain the concept of "closures." <details> <summary><b>Answer</b></summary> #### Articles - 📜 [Closures](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Closures) - 📜 [JavaScript Closures](https://www.w3schools.com/js/js_function_closures.asp) - 📜 [Closure in JavaScript – Explained with Examples](https://www.freecodecamp.org/news/javascript-closures-explained-with-example/) #### Videos - 🎬 [JavaScript Closures Tutorial](https://youtu.be/aHrvi2zTlaU?si=vwQZpI5zBR762gKJ) - 🎬 [Closures in JS](https://youtu.be/qikxEIxsXco?si=U7jzKGSdcmTcMOnT) - 🎬 [Closures Explained in 100 Seconds](https://youtu.be/vKJpN5FAeF4?si=-qtNorjAv9sslEES) </details> --- ### 14. How does the "spread" operator work in JavaScript? <details> <summary><b>Answer</b></summary> #### Articles - 📜 [Spread syntax (...)](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Spread_syntax) - 📜 [React ES6 Spread Operator](https://www.w3schools.com/react/react_es6_spread.asp) - 📜 [JavaScript Spread Operator](https://www.geeksforgeeks.org/javascript-spread-operator/) #### Videos - 🎬 [JS Spread Operator: How It Works & Why I Love It](https://youtu.be/pYI-UuZVtHI?si=C_w63fAaS6NqeFxB) - 🎬 [...spread operator and rest operator](https://youtu.be/iLx4ma8ZqvQ?si=sUxXP7UaSfIsdtJ9) - 🎬 [Spread Syntax | ...args | JavaScript](https://youtu.be/peR_ZBA353M?si=4BMP7YmnZT4A6tM2) </details> --- ### 15. What are generators and how do they work? <details> <summary><b>Answer</b></summary> #### Articles - 📜 [Generator](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Generator) - 📜 [ JavaScript Visualized: Generators and Iterators](https://dev.to/lydiahallie/javascript-visualized-generators-and-iterators-e36) - 📜 [Yield! Yield! How Generators work in JavaScript.](https://www.freecodecamp.org/news/yield-yield-how-generators-work-in-javascript-3086742684fc/) #### Videos - 🎬 [Learn JavaScript Generators In 12 Minutes](https://youtu.be/IJ6EgdiI_wU?si=nKZwPHYFJwJEfpR9) - 🎬 [The Power of JS Generators by Anjana Vakil](https://youtu.be/gu3FfmgkwUc?si=HPu2XzJDlUuMok6W) </details> --- ### 16. How can you avoid callback hell (Pyramid of Doom) in JavaScript? <details> <summary><b>Answer</b></summary> #### Articles - 📜 [How to deal with nested callbacks and avoid “callback hell”](https://www.freecodecamp.org/news/how-to-deal-with-nested-callbacks-and-avoid-callback-hell-1bc8dc4a2012/) - 📜 [Callback Hell and How to Rescue it ?](https://dev.to/jerrycode06/callback-hell-and-how-to-rescue-it-ggj) #### Videos - 🎬 [Callback Hell](https://youtu.be/yEKtJGha3yM?si=6zfzle3IatWygoGb) - 🎬 [Javascript Nuggets - Callback Hell](https://youtu.be/bx9xYPt2tdc?si=NIAAEKqnN0ES52Ky) </details> --- ## Advanced JavaScript ### 1. Describe the concept of memoization in JavaScript. <details> <summary><b>Answer</b></summary> #### Articles - 📜 [What is Memoization? How and When to Memoize in JavaScript and React](https://www.freecodecamp.org/news/memoization-in-javascript-and-react/) - 📜 [JavaScript Memoization](https://www.geeksforgeeks.org/javascript-memoization/) - 📜 [Memoization in Javascript](https://dev.to/anishkumar/memoizing-fetch-api-calls-in-javascript-1d16) #### Videos - 🎬 [Memoization and How to Memoize | Javascript Memoization Tutorial](https://youtu.be/TWUV_LRVX24?si=PhDvpdUi7EhBnuyV) - 🎬 [Memoization And Dynamic Programming Explained](https://youtu.be/WbwP4w6TpCk?si=DF2pbqt8RCg-wB3P) </details> --- ### 2. What is functional programming, and how can it be applied in JavaScript? <details> <summary><b>Answer</b></summary> #### Articles - 📜 [What is Functional Programming? A Beginner's JavaScript Guide](https://www.freecodecamp.org/news/functional-programming-in-javascript/) - 📜 [JIntroduction to Functional Programming: JavaScript Paradigms](https://www.toptal.com/javascript/functional-programming-javascript) #### Videos - 🎬 [Learning Functional Programming with JavaScript - Anjana Vakil - JSUnconf](https://youtu.be/e-5obm1G_FY?si=ACCOqmSuVRiIDZc3) - 🎬 [Learn Functional Programming With JavaScript | FREE COURSE](https://youtu.be/XvLMO2wE3OQ?si=j-LWt1fCdC7GvaVo) </details> --- ### 3. Explain how currying and composition work in functional programming. <details> <summary><b>Answer</b></summary> #### Articles - 📜 [How to Use Currying and Composition in JavaScript](https://www.freecodecamp.org/news/how-to-use-currying-and-composition-in-javascript/) - 📜 [Real world example of compose function and currying.](https://dev.to/pegahsafaie/real-world-example-of-compose-function-and-currying-3ofl) #### Videos - 🎬 [Function Composition - Functional JavaScript](https://www.youtube.com/live/mth5WpEc4Qs?si=ZekpBp0fAfFtA0Iu) </details> --- ### 4. What are Web Workers, and how can they improve JavaScript performance? <details> <summary><b>Answer</b></summary> #### Articles - 📜 [Improve Web Performance With Web Workers](https://dev.to/nikhiltatpati/improve-web-performance-with-web-workers-3jal) - 📜 [Power of Web Workers – Multithreading in JavaScript](https://www.geeksforgeeks.org/power-of-web-workers-multithreading-in-javascript/) #### Videos - 🎬 [Web Workers in Action](https://youtu.be/fh2rKs7eupg?si=NRD-QpBLalLeFeWH) - 🎬 [Mastering Web Workers](https://youtu.be/4chX0kqznaE?si=PnAy8C87wWtL3Ypw) - 🎬 [JavaScript Web Workers Explained](https://youtu.be/Gcp7triXFjg?si=eqhtjvwfSjm9pe_P) </details> --- 5. How does lazy loading of scripts enhance web page performance? 6. What is the Event Loop and how does it work in JavaScript? 7. Describe the purpose of Service Workers in web development. 8. How can you achieve immutability in JavaScript objects and arrays? 9. What are the differences between "call," "apply," and "bind" in JavaScript? 10. Explain the concept of a pure function and its benefits. 11. What are WebAssembly and its use cases in JavaScript applications? 12. Explain the concept of BigInt and its purpose in JavaScript. 13. What are decorators in JavaScript, and how can they be used? 14. How does memoization improve the performance of recursive functions? 15. What is the Event Emitters pattern, and how can it be used in JavaScript? 16. Describe the purpose of the Proxy object and its use cases in JavaScript. 17. How does the JavaScript runtime environment differ from the browser environment? 18. What is the Event Loop in Node.js, and how does it differ from the browser's Event Loop? 19. Explain the concept of microservices and their role in modern web development. 20. What are Web Components, and how can they be used in JavaScript applications. ## ES6 and Modern JavaScript 1. What are arrow functions in ES6, and how do they differ from regular functions? 2. Explain the concept of template literals in ES6. 3. What are destructuring assignments in ES6? 4. How does the "class" keyword work in ES6 for object-oriented programming? 5. What are "promises" in ES6, and how do they differ from callbacks? 6. Explain the use of the "async/await" feature in ES6. 7. What is the purpose of the "let" and "const" keywords in ES6? 8. How can you import and export modules in ES6? 9. Describe the "Map" and "Set" data structures in ES6. 10. What is the "spread" operator in ES6, and how does it work. ## DOM and Web API 1. How do you create an element in the DOM using JavaScript? 2. Explain the difference between "clientHeight," "offsetHeight," and "scrollHeight." 3. How do you add an event listener to an element in the DOM? 4. What is the purpose of the XMLHttpRequest object in JavaScript? 5. How can you make an HTTP request in JavaScript using the Fetch API? 6. What is CORS, and how do you handle it in JavaScript? 7. Explain the difference between the "localStorage" and "sessionStorage" objects. 8. How do you manipulate CSS properties in JavaScript? 9. What is the "Event" object in JavaScript, and how is it used? 10. Describe the difference between "target" and "currentTarget" in event handling. ## Testing and Debugging 1. What are unit tests, and how can you write them in JavaScript? 2. Explain the purpose of a test runner in JavaScript testing. 3. How can you use the "debugger" statement in JavaScript for debugging? 4. Describe the concept of "console.log" and its usage in debugging. 5. What is a breakpoint, and how do you set one in a browser's developer tools? 6. How can you handle runtime errors in JavaScript code? 7. Explain the purpose of "try-catch" blocks in error handling. 8. What is linting in JavaScript, and why is it important? 9. How do you use the "console.assert" method for debugging? 10. What is a stack trace, and how can it help in debugging JavaScript code. ## Package Managers and Build Tools 1. What is npm, and how do you use it in JavaScript development? 2. Describe the purpose of package.json in a Node.js project. 3. What is Yarn, and how does it differ from npm? 4. How do you install and manage third-party libraries using npm or Yarn? 5. Explain the role of Webpack in JavaScript development. 6. What are Babel and its role in transpiling JavaScript code? 7. How does ESLint help maintain code quality in a JavaScript project? 8. Describe the purpose of Git and version control in JavaScript development. 9. What is Continuous Integration (CI) and how can it be used in JavaScript projects? 10. How can you automate tasks in a JavaScript project using tools like Grunt or Gulp. ## Security and Best Practices 1. What is Cross-Site Scripting (XSS), and how can you prevent it in JavaScript? 2. Explain Cross-Origin Resource Sharing (CORS) and its security implications. 3. How can you protect against SQL injection in JavaScript? 4. Describe the importance of input validation in web applications. 5. What are Content Security Policy (CSP) headers and how do they enhance security? 6. How can you securely store sensitive information in a JavaScript application? 7. Explain the concept of HTTPS and its importance in web security. ## Performance Optimization 1. What is the purpose of code splitting, and how can it improve page load times? 2. Explain the benefits of lazy loading and how it's implemented in JavaScript applications. 3. What is the critical rendering path, and how can you optimize it for better performance? 4. Describe the importance of minification and compression in optimizing JavaScript code. 5. How does browser caching work, and what are its advantages in web performance? 6. What are the best practices for reducing the number of HTTP requests in a web page? 7. Explain how the "defer" and "async" attributes in script tags affect page loading. 8. How can you profile and optimize JavaScript code using browser developer tools? 9. Describe the concept of "Render-Blocking JavaScript" and how to minimize it. 10. What are the benefits of using a Content Delivery Network (CDN) for serving JavaScript libraries? ## APIs and Asynchronous Programming 1. Explain the purpose of the Fetch API for making HTTP requests in JavaScript. 2. How do you handle CORS-related issues when making cross-origin requests? 3. What is the difference between "GET" and "POST" HTTP methods, and when would you use each? 4. Describe the concept of RESTful APIs and their common conventions. 5. How can you use the "async" and "await" keywords with the Fetch API for asynchronous operations? 6. Explain the purpose of the "XMLHttpRequest" object and its alternatives. 7. What is JSON, and how do you parse and stringify JSON data in JavaScript? 8. How can you work with asynchronous code using Promises and the "then" method? 9. What are WebSockets, and how can they be used for real-time communication in JavaScript? 10. Explain the concept of callback hell and how to avoid it in asynchronous code. 11. Describe the purpose of the "axios" library for making HTTP requests in JavaScript. ## JavaScript Patterns and Best Practices 1. What is the Module Pattern, and how does it help organize code in JavaScript? 2. Explain the Singleton Pattern and its use in JavaScript applications. 3. How does the Observer Pattern work in JavaScript, and when is it useful? 4. What is the Revealing Module Pattern, and how does it differ from the Module Pattern? 5. Describe the benefits of using the Prototype Pattern in JavaScript. 6. How can you implement the Factory Pattern in JavaScript? 7. What is the Constructor Pattern, and how is it used to create objects? 8. Explain the MVC (Model-View-Controller) pattern and its application in JavaScript frameworks. 9. Describe the MVVM (Model-View-ViewModel) pattern and its role in frameworks like Knockout.js. 10. How do you implement the Flux architecture in JavaScript applications, and what libraries are associated with it. ## Beginner ReactJS 1. How does React use the virtual DOM to make things faster? 2. What are React Hooks, and why are they useful? 3. Can you explain the difference between controlled and uncontrolled components in React? 4. What is JSX in React, and how is it different from regular HTML? Can you provide an example? 5. How does the `useEffect` hook help in React? Can you give an example? 6. Why is the `key` attribute important when working with lists in React? 7. What is the purpose of the `setState` method in React, and why is it used? 8. Explain the concept of props in React and how they differ from state. 9. How does conditional rendering work in React, and can you provide an example? 10. What is the significance of the `render` method in a React component? 11. How do you handle forms in React, and what is the role of controlled components? 12. What is the purpose of the `React.Fragment` in React? ## Intermediate ReactJS 1. Can you explain Higher Order Components (HOC) in React in simple terms? 2. What is Redux, and how does it work with React? 3. Explain the Flux architecture briefly and its connection to React. 4. When should you use Redux instead of local state management in React? 5. How is React Context different from Redux for state management? 6. What is the `shouldComponentUpdate` method in React, and why is it important for performance? 7. What are useMemo and useCallback hooks in React, and when do you use each? 8. Can you give an example of code splitting in React? Why is it useful? 9. What is server-side rendering (SSR) in React, and why might you use it? 10. How does the `dangerouslySetInnerHTML` attribute work in React? 11. What are portals in React, and when might you use them? 12. How does lazy loading improve React app performance? 13. How do you prevent unnecessary re-renders in React? 14. Explain the difference between state and context in React. 15. How does event handling differ in React compared to traditional HTML? 16. Explain the concept of "lifting state up" in React and when it is beneficial. 17. What is the significance of the `this` keyword in class components in React? 18. How does error handling work in React applications? 19. What are React refs, and how are they used in React components? 20. How does the `componentDidMount` lifecycle method differ from `useEffect` in functional components? ## Advanced ReactJS 1. How can a child component communicate with a parent in React? 2. How do you pass data from one React component to another? 3. What is the difference between real DOM and virtual DOM in React? 4. How can you make React re-render only a specific component without the entire browser? 5. What distinguishes stateful and stateless components in React? 6. How do you send data from a parent component to a child component in React? 7. Why did React move away from class-based components? 8. What is the `useEffect` hook, and why is it useful in React? 9. Explain lazy routing in React with a simple example. 10. Why use className instead of class in React for styling? 11. What is an error boundary in React, and why is it helpful? 12. How does Axios differ from Fetch in React, and when would you use each? 13. What are the limitations of React.js? 14. Differences between local storage and session storage in React, and how do you use them? 15. Why is React so popular? 16. What is JSX, and how does it make React development easier? 17. How do `useMemo` and `useCallback` differ in React, and when do you use each? 18. Differences between `useState` and `useReducer` in React and their use cases. 19. Explain the purpose of `React.createRef` in React and when it's preferable. 20. What does the `memo` function do in React, and when would you use it? 21. What is the role of the `useLayoutEffect` hook in React, and when is it used? 22. Differences between shallow rendering and full rendering in React testing. 23. What is the role of the `children` prop in React components? 24. How does React handle routing in Single Page Applications (SPAs)? 25. What does the `dangerouslySetInnerHTML` prop do in React? 26. When and why would you use `React.PureComponent` in React? 27. Explain automatic batching in React and how it improves performance. 28. What is an error boundary in React, and why is it helpful? 29. Differences between useState and useReducer in React and their use cases. 30. What is suspense in the server in React, and how does it contribute to improving user experience in asynchronous operations? 31. What is reconciliation in React, and how does it play a crucial role in updating the DOM efficiently? 32. Differences between Higher Order Components and React Hooks. 33. Differences between functional components and class-based components and why functional components are needed.
This repository is designed to enhance your JavaScript proficiency and prepare you effectively for job interviews.
javascript,javascript-interview,javascript-interview-questions,javascript-questions,js,javascript-concepts,javascript-guide,javascript-topics
2023-10-19T08:48:15Z
2023-12-07T17:54:03Z
null
1
0
43
0
1
5
null
null
null
titanilham/web-counter
main
<div align="start"> <strong><img src="https://readme-typing-svg.demolab.com?font=Chakra+Petch&weight=500&size=30&pause=1000&color=F0B500&background=0071FF00&random=false&width=435&lines=Web+counter" alt="Typing SVG" /></strong> </div> ### Languages: * JavaScript <img src="https://upload.wikimedia.org/wikipedia/commons/thumb/6/6a/JavaScript-logo.png/120px-JavaScript-logo.png" width="15" height="15"/> * Html <img src="https://raw.githubusercontent.com/devicons/devicon/1119b9f84c0290e0f0b38982099a2bd027a48bf1/icons/html5/html5-original.svg" width="15" height="15"/> * Css <img src="https://raw.githubusercontent.com/devicons/devicon/1119b9f84c0290e0f0b38982099a2bd027a48bf1/icons/css3/css3-original.svg" width="15" height="15"/> ### Preview: ![](https://github.com/titanilham/web-counter/blob/main/Preview.png?raw=true) <a href="https://653e56e9a84654753cf07b73--gleaming-biscotti-0fabe5.netlify.app/">Link to the site</a> ---- <div id="badges"> <a href="https://vk.com/aniime_guy" > <img src="https://img.icons8.com/?size=512&id=13977&format=png"width="40" height="40"/> </a> <a href="https://t.me/Ilham06"> <img src="https://img.icons8.com/?size=512&id=63306&format=png"width="40" height="40"/> </a> <a href="https://www.youtube.com/channel/UC9m1N5x0OXWihGpR50Yk35g"> <img src="https://img.icons8.com/?size=512&id=13983&format=png"width="40" height="40" /> </a> <a href="https://discord.com/channels/1019531122239094794/1019531122239094801"> <img src="https://www.freepnglogos.com/uploads/discord-logo-png/discord-logo-logodownload-download-logotipos-1.png" width="40" height="40"/> </a> </div>
web counter
counter,css,css3,html5,javascript,js,web,website
2023-10-29T14:17:57Z
2023-10-31T10:47:18Z
2023-10-31T09:55:28Z
1
0
16
0
0
5
null
MIT
CSS
inblossoms/toyscript
main
## Language learning methodology #### In fact, what I want to express is that the logic behind the language is the same, and we can use any language to achieve everything we want to express in this repo. **In a computer language, as long as there are three kinds of logic, sequential execution logic, branch logic and loop logic, the language can reach the Turing-complete state.** > toy-js will be based on our own custom semantics in the `Language.md`. > > You need to understand the lexical definition of computer language before you can understand the program. > You can also use `Language.md` to help you get a better understanding based on [MDN - lexical grammar](https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Lexical_grammar) grammar. **Tip:** You should test by adhering to the content of the code block, otherwise unexpected errors will occur. These bugs are often features that are not currently implemented. Of course you can try to achieve it. ### what toy-js can do? you can write the following code in the textarea and view the result after execution in the console. 1. logic And(&&)、Or(||): ```js // and && false && 1; undefined && 1; "" && 1; 0 && 1; 1 && 0; // or || 3 || 1; undefined || 1; // 略... ``` 2. declaration of variables、object and functions: - `var a; a = 1; a;` 3. gets the object property value: - `o = { num: 1 }; o.num;` 4. four operations: ```js // + a = 6; a = a + 2; a; // - a = 6; a = a - 2; a; // * a = 6; a = a * 2; a; // / a = 6; a = a / 2; a; ``` 5. branch logic You can use all the false values supported in Js as a condition for if. ```js a = 1; if(a) a = 2; // or if(a) { a = 2; } a; ``` 6. loop logic You can use all the false values supported in Js as a condition for while. ```js a = 10; while(a) a = a - 1; // or while(a){ a = a - 1; } // or while(a){ a = a - 1; continue; // or break; a = a - 100; } a; ``` 7. block scope chain ```js { let a; a = 1; { let b; a = a + 1; b = 10; { b = b / 2; } } } // 此时无法在外部访问 a 和 b // or { let a; a = 1; { let a; a = 100; } a; // 1 } ``` 8. function declaration and call ```js // log(); method is equivalent to console.log(); let x; x = 1; function a(){ log(x); } { let x; x = 2; a(); } // or log(1, 2, 3); ```
Implement a toy Js based on computer language morphology.
javascript,javascript-library,language-model
2023-10-30T14:02:03Z
2024-02-02T14:25:14Z
null
1
0
51
1
1
5
null
null
JavaScript
bgdesign23/Backend
dev_Back
npm install to install all dependencies npm start to start server listening
Black Group Design
bcrypt,javascript,jsonwebtoken,cloudinary,dotenv,expressjs,mercadopago,morgan,multer,nodejs
2023-10-21T18:24:00Z
2023-11-20T04:12:24Z
null
8
92
210
0
1
5
null
null
JavaScript
ViktorSvertoka/goit-typescript-hw-03
main
# Завдання 1 Клас Student, який містить три властивості: name, age та grade. Замість того, щоб оголошувати ці властивості в тілі класу, потім у конструкторі, і нарешті надавати їм значення, напишіть скорочену ініціалізацію. ```ts class Student { public name: string; public age: number; public grade: string; constructor(name: string, age: number, grade: string) { this.name = name; this.age = age; this.grade = grade; } } ``` # Завдання 2 Ваше завдання полягатиме у створенні двох класів – Employee та Manager. Клас Employee повинен включати: властивість name, яка буде доступна всім. властивість department, яка буде доступна лише всередині класу Employee. salary, яке буде доступне лише всередині класу Employee та його підкласів. Клас Manager повинен бути підклас класу Employee Необхідно реалізувати в класі Manager конструктор, який викликатиме конструктор суперкласу та збільшуватиме salary на 10000. ```ts class Employee { // Заповніть модифікатори доступу name: string; department: string; salary: number; constructor(name: string, department: string, salary: number) { this.name = name; this.department = department; this.salary = salary; } getEmployeeDetails() { return `Name: ${this.name}, Department: ${this.department}, Salary: ${this.salary}`; } } class Manager extends Employee { // Реалізуйте конструктор та збільшіть salary на 10000 } ``` # Завдання 3 Ви створюєте гру, де є персонажі з різними ролями. Зараз ви працюєте над класом Wizard, який має реалізовувати два інтерфейси - ICharacter та ISpellCaster. Визначте інтерфейси ICharacter та ISpellCaster так, щоб вони відповідали вимогам класу Wizard. Інтерфейс ICharacter повинен включати властивості name і level, і навіть метод introduce і levelUp. Інтерфейс ISpellCaster повинен включати метод castSpell. ```ts // реалізація класу Wizard class Wizard implements ICharacter, ISpellCaster { constructor(public name: string, public level: number) { if (this.level < 1) { throw new Error('Level too low'); } } introduce(phrase: string): void { console.log(phrase + ', ' + this.name); } castSpell(): void { console.log('Casting a spell, behold my power!'); } levelUp(): void { this.level++; console.log(`Level up! New level is ${this.level}`); } } // тестування класу const wizard = new Wizard('Merlin', 15); wizard.introduce('I am the mighty wizard'); wizard.castSpell(); wizard.levelUp(); // Level up! New level is 16 ``` # Завдання 4 * У цьому завдання вам належить реалізувати сценарій життя, де людина, ключ і будинок взаємодіють один з одним. Ключ (Key): Створіть клас Key. У нього має бути одна приватна властивість signature, яка генерується випадково при створенні об'єкта цього класу (наприклад Math.random()). Також цей клас повинен мати метод getSignature, який повертає значення властивості signature. Людина (Person): Створіть клас Person. Конструктор цього класу приймає об'єкт класу Key і зберігає їх у приватному властивості key. Клас Person повинен мати метод getKey, який повертає збережений ключ. Дім (House): Створіть абстрактний клас House. Цей клас має дві властивості: door, яка може бути відкрита (true), або закрита (false), і key, яка зберігає об'єкт класу Key. У цьому класі також повинен бути метод comeIn, який додає об'єкт класу Person у масив tenants, якщо door відкрита. Ваш абстрактний клас House також повинен мати абстрактний метод OpenDoor, який приймає об'єкт класу Key. Мій будинок (MyHouse): Створіть клас MyHouse, який успадковується від абстрактного класу House. Реалізуйте метод openDoor у цьому класі. Якщо ключ, переданий цьому методу, збігається з ключем, збереженим як key, то двері відчиняються. Після реалізації всіх класів створіть об'єкти для кожного класу та спробуйте відтворити сценарій, в якому людина приходить додому. Наприклад, ось так: ```ts const key = new Key(); const house = new MyHouse(key); const person = new Person(key); house.openDoor(person.getKey()); house.comeIn(person); ```
Homework for the course TypeScript📘
goit,html5,javascript,typescript,goit-typescript-hw-03
2023-10-19T20:22:21Z
2023-10-22T19:15:54Z
null
1
0
5
0
0
5
null
null
TypeScript
RealStr1ke/Schedulix
main
# Schedulix **Winner of the [NightHacks](https://nighthacks.devpost.com/) hackathon's top category: "Best Advanced Hack"** **Submission: [Devpost](https://devpost.com/software/schedulix)** ## Table of Contents - [Schedulix](#schedulix) - [Table of Contents](#table-of-contents) - [Description](#description) - [Inspiration](#inspiration) - [Algorithm](#algorithm) - [Usage](#usage) - [Contributing](#contributing) - [To-Do](#to-do) - [License](#license) ## Description Schedulix is a program that helps university students develop their course schedules for their upcoming semester. It takes in the user's preferences and generates multiple schedules that fit the user's preferences. The program is written in JavaScript and uses the [Node.js](https://nodejs.org/en/) runtime environment. ## Inspiration Having to make our college schedule while being dually enrolled in high school is such a pain especially having to consider so many variables, so we thought why not be able to automate this all the while still keeping our meticulous preferences in our schedule and on top of that give us multiple options to choose from. Multiple choice schedules perfect for everyone! ## [Algorithm](src/backend/README.md) ## Usage 1. Clone the repository 2. Run `node main.js` in the terminal (uses hardcoded preferences) 3. Currently, the program hardcodes the preferences, but it will be updated to take user input in the future ## Contributing If you want to help out with our code, contributions are welcomed! Feel free to fork the repository and make a pull request with your changes so we can review them :thumbsup:. If you have any questions, feel free to contact us. ## To-Do - [ ] Add user input - [ ] Add more preferences - [ ] Create a scraper to get course data from the university's website - [ ] Link the backend to the frontend ## License Unless otherwise specified, everything in this repository is covered by the [MIT License](https://choosealicense.com/licenses/mit/).
A program that helps university students develop their course schedules for their upcoming semester.
backend,frontend,gui,hackathon,javascript,node,nodejs,scheduler,svelte,university
2023-10-21T14:00:28Z
2023-11-08T22:10:15Z
null
4
1
29
1
2
5
null
MIT
JavaScript
tamalchowdhury/bankcardsbangladesh
main
# Bank Cards Bangladesh ⭐ Star this repo! A list of all bank cards in Bangladesh. Created to learn project management and help students get started with #hacktoberfest 2023 The goal of this project is to list all the bank cards in one place, so users can make an informed decision when making a bank account. ## List of Bank Cards in Bangladesh | Bank Name | Card Type | Yearly Card Fee | Source Link | Notes | |---|---|---|---|---| | BRAC Bank | Visa Debit Card | 1,500 | [Website](https://www.bracbank.com/schedule_of_charges_credit_card.html) | | | Dutch Bangla Bank | Visa Debit Card | 807 | [Website](https://www.dutchbanglabank.com/schedule_charge/credit-cards-charges.pdf) | | | City Bank | Visa Debit Card | 600 | [Website](https://www.thecitybank.com/download/VISA-Credit-Cards-Fees-Charges.pdf) | | | Bank Asia | Visa Signature Card | 2,000 | [Website](https://www.bankasia-bd.com/assets/downloads/Fess-and-charges-09.07.2023-05.pdf) | | | Eastern Bank | Visa Credit Card | 1,725 | [Website](https://www.ebl.com.bd/assets/home/schedule/SOC-Cards_-Effective-from-November-2023.pdf) | | | Social Islami Bank | Visa Credit Card | 1,200 | [Website](https://www.siblbd.com/retail-cards/Schedule-of-Charges) | | | Prime Bank Limited | Visa Credit Card | 2,000 | [Website](https://www.primebank.com.bd/assets/downloads/1688382349_soc_card_March_2023.pdf) | | | AB Bank Limited | Visa Credit Card | 3,000 | [Website](https://abbl.com/wp-content/uploads/2023/10/Schedule-of-Charges-17-10-23.pdf) | |
A list of all bank cards in Bangladesh. Created to learn project management and help students get started with #hacktoberfest 2023
bangladesh,bank,css,debitcard,hacktoberfest,hacktoberfest-accepted,hacktoberfest2023,html,javascript,reactjs
2023-10-15T15:07:33Z
2023-12-29T07:47:29Z
null
5
17
35
7
6
5
null
null
HTML
Madhav-MKNC/quick-read
main
<h1 align='center'>Chrome Extension: Quick-Read</h1> <div align="center"> <img src="imgs/icon-128.png" alt="Extension Logo" width="200"> <p>(Select a text, make it bionic, and read it quick)</p> </div> ## Table of Contents - [Overview](#overview) - [Features](#features) - [Getting Started](#getting-started) - [Installation](#installation) - [Usage](#usage) - [Screenshots](#screenshots) - [License](#license) - [Acknowledgments](#acknowledgments) - [Support](#support) ## Overview **Quick-Read** is a captivating Chrome extension designed to elevate your online reading experience. With a single click, it transforms mundane text into a stylish and visually engaging bionic readable format, making web content not only more exciting but also highly efficient. Embrace the future of web browsing with these key features: - 🚀 **Enhanced Reading:** Say goodbye to dull text. Quick-Read brings a touch of innovation to your reading, making every word pop on the screen. - ⏱️ **Boosted Productivity:** Speed up your information intake and save valuable time, perfect for professionals and students on the go. - 📚 **Rapid Comprehension:** Quick-Read helps you grasp the content faster with its unique text style, revolutionizing how you consume online information. - 🎨 **Personalization:** Tailor your reading experience with a range of bionic readable text styles. Express yourself and make your content stand out. ## Features - Convert selected text into a bionic readable format with a single click. - Easy installation and integration into the Chrome browser. ## Getting Started ### Installation 1. Clone this repository to your local machine or download it as a ZIP file. 2. Open Chrome and go to `chrome://extensions/`. 3. Enable "Developer mode" at the top right of the page. 4. Click the "Load unpacked" button and select the directory where the extension's files are located. ### Usage 0. Navigate to a webpage in Chrome. 1. **After Installing the extension for the first time make sure the refresh the page once for loading the content-scripts of the extension.** 2. Select any text on the webpage by clicking and dragging the mouse. (SKIP this step if modifying the whole page) 3. Click on the extension icon. 4. Click the 'quick-read' button. 5. OR skin 3 and 4, and just use the shortcut command "CTRL + Q" The selected text will be transformed into a bionic readable format instantly. ## Screenshots <div align="center"> <img src="imgs/screenshot.png" alt="Extension Logo" width="900"> </div> ## License This project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details. ## Acknowledgments The "Quick-Read" Chrome extension was created with the goal of enhancing the reading experience and increasing productivity for users. We believe that this tool offers several notable advantages: - **Enhanced Reading Experience:** "Quick-Read" transforms text into a more readable and stylish format, making content more visually appealing and engaging. - **Improved Productivity:** Users can consume information more efficiently, thanks to the bionic readable text format. This feature is especially helpful for busy professionals and students looking to save time while reading. - **Faster Text Comprehension:** By presenting text in a unique and attention-grabbing style, "Quick-Read" can help users read and understand content more quickly, benefiting both work and study environments. - **Customization and Personalization:** "Quick-Read" allows users to tailor their reading experience by choosing from various bionic readable text styles, promoting individuality and personal preferences. - **Innovation in Browsing:** This extension adds a touch of creativity to the browsing experience, demonstrating the potential for innovative text manipulation in web applications. We're excited to provide this tool to our users and hope it adds value to their online reading and research activities. Special thanks to the open-source community and contributors for their support and inspiration in making this project possible. ## Support If you encounter any problems with the extension, please [create an issue](https://github.com/Madhav-MKNC/quick-read/issue) on the GitHub repository. --- Enjoy transforming text into bionic readable format effortlessly with Bionic Text Converter!
Quick-Read is a captivating Chrome extension designed to elevate your online reading experience. With a single click, it transforms mundane text into a stylish and visually engaging bionic readable format, making web content not only more exciting but also highly efficient.
bionic-reading,chrome-extension,javascript,reading,typescript
2023-10-13T16:54:59Z
2023-11-30T17:07:49Z
null
1
8
49
0
1
5
null
MIT
JavaScript
ogayanfe/websandbox
main
# Websandbox - Code. Experiment. Create. The Online Sandbox For Your Programming Ideas.<br/> > Build your web application completely on the web. With html, css, javascript and typescript support by default.<br/><br/> ![websandbox-home-light](https://github.com/ogayanfe/websandbox/assets/95624629/c2a48e84-1dc1-4f0c-83c5-7bbb6e40eb73) ## Project Demo * Watch a video demo on <a href="https://www.youtube.com/watch?v=mwFe1FtTL7o" target="_blank">Youtube</a> * Go to <a href="https://websandboxx.netlify.app" target="_blank">project live demo</a>. * Images are provided at the end of the page.<br/> ## Project Features - A code editor. - Live reloading. - A browser for viewing project output. - Ability to save your project. - Ability to view other users work. - Login and Logout. ## Tools - Python - Typescript - Django and Django rest framework - React - Vite - React router - Webcontainers - Tailwind css - Material ui and Material ui icons ## Setting up locally - Clone the project to your local computer using git via command `git clone https://github.com/ogayanfe/birdie.git`. You can simply download the zip folder and unzip if you don't have git installed. - `cd` into the application folder using your terminal. - `cd` into the backend direcory via the command `cd backend`. - You can create and activate a virtual environment here. - `cd` into the backend directory and run the command `python3 install -r requirments.txt` or `python install -r requirements.txt` on windows to install requirements. - You will lead to provide the following environment variables in your prduction environment. 1. `SECRET_KEY` - Your django secret key. COMPULSORY. 2. `DEBUG` - Whether the code should run in debug mode. It's value is either `True` or `False`. Defaults to `True` 3. `AWS_ACCESS_KEY_ID` - Your AWS access key id. 4. `AWS_SECRET_ACCESS_KEY_ID` - Your AWS secret access key id. 5. `AWS_STORAGE_BUCKET_NAME` - Your AWS bucket name. 6. `USE_S3` - Whether the project should use aws s3 storage. It's value is either `True` or `False`. Default to `!DEBUG` - Run the command `python3 manage.py migrate` or `python manage.py migrate` on windows to load the database. - Run the command `python3 manage.py runserver` or `python manage.py runserver` on windows to start the django development server. - Go back into the root folder of the repo and `cd` into the websandbox folder with command `cd websandbox` - Run the command `npm install` to install requirements - Run the command `npm run dev` to start the react development server. - Navigate to the url `localhost:5173` on your browser ## License > Licensed under <a href='https://github.com/ogayanfe/websandbox?tab=GPL-3.0-1-ov-file#GPL-3.0-1-ov-file'>GPL-3.0</a> ## Image Galary > ### Landing Page >![websandbox-home-light](https://github.com/ogayanfe/websandbox/assets/95624629/c2a48e84-1dc1-4f0c-83c5-7bbb6e40eb73) >![websandbox-home-dark](https://github.com/ogayanfe/websandbox/assets/95624629/faa16e44-e6f9-4774-b893-3fc676f830f0) ### Dashboard > ![websandboxx netlify app_dashboard_ (3)](https://github.com/ogayanfe/websandbox/assets/95624629/86b866b5-b5a5-472b-8dc6-4404dd630398) <br/> > ![websandboxx netlify app_dashboard_ (1)](https://github.com/ogayanfe/websandbox/assets/95624629/9c67f93e-4286-4bb6-8fcb-3bbcc4a0c05e) <br/><br/> ### Demos > ![websandbox-demos-light](https://github.com/ogayanfe/websandbox/assets/95624629/45d9ce62-7c07-4f78-94a0-fd48e327c1c1) <br/> > ![websandbox-demos-dark](https://github.com/ogayanfe/websandbox/assets/95624629/8b0969ce-b1ce-4d3d-ab2e-8b71450b209a)<br/><br/> ## Sandbox Editor > ![websandbox-editor-light](https://github.com/ogayanfe/websandbox/assets/95624629/f631f5cc-492c-4e7f-afb1-6a9e655a6efd)<br/> > ![websandbox-editor-dark](https://github.com/ogayanfe/websandbox/assets/95624629/d4ea3636-0a74-4d67-9f71-6903b7640ff1)<br/><br/> ### Sandbox Editor with output > ![websandbox-editor-project-light](https://github.com/ogayanfe/websandbox/assets/95624629/49ef34d6-3ded-4ebf-a732-42ca73358df7)<br/> > ![websandbox-editor-project-dark](https://github.com/ogayanfe/websandbox/assets/95624629/4c8d638d-b951-4316-835d-ce8decb54bc4)<br/><br/>
An online frontend programming sandbox with integrated browser with live reloading built using react, react-dom, django and the webcontainer api
code-editor,django,django-rest-framework,full-stack,ide,javascript,online-editor,python,react,react-router
2023-10-31T13:42:59Z
2024-05-11T20:21:44Z
null
1
0
135
0
2
5
null
GPL-3.0
TypeScript
LuxChanLu/n8n-nodes-nats
master
![Banner image](https://user-images.githubusercontent.com/10284570/173569848-c624317f-42b1-45a6-ab09-f0ea3c247648.png) # n8n-nodes-starter This repo contains example nodes to help you get started building your own custom integrations for [n8n](n8n.io). It includes the node linter and other dependencies. To make your custom node available to the community, you must create it as an npm package, and [submit it to the npm registry](https://docs.npmjs.com/packages-and-modules/contributing-packages-to-the-registry). ## Prerequisites You need the following installed on your development machine: * [git](https://git-scm.com/downloads) * Node.js and npm. Minimum version Node 16. You can find instructions on how to install both using nvm (Node Version Manager) for Linux, Mac, and WSL [here](https://github.com/nvm-sh/nvm). For Windows users, refer to Microsoft's guide to [Install NodeJS on Windows](https://docs.microsoft.com/en-us/windows/dev-environment/javascript/nodejs-on-windows). * Install n8n with: ``` npm install n8n -g ``` * Recommended: follow n8n's guide to [set up your development environment](https://docs.n8n.io/integrations/creating-nodes/build/node-development-environment/). ## Using this starter These are the basic steps for working with the starter. For detailed guidance on creating and publishing nodes, refer to the [documentation](https://docs.n8n.io/integrations/creating-nodes/). 1. [Generate a new repository](https://github.com/n8n-io/n8n-nodes-starter/generate) from this template repository. 2. Clone your new repo: ``` git clone https://github.com/<your organization>/<your-repo-name>.git ``` 3. Run `npm i` to install dependencies. 4. Open the project in your editor. 5. Browse the examples in `/nodes` and `/credentials`. Modify the examples, or replace them with your own nodes. 6. Update the `package.json` to match your details. 7. Run `npm run lint` to check for errors or `npm run lintfix` to automatically fix errors when possible. 8. Test your node locally. Refer to [Run your node locally](https://docs.n8n.io/integrations/creating-nodes/test/run-node-locally/) for guidance. 9. Replace this README with documentation for your node. Use the [README_TEMPLATE](README_TEMPLATE.md) to get started. 10. Update the LICENSE file to use your details. 11. [Publish](https://docs.npmjs.com/packages-and-modules/contributing-packages-to-the-registry) your package to npm. ## More information Refer to our [documentation on creating nodes](https://docs.n8n.io/integrations/creating-nodes/) for detailed information on building your own nodes. ## License [MIT](https://github.com/n8n-io/n8n-nodes-starter/blob/master/LICENSE.md)
NATS N8n
javascript,n8n,n8n-community-node-package,jetstream,nats
2023-10-27T16:36:49Z
2024-02-12T20:25:24Z
null
2
2
22
2
1
5
null
MIT
TypeScript
vaxad/RakshakRita
main
12 ![image](https://res.cloudinary.com/db670bhmc/image/upload/v1701883990/288483773-8a885afc-c2ee-4ced-a97b-d38f09b1edc3_bfc5wj.png) --- # RakshakRita - Empowering Citizen Voices ## Project Overview RakshakRita is a platform designed to empower citizens by providing them with a voice to express their opinions and concerns. It serves as a bridge between the public and law enforcement, ensuring that citizen feedback is not only heard but also acted upon. This README provides an overview of the project, its features, and how users can contribute. ## How It Works Rakshakrita operates on a simple yet effective process: 1. **Access the Platform**: Users can voice their opinions by scanning the QR code, which redirects them to the official Rakshakrita website. 2. **User Registration and Anonymity**: For first-time users, a unique ID is generated to distinguish between users without compromising anonymity. The user's location is verified within a 100-meter radius of the police station to ensure local relevance. 3. **Multilingual Support**: Rakshakrita supports multiple languages, allowing users to express themselves in the language they are most comfortable with. 4. **User-Friendly Feedback Form**: The feedback form provides a user-friendly experience, offering an array of options. Users fill a mandatory field describing their problem, answer objective questions, and can use speech-to-text or attach media for more detailed feedback. 5. **Machine Learning Analysis**: Feedback elements undergo analysis through a machine learning model, categorizing descriptions as positive or negative. The results are stored in a database for authorities to review and generate reports. 6. **Additional Features**: - Feedback Reports: Users can view reports highlighting the public opinion on different police stations. - Live Heatmaps: Visual representation of the intensity of negative feedback for various localities. 7. **Periodic Reports to Higher Authorities**: Regular reports are sent to higher authorities, providing detailed insights into police stations under their jurisdictions. This aids in identifying and addressing potential issues promptly. ## Getting Started To contribute to Rakshakrita, follow these steps: 1. Clone the repository: `git clone https://github.com/vaxad/rakshakrita.git` 2. Install dependencies: `npm install` 3. Contribute to the codebase. 4. Submit a pull request. ## Additional Information For more details on Rakshakrita, visit our [official website](https://rakshakrita0.vercel.app/). Your feedback is crucial in making a positive impact on law enforcement and public safety. Thank you for using Rakshakrita. Your voice shall not go unheard. Together, we make a difference!
Rakshakrita: Empowering citizens to voice concerns. Scan the QR code, share feedback in multiple languages, with anonymity. ML analysis for actionable reports. See public opinions, live heatmaps. Periodic reports to authorities.
feedback,javascript,leafletjs,nextjs
2023-10-24T16:01:38Z
2023-12-19T14:33:46Z
null
2
31
97
0
1
5
null
null
JavaScript
KiranPolaki/GuessTheNumber-Game-JS
main
<div align="center"> <h1>Guess My Number</h1> <img src="/images/Helping people learn Web and DSA.png"> </div> ![GitHub repo size](https://img.shields.io/github/repo-size/KiranPolaki/GuessTheNumber) ![GitHub last commit](https://img.shields.io/github/last-commit/KiranPolaki/GuessTheNumber) ![GitHub issues](https://img.shields.io/github/issues/KiranPolaki/GuessTheNumber) ![GitHub pull requests](https://img.shields.io/github/issues-pr/KiranPolaki/GuessTheNumber) ![GitHub contributors](https://img.shields.io/github/contributors/KiranPolaki/GuessTheNumber) ![GitHub stars](https://img.shields.io/github/stars/KiranPolaki/GuessTheNumber?style=social) ![GitHub forks](https://img.shields.io/github/forks/KiranPolaki/GuessTheNumber?style=social) ## Table of Contents - [Features](#features) - [Preview](#preview) - [Getting Started](#getting-started) - [How to Contribute](#how-to-contribute) - [License](#license) - [Contributor List](#contributor-list) ## 🗒️Features - **Guess My Number game:** Enter any number in the box and click the `Check!` button and you will be guided depending on if your number is correct or not. - **Score:** Score will be decreased for every wrong guess so be careful. - **High Score:** Once you guess the correct number, your current high score will also be updated. - **Open for Contributions:** This project is open for contributions. Feel free to add any suggested features and if you are new to contributions, I encourage you to work on the readme file or add your name in the NewContributors file (format of what to put will be provided below). - **Cool UI:** This project has an eye-catching UI, with some interactive components. If you have a better idea, you are open to contribute on UI features. See [How to Contibute](#🧩how-to-contribute) to this repository. - **Own Cdn:** For new contributors, I really appreciate you taking your time to read this and all the best in starting your journey. All you have to do is, find the newContributor.html file and add this code snippet given below. Make sure to edit it 🤣 with your name and interests. - ``` <h2 class="name">Name: {your-name}</h2> <p class="interests-field">Interested Field: {Web-developent/Ai/Machine-Learning/cloud-computing/salesforce}</p> <p class="college">College: {college-name}</p> <p class="dream">Dream: {i want to get the one piece 🤣}</p> ``` Use this to get started. ### `Star` the repository, if you found it helpful/wonderful. ## 🗒️Getting Started To get started with GuessMyNumber, You can use GuessMyNumber from [Live Site](https://kiranpolaki.github.io/GuessTheNumber-Game-JS/) or follow these steps: 1. **Clone the Repository:** ```sh git clone https://github.com/KiranPolaki/GuessTheNumber.git cd GuessTheNumber ``` 2. **Open `index.html` in Your Browser:** Simply open the `index.html` file in your preferred web browser to start using GuessMyNumber. ## 🧩How to Contribute - Go to [Contributing.md](Contributing.md) to get a brief idea about how to make a pull request and contribute to this repository. #### follow all the steps to get your PR successfully merged ## 🔑License This project is licensed under the [MIT License](LICENSE) ## 🛂Contributor List Thanks to all the contributors: <br/> <a href="https://github.com/KiranPolaki/GuessTheNumber-Game-JS/graphs/contributors"> <img src="https://contrib.rocks/image?repo=KiranPolaki/GuessTheNumber-Game-JS" /> </a>
Guess the number game🥂.
css,html,javascript,open-source
2023-10-24T07:33:43Z
2024-02-07T17:00:49Z
null
13
26
69
0
12
5
null
MIT
JavaScript
worldbestpro/deno-swc-complier
master
<br /> <p align="center"> <a href="https://github.com/littledivy/deno_swc"> <img src="https://raw.githubusercontent.com/littledivy/deno_swc/master/assets/deno_swc.png" alt="deno_swc logo" width="310"> </a> <h3 align="center">deno_swc</h3> <p align="center"> The SWC compiler for Deno. </p> </p> ![ci](https://github.com/littledivy/deno_swc/workflows/ci/badge.svg) ![](https://img.shields.io/github/v/release/littledivy/deno_swc?style=plastic) # Usage `parse()` ```typescript import { parse, print } from "https://deno.land/x/swc@0.2.1/mod.ts"; const code = `const x: string = "Hello, Deno SWC!"`; const ast = parse(code, { target: "es2019", syntax: "typescript", comments: false, }); // { // type: "Module", // span: { start: 0, end: 36, ctxt: 0 }, // body: [ // { // type: "VariableDeclaration", // span: [Object], // kind: "const", // declare: false, // declarations: [Array] // } // ], // interpreter: null // } ``` `print()` ```typescript const { code } = print(ast, { minify: true, module: { type: "commonjs", }, }); // const x = "Hello, Deno SWC!" ``` ...and `transform()` ```typescript const { code } = transform("const x: number = 2;", { jsc: { target: "es2016", parser: { syntax: "typescript", }, }, }); // const x = 2; ``` ## Copyright deno_swc is licensed under the MIT license. Please see the [LICENSE](LICENSE) file.
The SWC compiler for Deno.
ast,bundler,deno,hacktoberfest,javascript,parser,rust,spack,swc,typescript
2023-10-24T12:24:52Z
2022-07-12T16:42:20Z
null
4
0
179
0
0
5
null
MIT
JavaScript
Saurav9284/Glossier_Project
master
**A collaborative project from Masai school.** **Deployed Link** https://delightful-phoenix-888d86.netlify.app/ *Glossier clone.* First of all, I want to thank the Masai school for giving me this opportunity to work on a collaborative project and enhance my coding skills. we learned a lot while working on this project. we failed so many times and we never give up, in the last we finally made our Project successfully. **Team-Members.** Saurav Chavan. (https://github.com/Saurav9284) Raghav Bhati. (https://github.com/Raghavbhati) Narsimma Yemul. (https://github.com/Narsimmayemul) Abhishek.M.V.R. (https://github.com/Abhishek000000000000000000) Vivek Verma. (https://github.com/vivekverma4669) **In the construct week.** This is our second collaborative project from the Masai school, and we got only 1 week to complete it, so it was a challenging journey for us. we faced a lot of challenges because some things are new to us and we have to complete it on time, so we first decide to study our website and then divide our work. we learned a lot while working together, we failed a lot of times but we never give up, we used to help each other solve the problems of our project, and in the last, we finally made our project successfully. **Description of Project.** The Masai school give our team to clone the website Glossier. Glossier is a popular cosmetics and skincare company known for its minimalist and clean product designs. They sell a variety of makeup, skincare, and beauty products, and they have an online store where you can browse and purchase their products. we gave our best to clone this website. **Images of our project.** **Homepage.** This is the homepage of our Project. ![Screenshot 2023-10-23 212005](https://github.com/Saurav9284/Unite-5-Project-Female-Beauty-Product-/assets/135011685/4a942156-5d85-4679-8b42-0878efc9cac5) **Login or signup page.** ![Screenshot 2023-10-23 212023](https://github.com/Saurav9284/Unite-5-Project-Female-Beauty-Product-/assets/135011685/2f140bc8-c7d4-42ce-bfeb-b4d29e7633a9) **Product page.** ![Screenshot 2023-11-30 174700](https://github.com/Saurav9284/Unite-5-Project-Female-Beauty-Product-/assets/135011685/5cb97f99-1358-44b6-aa11-3b2ee0ca4300) **Product details page** https://github.com/Saurav9284/Unite-5-Project-Female-Beauty-Product-/assets/135011685/f152f97c-60e8-485d-820a-8367ab436f9e **Checkout page** ![Screenshot 2023-11-30 175243](https://github.com/Saurav9284/Unite-5-Project-Female-Beauty-Product-/assets/135011685/e191bc1e-09a4-4c16-a7da-e4dcbc3e025b) **Payment page.** This is our payment page after placing an order, the user will have some options for payment. e.g cash on delivery, debit/credit card, etc. ![Screenshot 2023-11-30 175257](https://github.com/Saurav9284/Unite-5-Project-Female-Beauty-Product-/assets/135011685/33352672-4f5d-419b-a7f8-7171463e900d) ![Screenshot 2023-11-30 175311](https://github.com/Saurav9284/Unite-5-Project-Female-Beauty-Product-/assets/135011685/ad18e494-ec85-4b85-be79-8711f5ad0e31) **Payment successful page** ![Screenshot 2023-11-30 175329](https://github.com/Saurav9284/Unite-5-Project-Female-Beauty-Product-/assets/135011685/f056120e-5144-4558-8b3e-1e787f646116) **Collaboration tools.** *Git and Github.* Git: Git is software for tracking changes in any set of files, usually used for coordinating work among programmers collaboratively developing source code during software development. Its goals include speed, data integrity, and support for distributed, non-linear workflows Github: GitHub, Inc. is a provider of Internet hosting for software development and version control using Git. It offers the distributed version control and source code management functionality of Git, plus its features. https://github.com/Saurav9284/Unite-5-Project-Female-Beauty-Product- this is our project git hub link. We all became proficient in reading the code of team members. and we learned How to work and communicate with a team. and how to keep motivated each other throughout the problems. **At last, I would like to thank our mentors and my team members for their support & guidance during the project.**
Glossier is a popular cosmetics and skincare company known for its minimalist and clean product designs. They sell a variety of makeup, skincare, and beauty products, and they have an online store where you can browse and purchase their products.
css,firebase,html,javascript,json-server,razorpay
2023-10-16T18:19:44Z
2023-12-19T13:42:31Z
null
5
9
95
0
2
5
null
null
HTML
ljharb/set-function-length
main
# set-function-length <sup>[![Version Badge][npm-version-svg]][package-url]</sup> [![github actions][actions-image]][actions-url] [![coverage][codecov-image]][codecov-url] [![License][license-image]][license-url] [![Downloads][downloads-image]][downloads-url] [![npm badge][npm-badge-png]][package-url] Set a function’s length. Arguments: - `fn`: the function - `length`: the new length. Must be an integer between 0 and 2**32. - `loose`: Optional. If true, and the length fails to be set, do not throw. Default false. Returns `fn`. ## Usage ```javascript var setFunctionLength = require('set-function-length'); var assert = require('assert'); function zero() {} function one(_) {} function two(_, __) {} assert.equal(zero.length, 0); assert.equal(one.length, 1); assert.equal(two.length, 2); assert.equal(setFunctionLength(zero, 10), zero); assert.equal(setFunctionLength(one, 11), one); assert.equal(setFunctionLength(two, 12), two); assert.equal(zero.length, 10); assert.equal(one.length, 11); assert.equal(two.length, 12); ``` [package-url]: https://npmjs.org/package/set-function-length [npm-version-svg]: https://versionbadg.es/ljharb/set-function-length.svg [deps-svg]: https://david-dm.org/ljharb/set-function-length.svg [deps-url]: https://david-dm.org/ljharb/set-function-length [dev-deps-svg]: https://david-dm.org/ljharb/set-function-length/dev-status.svg [dev-deps-url]: https://david-dm.org/ljharb/set-function-length#info=devDependencies [npm-badge-png]: https://nodei.co/npm/set-function-length.png?downloads=true&stars=true [license-image]: https://img.shields.io/npm/l/set-function-length.svg [license-url]: LICENSE [downloads-image]: https://img.shields.io/npm/dm/set-function-length.svg [downloads-url]: https://npm-stat.com/charts.html?package=set-function-length [codecov-image]: https://codecov.io/gh/ljharb/set-function-length/branch/main/graphs/badge.svg [codecov-url]: https://app.codecov.io/gh/ljharb/set-function-length/ [actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/ljharb/set-function-length [actions-url]: https://github.com/ljharb/set-function-length/actions
Set a function's length property
ecmascript,function,javascript,length,set
2023-10-12T21:29:58Z
2024-03-09T17:40:53Z
null
1
0
33
1
0
5
null
MIT
JavaScript
AutumnVN/highlight
main
# highlight A Chrome extension to highlight any raw code text (with [shiki](https://github.com/shikijs/shiki)) and beautify HTML, CSS, JS (with [beautifier.io](https://github.com/beautifier/beautifier.io)) highlight.js version: [branch hljs](https://github.com/AutumnVN/highlight/tree/hljs) ## Preview ![image](https://github.com/AutumnVN/highlight/assets/77253698/2f696a68-86e8-4f52-b34a-bb17e345c7ea) ## Installation 1. Clone this repo ``` git clone https://github.com/AutumnVN/highlight ``` 2. Go to `chrome://extensions/` 3. Enable `Developer mode` 4. Click `Load unpacked` and select the cloned folder
Highlight & beautify raw code text
beautify,chrome,chrome-extension,css,extension,highlight,highlightjs,html,javascript
2023-11-07T14:16:56Z
2023-11-30T06:38:08Z
null
1
0
4
0
0
5
null
MIT
JavaScript
abdulrahmans0414/libas-e-commerce
master
# Libas E-Commerce ## Description Libas E-Commerce is a web application designed for online clothing shopping. This platform offers a user-friendly interface for users to browse through a diverse range of clothing products, manage their shopping cart, and securely make payments. The project emphasizes a responsive design to ensure a seamless experience across various devices. ## Features - **Product Catalog:** Explore a wide selection of clothing products categorized for easy navigation. - **Shopping Cart:** Add, remove, and manage items in the shopping cart with ease. - **Responsive Design:** Enjoy a consistent and user-friendly experience on desktops, tablets, and mobile devices. ## Getting Started 1. Clone the repository: ``` git clone https://github.com/abdulrahmans0414/libas-e-commerce.git ``` 2. Navigate to the project directory: ``` cd libas-e-commerce ``` ## Contributing Contributions are welcome! If you'd like to contribute to libas-e-commerce, please follow these steps: 1. Fork the repository. 2. Create a new branch for your feature or bug fix: `git checkout -b my-feature` 3. Commit your changes: `git commit -m 'Add some feature'` 4. Push to the branch: `git push origin my-feature` 5. Open a pull request. ## License This project is licensed under the [MIT License](LICENSE).
Libas E-Commerce is a web application crafted with HTML, CSS, and JavaScript, offering a seamless online shopping experience for clothing enthusiasts.
css,html5,javascript,responsive
2023-10-14T19:02:19Z
2023-11-28T12:20:41Z
null
1
0
44
0
4
5
null
null
HTML