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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
joysarkar18/Hackaut-web | main | # 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
| This is the official web site of coding club hackaut. | css,javascript,react,tailwindcss | 2023-08-12T17:31:28Z | 2024-03-15T17:30:44Z | null | 7 | 0 | 42 | 0 | 0 | 2 | null | MIT | JavaScript |
Ricardofreitasdev/Tray-chrome-extension | main | # Tray Chrome extension
Extensão do chrome com recursos que facilitam o trabalho com lojas Tray.
## Recursos
Aba Loja
Dados da loja
- ID da loja
- ID da sessão
- Código do GTM
- Código do GA4
- Código do Pixel do Facebook
Úteis
- Remover Tema
- Remover Scripts Externos
- Report de scripts inlines bloqueados por CSP
Histórico de uso da extensão
- Histórico das últimas 4 lojas visitadas.
Aba Ferramentas
- Gerar CPF com um click
- Limpar localStorage
- Whats My Dns
- Pagespeed
- Search Console
- Sitemap
- Robots
- Tag Assistant
- Documentação de APIs
- Documentação de Temas
## Uso
Para usar a versão simples no seu navegador, basta seguir as orientações:
Click em `code` > `download ZIP`

Descompacte o ZIP na sua pasta de preferência
Acesse `chrome://extensions/` com o modo do `desenvolvedor` ativo, click em `carregar sem compactação`, localize a pasta descompactada e click em `selecionar`
Com Isso a extensão já irá carregar

## Uso da versão com ambiente de DEV
Para instalar a versão de DEV é necessário ter o arquivo **tray-chrome-extension.sh** com as chaves de ambiente.
Tendo o script, basta realizar o processo:
- De permissão para o script
```bash
chmod +x tray-chrome-extension.sh
```
- Instale o projeto e dependências
```bash
./tray-chrome-extension.sh
```
## Desenvolvimento
Clone o repositório
```sh
git clone https://github.com/Ricardofreitasdev/Tray-chrome-extension.git
```
Entre na pasta do projeto
```sh
cd Tray-chrome-extension
```
Instale as dependencias
```sh
yarn install
```
Execute a aplicação
```sh
yarn dev
```
Após desenvolvimento faça o build
```sh
yarn build
```
| Chrome extension with tools that make working with Tray stores easier | chrome-extension,vue3,composition-api,front-end-development,composables,javascript,scss | 2023-08-27T17:35:24Z | 2024-04-28T18:39:12Z | 2024-04-28T18:39:12Z | 1 | 16 | 48 | 0 | 0 | 2 | null | null | Vue |
mounishvatti/HealthyYou | main | # Healthy-You
<img src="/src/assets/img/forReadme/1.png" alt="">
# Features
<img src="/src/assets/img/forReadme/2.png" alt="">
<img src="/src/assets/img/forReadme/3.png" alt="">
<img src="/src/assets/img/forReadme/4.png" alt="">
<img src="/src/assets/img/forReadme/5.png" alt="">
## Tech Stack
- Frontend: HTML5, CSS3, JS
<img src="/src/assets/img/forReadme/6.png" alt="">
### Note: This website is still under development
| Healthy-You is a responsive medical web-portal which provides access to various health blogs, online doctor consultation and pharmacy. | bootstrap,css3,html5,javascript | 2023-08-30T17:04:24Z | 2024-04-29T12:09:50Z | null | 5 | 67 | 261 | 0 | 0 | 2 | null | MIT | CSS |
IzaacCoding36/NeoMedia | main | # Neo-Media
Esse repositório foi criado para exibir uma página funcional com implementação de áudios via JavaScript.
Nesse site, foram utilizados alguns sons famosos pela internet como um "soundboard", enfim, confira o código disponibilizado como exemplo.

| Esse repositório foi criado para exibir uma página funcional com implementação de áudios via JavaScript | audio-player,javascript,memes,site | 2023-09-06T03:20:44Z | 2024-05-19T23:05:05Z | null | 1 | 0 | 12 | 0 | 0 | 2 | null | MIT | CSS |
appsaeed/appsaeed.github.io | main | 
## Hi <img src="https://raw.githubusercontent.com/appsaeed/assets/main/emoji/hello.gif" width="30" alt="hi" />, Nice to see you.
I'm Saeed, a Full Stack Web Application Developer with good expertise in JavaScript, React.js, Laravel, Headless Technology, and everything related to APIs. I also specialize in TailwindCSS, and WordPress, including themes, plugins, and Rest APIs. Currently, **I'm open to work and employment opportunities**.
Experience working in freelance marketplaces (Fiverr Level 2) specializing in Laravel, WordPress themes/plugins, and APIs. I actively build business development projects, user products, and consumer needs.
## Full portfolio: [https://appsaeed.github.io](https://appsaeed.github.io)
- ✅ Skilled full-stack developer proficient in Laravel, Node.js, and the modern JavaScript ecosystem (ReactJS, TailwindCSS).
- 🧑🤝🧑 Currently contributing to open-source projects & creating packages/plugins e.g [utilies](https://github.com/appsaeed/utilies) | [vite-svg](https://github.com/appsaeed/vite-svg) | [vite-sitemap](https://github.com/appsaeed/vite-sitemap).
- 🔭 Continuous improvement in programming, soft skills, and new tools fuels innovation and high performance.
- 🌱 Always learning and believe that every day is a learning opportunity.
- 👯 Open to work and employment opportunities (remote/on-location).
- 💬 Ask me anything about JavaScript, Typescript, ReactJS, PHP, Laravel, WordPress, and APIs!
- 📫 For quick contact, please send an email to: [appsaeed7@gmail.com](mailto:appsaeed7@gmail.com).
- 😄 Pronouns: He, Him & Happy 😄.
- 🛬 Fun fact: I love to travel, read books, Watch movies, YouTube videos, and listen to music.
- 🔧 Most used tools: VS Code, AI, Terminal, Linux, Windows, Docker, Browsers, etc.
### Things I Code With
































<table>
<thead>
<tr style="border: none;">
<td style="min-width:160px"><b>Project name</b></td>
<td><b>Description</b></td>
<td><b>Tags</b></td>
</tr>
</thead>
<tbody>
<tr>
<td>
<a href="https://github.com/appsaeed/laravel-saas-app" target="_blank">Laravel SaaS Application</a>
<br/>
<br/>
<a href="https://saastask.onrender.com" target="_blank">demo link</a>
</td>
<td>Built a Laravel SaaS app with user/admin dashboards and a custom real-time chat that facilitates
seamless communication. I successfully tackled chat integration challenges through rigorous testing and
debugging, and implemented automated cron jobs to ensure smooth operation. The application also empowers
super admins with control over environment and settings.</td>
<td>Laravel | Blade | API</td>
</tr>
<tr>
<td>
<a href="https://github.com/appsaeed/task" target="_blank">Pretty Task</a>
<br/>
<br/>
<a href="https://appsaeed.github.io/task/" target="_blank">demo link</a>
</td>
<td>Implemented a modern, scalable task management application using the latest tech stack: ReactJS,
TypeScript, and TailwindCSS. Leveraged Firebase's serverless architecture for efficient backend
operations, minimizing maintenance and enabling real-time data synchronization. Implemented server-side
push notifications with Node.js to ensure users receive instant task updates</td>
<td>Javascript | NodeJS | TypeScript | TailwindCSS</td>
</tr>
<tr>
<td>
<a href="https://github.com/appsaeed/auxonic" target="_blank">Auxonic beta tools</a>
<br/>
<br/>
<a href="https://appsaeed.github.io/auxonic/" target="_blank">demo link</a>
</td>
<td>This is a web-based developer toolkit built with React.js and TypeScript for lightning-fast performance.
It offers essential tools like image-to-text conversion and IP lookup, all in one convenient platform.
Firebase Authentication keeps things secure and lets you personalize your experience</td>
<td>Firebase | Tailwindcss | Reactjs | Typescript</td>
</tr>
<tr>
<td>
<a href="https://github.com/appsaeed/asc" target="_blank">AI Content Creation</a>
<br/>
<br/>
<a href="https://appsaeed.github.io/asc" target="_blank">demo link</a>
</td>
<td>Revolutionize Content Creation with the Web-Based AI Tool - Powered by WordPress, ReactJS, and
TypeScript seamlessly integrated into the WordPress backend and brought to life with the dynamic UI
design on the frontend. This powerhouse tool empowers users to effortlessly generate email content,
craft engaging blogs, and create captivating articles, among many other possibilities</td>
<td>Wordpress | API | React.JS | Typescript</td>
</tr>
<tr>
<td>
<a href="https://github.com/appsaeed/nodejs-course-streaming" target="_blank">NodeJS courses
streaming</a>
<br/>
<br/>
<a href="#" target="_blank">demo link</a>
</td>
<td>Master Node.js interactively! This platform offers YouTube/Udemy-like features for students & teachers:
Watch lectures, build content & playlists, discuss concepts, track progress, leverage comments & likes.
Replay abilities empower teachers. Go beyond videos: Implement full-stack with Custom Model Queries
(toughest challenge, but aced it with Laravel knowledge!)</td>
<td>NodeJS | ExpressJS | EJS | Database</td>
</tr>
<tr>
<td>
<a href="https://github.com/appsaeed/utilies?tab=readme-ov-file#other-packages" target="_blank">NPM
Packages</a>
<br/>
<br/>
<a href="https://www.npmjs.com/package/utilies#other-packages" target="_blank">demo link</a>
</td>
<td>
Published npm packages: (Javascript utility package) for JS utilities functions and methods to integrate
and enhance developer experiences in the development of an application faster.
Open-Source Contributor: exploring and contributing to open source javascript, react, PHP, and laravel
projects.
Vite.js Plugins: Developed (vite-svg, vite-sitemap) for SVG integration & sitemap generation. (Focuses
on Vite and key functionalities)
</td>
<td>Javascript package | NPM Packages | Vite Plugins</td>
</tr>
</tbody>
</table>
## Where to Find Me
[](mailto:appsaeed7@gmail.com)
[](https://www.linkedin.com/in/appsaeed/)
[](https://appsaeed.github.io)
## Statistics



<br>
<!-- 
 -->
| My professional portfolio demonstrates my expertise in building impactful web applications | application,appsaeed,full-stack-web-development,javascript,nodejs,php,ractjs,software-development | 2023-08-09T19:40:01Z | 2024-05-21T16:49:50Z | null | 1 | 6 | 118 | 0 | 0 | 2 | null | MIT | TypeScript |
yohhannees/Job-Portal | main | null | Job Searching Website | bootstrap,javascript,mysql,php,xampp | 2023-08-14T21:30:29Z | 2023-08-14T21:28:25Z | null | 1 | 0 | 3 | 0 | 0 | 2 | null | null | PHP |
Moaz-ashraf1/natours | main | # Natours App
## Introduction 🌟
Welcome to Natours! This application is designed to showcase the beauty of nature and provide adventurous tours to various destinations. Experience breathtaking landscapes, exciting activities, and a community of fellow nature enthusiasts. Dive into the wild with Natours!
## Technologies 🚀
- Node.js
- Express.js
- MongoDB
- Mongoose
- HTML, CSS
- Pug (Template Engine)
- Mapbox
- Stripe
- JSON Web Token
- Nodemailer
- Gmail
## Features ✨
- Browse and book a variety of nature tours.
- Detailed information about each tour, including duration, difficulty, and price.
- User authentication and account management.
- Interactive maps to visualize tour destinations.
- Tour reviews and ratings by fellow travelers.
## Setting Up Your Local Environment
Follow these steps to set up your local environment for the Natours app:
1. **Clone the Repository:**
Clone this repository to your local machine:
```bash
git clone https://github.com/Moaz-ashraf1/natours.git
cd natours
```
2. **Install Dependencies:**
Run the following command to install all the required dependencies:
```bash
npm install
```
3. **Configure Environment Variables:**
Before you can run the Natours app, you need to set up your environment variables. These variables store sensitive information required for the app to function properly. Follow these steps to configure your environment variables:
1. **Create a `.env` File:**
In the root directory of the app, create a file named `.env`.
2. **Add the Following Environment Variables:**
Replace the placeholders with your actual information. You might need to sign up for accounts and services to obtain the required credentials.
```dotenv
# MongoDB Configuration
DATABASE=your-mongodb-database-url
USERNAME=your-mongodb-username
DATABASE_PASSWORD=your-mongodb-password
# JSON Web Token Configuration
SECRET=your-json-web-token-secret
JWT_EXPIRES_IN=90d
JWT_COOKIE_EXPIRES_IN=90
# Stripe Configuration
STRIPE_SECRET_KEY=your-stripe-secret-key
STRIPE_WEBHOOK_SECRET=your-stripe-webhook-secret
```
## Project Demo 🎬
Explore the Natours app in action:
[**Natours App Demo**](https://natours-moaz.up.railway.app/my-tours)
Witness the magic and start your journey today! 🌄
| null | es6,express,javascript,mongodb,mongoose,multer,nodejs,sharp,stripe | 2023-08-17T19:20:40Z | 2023-09-05T12:48:50Z | null | 1 | 0 | 43 | 0 | 0 | 2 | null | null | JavaScript |
DevExpress-Examples/devextreme-treelist-export-to-excel | 22.2.3+ | <!-- default badges list -->

[](https://supportcenter.devexpress.com/ticket/details/T1188167)
[](https://docs.devexpress.com/GeneralInformation/403183)
<!-- default badges end -->
# TreeList for DevExtreme - Export to Excel
While TreeList does not have a built-in export feature, you can use the ExcelJS and FileSaver libraries to access a similar functionality.

## Implementation details
- Install or reference the ExcelJS and file-saver packages.
- Add a reference to the `excelExporter` file (see the `excelExporter` file for your framework below).
- Define the export button in the TreeList toolbar.
- Implement the export button's onClick handler and call the `exportTreeList` method.
```js
function exportToExcel() {
const workbook = new ExcelJS.Workbook();
const worksheet = workbook.addWorksheet('Employees');
exportTreeList({
component: treeList,
worksheet,
}).then(() => {
workbook.xlsx.writeBuffer().then((buffer) => {
saveAs(
new Blob([buffer], { type: 'application/octet-stream' }),
'Employees.xlsx',
);
});
});
}
```
## Files to Review
- **jQuery**
- [index.js](jQuery/src/index.js)
- [excelExporter.js](jQuery/src/excelExporter.js)
- **Angular**
- [app.component.html](Angular/src/app/app.component.html)
- [app.component.ts](Angular/src/app/app.component.ts)
- [excelExporter.ts](Angular/src/app/excelExporter.ts)
- **Vue**
- [Home.vue](Vue/src/components/HomeContent.vue)
- [excelExporter.ts](Vue/src/assets/excelExporter.ts)
- **React**
- [App.tsx](React/src/App.tsx)
- [excelExporter.ts](React/src/excelExporter.ts)
- **NetCore**
- [Index.cshtml](ASP.NET%20Core/Views/Home/Index.cshtml)
- [excelExporter.js](ASP.NET%20Core/wwwroot/js/excelExporter.js)
## Documentation
- [Getting Started with TreeList](https://js.devexpress.com/Documentation/Guide/UI_Components/TreeList/Getting_Started_with_TreeList/)
- [TreeList - toolbar API reference](https://js.devexpress.com/Documentation/ApiReference/UI_Components/dxTreeList/Configuration/toolbar/)
| This example demonstrates how to export TreeList to Excel. | angular,asp-net-core,asp-net-mvc,jquery,react,vue,javascript | 2023-09-04T09:05:22Z | 2023-10-02T11:02:20Z | null | 4 | 8 | 67 | 0 | 0 | 2 | null | NOASSERTION | TypeScript |
Trust-QR/Trust-QR-Frontend | main | # Trust QR
Trust QR is a platform that uses Blockchain technology and QR codes to combat counterfeiting. Companies can register their products on the platform, and each product will be assigned a unique QR code. Consumers can scan the QR code on a product to validate product authenticity, ensuring it matches the stated brand and providing manufacturing and expiry date details.
## About
This project is based on the Blockchain Technology
## Tech Stack
We have used these following technologies
* Frontend : Next.js, CSS
* Backend : FastAPI
* Blockchain : Ganache & Brownie
* Testing : Pytest
# [Frontend](https://github.com/Trust-QR/Trust-QR-Frontend/)
# [Backend](https://github.com/Trust-QR/Trust-QR-Backend/)
# Cloning the project
To clone the project, open a terminal and navigate to the directory where you want to clone the project. Then, run the following command:
```bash
git clone https://github.com/Trust-QR/Trust-QR-Frontend.git
```
Once you have cloned the project and installed Node.js, you can install the project dependencies by running the following command:
```bash
npm install
```
First, run the development server:
```bash
npm run dev
# or
yarn dev
# or
pnpm dev
```
Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
| Trust QR is a platform that uses Blockchain technology and QR codes to combat counterfeiting. Companies can register their products on the platform, and each product will be assigned a unique QR code. Consumers can scan the QR code on a product to validate product authenticity, ensuring it matches the stated brand and manufacturing details | nextjs,nextjs13,nodejs,reactjs,javascript,javascript-framework,css | 2023-09-01T02:18:52Z | 2023-09-28T08:49:17Z | null | 2 | 0 | 14 | 0 | 0 | 2 | null | null | CSS |
LakshayD02/Temperature-Convertor | main | # Temperature-Convertor
Temperature Convertor is a web-based temperature calculator application built using HTML, CSS, and JavaScript. It allows users to convert temperatures between different units, such as Celsius, Fahrenheit, and Kelvin. It helps in the conversion of the measurement units of the temperature recorded in a particular unit.
Deployed Link: https://temperature-lakshay.netlify.app/
| Temperature Convertor is a web-based temperature calculator application built using HTML, CSS, and JavaScript. It allows users to convert temperatures between different units, such as Celsius, Fahrenheit, and Kelvin. It helps in the conversion of the measurement units of the temperature recorded in a particular unit. | cascading-style-sheets,css,html,html5,javascript,javascript-applications,responsive-web-design | 2023-09-09T15:42:00Z | 2023-09-09T15:43:25Z | null | 1 | 0 | 3 | 0 | 0 | 2 | null | null | CSS |
end223/talk-chat-fit | main | <a id="top"></a>
#
<h1 align="center">
Talk-Chat FIT 📱
</h1>
<p align="center">
<img title="" src="https://i.ibb.co/QKhd6kH/964035-apartamento-cartoon-estilo-home-office-vetor.jpg#vitrinedev" alt="" width="650">
</p>
<p align="center">
Olá! 👋 Esse é um bot personalizado do Telegram que oferece assistência com prompts relacionados a condicionamento físico e nutrição.
</p>
<p align="center">
Ele utiliza a API da OpenAI para responder às dúvidas dos usuários.
</p>
<div align="center">
[](https://platform.openai.com)
[](https://t.me/botfather)
[](https://signup.heroku.com)
</div>
## 💬 〢 Conteúdo
| 🌀 Vitrine.Dev | |
| ------------- | --- |
| :sparkles: Nome | **Talk-Chat FIT**
| :label: Tecnologias | NodeJS, Express, dotenv, OpenAI, Telegram Bot API
| :rocket: URL | https://heroku.com
| :fire: Desafio |
---
## 🌐 〢 Conteúdo
- [✨ Recursos](#features)
- [💻 Tecnologias](#tech)
- [🌀 Fluxo de Conversa](#fluxo)
- [⚙️ Instalação](#installation)
- [📁 Configuração: Keys](#setupkeys)
- [📁 Configuração: Heroku](#setupheroku)
- [🎉 Enjoy - Teste o BOT!](#enjoy)
- [💬 Contato](#contact)
---
<a id="features"></a>
## ✨〢 Recursos
- Prompt personalizado.
- Respostas para perguntas sobre nutrição e condicionamento físico.
- Opções de menu para facilitar a interação.
- Feedback de interação enquanto processa a resposta.
- Suporte para entrar em contato com a equipe. _(Certifique-se de configurar sua mensagem e seu usuário no menu Contato)_
---
<a id="tech"></a>
## 💻 〢 Tecnologias
**Talk-Chat FIT** usa os seguintes projetos para funcionar:
- [NodeJS](https://nodejs.org/) - Evented I/O for the Backend
- [Express](https://expressjs.com/) - Fast Node.JS network app framework
- [dotenv](https://www.dotenv.org/) - A secrets manager for .env files.
- [OpenAI](https://github.com/openai/openai-node) - This library provides convenient access to the OpenAI REST API from TypeScript or JavaScript.
- [Telegram Bot API](https://www.npmjs.com/package/node-telegram-bot-api) - Telegram Bot API for NodeJS.
---
<a id="fluxo"></a>
## 🌀 〢 Fluxo de Conversa
>O bot inicia respondendo ao comando /start, oferecendo opções de menu.
O usuário pode escolher:
🥗 Nutrição;
🏋️ Condicionamento Físico.
>Quando uma opção é selecionada, o bot responde a perguntas relacionadas ao tópico escolhido.
---
<a id="installation"></a>
## ⚙️ 〢 Instalação
**Talk-Chat FIT** requer:
>[Node.js](https://nodejs.org/) v18+ para funcionar.
>[Heroku CLI](https://devcenter.heroku.com/articles/heroku-cli#install-the-heroku-cli) - A Interface de Linha de Comando (CLI) do Heroku é uma parte essencial para usar o Heroku. Com ela, você pode criar e gerenciar aplicativos Heroku diretamente pelo terminal.
`**Pré-requisitos**` 🔧
>A CLI do Heroku requer o Git, um sistema popular de controle de versão. Se você não tiver o Git instalado, conclua:
>[Instalação do Git](https://git-scm.com/book/en/v2/Getting-Started-Installing-Git)
Navegue até a pasta do projeto e instale as dependências:
```
npm install
npm init -y
npm i node-telegram-bot-api --save
npm i openai --save
npm i dotenv --save
npm i express --save
```
---
<a id="setupkeys"></a>
### 📁 〢 Configuração: Chaves
- Crie um arquivo `.env` e cole o código:
```
BOT_TOKEN="TELEGRAM_TOKEN"
OPEN_AI_API="OPEN_AI_KEY"
```
- Vá para o **[BotFather](https://t.me/BotFather)** no Telegram, configure um novo bot com `/newbot` e adicione um nome para o bot.
- Copie o **token para acessar a API HTTP** e cole-o em `"TELEGRAM_TOKEN"` no arquivo `.env`.
- Vá para o **[OpenAI](https://platform.openai.com)**, faça login ou cadastre-se e vá para **[Ver chaves da API](https://https://platform.openai.com/account/api-keys)**.
>📝**Observação**: **``Você precisa recarregar $5 (valor mínimo) para usar a Chave da API da OpenAI``**.
<img title="" src="https://i.ibb.co/N714Mkv/openai.png" alt="" width="639">
- Configure a nova chave e cole em ``"OPEN_AI_KEY"`` no arquivo `.env`.
---
<a id="setupheroku"></a>
### 📁 〢 Configuração: Heroku
>📝**Observação**: **``O Heroku possui um Plano Gratuito, mas você precisa configurar um método de pagamento para usar o Heroku``**.
- Após criar sua conta no **[Heroku](https://signup.heroku.com/)**, abra o `Git BASH` na pasta e faça login na sua conta do Heroku:
```
heroku login
```
- Clone este repositório para que você possa implantá-lo no Heroku. Execute:
```
git clone URL
```
- Crie um aplicativo no Heroku, que prepara o Heroku para receber o source code. Execute:
```
heroku create
```
>_Quando você cria um aplicativo, também cria um remoto Git chamado "heroku". Ele está associado ao seu repositório Git local._
>⚠️**IMPORTANTE**: `Depois de criar o aplicativo, você configurar o arquivo Procfile`:
`Cole o código abaixo dentro do arquivo Procfile`:
```
web: node index.js
```
- **Configure as váriareis de ambiente do App**.
```
heroku config:set OPEN_AI_API=Sua_Api_Key
```
```
heroku config:set BOT_TOKEN=TOKEN_DO_BOT_TELEGRAM
```
- **Depois de configurar vá para [Configurações do Heroku Apps](https://dashboard.heroku.com/apps)**.
- Selecione seu aplicativo.
- Vá para Configurações e copie seu `Webhook do Heroku`.
<img title="" src="https://i.ibb.co/YWcg3f5/photo-2023-08-24-22-35-25.jpg" alt="" width="639">
>**Cole na linha de código**:
<img title="" src="https://i.ibb.co/1KkX9rZ/heroku-webhook.png" alt="" width="639">
>**Depois de configurar o Webhook do Heroku, execute os comandos**:
```
git add .
git commit -m Heroku Deploy App
git push heroku main
```
---
<a id="done"></a>
>🎉**DONE**: **``Agora o Bot está rodando no servidor Heroku``**.
Para visualizar os Logs sobre seu aplicativo em execução, execute:
```
heroku logs --tail
```
O Heroku trata os logs como fluxos de eventos ordenados por tempo agregados dos fluxos de saída de todos os seus aplicativos e componentes do Heroku, fornecendo um único canal para todos os eventos.
---
<a id="enjoy"></a>
<h1 align="center">
🤖 〢 Teste o Bot!
</h1>
<h1 align="center">
<a href="https://t.me/talk_fit_bot">
<img src="https://i.ibb.co/Z2bzy4R/logo-telegram-256.png" alt="BOT" width="50">
</a>
</h1>
---
<a id="contact"></a>
<h1 align="center">
💬 〢 Contato
</h1>
<h1 align="center">
<a href="https://t.me/cutegothvampire">
<img src="https://i.ibb.co/Z2bzy4R/logo-telegram-256.png" alt="Logo do Telegram" width="50"
</a>
</h1>
---
<p align="center"><a href=#top>Back to Top</a></p>
| Obtenha orientações personalizadas sobre nutrição, condicionamento físico e estilo de vida saudável. | heroku,nodejs,telegram-bot,javascript,vitrinedev,express | 2023-08-24T00:31:02Z | 2023-09-04T16:04:58Z | null | 1 | 0 | 28 | 0 | 0 | 2 | null | null | JavaScript |
Naim08/Concordia | main | # ConCordia:
ConCordia is a web application that emulates the core features of the popular communication platform, Discord. Users can create and join servers, participate in real-time chat channels, send direct messages to other users, and manage their friend lists. The application supports both text-based communication and voice chat, providing a comprehensive communication experience.
[Live Link](https://concordia.naimmiah.com)
---
## Technologies Used:
- **Rails Backend**: The backend is built using Ruby on Rails, serving as an API server. It handles data persistence, user authentication, business logic, and real-time communication.
- **ReactJS on the Frontend**: The frontend is developed using ReactJS, a popular JavaScript library for building user interfaces. It provides a dynamic and responsive user experience.
- **WebSockets (ActionCable)**: For real-time communication, the app uses ActionCable, a Rails framework for WebSockets. This ensures that messages, notifications, video call signals, and other real-time updates are instantly delivered to users.
- **PostgreSQL**: The application's data is stored in a PostgreSQL database, a powerful and scalable relational database system.
- **DigitalOcean**: The application is hosted on DigitalOcean, a cloud infrastructure provider, ensuring its availability and scalability.
- **WebRTC (Web Real-Time Communication)**: is a technology that enables real-time communication capabilities (like video and audio calling) in web browsers and mobile applications.
# Feature Deep Dive:
## 1. Friends & Friend Requests:
**Challenges**: Managing friendships and friend requests is a nuanced task. It's essential to ensure that users can send, accept, or decline friend requests seamlessly. Additionally, handling scenarios like duplicate requests, blocking users, and unfriending requires careful consideration.
**Solutions**: The backend provides distinct models and controllers for friends and friend requests. This separation ensures that each aspect of the friendship feature is handled independently. For instance, when a friend request is accepted, the backend automatically creates a new friendship record and deletes the friend request.
```ruby
class FriendsChannel < ApplicationCable::Channel
def subscribed
stream_for current_user
end
def speak(data)
friend = User.find_by(id: data['friend_id'])
if friend
FriendsChannel.broadcast_to(friend, { type: 'FRIEND_ONLINE', friend_id: current_user.id })
end
end
def unsubscribed
# Any cleanup needed when channel is unsubscribed
end
end
```
```ruby
FriendsChannel.broadcast_to(
@request.sender,
type: "ADD_FRIEND",
**from_template("api/friends/show", friendship: @friendship, friend: current_user),
)
FriendsChannel.broadcast_to(
@receiver,
type: "ADD_INCOMING_REQUEST",
**from_template("api/friend_requests/show", friend_request: @friend_request, user: current_user),
)
FriendsChannel.broadcast_to(
@request.sender,
type: "ADD_OUTGOING_REQUEST",
**from_template("api/friend_requests/show", friend_request: @friend_request, user: current_user),
)
FriendsChannel.broadcast_to(
@receiver,
type: "REMOVE_INCOMING_REQUEST",
**from_template("api/friend_requests/show", friend_request: @friend_request, user: current_user),
)
FriendsChannel.broadcast_to(
@request.sender,
type: "REMOVE_OUTGOING_REQUEST",
**from_template("api/friend_requests/show", friend_request: @friend_request, user: current_user),
)
FriendsChannel.broadcast_to(
@receiver,
type: "REMOVE_FRIEND",
**from_template("api/friends/show", friendship: @friendship, friend: current_user),
)
FriendsChannel.broadcast_to(
@request.sender,
type: "FRIEND_ONLINE",
friend_id: @receiver.id
)
FriendsChannel.broadcast_to(
@receiver,
type: "FRIEND_OFFLINE",
friend_id: @request.sender.id
)
```
```javascript
useEffect(() => {
if (sessionUser) {
dispatch(setSelectedServer("home"));
dispatch(fetchFriends());
dispatch(fetchFriendRequests());
}
const friendSubscription = consumer.subscriptions.create(
{ channel: "FriendsChannel" },
{
received: ({ type, friend, friendRequest, id }) => {
switch (type) {
case "UPDATE_FRIEND":
dispatch(addFriend(friend));
break;
case "DELETE_FRIEND":
dispatch(removeFriend(id));
break;
case "ADD_FRIEND":
dispatch(addFriend(friend));
break;
case "DELETE_SENT_REQUEST":
dispatch(removeSentRequest(id));
break;
case "UPDATE_SENT_REQUEST":
dispatch(addSentRequest(friendRequest));
break;
case "ADD_INCOMING_REQUEST":
dispatch(addReceivedRequest(friendRequest));
break;
case "DELETE_INCOMING_REQUEST":
dispatch(removeReceivedRequest(id));
break;
case "UPDATE_INCOMING_REQUEST":
dispatch(addReceivedRequest(friendRequest));
break;
default:
// console.log("unknown broadcast type");
}
},
}
);
return () => {
friendSubscription?.unsubscribe();
dispatch(resetFriends());
dispatch(resetFriendRequests());
dispatch(setAnimateOfflineFriends(false));
};
}, [dispatch]);
```
## 2.Direct Messaging & Conversations:
**Challenges**: Implementing a real-time direct messaging system requires managing private conversations between users, ensuring data privacy, and delivering messages in real-time.
**Solutions**: Conversations are modeled as private channels between two users. When a message is sent, it's associated with a specific conversation. ActionCable ensures that messages are delivered in real-time to both participants. The backend also ensures that only participants of a conversation can access its messages.
```ruby
class ConversationsChannel < ApplicationCable::Channel
def subscribed
@conversation = Conversation.find_by(id: params[:id])
stream_for @conversation
end
def speak(data)
message = @conversation.direct_messages.create(body: data['message'], user_id: data['user_id'])
socket = { message: message.body, user_id: message.user_id }
ConversationsChannel.broadcast_to(@conversation, socket)
end
def load(data)
messages = @conversation.direct_messages.order(created_at: :desc).limit(100).reverse
socket = { messages: messages }
ConversationsChannel.broadcast_to(@conversation, socket)
end
def unsubscribed
# Any cleanup needed when channel is unsubscribed
end
end
ConversationsChannel.broadcast_to(@conversation, type: "NEW_DIRECT_MESSAGE", **from_template("api/direct_messages/show", direct_message: @direct_message))
ConversationsChannel.broadcast_to(@conversation, type: "UPDATE_DIRECT_MESSAGE", **from_template("api/direct_messages/show", direct_message: @direct_message))
```
```javascript
useEffect(() => {
const convoSubscription = consumer.subscriptions.create(
{ channel: "ConversationsChannel", id: conversationId },
{
received: ({ type, message, id, direct_message }) => {
switch (type) {
case "NEW_DIRECT_MESSAGE":
const listEle = document.querySelector(".messages-list");
const atBottom =
listEle &&
Math.round(listEle.scrollHeight - listEle.scrollTop) <=
listEle.clientHeight;
console.log(message);
dispatch(receiveDirectMessage(message));
if (message.author.id === sessionUser.id || atBottom)
dispatch(setScroll(true));
break;
case "DESTROY_DIRECT_MESSAGE":
dispatch(deleteDirectMessage(id));
break;
case "UPDATE_DIRECT_MESSAGE":
dispatch(updateDirectMessage(message));
break;
default:
// console.log("unknown broadcast type");
}
},
}
);
return () => {
convoSubscription?.unsubscribe();
dispatch(resetDirectMessages());
dispatch(setScroll(true));
};
}, [dispatch, conversationId]);
```
## 3. Video Calling:
**Challenges**: Implementing video calling requires handling video and audio streams, signaling between users to establish a connection, and ensuring good call quality.
**Solutions**: Once signaling is done, a direct peer-to-peer connection can be established for the video and audio streams.
```ruby
# app/channels/call_channel.rb
class CallChannel < ApplicationCable::Channel
def subscribed
stream_from "call_channel_#{params[:room]}"
end
def send_signal(data)
ActionCable.server.broadcast("call_channel_#{params[:room]}", data)
end
end
```
```javascript
// Setting up the WebRTC peer connection
const configuration = { iceServers: [{ urls: '' }] };
const peerConnection = new RTCPeerConnection(configuration);
// Getting user media (video and audio)
navigator.mediaDevices.getUserMedia({ video: true, audio: true })
.then(stream => {
localVideo.srcObject = stream;
stream.getTracks().forEach(track => peerConnection.addTrack(track, stream));
});
// Handling signaling with ActionCable
const callChannel = consumer.subscriptions.create({ channel: "CallChannel", room: "ROOM_ID" }, {
received(data) {
}
});
// To send a signal (e.g., offer, answer, ice candidates)
callChannel.send_signal({ type: 'OFFER', data: offer });
```
| ConCordia is a web application that emulates the core features of the popular communication platform, Discord. | chat,collaboration,discord-bot,realtime,api-server,javascript,rails-application,react | 2023-09-11T01:18:03Z | 2023-10-28T21:00:46Z | null | 2 | 1 | 55 | 0 | 1 | 2 | null | null | JavaScript |
lopescode/qrcode-system-team7 | development | # QR Code System Team7 - Cardápio Online
Project developed for the discipline of Software Product: Analysis, Specification, Project & Implementation at [Impacta Technology](https://www.impacta.edu.br/).

## Setup
- Create a new `.env` file in the project `server` root
- Inside set the following variables:
```bash
DATABASE_URL="mysql://<user>:<password>@<host>:<port>/<database>?schema=<schema>"
```
## Server
### Installation
Before running the server, you need to install the dependencies in the `server` folder.
```bash
$ npm install
```
### Running migrations
Before running the app, you need to run the migrations to create the database schema.
```bash
# development mode
$ npm run migrate:dev
# production mode
$ npm run migrate:prod
```
## Web
### Installation
Before running the app, you need to install the dependencies in the `web` folder.
```bash
$ npm install
```
## Running the app
To run the app, you need to run following command inside the `server` folder:
```bash
# development mode
$ npm run start:dev
```
To run the app, you need to run following command inside the `web` folder:
```bash
# development mode
$ npm run dev
```
## Tech Stack
The following tools were used in the construction of the project:
- [TypeScript](https://www.typescriptlang.org/)
- [Node.js](https://nodejs.org/en/)
- [Nest.js](https://nestjs.com/)
- [Next.js](https://nextjs.org/)
- [React.js](https://react.dev/)
- [ReactIcons](https://react-icons.github.io/react-icons/)
- [TailwindCSS](https://tailwindcss.com/)
- [Prisma](https://www.prisma.io/)
- [MySQL](https://www.mysql.com/)
- [GitHub Issues](https://docs.github.com/en/issues)
- [GitHub Projects](https://docs.github.com/en/issues/organizing-your-work-with-project-boards/managing-project-boards/about-project-boards) | Cardápio online realizado como projeto de faculdade. | javascript,nestjs,nextjs,nodejs,typescript | 2023-08-18T22:55:56Z | 2023-12-01T23:05:49Z | null | 5 | 9 | 42 | 0 | 0 | 2 | null | null | TypeScript |
AndresFelipe23/Ecommerce | main |
# Ecommerce
Tienda online desarrollada con Angular, MonogoDB y NodeJs, cuenta con un panel adiminstrador y su tienda online.
<img src="https://user-images.githubusercontent.com/73097560/115834477-dbab4500-a447-11eb-908a-139a6edaec5c.gif"><br><br>
# Panel Administrador
El panel administrador cuenta con un login para iniciar sesión, la parte administradora cuenta con:
- Clientes: Podemos almacenar datos de los clientes.
- Productos: Donde se crean cada producto que serán vistos en la tienda online.
- Cupones: Donde se crean los cupones para ciertos productos en específicos.
- Ventas: Se muestra el total de ventas en la tienda online.
- Configuraciones: Solo muestra el costo del envio para cierto pais.






<img src="https://user-images.githubusercontent.com/73097560/115834477-dbab4500-a447-11eb-908a-139a6edaec5c.gif"><br><br>
# Tienda Online
La tienda online cuenta con un apartado donde encontrarás todos los productos, además de la funcionalidad total para ir agregando productos al carrito y seleccionar tallas y número de productos a elegir.




<img src="https://user-images.githubusercontent.com/73097560/115834477-dbab4500-a447-11eb-908a-139a6edaec5c.gif"><br><br>
# Notas
- Se sigue corrigiendo errores en el FrontEnd
- Se está mejorando en la seguridad
- Aún no está publicada la tienda
| Ecommerce desarrollado en Angular, cuenta con panel administrador y la tienda online. | angular,bootstrap,javascript,mongodb,nodejs | 2023-08-16T19:25:47Z | 2023-12-15T16:45:00Z | null | 1 | 0 | 7 | 0 | 0 | 2 | null | null | HTML |
Ibrahim-Isah/realty-central | main | # Realty Central


## Overview
[Realty Central]('https://www.realtycentral.co/') is an all-in-one cloud-based platform designed to assist real estate agents and housing estates in managing their entire workflow efficiently. It leverages different features to automate repetitive tasks, enhance customer engagement, and provide valuable insights for decision-making.
## Key Features
1. **Document Management:** Realty Central allows agents to store, organize, and access essential documents securely in the cloud. These documents could include property listings, contracts, agreements, legal documents, and more. AI-powered document classification and search functionalities make it easier to find specific documents quickly.
2. **Lease Management:** The software includes a comprehensive lease management module that helps agents and housing estates track lease agreements, rental payments, and lease expirations. Automated reminders are sent to both tenants and property owners to ensure timely actions.
3. **Customer Relationship Management (CRM):** Realty Central comes with a CRM system that enables agents to manage customer information, track interactions, and maintain a history of communication. The AI-driven CRM can analyze customer preferences and behaviors to provide personalized property recommendations.
4. **Automated Emailing:** The software automates the process of sending emails to clients, notifying them about new property listings, rent reminders, and other relevant updates. AI-powered email analytics can track open rates and user engagement to optimize email campaigns.
5. **Maintenance and Reminders:** The software incorporates a maintenance scheduling system to manage property upkeep and repair tasks. AI-based predictive maintenance can anticipate potential issues and schedule preventive maintenance, reducing unexpected repair costs.
6. **Real-Time Reporting and Analytics:** Realty Central offers real-time dashboards and reports to provide insights into key performance indicators, property portfolio performance, and financial metrics. Analytics can identify patterns and trends to aid in strategic decision-making.
## Key Problems Solved
1. **Digitizing Workflows:** Realty Central eliminates the need for paper-based processes, making the entire real estate workflow more efficient and eco-friendly.
2. **Time Management:** Automation of tasks such as emailing, document management, and reminders frees up agents' time, allowing them to focus on high-value activities like building relationships with clients.
3. **Improved Customer Engagement:** The AI-driven CRM and personalized property recommendations enhance customer engagement and satisfaction, leading to increased loyalty and referrals.
4. **Reducing Errors and Overlooking:** AI algorithms can help identify potential issues or discrepancies in lease agreements and documents, reducing human errors and mitigating legal risks.
5. **Data-Driven Decisions:** Realty Central empowers agents and housing estates with data-driven insights, enabling them to make more informed decisions in pricing, property management, and marketing strategies.
6. **Increased Competitiveness:** By using AI for rent optimization and predictive maintenance, agents and housing estates can offer better services, attract more clients, and stay ahead of competitors.
## Getting Started
To run Realty Central locally, follow these steps:
1. Clone this repository to your local machine.
2. Navigate to the project directory using the terminal.
3. Run `npm install` to install the project dependencies.
4. Run `npm run dev` to start the development server.
5. Open your web browser and navigate to `http://localhost:3000` to access the application.
## Technologies Used
- Next.js 13
- React
- Clerk dev
- TailwindCss
- Shadcn
- Prisma
- PlanetScale
- Node.js
- AI-powered features for data analytics and predictions
## License
This project is licensed under the MIT License.
| Realty Central is an all-in-one cloud-based platform designed to assist real estate agents and housing estates in managing their entire workflow efficiently. | javascript,nextjs13,react,real-estate,typescript | 2023-08-13T23:27:53Z | 2023-12-17T23:03:01Z | null | 1 | 26 | 104 | 0 | 0 | 2 | null | null | TypeScript |
WebGuyAshis/Todo-List-React-Project2 | master | # React ToDo App
## Overview
The React ToDo App is a user-friendly task management application designed to help you stay organized and productive. It provides a soothing and visually appealing user interface, along with a range of features to enhance your task management experience.
## API For Dummy API Calls
https://jsonplaceholder.typicode.com/todos
## Features
- **User-Friendly UI**: The app features a user-friendly and intuitive interface with soothing colors to create a pleasant user experience.
- **Task Creation**: Users can easily create new tasks with titles, descriptions, due dates, and categories.
- **Task Deletion**: Tasks can be deleted with a simple click, helping users remove completed or unnecessary items from their list.
- **Task Editing**: Users have the ability to edit task details, making it convenient to update task information as needed.
- **Task Alerts**: The app allows users to set alerts for their tasks, ensuring they never miss an important deadline.
- **User Account[Comming Soon]**: Users can create and manage their accounts.
- **Dashboard**: The dashboard provides a quick overview of tasks and completion status.
- **Pie Chart**: A pie chart visualization offers a visual representation of task distribution by category, improving user insight into their tasks.
## Hosted Link
https://webguyashis-react-todo-project.netlify.app/
## Screenshots
### Desktop View




### Mobile View



# 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)
| The React ToDo App is a user-friendly task management application designed to help you stay organized and productive. It provides a soothing and visually appealing user interface, along with a range of features to enhance your task management experience. | am,amcharts-js-charts,css,fetch-api,javascript,jsx,react-toastify,reactjs,regx,rest-api | 2023-08-17T19:41:32Z | 2023-09-30T21:48:55Z | null | 1 | 0 | 42 | 0 | 0 | 2 | null | null | JavaScript |
vxern/wiktionary-scraper | main | A lightweight scraper to fetch information about words in various languages from Wiktionary.
## Table of contents
- [Table of contents](#table-of-contents)
- [Usage](#usage)
- [Completeness](#completeness)
- [Features](#features)
- [Section support](#section-support)
- [Recognised parts of speech](#recognised-parts-of-speech)
- [Parts of speech](#parts-of-speech)
- [Morphemes](#morphemes)
- [Symbols](#symbols)
- [Phrases](#phrases)
- [Han characters and language-specific varieties](#han-characters-and-language-specific-varieties)
- [Other](#other)
- [Explicitly disallowed parts of speech](#explicitly-disallowed-parts-of-speech)
- [Library additions](#library-additions)
## Usage
To start using the scraper, first install it using the following command:
```shell
npm install wiktionary-scraper
```
The simplest way of using the scraper is as follows:
```ts
import * as Wiktionary from "wiktionary-scraper";
const results = await Wiktionary.get("word");
```
You can change the language of the target word by setting the `lemmaLanguage`:
```ts
import * as Wiktionary from "wiktionary-scraper";
const results = await Wiktionary.get('o', {
lemmaLanguage: "Romanian",
});
```
You can specify if redirects should be followed by setting `followRedirects` to `true`:
```ts
import * as Wiktionary from "wiktionary-scraper";
// Redirects to and returns results for "Germany".
const results = await Wiktionary.get('germany', {
followRedirects: true,
});
```
By default, the `User-Agent` header used in requests is filled in using a default value mentioning `wiktionary-scraper`.
To remove it, set `userAgent` to `undefined`.
If you want to change it, specify `userAgent`:
```ts
import * as Wiktionary from "wiktionary-scraper";
const results = await Wiktionary.get('word', {
userAgent: "Your App (https://example.com)",
});
```
You can also parse HTML of the website directly, bypassing the fetch step.
ℹ️ Notice that, as opposed to `get()`, `parse()` is synchronous:
```ts
import * as Wiktionary from "wiktionary-scraper";
const results = Wiktionary.parse(html);
```
## Completeness
This library currently only supports the English version of Wiktionary.
#### Features
- Parses both single- and multiple-etymology entries.
- Recognises standard, non-standard and some explicitly disallowed parts of speech, as defined [here](https://en.wiktionary.org/wiki/Wiktionary:Entry_layout#Part_of_speech). In total, there are 60+ recognised parts of speech, which should cover the vast majority of definitions.
- Note, however, that it is very possible that the library will fail to recognise certain niche, non-standard parts of speech. Should you come across any, please post an issue.
#### Section support
- [ ] Description
- [ ] Glyph origin
- [x] Etymology
- [ ] Pronunciation
- [ ] Production
- [x] Definitions
- [ ] Usage notes
- [ ] Reconstruction notes
- [ ] _Inflection sections_:
- [ ] Inflection
- [ ] Conjugation
- [ ] Declension
- [ ] Mutation
- [ ] Quotations
- [ ] Alternative forms
- [ ] Alternative reconstructions
- [ ] _Relations_:
- [ ] Synonyms
- [ ] Antonyms
- [ ] Hypernyms
- [ ] Hyponyms
- [ ] Meronyms
- [ ] Holonyms
- [ ] Comeronyms
- [ ] Troponyms
- [ ] Parasynonyms
- [ ] Coordinate terms
- [ ] Derived terms
- [ ] Related terms
- [ ] Translations
- [ ] Trivia
- [ ] See also
- [ ] References
- [ ] Further reading
- [ ] Anagrams
- [ ] Examples
#### Recognised parts of speech
###### Parts of speech
- Adjective
- Adverb
- Ambiposition
- Article
- Circumposition
- Classifier
- Conjunction
- Contraction
- Counter
- Determiner
- Ideophone
- Interjection
- Noun
- Numeral
- Participle
- Particle
- Postposition
- Preposition
- Pronoun
- Proper noun
- Verb
###### Morphemes
- Circumfix
- Combining form
- Infix
- Interfix
- Prefix
- Root
- Suffix
###### Symbols
- Diacritical mark
- Letter
- Ligature
- Number
- Punctuation mark
- Syllable
- Symbol
###### Phrases
- Phrase
- Proverb
- Prepositional phrase
###### Han characters and language-specific varieties
- Han character
- Hanzi
- Kanji
- Hanja
###### Other
- Romanization
- Logogram
- Determinative
###### Explicitly disallowed parts of speech
You know, just in case somebody didn't follow the rules on Wiktionary.
- Abbreviation
- Acronym
- Initialism
- Cardinal-number
- Ordinal-number
- Cardinal-numeral
- Ordinal-numeral
- Clitic
- Gerund
- Idiom
###### Library additions
- Adposition
- Affix
- Character | A lightweight (45kB) Wiktionary.org scraper to fetch information about words in various languages. | definitions,dictionary,english,etymology,javascript,language,parser,scraper,typescript,wiktionary | 2023-08-28T20:45:37Z | 2023-09-18T10:04:39Z | 2023-08-28T20:45:04Z | 1 | 0 | 5 | 0 | 0 | 2 | null | MIT | TypeScript |
manuchaitanya17/MyPortFolio | main | # myPortFolio
It's my Port Folio. I have used HTML, CSS and JS to create this project.
| It's my Port Folio. I have used HTML, CSS and JS to create this project. | css,html,javascript | 2023-08-29T15:46:18Z | 2023-08-29T15:47:29Z | null | 1 | 0 | 2 | 0 | 0 | 2 | null | MIT | CSS |
Samsonium/kCall | master | 
# kCall
| Document versions | |
|-------------------|--------------------------------|
| English | [Russian](./docs/README_RU.md) |
An open-source meeting service where you can host meetings, collaborate with others, and communicate
effectively, all within a user-friendly environment.
## Features
- **Video conferencing**: high-quality video calls with multiple participants simultaneously.
- **Audio-only mode**: seamlessly switch to audio-only mode for situations with limited bandwidth.
- **Screen sharing**: share your screen with others.
- **Chat**: engage in text-based conversations during meetings for quick exchanges and side discussions.
- **Excerpts**: tag messages and receive them in document format at the end of the meeting.
- **Organizations**: group into organizations and access collaborative work.
- **Calendar**: schedule meetings for participants in calendar.
- **One-time rooms**: host or join rooms without authorization.
## Requirements
- NodeJS >= 20.6
- PNPM >= 8
- Postgres server
## Getting started
To get started follow these steps:
1. Clone the repo:
```shell
git clone https://github.com/Samsonium/kCall.git
```
2. Install dependencies:
```shell
cd kCall
pnpm install
```
3. Run the application:
```bash
pnpm start:dev
```
or
```bash
pnpm build
pnpm start:prod
```
## Documentation
Currently, documentation is under development. This section will update later.
## Contributing
I welcome contributors from the open-source community to help improve and expand kCall. If you're interested in
contributing, please follow guidelines below.
### With your idea or bugfix
1. Fork the repo and create new branch for your feature or bugfix.
2. Ensure your code follows the established coding standards and conventions.
3. Write clear and concise commit messages.
4. Submit a pull request, providing a list or explanation of the changes made and any relevant information.
### With project tasks
If you're interested in contributing but have no idea for improvement or bugfix, you can use task from
[project linked to this repository](https://github.com/users/Samsonium/projects/5) and follow these guidelines:
1. Fork the repo and create new branch named by task id.
2. Ensure your code follows the established coding standards and conventions.
3. Write clear and concise commit messages using this format: `(#<task>): <brief description>`.
4. Submit a pull request, providing a explanation of your implementation and any relevant information.
## Feedback and support
If you encounter any issues, have suggestions for improvement, or require assistance, please don't hesitate to
reach out. You can report bugs, submit feature requests, or ask for help by opening an issue on the GitHub repository.
Thank you for choosing kCall for your meeting needs. I hope you enjoy using this service!
| Open-source meeting service | javascript,svelte,typescript,adonis,api,backend,database,frontend,js,orm | 2023-08-18T10:06:43Z | 2024-02-19T09:39:22Z | null | 1 | 22 | 307 | 2 | 2 | 2 | null | null | TypeScript |
ahmetozydn/typescript-crud | master | ### CRUD Application Using Typescript, Node.js, Express, MongoDB and Inversify.
### Table of Contents
- [Dependency](#dependency)
- [Features](#features)
- [Architecture](#architecture)
- [Installation](#installation)
- [Test](#test)
### Dependency
- **Typescript**: TypeScript is a superset of JavaScript that adds static typing to the language. It compiles to JavaScript and can be used both in browser environments and in server-side environments like Node.js. Typesript also support generic class, type annotation, interface, enums, union type, private-protected memmber while JavaScript doesn't support.
- **Node.js:** Node.js is a runtime environment that enables you to run JavaScript code on the server side.
- **Express:** Express is a web application framework for Node.js that simplifies building APIs and web applications by providing a set of tools and utilities. It's like SpringBoot in Java, Django in Phyton, .Net for C#.
- **MongoDB:** MongoDB is a NoSQL database system designed for storing and managing unstructured or semi-structured data.
- **Mongoose:** Mongoose is an ODM library for MongoDB and Node.js. It simplifies interacting with MongoDB by providing a structured way to define schemas, models, and additional functionality.
- **Inversify:** It deals with how components or classes obtain their dependencies without creating them directly. Instead of creating dependencies within a class, dependencies are "injected" from the outside.
### Features
- [x] _Establishing a MongoDB connection and transactions with mongoose ODM,_
- [x] _Route handling mechanism using Express.js framework,_
- [x] _Interface, enum, type alias, static typing, access modifiers, default parametre usage,_
- [x] _Dependency injection using Inversify,_
- [x] _Using Repository-MVC pattern,_
- [x] _Exact string match search like `?search=text%20most`,_
- [x] _Data filtering like `?filter=likes:2-10`,_
- [x] _Pagination `posts/pagination?pi=2`,_
- [x] _Sorting for fields `?sort=likes&orderby=asc` | `?sort=title&orderby=desc` | `sort=author&orderby=desc`,_
- [x] _Query combination-query pool;_
`?sort=description&pi=3`
`?sort=title&orderby=desc&pi=2`
`?q=find%20me&sort=author&orderby=asc&pi=2`
`?sort=likes&orderby=asc&filter=likes:3-24&pi=2`
`?sort=description&orderby=descpription&filter=likes:3-10&pi=1`
### Architecture

### Installation
```bash
git clone https://github.com/ahmetozydn/typescript-crud.git
cd yourproject
npm install
# After establishing your MongoDB connection!
npm start
```
### Test
- `postman` is used to test endpoints.
- Query Combination;
_pagination_

- CRUD operations;
|get a post|delete a post|
|---|---|
|||
|get all posts|create a post|
|---|---|
|||
### Further topics
- [ ] Architecture improvement
- [ ] Generating dynamic di for pagination class,
- [ ] Custom error handler mechanism,
- [ ] Authentication, authorization,
- [ ] Partial searching method for MongoDB because it doesn't provide efficient way
- [ ] Rate limiting, caching
- [ ] Handling file uploads through API endpoints.
- [ ] Understanding CORS and configuring it for your API.
- [ ] Support for multiple languages and locales.
| API built with Express Framework, Inversify DI, MongoDB and Typescript language. | api,crud,crud-application,express,inversify,inversifyjs,javascript,mongodb,mongodb-database,moongose | 2023-08-22T17:19:05Z | 2023-08-28T09:53:46Z | null | 3 | 0 | 15 | 0 | 0 | 2 | null | null | TypeScript |
mch-fauzy/movies-db-api | main | # Movies CRUD API with Authentication and Authorization
This is a CRUD (Create, Read, Update, Delete) API for managing movie records with user authentication. The API allows you to perform various operations on movies and users using different endpoints, also including upload an image to local or cloud storage.
You can try the API in [here](https://movies-db-api.vercel.app) or deploy it manually below.
## Table of Contents
- [Features](#features)
- [Getting Started](#getting-started)
- [Swagger Documentation](#swagger-documentation)
- [API Endpoints](#api-endpoints)
- [Error Handling](#error-handling)
- [Contributing](#contributing)
- [License](#license)
## Features
- User registration and login functionality
- Secure authentication using JWT (JSON Web Tokens)
- Create, Read, Update, and Delete operations for movie records
- Authorization for admin-only actions
- Upload image for movie records into local or cloud storage
## Getting Started
To get started with the API, follow the steps below:
1. Clone this repository:
```
git clone https://github.com/mch-fauzy/movies-db-api.git
```
2. Navigate to the project directory:
```
cd movies-db-api
```
3. Install the required dependencies:
```
npm install
```
4. (Optional) Sign-up and configure your cloud storage in [https://cloudinary.com](Cloudinary) (or you can use other cloud storage) if you want to use `/v1/movies/:id/upload-cloud` endpoint.
5. Edit the database configuration in `.env.development` with your PostgreSQL credentials and configure the setting in `./infras/postgresql.js`.
6. (Important) Import the required database schema from `migrations/movie-database.sql` into your PostgreSQL database using a tool like pgAdmin's restore function.
7. (Important) Seed `Admin` user using sql from `migrations/admin-seed.sql` and run the sql from `migrations/add-image-column.sql` in pgAdmin or other database administration tool (e.g. DBeaver).
8. Start the server:
```
npm run dev
```
The API will be available at [http://localhost:3000](http://localhost:3000).
## Swagger Documentation
To access the API documentation using Swagger, follow these steps:
1. Make sure the server is running locally.
2. Open your web browser and go to [http://localhost:3000/](http://localhost:3000/).
3. You'll see the Swagger UI interface with a list of endpoints, request parameters, and example requests/responses.
4. In Swagger, set your servers to `http://localhost:3000` to access your local database.
5. You can interact with the API directly from the Swagger interface.
## API Endpoints
### Public Endpoints
#### Register a New User
- **Endpoint:** `POST /v1/auth/register`
- **Description:** Register a new user (first admin can be seeded)
- **Request Body Parameters:** `email`, `gender`, `password`
#### Login
- **Endpoint:** `POST /v1/auth/login`
- **Description:** User login.
- **Request Body Parameters:** `email`, `password`
- **Example:**
**Admin:**
```
{
"email":"admin@gmail.com",
"password":"adminpassword"
}
```
**Non-Admin:**
```
{
"email":"non.admin@gmail.com",
"password":"nonadminpassword"
}
```
### Users Endpoints
#### Get All Users
- **Endpoint:** `GET /v1/users`
- **Description:** Get all users with pagination.
- **Authentication:** Requires authentication and admin role.
- **Query Parameters:** `page` (default: 1), `size` (default: 10)
### Movies Endpoints
#### Get All Movies
- **Endpoint:** `GET /v1/movies`
- **Description:** Get all movies with pagination.
- **Authentication:** Requires authentication.
- **Query Parameters:** `page` (default: 1), `size` (default: 10)
#### Insert a New Movie
- **Endpoint:** `POST /v1/movies`
- **Description:** Insert a new movie.
- **Authentication:** Requires authentication and admin role.
- **Request Body Parameters:** `title`, `genres`, `year`
#### Upload Movie Image to Local Storage
- **Endpoint:** `POST /v1/movies/:id/upload-local`
- **Description:** Upload an image for a movie to local storage. The uploaded image is stored in the `public/images` directory and associated with the specified movie.
- **Authentication:** Requires authentication and admin role.
- **Request Body Parameter:** `image`
- **Path Parameter:** `id` (movie ID)
#### Upload Movie Image to Cloud Storage
- **Endpoint:** `POST /v1/movies/:id/upload-cloud`
- **Description:** Upload an image for a movie to cloud storage. The uploaded image is stored in the [https://cloudinary.com](Cloudinary) and associated with the specified movie.
- **Authentication:** Requires authentication and admin role.
- **Request Body Parameter:** `image`
- **Path Parameter:** `id` (movie ID)
#### Update a Movie
- **Endpoint:** `PUT /v1/movies/:id`
- **Description:** Update a movie by ID.
- **Authentication:** Requires authentication and admin role.
- **Path Parameter:** `id` (movie ID)
- **Request Body Parameters:** `title`, `genres`, `year`
#### Delete a Movie
- **Endpoint:** `DELETE /v1/movies/:id`
- **Description:** Delete a movie by ID.
- **Authentication:** Requires authentication and admin role.
- **Path Parameter:** `id` (movie ID)
## Error Handling
The API provides appropriate error messages and status codes for various scenarios, including invalid requests, authentication failures, and internal server errors.
## Contributing
Contributions are welcome! Feel free to open issues and submit pull requests for enhancements or bug fixes.
## License
This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.
| API for Movies database with Authentication and Authorization features | express-js,javascript,jwt-authentication,node-js,postgresql,swagger,deployment,cloud,cloud-storage,cloudinary | 2023-08-12T02:26:26Z | 2024-03-23T11:23:16Z | null | 1 | 13 | 86 | 0 | 0 | 2 | null | MIT | JavaScript |
eebrutoklu/eebrutoklu | main |
- 👋 Hi, I’m @eebrutoklu
- 📚 Starting as a graduate of Computer and Instructional Technologies, I am now a Web and Mobile Developer.
- ✨ Frontend Developer. I develop and share software by continuously improving myself.
- 🎓 Uludağ University Computer Education and Instructional Technologies Bachelor's and Master's degrees,
- 🖊️ Currently pursuing a PhD in Computer Science at Anadolu University.
- 👀 I am interested in Frontend Web and Mobile Application Development.
- 🌱 Currently, I am working on HTML, CSS, Bootstrap, JavaScript, TypeScript, React, and React Native.
- 💞️ I am looking for collaborations where I can enhance my skills, gain experience through teamwork and broaden my knowledge.
- 📫 How to reach me: eebrutoklu@outlook.com / eebrutoklu@gmail.com
- 💎 Tech Stack
[<img src="https://cdn.worldvectorlogo.com/logos/html-1.svg" width="20">](https://html.com/)
[<img src="https://cdn.worldvectorlogo.com/logos/css-3.svg" width="20">](https://www.w3.org/Style/CSS/Overview.en.html)
[<img src="https://cdn.worldvectorlogo.com/logos/sass-1.svg" width="25">](https://sass-lang.com/)
[<img src="https://cdn.worldvectorlogo.com/logos/bootstrap-5-1.svg" width="25">](https://getbootstrap.com/)
[<img src="https://cdn.worldvectorlogo.com/logos/tailwind-css-2.svg" width="25">](https://tailwindcss.com)
[<img src="https://cdn.worldvectorlogo.com/logos/logo-javascript.svg" width="20">](https://www.javascript.com/)
[<img src="https://cdn.worldvectorlogo.com/logos/typescript.svg" width="20">](https://www.typescriptlang.org/)
[<img src="https://cdn.worldvectorlogo.com/logos/react-2.svg" width="20">](https://reactjs.org/)
[<img src="https://cdn.worldvectorlogo.com/logos/material-ui-1.svg" width="25">](https://material-ui.com/)
[<img src="https://cdn.worldvectorlogo.com/logos/redux.svg" width="25">](https://redux.js.org/)
[<img src="https://cdn.worldvectorlogo.com/logos/react-native-1.svg" width="30">](https://reactnative.dev/)
[<img src="https://cdn.worldvectorlogo.com/logos/adobe-photoshop-2.svg" width="25">](https://www.adobe.com/products/photoshop.html)
| Config files for my GitHub profile. | bootstrap,css,frontend,javascript,react | 2023-08-22T13:07:56Z | 2024-03-18T19:48:06Z | null | 1 | 1 | 22 | 0 | 0 | 2 | null | null | null |
keerti1924/Scientific-Calculator | main | <div align="center">
<h1 align="center">Scientific Calculator</h1>
Responsive for all devices, built using HTML, CSS, and JavaScript.
<a href="https://keerti1924.github.io/Scientific-Calculator/"><strong>➥ Live Demo</strong></a>
</div>
<br />
## 📃 Description
Scientific Calculator is used to perform advanced scientific calculations such as finding exponents, logs, factorial, etc.
Simply choose the function you want from the menu screen and then do the operation of your choice.
<br>
<br>

<br>
1) It's easy, lightweight and super fast to start, ideal for some daily calculation needs.
2) Easy to use user main menu.
3) Various features.
👉 **Operations :-** This scientific calculator can perform the following operations which are listed below:
- Square root
- Percentage
- Factorial
- Constants (pi, e)
- Exponent
- log base 2, 10, e
- Power
- Sin, Tan, Cos (angle in degrees )
👉 **Create the scientific calculator with the help of these three files to perform the above operations**
- **index.html :-** This file contains the skeleton structure of the calculator
- **style.css :-** This file contains the styling of the calculator
- **script.js :-** This file contains the logic to perform the calculations
## 🚀 Setup/Installation Requirements
To view the website,
* click [Scientific Calculator](https://github.com/keerti1924/Scientific-Calculator.git)
or
* copy the link https://github.com/keerti1924/Scientific-Calculator.git paste it to your browser and load it.
## 🛠 Built With
* HTML
* CSS
* JAVASCRIPT
📱 Moreover, I've ensured that the website is fully responsive on all screens, making it accessible and user-friendly across various devices. 📱💡
## 🤝 Contributing
Contributions, issues, and feature requests are welcome! Feel free to check the [issues page](/issues).
## ⭐️ Show your support
Give a ⭐️ if you like this project!
## 📝 License
This project is **free to use** and does not contains any license.
| Scientific Calculator with lots of different functions. | calculator,javascript,scientific-calculator,scientific-calculator-javascript | 2023-08-21T10:56:39Z | 2023-08-22T08:05:43Z | null | 1 | 0 | 10 | 0 | 0 | 2 | null | null | CSS |
mrmcsoftware/GithubTool | main | Github Tool
===========
This is an HTML file for accessing Github.com repositories and users via
Github's web API.
<table border=5><tr><td><img src="screenshot.png" /></td></tr></table>
(I purposely used an older browser for the screenshots because I prefer the 3d
look over the flat button look of some modern browsers.)
You might wonder why use this tool, why not just use github.com? Well, for one
thing, github.com is often being changed. If you don't like the changes or the
changes won't work in your browser, using github.com might not be preferred.
Also, I feel this tool is a good example of not only using github.com's web API
but also programming API access in general. I provide many different ways of
doing things, so you can learn the different ways, and use what you like the
most. And finally, at some point in the future (or even now), you may need to
automate your github.com accesses. This tool's code can show you how you could
do that. Not to mention, there's something kinda "meta", as they say, about
creating a github repository whose purpose is to access github repositories.
Be sure to check out the bonus tools mentioned below ([Bonus Tool](#bonustool)
and [Another Bonus Tool](#bonustool2))
## Setup and Running
>**OPTIONAL:** If you want a gradual transition between Dark and Light modes,
>uncomment the line containing **transition: color 300ms, background-color 300ms;**
There are various ways of starting up this webpage. If your browser is in your
search path you could simply do the following, for example, at a command prompt:
firefox github.html
Or you could start your browser and use your browser's "Open File" (or
equivalent) menu option. Or you could use the **`file:///`** URI/protocol and
specify the whole path.
For a live demo, go to **https://mrmcsoftware.github.io/GithubTool** but do
try to use your own copy instead.
>Note: Ignore **`index.html`** and **`jquery.min.js`** . They are only there
>to make Github Pages work.
## User Interface
All input boxes, buttons, and links have tool tips to explain how to use that
element. Hover your mouse over the element to see the tool tip.
Since I didn't like the look of a bunch of underlined text links, I turned off
the underline decorations. Admittedly, this makes it harder to know if the
text is a link. However, if you hover over it, an underline will appear (as
well as a tool tip). In the section after the next one, I explain all the text
links.
Many listings will paginate if there are more than 100 results - at the end of
the page you will see as many as four buttons for **First**, **Prev**, **Next**,
and **Last**. The number listed on the button is the page number you would go
to if you clicked it.
### URL Parameters
These are optional parameters you can use if you don't like the defaults.
Use these like this, for example (If specifying this on a terminal commandline,
you probably will need to escape the special characters, depending on your OS
(for example: **`github.html?dark=false\&dirbut=false`** if using Linux,
**`"github.html?dark=false&dirbut=false"`** if using Windows)):
github.html?dark=false&dirbut=false&expandinput=true&contents=mrmcsoftware/Vec-Mat-Comp-Quat
- **dark=false** - Turn off dark mode
- **dform=false** - Use HTML `<pre>` tag to show descriptions
- **dirbut=false** - Don't use buttons for directories (Contents), use text links instead
- **keepontop=false** - Don't always keep the control bar at top of screen
- **openonly=true** - When listing repository issues or pulls, don't show closed items
- **expandinput=true** - Expand the text input fields for wider screens
- **contents=`{string}`** - Display the contents of the specified ({string}) repository
- **repo=`{string}`** - Display the contents of the specified ({string}) repository (same as **contents='{string}'**)
- **ref=`{string}`** - Specify repository's branch, commit, or tag name if desired
- **branches=`{string}`** - Display the branches of the specified ({string}) repository
- **commits=`{string}`** - Display the commits of the specified ({string}) repository
- **releases=`{string}`** - Display the releases of the specified ({string}) repository
- **issues=`{string}`** - Display the issues of the specified ({string}) repository
- **pulls=`{string}`** - Display the pull requests of the specified ({string}) repository
- **info=`{string}`** - Display information about the specified ({string}) repository
- **user=`{string}`** - Display information about the specified ({string}) user
- **searchrepos=`{string}`** - Search repositories for the specified ({string}) term
- **searchusers=`{string}`** - Search users for the specified ({string}) term
### Text Boxes, Buttons, Checkboxes, and Links
- To access a repository or user, type it into the top-left text input box.
Repositories must be in for form of {username}/{reponame}. For example:
"**`mrmcsoftware/vec-mat-comp-quat`**".
You can either press "**Enter**" on keyboard after you type the string or click
the appropriate button (such as **Contents**). If you press **Enter**, the
repository's contents will be shown.
- The second text input box is used to optionally specify the repository's
branch, commit, or tag name if desired in order to access a particular point in
the repository's timeline.
- Click the **Contents** button to view a listing of the repository's contents.
Press **Shift** key while clicking to open a new tab to the github.com page for
the repository. Or press **Ctrl** key while clicking to process the
repository's README.md file for markdown and open it in a new tab. Assuming
no key was pressed while clicking, you'll see a listing of the repo's contents.
Directories/Folders will be shown as buttons unless **dirbut=false** was
specified in the URL (in which case, the directories will be text links with
a different color). Click on the directory entry to go to that directory. Once
in a directory, click **..** to get back to the parent directory. Click on any
particular file to open a tab containing that file (through URL to
**raw.githubusercontent.com**). By the way, the number after each file is the
file size. Click on the size to get the file (through the github.com API).
Press **Ctrl** while clicking to display file in a new tab while interpreting
HTML tags (if there are any in the file). No pressed keys will do the same but
without interpreting HTML tags. Press **Shift** while clicking to download
the file. If your browser is set up this way, you'll get a prompt to either
Save it or Open it with a selectable program. This can be useful if, for
example, you want to view the file with a syntax highlighting viewer or editor,
such as gvim, neovim, Notepad++, etc.
- Click the **Branches** button to view all the branches of the repo. You can
click the **ZIP** link to download a zip file of that branches contents. The
listings of branches will paginate if more than 100 results.
- Click the **Commits** button to view all the commits of the repo. The
listings of commits will paginate if more than 100 results.
- Click the **Releases** button to view all the releases (if any) of the repo.
Click on **ZIP**, **TAR**, or a filename with **.tar.gz** to download the
release assets. The listings of releases will paginate if more than 100 results.
- Click the **Issues** button to view all the issues (if any) of the repo. Click
on the issue title to see the description of the issue. Click the issue number
to open github.com's issue page for that issue in a new tab. The **Pulls**
button works similarly. By the way, if the **Open** checkbox is checked, only
open issues or pulls will be shown (as opposed to both open and closed).
The listings of issues and pulls will paginate if more than 100 results.
- Click the **Info** button to view some information and analytics for the repo.
Click on the **Stars** number to get a listing of users who starred the repo.
Click on the **Forks** number to get a listing of users who forked the repo.
Click on the **Subscribers/Watchers** number to get a listing of users who
subscribe (or watch) the repo. Github mixes up the meaning of Watchers, so
the number of watchers may not be the same as the number of
subscribers/watchers. Click **Get Contributors** to get a listing of the
contributers to the repo. By the way, in my tool, these listings of users will
at most be 100 since I didn't implement pagination and the API returns a
maximum of 100 per page.
- Click the **User** button to view information about the user (including the
user's repositories). For this, in the top-left text input box, you can either
specify only the username or both the username and repository name (as you
would for the Contents button, etc.). You can also specify the user id number
preceded by an **`@`** symbol. In the user information box, you can
click on the Followers data to get a list of followers, Similarly, you can
click on the Followings data (if present) to get a list of users the user
follows. Click the **Get Organizations** button to get a list of organizations
the user is a member of, **Get Subscriptions** button to get a list of repos
the user subscribes to, and **Get Starred Repos** button to get a list of
repos the user has starred. As with the clickable parts of the **Info**
view mentioned above, theses listings in my tool are also limited to 100.
After the user information box is the user's repositories (containing any
repos that they created and any repos they forked). Any repo they forked will
have **(Fork)** after the repo name. Click on that tag to see the original
repo. In the Language line for each repo, click **See All** to see all the
computer languages used in the repo (and percentage of each). Click on the
Stars and Watchers numbers to get a listing of users who starred or watch the
repo (again, watchers and subscribers are used somewhat interchangeably, so
the listing might contain a different number of users that what's reported).
Also note that Github's API documentation doesn't explain what their **update**
date means (is it a push?, etc.).
The repo listing will paginate if more than 100 repos.
- Click the **Gists** button to get a listing of the specified user's gists.
The listing follows the same interactions as the **Contents** button except
there shouldn't be any directories. The listing of gists will paginate if more
than 100 results.
- Click the first **Search** button (the magnifying glass icon) to search
repositories for the string specified in the top-left input box. These results
will paginate if more than 100 results.
- Click the second **Search** button to search users for the specified string.
These results also paginate.
- Click the **Darkmode/Lightmode Toggle** button (Sun or Moon icon) to
switch between dark mode and light mode.
- Click the **On Top** checkbox to toggle always keeping the control bar on
the top of the screen.
- Click the **Open** checkbox to toggle showing only open issues/pulls or
both open and closed.
## Limitations
This github tool doesn't access all of github.com's public information. I
purposely didn't put in support for information that I felt wouldn't be needed
by most people. And there is some information that can't be accessed without
being logged in (authenticated), and in some cases can't be accessed without
having "**push**" access to the repository (for example, not being the owner of
the repository). Authentication could be added to this tool, but I didn't feel
like implementing it (I've done it for other APIs, but didn't have a need to
do it for github.com).
Also, keep in mind there are rate limits on your usage of github.com's API.
Under normal usage, you probably wouldn't hit the limits, but searches do have
lower limits. If you hit a limit, wait a little bit before trying again.
## Alternate Versions
In case you don't like the reliance on **jQuery**, I've made two versions that
don't use jQuery. The biggest part was to replace **getJSON** with the
equivalent **AJAX** (XMLHttpRequest) code or the fetch function.
**`github-no-jquery.html`** uses fetch instead of .getJSON and
**`github-no-jquery-no-fetch.html`** uses XMLHttpRequest instead of .getJSON
or fetch (some browsers don't have fetch).
>**NOTE:** The no-jQuery versions seem to be slower at getting stuff from
>github.com than the jQuery version.
## Bonus Tool<a name="bonustool"></a>
<img src="screenshotmd.png">
Do you create markdown README.md files, but wish there was a way to know how
Github.com will display them (without having to upload them to a repository
first)? Use **`githubmd.html`**, **`githubmd-no-jquery.html`**, or
**`githubmd-no-jquery-no-fetch.html`**. Use the file selector to upload your
file to github's api to have github.com convert your markdown to HTML. Note:
if there are images in your markdown file, you might need those images to be
in the same directory as **githubmd.html** in order for the images to be seen
by your browser. Also note, there might be some things that won't look exactly
the same because github.com likely defines certain behaviors in it's CSS style
files (the generated HTML will be essentially the same, but without the style
definitions). I've tried to approximate the look to some extent, though.
## Another Bonus Tool<a name="bonustool2"></a>
<img src="screenshotcp.png">
I've included a C program I wrote which gets the specified user's information,
a list of the user's repositories, and a list of the user's gists. It's written
for Linux, but with some effort, it could be rewritten to work in Windows. To
compile, you'll need both OpenSSL and the Jansson JSON API library
(https://github.com/akheron/jansson) installed. Compile with:
cc -o github github.c -lssl -ljansson
Type **`github -h`** for information on the options. An example run would be:
github mrmcsoftware
>Note: You can also get the user's information, repositories, etc. by specifying
>the user's ID number preceded by an **`@`** symbol instead of the username.
## Possible Improvements
You might notice that my javascript code isn't always consistent in how it does
certain things. This is partly because I believe in reusing code I've already
written and partly because I wanted to show that there are many different ways
of doing the same thing. Much of github is meant for teaching/learning after
all. My only requirement is that the different ways must not require the most
up-to-date browsers. But you might want consistency, so feel free to make it
consistent.
**`github.html`** currently gets **jquery.min.js** from Google (ajax.googleapis.com).
You may want to change that to wherever you choose to get jQuery from (or you
may want to change which version of jQuery is used). You can even download
jquery.min.js to the same directory as github.html and avoid getting it
from the internet every time. Or use **`github-no-jquery.html`** or
**`github-no-jquery-no-fetch.html`** to avoid jQuery altogether.
As stated above, authentication could be added in order to access some aspects
of Github.com's API. As is, this tool is for viewing, NOT changing, updating,
deleting, or creating github.com content. To do the CUD part of CRUD,
authentication would need to be implemented.
## Author
Mark Craig
[https://www.youtube.com/MrMcSoftware](https://www.youtube.com/MrMcSoftware)
| This is an HTML file for accessing Github.com repositories and users via Github's web API. Also includes a markdown viewer and a C (Linux) program to access Github's API. | api,github-api,html,jansson,javascript,jquery,json,markdown,openssl,search | 2023-08-28T22:46:52Z | 2024-04-17T23:13:53Z | null | 1 | 0 | 5 | 0 | 0 | 2 | null | null | HTML |
Ankitmohanty2/Reserve-system | main | # Car Parking
The objective of Car Parking is to establish a platform connecting parking admins in the
community with users seeking affordable parking spaces. This website assists parking admins in
ren+ng out their additional parking spaces, enabling them to earn extra income. Additionally, it
facilitates users in finding cost—effec+ve parking spaces. Both users and parking admins must
register and create a profile on the website. Parking admins can see
with availability schedules, locations, and prices. Users looking for parking spots can
search and book them based on availability. Also, the admin will be managing both users' accounts
and their profiles. Addi+onality, the admin can block any users and delete any users.
## Features List:
- User Registration and login
- Profile Management
- Parking spot listing
- Parking spot Management
- Booking and reserve
- User Review and Rating
- Search and Filter Functionality
- Admin can block, edit, and delete users.
## Technologies:
- Node.js,
- Express,
- JavaScript,
- React,
- CSS
- Bootstrap,
- SCSS,
- MongoDB
| A full stack car parking system | expressjs,javascript,json-api,jwt-authentication,mongodb,nodejs,react | 2023-08-17T10:06:55Z | 2024-03-11T17:03:55Z | null | 1 | 0 | 33 | 0 | 1 | 2 | null | null | JavaScript |
fasakinhenry/fasakinhenry2023 | main | []()
Hi My name is Fasakin Henry( @henqsoft)
=================================================================================================================================================
<img align="left" src="https://user-images.githubusercontent.com/65187002/144930161-2f783401-8d27-4fdf-a2f7-cc0ba32f1f1f.gif" width="30%" style="display:inline;"><img align="right" src="https://user-images.githubusercontent.com/65187002/144930161-2f783401-8d27-4fdf-a2f7-cc0ba32f1f1f.gif" width="30%" style="display:inline;">
<br>
<p align="center">
<h1 align="center">✩ fasakinhenry ✩</h1>
</p>
<p align="center">
<img src="https://readme-typing-svg.herokuapp.com/?lines=Yoooooooooooooooo;Welcome+to+my+profile!;Have+a+look+around!&font=Fira%20Code&color=%23D62F79¢er=true&width=280&height=50">
</p>
<br>
<p align="center">
<img id="preview" src="https://komarev.com/ghpvc/?username=fasakinhenry&color=blue">
</p>
<p align="center">
<a href="https://leetcode.com/fasakinhenry/"><img width="48%" src="https://leetcode.card.workers.dev/fasakinhenry?theme=dark&font=baloo&extension=null&border=2&border_radius=8"></a>
<a href="https://github.com/fasakinhenry"><img width="50%" src="https://github-readme-stats.vercel.app/api/top-langs/?username=fasakinhenry&theme=dark&hide=html,css,cmake&layout=compact&langs_count=5&bg_color=101010&hide_title=true"></a>
</p>
Full stack web developer and Product designer
---------------------------------------------
* 🌍 I'm based in Nigeria
* ✉️ You can contact me at [fasakinhenry@gmail.com](mailto:fasakinhenry@gmail.com)
* 🚀 I'm currently working on [Chatty](http://github.com/Henqsoft-solutions/Chatty.git)
* 🧠 I'm learning C, JavaScript, Python, MERN, NEXTJS, JavaScript frameworks, AWS cloud
* 🤝 I'm open to collaborating on Open source projects
* ⚡ I have an experience of more than 4 years working in the tech field/space

<a href="https://www.github.com/fasakinhenry" target="_blank" rel="noreferrer"><img
src="https://img.shields.io/github/followers/fasakinhenry?logo=github&style=for-the-badge&color=3382ed&labelColor=27272a" /></a><a href="https://www.x.com/henqsoft" target="_blank" rel="noreferrer"><img
src="https://img.shields.io/twitter/follow/henqsoft?logo=twitter&style=for-the-badge&color=3382ed&labelColor=27272a"
/></a>
# You wanna see some of my skills and the tool I use?
<details>
<summary >Click to toggle skills dropdown</summary>
### 💼 Technical Skills






</br>
### 📃 Writing and Blog




</br>
### 🎨 Styling and cascading




</br>
### 🛠️ General and frequently used services








</br>
### 🌍 Browsers



</br>
### ☁️ Cloud hosting / SaaS



</br>
### 💾 Databases




</br>
### 🖌️ Design










</br>
### 🧑💻 Developer Forums








</br>
### 📕 Wiki / Documentation platforms

</br>
### 🎓 Education









</br>
### 💰 Funding






</br>
### 📚 Frameworks, platforms and Libraries










































</br>
### ☁️ Hosting/SaaS











</br>
### 💻 IDEs/Editors














</br>
### 📋 Languages



















</br>
### 🎶 Music




</br>
### 🏢 Office




<be>
### 🎛️ Operating System







</br>
### 🥅 Other






</br>
### 🔍 Search Engines


</br>
### 🗄️ Servers


</br>
### 💬 Social


















</br>
### 📱 My Smartphone Brands



</br>
### 📺 Streaming




</br>
### 🕓 Version Control


</br>
### 💼 Work/Jobs





</details>
# Ahhh😱😱🙌, You haven't seen my technical skills
<details>
<summary>Click to see my technical overview</summary>
## Technical overview
<p align="left">
<a href="https://docs.microsoft.com/en-us/cpp/?view=msvc-170" target="_blank" rel="noreferrer"><img src="https://raw.githubusercontent.com/danielcranney/readme-generator/main/public/icons/skills/c-colored.svg" width="36" height="36" alt="C" /></a><a href="https://docs.microsoft.com/en-us/cpp/?view=msvc-170" target="_blank" rel="noreferrer"><img src="https://raw.githubusercontent.com/danielcranney/readme-generator/main/public/icons/skills/cplusplus-colored.svg" width="36" height="36" alt="C++" /></a><a href="https://docs.microsoft.com/en-us/dotnet/csharp/" target="_blank" rel="noreferrer"><img src="https://raw.githubusercontent.com/danielcranney/readme-generator/main/public/icons/skills/csharp-colored.svg" width="36" height="36" alt="C#" /></a><a href="https://git-scm.com/" target="_blank" rel="noreferrer"><img src="https://raw.githubusercontent.com/danielcranney/readme-generator/main/public/icons/skills/git-colored.svg" width="36" height="36" alt="Git" /></a><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript" target="_blank" rel="noreferrer"><img src="https://raw.githubusercontent.com/danielcranney/readme-generator/main/public/icons/skills/javascript-colored.svg" width="36" height="36" alt="JavaScript" /></a><a href="https://www.php.net/" target="_blank" rel="noreferrer"><img src="https://raw.githubusercontent.com/danielcranney/readme-generator/main/public/icons/skills/php-colored.svg" width="36" height="36" alt="PHP" /></a><a href="https://www.python.org/" target="_blank" rel="noreferrer"><img src="https://raw.githubusercontent.com/danielcranney/readme-generator/main/public/icons/skills/python-colored.svg" width="36" height="36" alt="Python" /></a><a href="https://www.typescriptlang.org/" target="_blank" rel="noreferrer"><img src="https://raw.githubusercontent.com/danielcranney/readme-generator/main/public/icons/skills/typescript-colored.svg" width="36" height="36" alt="TypeScript" /></a><a href="https://developer.mozilla.org/en-US/docs/Glossary/HTML5" target="_blank" rel="noreferrer"><img src="https://raw.githubusercontent.com/danielcranney/readme-generator/main/public/icons/skills/html5-colored.svg" width="36" height="36" alt="HTML5" /></a><a href="https://reactjs.org/" target="_blank" rel="noreferrer"><img src="https://raw.githubusercontent.com/danielcranney/readme-generator/main/public/icons/skills/react-colored.svg" width="36" height="36" alt="React" /></a><a href="https://nextjs.org/docs" target="_blank" rel="noreferrer"><img src="https://raw.githubusercontent.com/danielcranney/readme-generator/main/public/icons/skills/nextjs-colored.svg" width="36" height="36" alt="NextJs" /></a><a href="https://vuejs.org/" target="_blank" rel="noreferrer"><img src="https://raw.githubusercontent.com/danielcranney/readme-generator/main/public/icons/skills/vuejs-colored.svg" width="36" height="36" alt="Vue" /></a><a href="https://angular.io/" target="_blank" rel="noreferrer"><img src="https://raw.githubusercontent.com/danielcranney/readme-generator/main/public/icons/skills/angularjs-colored.svg" width="36" height="36" alt="Angular" /></a><a href="https://jquery.com/" target="_blank" rel="noreferrer"><img src="https://raw.githubusercontent.com/danielcranney/readme-generator/main/public/icons/skills/jquery-colored.svg" width="36" height="36" alt="JQuery" /></a><a href="https://www.w3.org/TR/CSS/#css" target="_blank" rel="noreferrer"><img src="https://raw.githubusercontent.com/danielcranney/readme-generator/main/public/icons/skills/css3-colored.svg" width="36" height="36" alt="CSS3" /></a><a href="https://sass-lang.com/" target="_blank" rel="noreferrer"><img src="https://raw.githubusercontent.com/danielcranney/readme-generator/main/public/icons/skills/sass-colored.svg" width="36" height="36" alt="Sass" /></a><a href="https://tailwindcss.com/" target="_blank" rel="noreferrer"><img src="https://raw.githubusercontent.com/danielcranney/readme-generator/main/public/icons/skills/tailwindcss-colored.svg" width="36" height="36" alt="TailwindCSS" /></a><a href="https://chakra-ui.com/" target="_blank" rel="noreferrer"><img src="https://raw.githubusercontent.com/danielcranney/readme-generator/main/public/icons/skills/chakra-colored.svg" width="36" height="36" alt="Chakra UI" /></a><a href="https://getbootstrap.com/" target="_blank" rel="noreferrer"><img src="https://raw.githubusercontent.com/danielcranney/readme-generator/main/public/icons/skills/bootstrap-colored.svg" width="36" height="36" alt="Bootstrap" /></a><a href="https://mui.com/" target="_blank" rel="noreferrer"><img src="https://raw.githubusercontent.com/danielcranney/readme-generator/main/public/icons/skills/materialui-colored.svg" width="36" height="36" alt="Material UI" /></a><a href="https://vitejs.dev/" target="_blank" rel="noreferrer"><img src="https://raw.githubusercontent.com/danielcranney/readme-generator/main/public/icons/skills/vite-colored.svg" width="36" height="36" alt="Vite" /></a><a href="https://nodejs.org/en/" target="_blank" rel="noreferrer"><img src="https://raw.githubusercontent.com/danielcranney/readme-generator/main/public/icons/skills/nodejs-colored.svg" width="36" height="36" alt="NodeJS" /></a><a href="https://expressjs.com/" target="_blank" rel="noreferrer"><img src="https://raw.githubusercontent.com/danielcranney/readme-generator/main/public/icons/skills/express-colored.svg" width="36" height="36" alt="Express" /></a><a href="https://www.mysql.com/" target="_blank" rel="noreferrer"><img src="https://raw.githubusercontent.com/danielcranney/readme-generator/main/public/icons/skills/mysql-colored.svg" width="36" height="36" alt="MySQL" /></a><a href="https://www.postgresql.org/" target="_blank" rel="noreferrer"><img src="https://raw.githubusercontent.com/danielcranney/readme-generator/main/public/icons/skills/postgresql-colored.svg" width="36" height="36" alt="PostgreSQL" /></a><a href="https://www.heroku.com/" target="_blank" rel="noreferrer"><img src="https://raw.githubusercontent.com/danielcranney/readme-generator/main/public/icons/skills/heroku-colored.svg" width="36" height="36" alt="Heroku" /></a><a href="https://render.com/" target="_blank" rel="noreferrer"><img src="https://raw.githubusercontent.com/danielcranney/readme-generator/main/public/icons/skills/render-colored.svg" width="36" height="36" alt="Render" /></a><a href="https://supabase.io/" target="_blank" rel="noreferrer"><img src="https://raw.githubusercontent.com/danielcranney/readme-generator/main/public/icons/skills/supabase-colored.svg" width="36" height="36" alt="Supabase" /></a><a href="https://firebase.google.com/" target="_blank" rel="noreferrer"><img src="https://raw.githubusercontent.com/danielcranney/readme-generator/main/public/icons/skills/firebase-colored.svg" width="36" height="36" alt="Firebase" /></a><a href="https://www.adobe.com/uk/products/photoshop.html" target="_blank" rel="noreferrer"><img src="https://raw.githubusercontent.com/danielcranney/readme-generator/main/public/icons/skills/photoshop-colored.svg" width="36" height="36" alt="Photoshop" /></a><a href="https://www.adobe.com/uk/products/illustrator.html" target="_blank" rel="noreferrer"><img src="https://raw.githubusercontent.com/danielcranney/readme-generator/main/public/icons/skills/illustrator-colored.svg" width="36" height="36" alt="Illustrator" /></a><a href="https://www.adobe.com/uk/products/aftereffects.html" target="_blank" rel="noreferrer"><img src="https://raw.githubusercontent.com/danielcranney/readme-generator/main/public/icons/skills/aftereffects-colored.svg" width="36" height="36" alt="After Effects" /></a><a href="https://www.adobe.com/uk/products/premiere.html" target="_blank" rel="noreferrer"><img src="https://raw.githubusercontent.com/danielcranney/readme-generator/main/public/icons/skills/premierepro-colored.svg" width="36" height="36" alt="Premiere Pro" /></a><a href="https://www.adobe.com/uk/products/xd.html" target="_blank" rel="noreferrer"><img src="https://raw.githubusercontent.com/danielcranney/readme-generator/main/public/icons/skills/xd-colored.svg" width="36" height="36" alt="XD" /></a><a href="https://www.figma.com/" target="_blank" rel="noreferrer"><img src="https://raw.githubusercontent.com/danielcranney/readme-generator/main/public/icons/skills/figma-colored.svg" width="36" height="36" alt="Figma" /></a><a href="https://metamask.io/" target="_blank" rel="noreferrer"><img src="https://raw.githubusercontent.com/danielcranney/readme-generator/main/public/icons/skills/metamask-colored.svg" width="36" height="36" alt="MetaMask" /></a><a href="https://docs.alchemy.com/alchemy/documentation/alchemy-web3" target="_blank" rel="noreferrer"><img src="https://raw.githubusercontent.com/danielcranney/readme-generator/main/public/icons/skills/alchemy-colored.svg" width="36" height="36" alt="Alchemy" /></a><a href="https://cloud.google.com/" target="_blank" rel="noreferrer"><img src="https://raw.githubusercontent.com/danielcranney/readme-generator/main/public/icons/skills/googlecloud-colored.svg" width="36" height="36" alt="Google Cloud" /></a>
</p>
</details>
## Socials
<br>
<p align="left"> <a href="https://www.dribbble.com/henqsoft" target="_blank" rel="noreferrer"> <picture> <source media="(prefers-color-scheme: dark)" srcset="undefined" /> <source media="(prefers-color-scheme: light)" srcset="https://raw.githubusercontent.com/danielcranney/readme-generator/main/public/icons/socials/dribbble.svg" /> <img src="https://raw.githubusercontent.com/danielcranney/readme-generator/main/public/icons/socials/dribbble.svg" width="32" height="32" /> </picture> </a> <a href="https://www.github.com/fasakinhenry" target="_blank" rel="noreferrer"> <picture> <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/danielcranney/readme-generator/main/public/icons/socials/github-dark.svg" /> <source media="(prefers-color-scheme: light)" srcset="https://raw.githubusercontent.com/danielcranney/readme-generator/main/public/icons/socials/github.svg" /> <img src="https://raw.githubusercontent.com/danielcranney/readme-generator/main/public/icons/socials/github.svg" width="32" height="32" /> </picture> </a> <a href="http://www.instagram.com/henqsoft" target="_blank" rel="noreferrer"> <picture> <source media="(prefers-color-scheme: dark)" srcset="undefined" /> <source media="(prefers-color-scheme: light)" srcset="https://raw.githubusercontent.com/danielcranney/readme-generator/main/public/icons/socials/instagram.svg" /> <img src="https://raw.githubusercontent.com/danielcranney/readme-generator/main/public/icons/socials/instagram.svg" width="32" height="32" /> </picture> </a> <a href="https://www.x.com/henqsoft" target="_blank" rel="noreferrer"> <picture> <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/danielcranney/readme-generator/main/public/icons/socials/twitter-dark.svg" /> <source media="(prefers-color-scheme: light)" srcset="https://raw.githubusercontent.com/danielcranney/readme-generator/main/public/icons/socials/twitter.svg" /> <img src="https://raw.githubusercontent.com/danielcranney/readme-generator/main/public/icons/socials/twitter.svg" width="32" height="32" /> </picture> </a> <a href="https://www.youtube.com/@fashencode" target="_blank" rel="noreferrer"> <picture> <source media="(prefers-color-scheme: dark)" srcset="undefined" /> <source media="(prefers-color-scheme: light)" srcset="https://raw.githubusercontent.com/danielcranney/readme-generator/main/public/icons/socials/youtube.svg" /> <img src="https://raw.githubusercontent.com/danielcranney/readme-generator/main/public/icons/socials/youtube.svg" width="32" height="32" /> </picture> </a></p>
## My GitHub Stats
<br>
<a href="http://www.github.com/fasakinhenry"><img src="https://github-readme-stats.vercel.app/api?username=fasakinhenry&show_icons=true&hide=&count_private=true&title_color=ffffff&text_color=ffffff&icon_color=3382ed&bg_color=22272e&hide_border=true&show_icons=true" alt="fasakinhenry's GitHub stats" /></a>
<a href="http://www.github.com/fasakinhenry"><img src="https://github-readme-streak-stats.herokuapp.com/?user=fasakinhenry&stroke=ffffff&background=22272e&ring=ffffff&fire=ffffff&currStreakNum=ffffff&currStreakLabel=ffffff&sideNums=ffffff&sideLabels=ffffff&dates=ffffff&hide_border=true" /></a>
[](https://github.com/fasakinhenry/github-readme-activity-graph)
<a href="https://github.com/fasakinhenry" align="left"><img src="https://github-readme-stats.vercel.app/api/top-langs/?username=fasakinhenry&langs_count=10&title_color=ffffff&text_color=ffffff&icon_color=3382ed&bg_color=22272e&hide_border=true&locale=en&custom_title=Top%20%Languages" alt="Top Languages" /></a>
[](https://github.com/MrKrishnaAgarwal/readme-components-github)
## Top Repositories
<div width="100%" align="center"><a href="https://github.com/fasakinhenry/alx-low_level_programming" align="left"><img align="left" width="45%" src="https://github-readme-stats.vercel.app/api/pin/?username=fasakinhenry&repo=alx-low_level_programming&title_color=ffffff&text_color=ffffff&icon_color=3382ed&bg_color=22272e&hide_border=true&locale=en" /></a><a href="https://github.com/fasakinhenry/alx-system_engineering-devops" align="right"><img align="right" width="45%" src="https://github-readme-stats.vercel.app/api/pin/?username=fasakinhenry&repo=alx-system_engineering-devops&title_color=ffffff&text_color=ffffff&icon_color=3382ed&bg_color=22272e&hide_border=true&locale=en" /></a></div>
<br/><br/><br/><br/><br/><br/><br/>
<div width="100%" align="center"><a href="https://github.com/fasakinhenry/alx-pre_course" align="left"><img align="left" width="45%" src="https://github-readme-stats.vercel.app/api/pin/?username=fasakinhenry&repo=alx-pre_course&title_color=ffffff&text_color=ffffff&icon_color=3382ed&bg_color=22272e&hide_border=true&locale=en" /></a><a href="https://github.com/fasakinhenry/zero_day" align="right"><img align="right" width="45%" src="https://github-readme-stats.vercel.app/api/pin/?username=fasakinhenry&repo=zero_day&title_color=ffffff&text_color=ffffff&icon_color=3382ed&bg_color=22272e&hide_border=true&locale=en" /></a></div>
<br>
------





## Check out my GitHub city to visualize my GitHub stats and graph
[Check out my city here](https://honzaap.github.io/GithubCity/?name=fasakinhenry&year=2023)
<a href="https://honzaap.github.io/GithubCity/?name=fasakinhenry&year=2023"><img src="./githubcity.png" alt="Alt text" title="Optional title"></a>
| fasakin | africa,best,c,code,coding,developer,henry,javascript,jobs,leadership | 2023-09-07T17:37:02Z | 2024-05-23T01:58:41Z | null | 1 | 2 | 458 | 0 | 1 | 2 | null | null | null |
Wellington-lopes/catClick | main | # catClick


| null | css3,git,github,html5,javascript | 2023-08-14T14:36:08Z | 2023-09-07T14:03:18Z | null | 1 | 0 | 4 | 0 | 0 | 2 | null | MIT | JavaScript |
sayhan2/Recommender | main | # Content Recommender
## Overview
The purpose of this project is to create accurate movie and TV show recommendations on a platform that allows users to collaborate with each other. This solves the problem of users not having shows or movies to watch and provides personalized recommendations based on their interests.
## Features
- Token authentication for secure user registration and login.
- Fetching data from external APIs to gather movie and TV show information.
- User account creation and profile management.
- Ability to mark watched movies or shows for personalized recommendations.
- Collaborative platform where users can friend each other and share movie and show interests.
## Technologies Used
The project is built using the MEVN stack (MongoDB, Express.js, Vue.js, Node.js), providing a robust and efficient web application.
## Setup
The application is a full-fledged web application and can be accessed online once deployed. No specific requirements or dependencies need to be installed locally.
## Usage
1. Visit the application's website and create an account or log in with existing credentials.
2. Navigate to the "Profile" section to update your preferences and mark movies or shows as watched.
3. Explore personalized recommendations based on your preferences and collaborations with friends.
## Contributing
At the moment, the project is not open to external contributions.
## License
[License information will be added once the project is complete.]
| Explore this GitHub repository for a content recommender built with Node.js and MongoDB. Users can mark shows they've watched, and the system uses this input to provide personalized show and movie suggestions. | mongodb,expressjs,javascript,userauthentication | 2023-08-21T00:43:01Z | 2023-09-08T18:10:44Z | null | 1 | 0 | 14 | 0 | 0 | 2 | null | null | JavaScript |
avinashcodelabs/agile-poker-planner | 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
```
Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
## Git Etiquettes
Sample commit messages; choose according to the change you are making.
```bash
git commit -m "fix: your commit message here"
git commit -m "feat: your commit message here"
git commit -m "BREAKING CHANGE: your commit message here"
git commit -m "build: your commit message here"
git commit -m "chore: your commit message here"
git commit -m "ci: your commit message here"
git commit -m "docs: your commit message here"
git commit -m "style: your commit message here"
git commit -m "refactor: your commit message here"
git commit -m "perf: your commit message here"
git commit -m "test: your commit message here"
```
Full list available here - [https://www.conventionalcommits.org/en/v1.0.0/#summary](https://www.conventionalcommits.org/en/v1.0.0/#summary)
| Collaboratively estimate and prioritize work stories with the Agile Poker Planner | agile,javascript,nextjs13,poker-planning,project,scrum,scrum-poker,socket-io,realtime-collaboration,realtime-messaging | 2023-08-26T04:22:10Z | 2023-11-05T14:00:32Z | null | 3 | 23 | 92 | 17 | 0 | 2 | null | MIT | JavaScript |
mikechiloane/FineXto | main | Landing page for an online banking app built with react, tailwind and framer-motion | css,framer-motion,javascript,react,tailwindcss | 2023-08-21T05:26:08Z | 2023-08-21T22:52:58Z | null | 2 | 0 | 2 | 0 | 0 | 2 | null | null | JavaScript | |
kinderasteroid/Diabetics-Prediction-Using-Django | master | # Diabetics-Prediction-Using-Django-Machine Learning
___________________________________________________________________________________________________________________________________________________________
This Model is Created Using the Pythons Popular Webframework i.e Django and Using the Support Vector Machine Model to Predict the Outcomes Based On the Inputs Given by the User
## Input To the Model
+ Pregnency (integer)
+ Glucose
+ Blood Preasure (integer)
+ Skin Thickness (integer)
+ Insulin
+ BMI
+ Diabetics Pedegree Function
+ Age
Model Takes the Following Inputs Based Over the WebPage and Predicts the Output!
## Application:
Quite Commonly It Can be Used By the Medical Practicioners and Doctors
## How to Run On Your Mahine?:
> **_NOTE:_** Do have Python Installed in Your System and Enter Following Commands in Your Commandline
### 1.Install Django by
```
pip install django
```
### 2.Clone this Repo to Your System
### 3.Go Into Diabetics Folder and Run the manage.py by django
```
cd diabetics
py manage.py runserver
```
### 4.Hence The Webserver Should Run at http://127.0.0.1:8000/, Go to Your Browser and Enter the IP and Appliction Should be Visible like Below

do contact @kinderasteroid for Help,Support,Assistance
## Project-Contributtors
> Suhas S Bhandary and
> Varsha V Shetty
| Diabetics Predicition Using Django,Bootstrap and Machine Learning | css,django,hacktoberfest,html,javascript | 2023-08-24T14:06:09Z | 2023-10-20T12:10:43Z | null | 2 | 1 | 11 | 1 | 2 | 2 | null | GPL-3.0 | Python |
GabisRocha/x-men-project | main | # :tv: Projeto [X-Men](https://gabisrocha.github.io/x-men-project/)

## Descrição:
Este projeto tem como objetivo simular a seleção dos personagens em um jogo na temática de X-Men.
<br>
<br>
`X-Men teve a sua primeira edição de HQs publicada em 1963 por Stan Lee e Jack Kirby, a franquia também está presente em animações, filmes, vídeo games, entre outras mídias.`
## Tecnologias:
Projeto desenvolvido com as seguintes tecnologias:
:small_blue_diamond: HTML
:small_blue_diamond: CSS
:small_blue_diamond: JAVASCRIPT
## Licença
Este projeto está sob a licença do MIT, consulte o arquivo [LICENÇA MIT](https://github.com/GabisRocha/x-men-project/blob/main/LICENSE) para mais detalhes.
#
### Gostou? Deixe uma estrelinha para ajudar o projeto ⭐
| Project developed from the experience in the "programmer's week" by the Dev em Dobro channel. | design,front-end,frontend,html-css-javascript,javascript,devemdobro,html,css | 2023-08-27T02:44:41Z | 2023-08-27T03:28:46Z | null | 1 | 0 | 5 | 0 | 0 | 2 | null | MIT | HTML |
caengen/smolpong | master | Mangled, minified, zipped and base64 encoded. The entire website fits in the URL. Runs on [https://smolsite.zip/](https://smolsite.zip/).
Mangled with:
> terser src/index.ai.js -c --module --mangle
A very smol
[game of pong](https://smolsite.zip/UEsDBBQAAgAIAORhKlfOagZGrwIAAJwEAAAKAAAAaW5kZXguaHRtbJ2UX2+bMBDA3/cpIiZFEA5i0mbZGkwVpfvzsGlSU2mTqj4wOIJVsBNwQliT774zSaZo29MebHw/n+/O5zvCHypte7VuC+Rqi1VWqOYmF2mKMgqTWG7jOgqH50WdVGKlo21c9RA0CCh4qpJNiVL76w1W7QILTLSqbOt4xHJA8sJvRKpzrnNR+0JKrL4ZGXLayVEsc32x9akDEHMGFQ1FI6GRcp+xa6h5zeVw5I0h4/lwBC0P+hKb3l2s8VYO0huPJigvaW4oTbAhM1saDQ8Y7GhisORfYp37pZDwfFrGO7g/hlMhXanWMynKWAslP1RxibA6bsZp+n5L1/4sao0UNizoMkvUcyU17rRtjVLLmSqenANm0wJ174HbDo9e/i8nSJbegjYzg4WfkStuXbPVrjerRFxYIChJwXggD9MH24GVbVVYi59ogW28EnOcLoo1fzlMzSPOOFI060f0n7GdqxSfuEWrVDXS4hx93a7wMCVDZwizzi6Jm1UnFD5FoTZJXlL1dNaUOWcI1o/syU8KQWn6Tgk4dL7ncMcLUpvv9/acF2TBm0cBXg3fsH7fXj9eTZ7oG3tcOEDSu05yjVRGRiNxx8yr3XEnVJ4pC7qxA2ceNoa7Z+5QBS3tZ1u5MTAqRg9JtSOJW/0mdh2y/b6OpNc4dLwdcC8gmoVeQDyL8iMvDYfMuN64LmQhLba06J74WJEO1JHq9+tQudjvZyE34ZTk0Av8YFBC4xiNxGgknUbEc2809vRw9A9Fl7eQubyk104KjKt7ai6bAQMJuWNKQBTFoutd6zVjzDqhTk2RGpKZS5YAOfsb15BRN+s/LU4mk7PFB1PTGzCV3MAOds4l35547hGPuWnb7mU3YWASFDa39/adc3NxwvpIrdT7Sv8bqzu7A5O6w9TohcPTX+bVL1BLAQIeAxQAAgAIAORhKlfOagZGrwIAAJwEAAAKAAAAAAAAAAEAAACkgQAAAABpbmRleC5odG1sUEsFBgAAAAABAAEAOAAAANcCAAAAAA==)
| A smol game | javascript,pong,smolsite | 2023-09-08T17:18:11Z | 2023-09-10T12:15:07Z | null | 1 | 0 | 30 | 0 | 0 | 2 | null | null | JavaScript |
alpozkanm/alpozkan.info | main | ## ✨ My personal website built with Next.js
[](https://www.alpozkan.info?utm_source=github-info&utm_medium=github-count&utm_campaign=github-readme&utm_id=github)
# 💫 About Me:
As a seasoned Product Executive with over 10 years of experience, I have consistently delivered groundbreaking products in diverse industries such as E-commerce, FinTech, Delivery Service, Blockchain, and Mobile Apps.<br><br>My proven track record includes successfully launching more than 75 products on an international scale. Adept at building robust product organizations, I possess a keen understanding of every stage of product development, from early ideation to launch.
## 🌐 Socials:
[](https://bit.ly/Resume-Alp-Ozkan)
[](https://linkedin.com/in/alpozkan)
[](https://medium.com/@alpozkanm)
[](https://twitter.com/Alpozkanm)
---
| Website of Alp Ozkan: Product Manager living in Istanbul, passionate about UX, Software Development and Web3. | blog,contentlayer,cypress,google-analytics-4,javascript,mdx,nextjs,personal,portfolio,product-management | 2023-09-08T16:52:51Z | 2023-12-29T15:05:21Z | null | 1 | 3 | 29 | 0 | 0 | 2 | null | MIT | TypeScript |
victorhtanaka/Garssum | main | # Garssum
Um site integrado com banco de dados em mySql para gestão de dieta pessoal.
## > Colaboradores



## > Licença
[MIT](https://choosealicense.com/licenses/mit/)
| 🥪🥦Aplicação web para gestão de dietas | javascript,php,apache,css,html,mysql,xampp,webapp | 2023-09-03T13:06:54Z | 2024-02-23T20:27:33Z | null | 3 | 3 | 24 | 0 | 0 | 2 | null | MIT | PHP |
fadegor05/Simple-Badges | main | # Simple-Badges
Simple-Badges is a simple and easy to use generator of badges, which you can use anywhere, starting from your github account ending website. You can use it to easily give links to yours Telegram, Github, Youtube, Discord accounts.
# Examples
<img src="readmemd/example1.png" height="100">
<img src="readmemd/example2.png" height="100">
<img src="readmemd/example3.png" height="100">
<img src="readmemd/example4.png" height="100">
<img src="readmemd/example5.png" height="100">
# How it works
One thing you need to do is open <b>index.html</b> in your browser. To generate badge like this you need just use easy <b>Simple-Badges</b> syntax:
<b>Python Server Adress</b>/?<b>title=Title</b>&<b>subtitle=Subtitle</b>&<b>color=Color in Hex</b>&<b>px=Height in PX</b>
### Example:
<img src="readmemd/example6.png" height="100">
``
http://127.0.0.1:8000/?title=Title&subtitle=Subtitle&color=8c26ab&px=96
``
# Installation
### Clone this Github project
```
git clone https://github.com/fadegor05/Simple-Badges
```
### Building a Docker image
```
docker build -t simple-badges-image .
```
### Run the docker container from image
```
docker run -rm -t --name simple-badges-instance -p 8000:5000 simple-badges
```
instead of port <b>8000</b> you can use any you want. | Simple-Badge-Gen is a simple and easy to use generator of badges | css,dockerfile,html,javascript | 2023-08-20T21:55:46Z | 2023-09-10T10:06:53Z | null | 1 | 0 | 2 | 0 | 0 | 2 | null | null | JavaScript |
jackcielf/curso-de-Angular-v10 | master | # Curso4
This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 10.1.6.
## Development server
Run `ng serve` for a dev server. Navigate to `http://localhost:4200/`. The app will automatically reload if you change any of the source files.
## Code scaffolding
Run `ng generate component component-name` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module`.
## Build
Run `ng build` to build the project. The build artifacts will be stored in the `dist/` directory. Use the `--prod` flag for a production build.
## Running unit tests
Run `ng test` to execute the unit tests via [Karma](https://karma-runner.github.io).
## Running end-to-end tests
Run `ng e2e` to execute the end-to-end tests via [Protractor](http://www.protractortest.org/).
## Further help
To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI README](https://github.com/angular/angular-cli/blob/master/README.md).
| Código das aulas de um curso de Angular, na versão 10, com a professora Loiane +_+ | angular,html,javascript,sass,typescript | 2023-08-13T17:32:35Z | 2023-09-22T14:08:29Z | null | 1 | 0 | 10 | 0 | 0 | 2 | null | null | TypeScript |
mivige/PlantinoCare | main | # PlantinoCare





---
Developed in occasion of the Arduino Day 2023, the project aims to assist in plant management while promoting water conservation, which has become crucial in recent years.
<img src="Images/fotoAlto.jpg">
Using a microcontroller and various sensors, we collect data from the plant and the surrounding environment, the data is read by a Python script that then writes them in a MySQL database.
A web application then access and displays them in a user-friendly interface, accessible from smartphones and computers. This application provides instructions to improve plant conditions.
<img src="Images/fotoApp.jpg">
It is also possible to automate actions such as watering and control light exposure.
The project was presented during the 2023 edition of the "Rome Maker Faire", being chosen between competitors from all Europe.
---
## How it works
The whole project could be divided in 4 parts:
- Arduino board
The code that runs continuously on the Arduino board reads the data from the installed sensors, process them to make them readable with common units of measure and then print them on the serial port.
- Middleware
A Python script that is constantly running listens to the serial port and insert the datas in a MySQL database table called 'datas', adding the date and time of the reading. Every hour this same scripts copy the average values read in another table called 'averages' and clean the 'datas' table, this is to contain the enourmous quantity of data that we could get in a large time frame, knowing that we have a database entry every 10 seconds.
- Database
The database runs on MySQL and is made of 3 tables: 'datas', 'averages' and 'info'. In the 'info' table there are constants values for specifics plants, in the SQL code you can see an example for a plant of basil. A deep-down database analysis is contained in <a href="https://github.com/mivige/PlantinoCare/blob/66d1d65ed66797f7bc709f22ad5ee403c37a6253/DB%20Analysis.md">this repository</a>.
- Front-end
The front-end is made mostly in HTML and JavaScript, the page access the database and read the last data inserted, then confront it with the 'info' table corresponding to the plant to display the correct instructions. In a second page is possible to visualize past data from a chosen date in a graph.
### Representation:
<img src="Images/SystemRepresentation.png">
---
## Copyright
PlantinoCare © 2023 by Michele Vincenzo Gentile, Samuele Triveri is licensed under GPL-2.0
| Developed in occasion of the Arduino Day 2023, the project aims to assist in plant management. | agriculture,arduino,cpp,home-automation,industrial-automation,php,sustainability,python,sql,html | 2023-09-11T12:31:06Z | 2024-01-23T12:14:49Z | null | 1 | 0 | 52 | 0 | 0 | 2 | null | GPL-2.0 | JavaScript |
Titus-Kiplagat/leaderboard | development | <!-- TABLE OF CONTENTS -->
# 📗 Table of Contents
- [📖 About the Project](#about-project)
- [🛠 Built With](#built-with)
- [Tech Stack](#tech-stack)
- [Key Features](#key-features)
- [🚀 Live Demo](#live-demo)
- [💻 Getting Started](#getting-started)
- [Prerequisites](#prerequisites)
- [Setup](#setup)
- [Usage](#usage)
- [Run tests](#run-tests)
- [👥 Authors](#authors)
- [🔭 Future Features](#future-features)
- [🤝 Contributing](#contributing)
- [⭐️ Show your support](#support)
- [🙏 Acknowledgements](#acknowledgements)
- [📝 License](#license)
<!-- PROJECT DESCRIPTION -->
# 📖 Leaderboard Application <a name="about-project"></a>
> 🚧 The Leaderboard Application is a simple yet powerful tool for tracking and displaying user scores or rankings in various contexts, such as games, competitions, or any scenario where you need to compare and showcase performance. 🚧
## 🛠 Built With <a name="built-with"></a>
### Tech Stack <a name="tech-stack"></a>
<details>
<summary>Client</summary>
<ul>
<li><a href="https://developer.mozilla.org/en-US/docs/Web/HTML">HTML</a></li>
<li><a href="https://developer.mozilla.org/en-US/docs/Web/CSS">CSS</a></li>
<li><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript">JAVASCRIPT</a></li>
<li><a href="https://getbootstrap.com/docs/5.3/getting-started/introduction/">BOOTSTRAP</a></li>
<li><a href="https://webpack.js.org/guides/getting-started/">WEBPACK</a></li>
<li><a href="https://www.atlassian.com/git/tutorials/comparing-workflows/gitflow-workflow">GITFLOW</a></li>
<li><a href="https://github.com/microverseinc/linters-config/tree/master/html-css-js">GITHUB ACTIONS & LINTERS</a></li>
</ul>
</details>
<p align="right">(<a href="#readme-top">back to top</a>)</p>
<!-- Features -->
### Key Features <a name="key-features"></a>
- Easily input user name and scores.
- Have a seamless experience on both mobile and desktop devices.
- Automatically sort and display user rankings based on scores.
- Send and receive data from an API.
<p align="right">(<a href="#readme-top">back to top</a>)</p>
<!-- LIVE DEMO -->
## 🔭 Live Demo <a name="future-features"></a>
[Leaderboard live demo](https://titus-kiplagat.github.io/leaderboard)
<p align="right">(<a href="#readme-top">back to top</a>)</p>
<!-- GETTING STARTED -->
## 💻 Getting Started <a name="getting-started"></a>
To get a local copy up and running, follow these steps.
### Prerequisites
You have to use this tools in your local machine.
- NPM
- GIT & GITHUB
- Any Code Editor (VS Code... etc)
### Setup
Clone this repository to your desired folder:
Example commands:
```sh
cd my-folder
git init # if not initialized git on your folder
git clone git@github.com:Titus-Kiplagat/leaderboard.git
cd leaderboard
npm install # to install dependencies
```
### Usage
To run the project, execute the following command:
> Open live server on you editor
### Run tests
To run tests, run the following command on terminal:
Example commands:
Test for webhint errors
```sh
npx hint .
```
Test for stylelint errors
```sh
npx stylelint "**/*.{css,scss}"
```
Test for eslint errors
```sh
npx eslint .
```
Trigger the build process of the project
```sh
npm run build
```
Start the project
```sh
npm start
```
<!-- AUTHORS -->
## 👥 Authors <a name="authors"></a>
👤 **Titus Kiplagat**
- GitHub: [@github](https://github.com/Titus-Kiplagat)
- LinkedIn: [LinkedIn](https://www.linkedin.com/in/titus-kiplagat-kemboi-9a8848262/)
<p align="right">(<a href="#readme-top">back to top</a>)</p>
<!-- FUTURE FEATURES -->
## 🔭 Future Features <a name="future-features"></a>
- Improve web accessibility features.
<p align="right">(<a href="#readme-top">back to top</a>)</p>
<!-- CONTRIBUTING -->
## 🤝 Contributing <a name="contributing"></a>
Contributions, issues, and feature requests are welcome!
Feel free to check the [issues page](../../issues/).
<p align="right">(<a href="#readme-top">back to top</a>)</p>
<!-- SUPPORT -->
## ⭐️ Show your support <a name="support"></a>
Your support is crucial to the success of this project! There are ways you can contribute and show your support:
- Provide Feedback: If you've tried out the project or have any suggestions for improvement, we would love to hear from you. Your feedback is invaluable in shaping the future direction of the project.
- Give a ⭐️ if you like this project!
Remember, your support matters! Whether it's spreading the word, providing feedback, reporting issues, contributing code, or making a donation, every action makes a difference. Together, we can make this project even better.
Thank you for your support and for being a part of this journey!
<p align="right">(<a href="#readme-top">back to top</a>)</p>
<!-- ACKNOWLEDGEMENTS -->
## 🙏 Acknowledgments <a name="acknowledgements"></a>
I would like to give credit to list of contributors:
- Microverse Team
<p align="right">(<a href="#readme-top">back to top</a>)</p>
<!-- LICENSE -->
## 📝 License <a name="license"></a>
This project is [MIT](./LICENSE) licensed.
<p align="right">(<a href="#readme-top">back to top</a>)</p> | This is a simple yet powerful tool for tracking and displaying user scores or rankings in various contexts, such as games, competitions, or any scenario where you need to compare and showcase performance. | boostrap5,css3,html5,javascript | 2023-08-29T15:07:22Z | 2023-09-01T16:07:59Z | null | 1 | 3 | 49 | 0 | 0 | 2 | null | MIT | JavaScript |
ahmadammarm/game-kemerdekaan | main | <h1>Inden Games</h1>
<p>IndenGames adalah sebuah platform game berbasis website yang memuat 2 game sederhana yaitu game Kuis Kemerdekaan dan juga Pahlawan Games</p>
### Techs in This Project
<img src="https://img.shields.io/badge/html5-%23E34F26.svg?style=for-the-badge&logo=html5&logoColor=white"> <img src="https://img.shields.io/badge/css3-%231572B6.svg?style=for-the-badge&logo=css3&logoColor=white"> <img src="https://img.shields.io/badge/javascript-%23323330.svg?style=for-the-badge&logo=javascript&logoColor=%23F7DF1E"> <img src="https://img.shields.io/badge/bootstrap-%23563D7C.svg?style=for-the-badge&logo=bootstrap&logoColor=white">
### Prerequisites
Sebelum Anda menjalankan website ini, mohon ikuti tahapan berikut:
* [Git](https://git-scm.com/downloads "Download Git") harus terinstall di dalam sistem operasi Anda.
### Run Locally
- Sangat disarankan untuk menjalankan di laptop atau PC dan tidak dianjurkan untuk dijalankan di smartphone maupun tablet
- Untuk menjalankan di server lokal, jalankan perintah di Git Bash Anda dengan command seperti di bawah ini:
```bash
git clone https://github.com/ahmadammarm/game-kemerdekaan.git
```
<p>Website Inden Games dibuat untuk mengikuti lomba yang diadakan oleh <a href="https://docs.google.com/forms/d/e/1FAIpQLScZ81Orvn0cPnurAnOzpYQCWqttcH9WeXV9oJGOxvTvAzKETg/viewform">Code Cafe Id</a></p>
| Education website with the theme Indonesia Independent Day using HTML, CSS, Javascript, and Bootstrap 5 | bootstrap5,css,education,educational-project,html,html-css-javascript,indonesia,javascript | 2023-08-11T01:07:16Z | 2024-01-01T09:27:43Z | null | 1 | 0 | 25 | 0 | 0 | 2 | null | null | JavaScript |
Prachichhatrola/PHP | main | null | null | css,html,javascript,php,webpage | 2023-08-31T08:57:57Z | 2023-08-31T09:05:18Z | null | 1 | 0 | 8 | 0 | 0 | 2 | null | null | PHP |
mohprogramer/online-shop | main | # Hi there! <img src="https://github.com/TheDudeThatCode/TheDudeThatCode/blob/master/Assets/Hi.gif" width="35" />
##### [Live Demo](https://64e6856a6084ad10b6816d36--preeminent-cobbler-05c76f.netlify.app/) on Netlify



| null | css3,html5,javascript,reactjs,redux,usecontext | 2023-08-12T21:05:13Z | 2023-08-23T22:23:54Z | null | 1 | 0 | 10 | 0 | 0 | 2 | null | null | JavaScript |
arnoldnekemiah/crypto-market | dev | <a name="readme-top"></a>
<div align="center">
<br/>
<h1><b>Crypto Currency Rankings</b></h1>
</div>
# 📗 Table of Contents
- [📖 About the Project](#about-project)
- [🛠 Built With](#built-with)
- [Tech Stack](#tech-stack)
- [Key Features](#key-features)
- [🚀 Live Demo](#live-demo)
- [💻 Getting Started](#getting-started)
- [Prerequisites](#prerequisites)
- [Setup](#setup)
- [Install](#install)
- [Usage](#usage)
- [Run tests](#run-tests)
- [Deployment](#deployment)
- [👥 Authors](#authors)
- [🔭 Future Features](#future-features)
- [🤝 Contributing](#contributing)
- [⭐️ Show your support](#support)
- [🙏 Acknowledgements](#acknowledgements)
# 📖 Crypto Market <a name="about-project"></a>
**Crypto Market** is an app that lets you keep track of the top 100 cryptocurrencies ranked by their marketcaps. You will also be able to see details about each token such as the price per unit in USD, amount traded in the past 24h in USD, the current supply of the token in circulation, as well as the maximum possible supply of the token.
## 🛠 Built With <a name="built-with"></a>
### Tech Stack <a name="tech-stack"></a>
<details>
<summary>Client</summary>
<ul>
<li><a href="https://react.dev/">React</a></li>
<li><a href="https://react-redux.js.org/">React-Redux</a></li>
<li><a href="https://redux-toolkit.js.org/">Redux Toolkit</a></li>
<li><a href="https://jestjs.io/docs/getting-started">Jest</a></li>
</ul>
</details>
<details>
<summary>APIs</summary>
<ul>
<li><a href="https://docs.coincap.io/">Coincap</a></li>
</ul>
</details>
### Key Features <a name="key-features"></a>
- **Current cryptocurrency market prices from an actively maintained API**
- **Search for a specific token by either rank number or name.**
- **Intuitive UI**
<p align="right">(<a href="#readme-top">back to top</a>)</p>
## 🚀 Live Demo <a name="live-demo"></a>
- [Live Demo Link](https://hilarious-narwhal-a7e78b.netlify.app/)
- [Video Presentation](https://drive.google.com/file/d/17e6YAzZ8fYGCiwe8kyCqIB18dNP01s3W/view?usp=sharing)
<p align="right">(<a href="#readme-top">back to top</a>)</p>
## 💻 Getting Started <a name="getting-started"></a>
To get a local copy up and running, follow these steps.
- Clone this project.
- Open it in VS code.
- Run `npm install` to install the dependencies.
- Run `npm start` to open it in the dev server.
### Prerequisites
In order to run this project you need:
- Git
- A GitHub account
- VS-Code
- <a href="https://github.com/microverseinc/linters-config/tree/master/react-redux">React and Redux linters</a>
- <a href="https://nodejs.org/">Node.js</a>
### Setup
Clone this repository to your desired folder:
https://github.com/arnoldnekemiah/crypto-market.git
### Install
Install this project with:
This project doesn't need to be installed
### Usage
To update Fx Traders about the crypto market keep track of the latest market prices.
### Run tests
Use `npm test` to run tests.
### Deployment
You can deploy this project by using the dev server. To initiate it, run `npm start` in your cli and the project will open rhe dev server at http://localhost:3000/
<p align="right">(<a href="#readme-top">back to top</a>)</p>
## 👥 Authors <a name="authors"></a>
👤 Ikonde (Arnold) Nekemiah
- GitHub: [@arnoldnekemiah](https://github.com/arnoldnekemiah)
- Twitter: [@arnoldikonde](https://twitter.com/arnoldikonde)
- LinkedIn: [Ikonde (Arnold) Nekemiah](https://www.linkedin.com/in/arnoldnekemiah/)
<p align="right">(<a href="#readme-top">back to top</a>)</p>
## 🔭 Future Features <a name="future-features"></a>
- **No planned future features at this point.**
<p align="right">(<a href="#readme-top">back to top</a>)</p>
## 🤝 Contributing <a name="contributing"></a>
Contributions, issues, and feature requests are welcome!
Feel free to check the [issues page](https://github.com/arnoldnekemiah/crypto-market/issues).
<p align="right">(<a href="#readme-top">back to top</a>)</p>
## ⭐️ Show your support <a name="support"></a>
If you like this project, please give it a star ⭐️
<p align="right">(<a href="#readme-top">back to top</a>)</p>
## 🙏 Acknowledgments <a name="acknowledgements"></a>
I would like to thank <a href="https://www.microverse.org/">Microverse</a> for providing the guidelines that made this project possible, <a href="https://www.behance.net/sakwadesignstudio">Nelson Sakawa</a> for providing the <a href="https://www.behance.net/gallery/31579789/Ballhead-App-(Free-PSDs)">design</a> for the user interface, and the developers at <a href="https://coincap.io/">CoinCap</a> for making the <a href="https://docs.coincap.io/">API</a> they use freely available to the public.
## 📝 License <a name="license"></a>
This project is [MIT](./Licence) licensed.
<p align="right">(<a href="#readme-top">back to top</a>)</p>
| Crypto Market is an app that lets you keep track of the top 100 cryptocurrencies ranked by their marketcaps. You will also be able to see details about each token such as the price per unit in USD, amount traded in the past 24h in USD, the current supply of the token in circulation. | api,css3,documentation,javascript,reactjs | 2023-09-06T08:34:44Z | 2023-09-07T11:50:37Z | null | 1 | 6 | 25 | 0 | 0 | 2 | null | MIT | JavaScript |
MrGhost23/socio-app | main | # Socio: A Social Media App
Socio is a powerful and feature-rich social media application that allows users to connect, share, and engage with their friends and followers. With Socio, you can seamlessly enjoy all the essential social media features, from following and unfollowing users to posting updates, commenting on posts, uploading photos, managing your profile, and much more.
## Table of Contents
- [Features](#features)
- [Contributing](#about-us)
- [License](#license)
## Features
Socio comes equipped with a wide range of social media features to enhance your online social experience:
### Dark Mode
- **Dark Mode**: Enhance your Socio experience with a dark theme that's easier on the eyes, especially in low-light environments.
### Follow System
- **Follow Users**: Connect with friends and users whose content you want to see in your feed.
- **Unfollow Users**: Manage your connections by unfollowing users when necessary.
### Block System
- **Block Users**: Have the option to block users to prevent interactions and content visibility.
- **Unblock Users**: If needed, unblock users to allow interactions and content visibility again.
### Posts
- **Create Posts**: Share your thoughts, updates, and moments with your followers.
- **Edit Posts**: Make changes to your posts after they're published.
- **Delete Posts**: Remove posts you no longer want to be visible.
### Like Post System
- **Like Posts**: Express your appreciation for posts by liking them.
### Comments
- **Add Comments**: Engage in discussions by commenting on posts.
- **Edit Comments**: Edit your comments to correct mistakes or update your thoughts.
- **Delete Comments**: Remove comments when necessary.
### Photo Upload
- **Upload Photos**: Share images and photos with your followers.
- **View Photos**: Enjoy a visually appealing timeline filled with images.
### Profile Management
- **User Profile**: Maintain a customizable profile with your bio, profile picture, and cover photo.
- **Settings**: Personalize your Socio experience with account settings.
### Social Media Integration
- **Notifications**: Stay informed about likes, comments, and followers.
- **Explore Feed**: Discover new content through a feed of popular and trending posts.
- **Direct Messaging**: Send private messages to other Socio users.
- **Online Dot In Chat**: You can know if socio user online or not from the dot in chat.
## Acknowledgements
We would like to express our gratitude to the open-source community and the following libraries and frameworks that made Socio possible:
- [React.js](https://reactjs.org/): A JavaScript library for building user interfaces, used for the front-end of Socio.
- [Node.js](https://nodejs.org/): A JavaScript runtime that allows us to build scalable and server-side applications.
- [MongoDB](https://www.mongodb.com/): A popular NoSQL database used for storing user data and posts.
- [Tailwind CSS](https://tailwindcss.com/): A utility-first CSS framework for creating beautifully designed and responsive web applications.
- [Redux Toolkit (RTK)](https://redux-toolkit.js.org/): A library for efficient Redux development, used for state management in Socio.
- [Axios](https://axios-http.com/): A promise-based HTTP client for making network requests, utilized for API communication.
- [Socket.io](https://socket.io/): A library for real-time, bidirectional communication between the server and clients in Socio.
- [TypeScript](https://www.typescriptlang.org/): A strongly typed superset of JavaScript that enhances code quality and maintainability.
These technologies and tools have played a crucial role in shaping Socio into a powerful project.
## About Us
Socio is developed and maintained by a passionate team of developers who aim to create a powerful projects.
Developed by: - [Omar Mohamed](https://github.com/MrGhost23/) & [Omar Adel](https://github.com/0xOmarAdel)
## License
Socio is open-source software licensed under the [MIT License](LICENSE). You are free to use, modify, and distribute this software according to the terms of the license.
| Socio is a feature-rich social media app that allows users to connect, share, and engage with friends and followers. It comes with a range of essential features, including dark mode, follow and unfollow system, block system, post creation and management, like and comment system, real time chat, profile management, and social media integration. | axios,express,mongodb,multer,nodejs,react-router,reactjs,reduxtoolkit,socket-io,tailwindcss | 2023-09-03T10:15:23Z | 2024-04-18T12:00:39Z | null | 2 | 0 | 970 | 0 | 0 | 2 | null | null | TypeScript |
jhwa426/React-Portfolio | main | # Jeff Hwang - Personal Website
<!-- Icon sections -->
[](https://reactjs.org/)
[](https://reactrouter.com/en/main)
[](https://redux.js.org/)
[](https://nextjs.org/)
[](https://html.com/)
[](https://www.free-css.com/)
[](https://www.javascript.com/)
<br>
## React JS - Personal Portfolio Website_V1
Source: [freeCodeCamp.org](https://www.youtube.com/watch?v=bmpI252DmiI&ab_channel=freeCodeCamp.org/)
<details>
Learn:
- How to draw SVG animation using GSAP and React
- How to animate letters on hover using Animate.css and React
- How to add page loading animation using React-Loaders
- How to add Pacman animation in React
- How to create custom 3D CSS animations
- How to implement font icons in React
- How to create and implement a contact form in React using EmailJS
- How to add maps to your website in React using Leafleat.js
<br>
# Getting Started
## Installation
To run this portfolio locally, follow these steps:
1. Clone the repository: `git clone https://github.com/jhwa426/React-Portfolio.git`
2. Navigate to the project directory: `cd React-JS-Personal-Portfolio-Website-ver1/website`
3. Install the dependencies: `npm install`
4. Start the development server: `npm start`
5. Open your browser and visit: `http://localhost:3000`
<br>
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.
</details>
## React JS - Personal Portfolio Website_V2
### [Personal Portfolio Website_V2](https://jeff-hwang2.netlify.app/)
Website Deployment by [netlify](https://www.netlify.com/)
<details>
Learn:
- How to draw SVG animation using GSAP and React
- How to implement font icons in React
- How to create and implement a contact form in React using EmailJS
<br>
# Getting Started
## Installation
To run this portfolio locally, follow these steps:
1. Clone the repository: `git clone https://github.com/jhwa426/React-Portfolio.git`
2. Navigate to the project directory: `cd React-JS-Personal-Portfolio-Website-ver2/personal-website`
3. Install the dependencies: `npm install`
4. Start the development server: `npm start`
5. Open your browser and visit: `http://localhost:3000`
<br>
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.
</details>
## React JS - Personal Portfolio Website_V3
### [Personal Portfolio Website_V3](https://jeff-hwang.netlify.app/)
Website Deployment by [netlify](https://www.netlify.com/)
<details>
Learn:
- How to implement font icons in React
- How to create Styled-components
- Move faster with intuitive React UI tools
- MUI libraries offer a comprehensive suite of free UI tools to help you ship new features faster.
- How to create and implement a contact form in React using EmailJS
- Theme customisation button features (Dark / Light)
- Responsive navigation bar
- Framer Motion animation library for the project card
<br>
# Getting Started
## Installation
To run this portfolio locally, follow these steps:
1. Clone the repository: `git clone https://github.com/jhwa426/React-Portfolio.git`
2. Navigate to the project directory: `cd React-JS-Personal-Portfolio-Website-ver3/personal-website`
3. Install the dependencies: `npm install`
4. Start the development server: `npm start`
5. Open your browser and visit: `http://localhost:3000`
<br>
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.
</details>
## React JS - Personal Portfolio Website_V4
### [Personal Portfolio Website_V4](https://jeff-hwang4.netlify.app/)
Website Deployment by [netlify](https://www.netlify.com/)
<details>
Learn:
- How to use the react icons library in the react projects
- How to use react useState hooks
- How to build modern website and responsive designs with CSS3
- How to move faster with intuitive React UI tools
- MUI libraries offer a comprehensive suite of free UI tools to help you ship new features faster.
- How to add multiple contact options on the website (Email, WhatsApp and Facebook Messenger)
- How to create and implement a contact form in React using EmailJS
- How to deploy the website on Netlify
<br>
# Getting Started
## Installation
To run this portfolio locally, follow these steps:
1. Clone the repository: `git clone https://github.com/jhwa426/React-Portfolio.git`
2. Navigate to the project directory: `cd React-JS-Personal-Portfolio-Website-ver4/personal-website`
3. Install the dependencies: `npm install`
4. Start the development server: `npm start`
5. Open your browser and visit: `http://localhost:3000`
<br>
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.
</details>
| React JS - Personal Portfolio Websites that were created in several ways. | react,react-hooks,react-router,redux,css3,html5,javascript,nextjs | 2023-08-14T03:19:53Z | 2024-04-23T23:53:28Z | null | 1 | 2 | 162 | 0 | 0 | 2 | null | null | JavaScript |
ZtionJam/focus | main | <div align="center"> <img src="https://res.ztion.cn/imgs/1697525163723.png" width = 200 /> </div> </div>
<p align="center">
Focus 焦距:手机与PC短信通知同步工具
</p>
# 简介
是个网站现在登录都要验证手机验证码,用电脑的时候,每次都要找到打开手机,很麻烦,遂做此工具,手机推送短信到服务端,PC安装客户端后,服务端通过ws将短信推送到PC端,PC端将短信推送到系统通知。
# 截图

# 技术
Android端:Java
后台服务端:Java+Springboot
PC端:Electron+Vue3+ElementPlus
Electron打包后自带内核太重了,一个小工具都这么大,有空用rust+slint试试
# 原理
服务端提供一个POST接口,安卓端收到短信时,将短信内容提交到服务端,服务端将短信内容推送到PC端,PC端将短信推送到系统通知。

# 声明
- 软件涉及到的引用的图片以及影音均来自网络,侵删,仅限于个人学习使用!请勿用于任何商业用途
-
# 版权
[GPL 3.0](https://www.gnu.org/licenses/gpl-3.0.html)
# 作者
ZtionJam,工地搬砖
# 联系方式
微信:

| 手机短信PC端推送工具! | android,electron,sms,springboot,sms-push,element-plus,javascript,vue3 | 2023-08-15T09:57:26Z | 2023-10-17T07:45:34Z | 2023-10-17T07:45:34Z | 1 | 0 | 3 | 0 | 0 | 2 | null | null | Java |
rajxode/habit-tracker | master | # Habit Tracker Project
This is a habit tracker project of Coding Ninjas made using Reactjs, Redux toolkit, React-router-dom. User can add multiple habits to their list, and can check their weekly status of habit (done, not done, pending). The following project is styled using TailwindCSS. User will get a different motivational quote on homepage every time he visit to the homepage, also a differnet image.
Quotes are fetched using following api: https://type.fit/api/quotes
<br>
Go Live to [Habit-Tracker](https://habit-tracker-rajxode.netlify.app/)
# Features:
- Add Multiple habits to your habit list.
- Select habit from suggestion list.
- See your weekly status of habits.
- Change the status of habit for a particular day in past week.
- Get a new motivaitonal quote and image whenever you visit the page.
- Responsive, so work on all type of screens.
- Recieve notifications on adding new habit or on completing task on a day.
# Installation and Run:
To run this project on your system follow the following steps:
- Get the code on your system.
- Open Terminal on your pc and go to the root folder of project.
- Run the command 'npm install' in terminal to install all the dependencies required for the project.
- After complete installation, run the command 'npm run start' in your terminal.
- To see the output, serach for http://localhost:3000/ in your web browser.
# Tools Used:
- Reactjs.
- Redux toolkit.
- React-router-dom.
- React-toastify.
- Tailwindcss.
- JavaScript
- HTML.
# ScreenShots:





| This is a habit tracker project made using Reactjs, Redux toolkit, React-router-dom. User can add multiple habit to their list. | codingninjas,html,javascript,react-router-dom,react-toastify,reactjs,redux-toolkit,tailwindcss | 2023-08-24T10:18:02Z | 2023-08-24T15:38:47Z | null | 1 | 0 | 36 | 0 | 0 | 2 | null | null | JavaScript |
bloiseleo/Blockeat | main | <div align="center">
<h1> Blockeat! 🎲</h1>
</div>
Esse jogo tem como objetivo aproximar eu e meu irmão. Durante todos esses anos, meu irmão adquiriu uma paixão pelos jogos que eu também compartilhava quando era criança. Contudo, graças a diferença de idade, nunca ou quase nunca temos horários batendo. Quando ele está na escola, eu estou trabalhando. Quando eu estou livre, ele está estudando. Quando eu estou estudando, ele está livre. Por causa disso, decidi fazer que meus estudos contemplassem essa nossa paixão compartilhada: Desenvolver um Jogo utilizando Next.
O jogo segue o mesmo conceito do jogo da cobrinha: você precisa comer para crescer.
🎮 Durante todo o jogo, existira, pelo menos, 1 bloco na tela. Você precisa colidir com eles para comê-los.<br>
🎮 Cada bloco comido aumenta o seu corpo em 1 bloco.<br>
🎮 Cada bloco comido também te dá 1 block, que é a moeda do jogo. NOTA: NÃO HÁ VALOR REAL ATRELADO E NEM MEIOS PARA COMPRAR.<br>
🎮 Você perde o jogo ao encostar no seu próprio corpo.<br>
Entretanto, decidi adicionar alguns detalhes:
🎮 Existem dois tipos de blocos: os normais e os especiais. <br>
🎮 Os blocos normais te fornecem 1 de corpo e 1 de block. <br>
🎮 Os blocos especiais sempre te fornecem 0.5 de corpo e 2 de block. <br>
Por enquanto, temos esse conjunto de especificações para implementar antes de prosseguir com as próximas ideias. Minha intenção não é fazer nada muito fora do comum, somente me divertir com meu irmãozinho.
<h2> Bibliotecas </h2>
<ul>
<li> Next </li>
<li> TypeScript </li>
<li> RBush </li>
</ul>
| Blockeat é um jogo da cobrinha com superpoderes! | javascript,next,snakegame,typescript | 2023-09-06T20:25:51Z | 2023-09-23T17:28:32Z | 2023-09-14T22:12:19Z | 1 | 0 | 32 | 0 | 0 | 2 | null | null | TypeScript |
SAFAIDAM/Quiz-App | main | # Quiz-App
A simple Javascript Quiz App
https://github.com/SAFAIDAM/Quiz-App/assets/116453067/fdfc1d1c-0c1a-4794-9862-af83f5f22eec
| the Quiz App link will be delivered soon... | api,css,javascript | 2023-08-26T18:39:02Z | 2023-09-03T22:38:57Z | null | 1 | 0 | 5 | 0 | 0 | 2 | null | null | JavaScript |
SuryaPratap2542/Increment-decrement | main | # Increment and Decrement App
<img width="758" alt="image" src="https://github.com/SuryaPratap2542/Increment-decrement/assets/89827931/4d45999d-b2dc-43a1-a25b-49e27667b7cf">
## Description
The Increment and Decrement App is a simple web application built using React and Tailwind CSS. It allows users to increment and decrement a counter and reset it to zero.
## Features
- Increment the counter
- Decrement the counter
- Reset the counter to zero
## Technologies Used
- React
- Tailwind CSS
## Installation
1. Clone the repository:
```sh
git clone https://github.com/your-username/increment-decrement-app.git
Certainly! Here's a README template for your React app that you can use for your GitHub repository:
2. Navigate to the project directory:
```sh
cd increment-decrement-app
```
3. Install dependencies:
```sh
npm install
```
4. Start the development server:
```sh
npm start
```
5. Open your web browser and navigate to [http://localhost:3000](http://localhost:3000) to view the app.
## Usage
Use the buttons to increment and decrement the counter. Click the "Reset" button to set the counter to zero.
## Contributing
Contributions are welcome! If you find any issues or would like to enhance the app, feel free to submit a pull request.
## License
This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.
---
Designed and developed by [Surya Pratap Singh](https://github.com/your-username)
```
| The Increment and Decrement App is a simple web application built using React and Tailwind CSS. | decrement,html,increment,javascript,react,tailwindcss,hooks,usestate | 2023-08-26T05:55:45Z | 2023-08-26T10:01:14Z | null | 1 | 0 | 5 | 0 | 0 | 2 | null | null | JavaScript |
vinicius51547/Projeto-Tarefas | main | <h1 align="center">TaskHub 📝</h1>
<p align="center">Projeto para criar e gerenciar tarefas com login do Google, compartilhamento público e comentários.</p>
### 📌 Sobre
Este projeto permite criar e gerenciar tarefas após fazer login com uma conta do Google. Você pode tornar as tarefas públicas para compartilhá-las com outros usuários e adicionar comentários para facilitar a colaboração.
### 🛠 Tecnologias
As seguintes ferramentas foram usadas na construção do projeto:
<p align="left">
<a href="https://skillicons.dev">
<img src="https://skillicons.dev/icons?i=nextjs,js,html,css,firebase,ts" />
</a>
</p>
### 🔗 Link do projeto: https://tasskhub.netlify.app
| null | css,flexbox,javascript,nextjs,typescript | 2023-08-28T18:14:08Z | 2023-09-14T17:57:55Z | null | 1 | 0 | 9 | 0 | 0 | 2 | null | null | TypeScript |
MADHURANGA-SKP/nexjs-app | main | 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
```
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.
| this app is an fully functional NextJS web app that show how we can use and build web app using NextJS components | html-css,javascript,nextjs,tailwindcss,typescript | 2023-08-16T22:10:35Z | 2023-08-16T21:27:13Z | null | 1 | 0 | 2 | 0 | 0 | 2 | null | null | TypeScript |
TalhaSeven/React-Tailwind-CSS | main | # Project Tailwind CSS
### Description
This is a sample project demonstrating the integration of React, Redux, React Router, and Tailwind CSS for building a basic authentication and routing system.
### Features
- User authentication and private routing.
- Home page with a welcome message.
- Card page with a sample UI built using Tailwind CSS.
- Redux state management for user authentication.
### Technologies
- React
- Redux (with Redux Toolkit)
- React Router
- Tailwind CSS
---
# Proje Tailwind CSS
### Açıklama
Bu, temel bir kimlik doğrulama ve yönlendirme sistemi oluşturmak için React, Redux, React Router ve Tailwind CSS entegrasyonunu gösteren örnek bir projedir.
### Özellikler
- Kullanıcı kimlik doğrulama ve özel yönlendirmeler.
- Hoş geldiniz mesajı ile ana sayfa.
- Tailwind CSS kullanarak oluşturulmuş örnek bir UI içeren kart sayfası.
- Kullanıcı kimlik doğrulama için Redux durum yönetimi.
### Teknolojiler
- React
- Redux (Redux Toolkit ile)
- React Router
- Tailwind CSS | This is a sample project demonstrating the integration of React, Redux, React Router, and Tailwind CSS for building a basic authentication and routing system. | javascript,reactjs,redux-toolkit,router-dom,tailwindcss | 2023-08-28T19:47:14Z | 2023-08-29T09:14:43Z | null | 1 | 0 | 3 | 0 | 0 | 2 | null | null | JavaScript |
imranhasanraaz/IndiaBix | main | # Indiabix
## Instructions
1. Clone repo & install dependencies 'npm install'
2. Run tests using 'npx cypress run --env allure=true'
3. Generate Allure report 'allure generate allure-results --clean -o allure-report'
4. Do not use any other cypress version except 12.14.0 otherwise you will not able to generate allure report
| Auto Test of Indiabix.com using Cypress | allure-report,cypress,javascript | 2023-08-31T21:14:00Z | 2023-09-01T08:44:49Z | null | 1 | 0 | 3 | 0 | 0 | 2 | null | null | JavaScript |
felipecacique/FinancialAssetPortfolioBacktester | main | # Financial Asset Portfolio Backtester
Welcome to the **Financial Asset Portfolio Backtester** project! This **web application** allows users to **perform backtests** on stocks using a ranking system and fundamental indicators such as EBIT/EV and ROIC. The core features of this application include generating new asset portfolios every month based on a provided dataset, creating a **ranking system** using fundamental indicators, and performing **web scraping** to gather data from a financial website. The project primarily focuses on **full-stack development**, incorporating technologies such as **HTML, CSS, JavaScript, Bootstrap, user authentication, database management, Python, Flask, and data visualization**.
This project encompasses two core functionalities:
### Part 1 - Financial Asset Backtesting:
<img src="https://github.com/felipecacique/PortfolioBacktester/blob/main/img/backtest-page.png" />
This component of the application empowers users to perform backtests on financial assets. The backtesting simulation revolves around a dynamically updated monthly portfolio. This portfolio is meticulously constructed based on a ranking system driven by fundamental indicators sourced from a dataset generously provided by [Varos](https://www.youtube.com/@varos-programacao). As a powerful feature, it generates performance graphs comparing the model's performance against the Ibovespa (IBOV) index over the past seven years. This part enables users to gain insights into the historical performance of their portfolios in real-world scenarios.
### Part 2 - Real-Time Data Acquisition and Ranking:
<img src="https://github.com/felipecacique/PortfolioBacktester/blob/main/img/ranking-page.png" />
The second component of the application excels in web scraping, extracting real-time financial data from [Fundamentus](https://www.fundamentus.com.br/resultado.php) on a daily basis. Leveraging this timely data, the backend of the application dynamically generates a ranking system. This ranking system is then elegantly presented in a table format, showcasing the best assets to consider for investment. The criteria used in this ranking system are defined in Part 1. The top-ranked assets serve as the building blocks of the user's portfolio. Should the user desire to create new portfolios on a monthly basis, Part 2 equips them with the essential data and insights needed to make informed investment decisions.
Together, these two parts offer a comprehensive solution for financial asset analysis and portfolio management, providing users with a powerful toolset to make data-driven investment choices.
## Project Overview
- **Backtesting Engine:** The application leverages a provided dataset (date, asset, price, EBIT/EV, ROIC) to create and manage portfolios. It calculates rankings using the fundamental indicators and selects the top assets to form a portfolio.
- **Web Scraping:** A web scraping module fetches data from the [Fundamentus](https://www.fundamentus.com.br/resultado.php) website daily. This data is used to generate a ranking of assets, which aids in portfolio creation.
- **User Authentication:** Users can create accounts, log in, and maintain sessions to access the app's features securely.
<img src="https://github.com/felipecacique/PortfolioBacktester/blob/main/img/login-page.png" />
- **Database Integration:** The application integrates with a SQL database to store user data, portfolios, and other relevant information.
- **Data Visualization:** The app includes interactive data visualization elements such as time-series line graphs, tables displaying ranking results, and a doughnut chart representing the portfolio's assets.
## Usage
To run the Financial Portfolio Backtester locally, follow these steps:
1. **Clone the Repository:** Clone this GitHub repository to your local machine.
- `https://github.com/yourusername/FinancialAssetPortfolioBacktester.git`
2. **Set Up the Environment:** Install the required dependencies and configure the database connection.
3. **Run the Application:** Start the Flask application, and access it through a web browser.
- `python app.py`
4. **Access the application:** Through your web browser at `http://localhost:5000`.
5. **User Registration:** Create a user account to access the backtesting and ranking features.
6. **Perform Backtests:** Use the app to perform backtests on stocks, generate portfolios, and analyze results.
7. **Real-Time Ranking:** Create a real-time portfolio every month based on a ranking system.
## Technologies Used
- **Frontend:** HTML, CSS, JavaScript, Bootstrap
- **Backend:** Python, Flask
- **Database:** SQL (configured with SQLite)
- **Data Visualization:** Chart.js
- **Web Scraping:** BeautifulSoup
- **User Authentication:** Flask-Login
- **Version Control:** Git and GitHub
## Project Structure
The project is structured as follows:
- **app.py:** The main Flask application file. Contains the application routes and requests for both the **Backend** and **Frontend**.
### Frontend:
- **templates/:** HTML templates for rendering web pages.
- **templates/index.html:** Defines forms for user registration and login.
- **templates/dashboard.html:** Create the dashboard page, containing a sidebar navigation, parameters form, buttons, charts, and table.
- **static/:** Static assets (CSS, JavaScript, images).
- **static/index-script.js:** JavaScript functionality of the login page.
- **static/dashboard-script.js:** JavaScript functionality of the dashboard page.
- **static/styles.css:** Define the visual styles and layout of a web page.
### Backend:
- **CriandoUmModeloDeInvestimento.py:** Performs backtesting of a monthly generated stock portfolio based on financial indicators and ranking system.
- **PegarSitesEmSitesAutomatizarCarteira.py:** Web scraping module to collect financial data and create a ranking.
- **database.sqlite:** Defines the user database using SQL-Lite.
- **tabela.pickle:** Stores the fundamentus.com data.
- **dados_empresa.csv:** Historical dataset with date, asset, price, and financial indicators provided by Varos.
- **ibov.csv:** Ibov historical data.
## Data Sources
The application uses two primary data sources:
1. **Varos Dataset:** A dataset provided by [Varos](https://www.youtube.com/@varos-programacao) containing fundamental financial indicators such as EBIT/EV and ROIC for various financial assets.
2. **Fundamentus Web Scraping:** Daily web scraping of financial data from [Fundamentus](https://www.fundamentus.com.br/resultado.php) to obtain real-time information on assets.
### Disclaimer:
This project is intended for educational and learning purposes only. The financial simulations, backtesting, and ranking systems implemented within this application are not indicative of or meant to provide financial or investment advice. Users should exercise caution and conduct thorough research and analysis before making any real-world investment decisions. The data, rankings, and portfolio simulations generated by this application are purely hypothetical and do not represent actual investment recommendations. Always consult with a qualified financial advisor or professional before making any financial decisions or investments.
## Acknowledgments
* This project was inspired by a bootcamp provided by Varos, a YouTube channel, which included the dataset and code to get started.
* This project was made possible with the assistance of [ChatGPT 3.5](https://chat.openai.com/), which provided valuable guidance, generated code snippets, and offered helpful tips during the development process. We are grateful for the support and insights provided by this AI-powered model. Additionally, this README was created with the assistance of ChatGPT to provide comprehensive project documentation.
## Deployment
You can try our app on [https://wood-lemon-clam.glitch.me](https://wood-lemon-clam.glitch.me). Not all features are fuctional in this [Glitch](https://glitch.com/) free web server, such as registering a new user and doing the web-scraping with selenium. The login username is "user" and the password is "123456". For a better experience, open it on the desktop.
| This web application enables users to perform backtests on financial assets using a ranking system and fundamental indicators. The project primarily focuses on full-stack development. This project is for educational purposes and not indicative of investment recommendations. The login username is "user" and the password is "123456". | authentication,backtesting,bootstrap5,chartjs,css,data-visualization,finance-application,flask,html,javascript | 2023-09-11T17:41:19Z | 2023-09-12T02:21:14Z | null | 1 | 0 | 20 | 0 | 1 | 2 | null | null | HTML |
Aniruddha-Gade/Movix-App | main |
# <img align="center" width= 70px src="https://raw.githubusercontent.com/aniruddha-gade/Movix-app/main/src/assets/movix-logo.png"> Movix App
Discover real-time movies and TV shows with detailed information using The Movix App. <br/>
This app is built with React.js and styled using Tailwind CSS, providing an engaging and responsive user experience. <br/>
This app offers a responsive and visually appealing user interface that adapts seamlessly to various screen sizes.
<h2>Live link 🌍📡 - [ https://movix-web.netlify.app/ ]</h2>
<img align="center" width= 100% src="https://raw.githubusercontent.com/aniruddha-gade/Movix-App/main/screenshots/gif.gif">
## Tech Stack 🛠️
- ⚡ Vite + React.js
- 🎨 Tailwind CSS
- 🔄 Redux
- 🎥 The Movie Database (TMDB) API
## Features 🌟
- 🏠 **Single page application**: Seamless navigation between different pages without the need for page refreshes..
- 🏠 **Random Home Page Background**: Background changes on page refresh or revisit, giving a fresh look every time.
- 🎬 **Carousel**: Explore trending, upcoming, and top-related movies and TV shows using interactive carousels.
- 📄 **Multiple Pages**: Navigate through different pages including Home, Details, Search Results, and Page Not Found.
- ♾️ **Infinite Scroll**: Incorporates the InfiniteScroll library for seamless scrolling through content.
- 🔍 **Search**: Implement the efficient and user-friendly search functionality.
- 🚀 **Lazy Loading**: Enhance performance by lazily loading images using the react-lazy-load-image library.
## Pages 📑
- **Home**🏠: Refreshing backgrounds, interactive carousels, and a captivating UI.
- **Details**🎥: In-depth information, ratings, and trailers for each movie and TV show.
- **Search Results**🔍: Efficiently browse through search results with react-select.
- **Page Not Found**🚫: A friendly page for unexpected routes.
## React Hooks 🎣
Utilized several React hooks for efficient state management and dynamic behavior:
- `useState`
- `useEffect`
- `useDispatch`
- `useParams`
- `useSelector`
- `useLocation`
- `useNavigate`
- `useRef`
- `Custom-Hook`
📚 **React Library**:
- 📅 **dayjs**: Utilizes the Dayjs library to beautifully format dates.
- 🚀 **Lazy Loading**: Enhance performance by lazily loading images using the react-lazy-load-image library.
- ♾️ **Infinite Scroll**: Incorporates the InfiniteScroll library for seamless scrolling through content.
- 🔍 **Select**: Enhance your user interface with interactive and customizable select option using the React Select library.
## 🖥️ Screen Preview:
# 🏠 Random Home Page Background



# Search Button

# Loading Skeleton



# Details of Movie / TV


# Cast of the Movie / TV



# Official Videos & Recommendations


# Explore Page for Movies && TV Shows


# Filters for Generes && Sorting

# Footer

| Welcome to The Movie Explorer, your gateway to a world of real-time movies and TV shows with comprehensive details for each title. Built using React.js and styled with Tailwind CSS, this app offers a responsive and visually appealing user interface that adapts seamlessly to various screen sizes. | api,javascript,rapidapi,reactjs,responsive-ui,tailwindcss,vite-react | 2023-08-20T13:43:55Z | 2023-09-11T06:37:41Z | null | 1 | 0 | 13 | 0 | 0 | 2 | null | null | JavaScript |
GhoshSomen/Somen_Portfolio | main | # Somen_Portfolio
| My own portfolio website showcasing a collection of my projects. Created using HTML, CSS, and JavaScript, with descriptions and tags for each project to help visitors navigate and understand my work. | blog,css,github,html,javascript,portfolio-website,webdevelopment | 2023-09-09T14:58:34Z | 2023-09-09T15:29:48Z | null | 1 | 0 | 2 | 0 | 0 | 2 | null | null | HTML |
CodeStrong2023/UTN-MMXXIII | main | # UTN-MMXXIII
## Tecnicatura en Programación UTN San Rafael - Mendoza

###
Repositorio de ejercicios y trabajos grupales.
Los trabajos individuales se encuentran en cada rama de cada alumno.
### INTEGRANTES
* Piris Matías
* Ponce María Elena Haydee
* Martínez Gonzalo Exequiel
* Fiuri Franco Fabián
<h2 align="left">Trabajamos con:</h2>
###
<div align="center">
<img src="https://cdn.jsdelivr.net/gh/devicons/devicon/icons/javascript/javascript-original.svg" height="40" alt="javascript logo" />
<img width="12" />
<img src="https://cdn.jsdelivr.net/gh/devicons/devicon/icons/github/github-original.svg" height="40" alt="github logo" />
<img width="12" />
<img src="https://cdn.jsdelivr.net/gh/devicons/devicon/icons/java/java-original.svg" height="40" alt="java logo" />
<img width="12" />
<img src="https://cdn.jsdelivr.net/gh/devicons/devicon/icons/python/python-original.svg" height="40" alt="python logo" />
<img width="12" />
<img src="https://cdn.jsdelivr.net/gh/devicons/devicon/icons/vscode/vscode-original.svg" height="40" alt="vscode logo" />
</div>
## PROYECTO INTEGRADOR DE PROGRAMACIÓN
### Appetito
"_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_"
" "
" __ "
" // ¨¨--.._ "
" || (_) _ ¨-._ "
" || _ (_) ´-. "
" A)aa || (_) __..-´ E)eeeeee "
" A) aa \\__..--¨¨ E) t) ## t) "
"A) aa p)PPPP p)PPPP E)eeeee t)tTTT ## t)tTTT o)OOO "
"A)aaaaaa p) PP p) PP E) t) i) t) o) OO "
"A) aa p) PP p) PP E) t) i) t) o) OO "
"A) aa p)PPPP p)PPPP E)eeeeee t)T i) t)T o)OOO "
" / p) p) "
" .-/-. p) p) .-¨¨¨¨-. \\|/\\// "
" |`-´| /` . ´. \\ |`¨¨¨´| "
" | | (`-..:...-´) | | "
" | | ;-......-; \_____/ "
" \___/ `------´ "
" "
"_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_"
Tu App de Comidas!
* Aplicación en línea de comandos para la compra de productos en comercios.
* Realizada originalmente en Pseudocódigo desde el Paradigma de Programación Imperativa con el programa Pseint y migrada al lenguaje JAVA utilizando el Paradigma de Programación Orientado a Objetos.
## EJECUCION
* Para ejecutar el proyecto, se debe clonar el repositorio con el comando
git clone https://github.com/CodeStrong2023/UTN-MMXXIII.git
* Luego se debe ejecutar el archivo MAIN.JAVA que se encuentra en la direccion:
Proyecto integrador\Appetito\src\main\java\org\example
# CARACTERISTICAS
* Consta de un menú de opciones que permite gestionar:
- _Usuarios:_ perfiles de usuario y login en la App.
- _Compra por Locales:_ realizar la compra a partir del listado de locales registrados en la app.
- _Compra por Categorías:_ realizar la compra seleccionando una categoría de productos, que muestran los locales asociados a ella.
- _Carrito de compras:_ Visualización y gestión de los productos añadidos y finalización de la operatoria.
- _Salida:_ Cierre del programa.
| Repositorio del Equipo UTN MMXXIII - Tecnicatura Universitaria en Programación - Universidad Tecnológica Nacional - Cohorte 2023 | java,javascript,poo,python,uml | 2023-08-30T22:33:20Z | 2023-11-09T21:32:57Z | null | 5 | 10 | 202 | 0 | 0 | 2 | null | null | Java |
chriszmx/fjz-llc | main | # fjz-llc
Setting up fb email function
firebase functions:config:set gmail.email="YOUR_EMAIL" gmail.password="YOUR_PASSWORD"
<html class="h-full bg-white">
<body class="h-full">
| Automated Rental Application Management | email,firebase,javascript,react,tailwindcss | 2023-08-31T20:50:29Z | 2024-04-29T01:30:05Z | null | 3 | 53 | 234 | 0 | 1 | 2 | null | null | JavaScript |
mirayatech/Baki | main | # Task Management with GraphQL and Apollo Client/Server Project 🚀
## My Journey into GraphQL 📖
This project represents my deep dive into the fascinating world of GraphQL. My main goal was to understand GraphQL better and, more importantly, to gain hands-on experience. To accomplish this, I decided to use Apollo Server and build a GraphQL server, all while actively working on various queries and mutations.
## Task Management at Its Core 📋
At the heart of this project lies a task management system. Users can create, read, update, and delete tasks. It's all about simplifying task management.
## Behind the Scenes: Server-Side Logic 🖥️
Inside the **Server** directory, you'll find the core logic of our project in `index.js`. Here's a sneak peek at what's happening:
- **Apollo Server Setup**: I set up an Apollo Server using the `@apollo/server` package. This server is armed with a carefully designed schema (`typeDefs`) and the necessary resolvers (`resolvers`).
- **Resolvers**: These are the workhorses of our server. They handle everything from querying tasks to creating, updating, and deleting them.
- **Data Storage**: To mimic a database, I adopted a simple in-memory storage approach using the `tasks` array.
- **Schema Definition**: Using the Schema Definition Language (SDL), I meticulously defined our GraphQL schema. It specifies the types, queries, mutations, and input types available for this project.
## Bringing It to Life on the Client Side 🌟
- **`main.tsx`**: This is where I configure Apollo Client to connect to our GraphQL server. It's the bridge between the client and server.
- **`App.tsx`**: This central React component is responsible for rendering our user interface. It showcases the project title and houses the `Tasks` component.
- **`types.tsx`**: TypeScript comes into play here, providing structured types for the client application, ensuring data consistency.
- **`schemas.ts`**: GraphQL queries and mutations are defined using Apollo Client's `gql` function. This is how we communicate with the server.
- **`Tasks.tsx`**: This component is the powerhouse. It handles data retrieval, task creation, and task card rendering, all thanks to Apollo Client's `useQuery` and `useMutation` hooks.
- **`Taskcard.tsx`**: These individual task cards are where the magic happens. You can edit tasks, mark them as completed, or delete them, all made possible by Apollo Client's `useMutation` hook.
## Key Technologies 🔧
- **Apollo Server**: This played a pivotal role in setting up the GraphQL server on the server side.
- **Apollo Client**: It's the engine that connects our client-side application to the GraphQL API.
- **React**: The building block of our user interface, allowing me to create a dynamic and responsive experience.
- **GraphQL**: The language that powers our API, enabling efficient data querying and manipulation.
- **TypeScript**: A valuable tool that added a layer of safety and maintainability to the project with static typing.
## What I've Learned 🧠
- **Crafting a GraphQL Schema**: I've mastered the art of defining a GraphQL schema using the Schema Definition Language (SDL).
- **Resolvers in Action**: Skillfully implementing GraphQL resolvers for queries and mutations has been a crucial part of this journey.
- **Apollo Server Configuration**: I've successfully configured a GraphQL server using Apollo Server, making the connection between the client and server seamless.
- **CRUD Operations with GraphQL**: Through GraphQL mutations, I've learned how to perform basic CRUD operations—Create, Read, Update, Delete—with precision.
- **Connecting the Dots**: Forming connections between GraphQL types, such as relationships between tasks and their properties, has been a key focus.
## Video 🎥
https://github.com/mirayatech/Baki/assets/71933266/9e987307-6a10-4569-ae9d-b08d4f080bd9
| Task management app built with React, GraphQL, Apollo, TypeScript. | apollo,apollo-client,apollo-server,crud,graphql,javascript,react,sdl,taskmanagement,todo | 2023-08-22T15:52:33Z | 2023-12-05T09:04:57Z | null | 1 | 0 | 26 | 0 | 0 | 2 | null | null | TypeScript |
lesscript/lesscript | main | <p align="center">
<img src="https://github.com/lesscript/lesscript/blob/main/.github/lesscript.png" alt="Lesscript Logo" width="140px"><br>
A statically typed rock'n'roll language that transpiles to JavaScript and Nim.
</p>
<p align="center">
<a href="https://lesscript.github.io/bro/theindex.html">API reference</a> | <a href="#">Download</a> (not yet)<br>
<img src="https://github.com/lesscript/lesscript/workflows/test/badge.svg" alt="Github Actions"> <img src="https://github.com/lesscript/lesscript/workflows/docs/badge.svg" alt="Github Actions">
</p>
## 😍 Key Features
- 🎩 Open Source | [LGPLv3 license](https://github.com/lesscript/lesscript/blob/main/LICENSE)
- 👑 Written in **Nim language**
- 😋 **Made for Cool Kids**
> [!WARNING]
> Lesscript is still under development. Expect bugs and incomplete features.
> [!NOTE]
> Since Lesscript is written in native code, anti-virus software can sometimes incorrectly flag it as a virus
## TODO
`0.1.x`
- [ ] Tokens, Parser, AST, Compiler
- [ ] Backends
- [ ] JavaScript ES6
- [ ] Nim language
- [ ] Command Line Interface
- [ ] `c` command
- [ ] `ast` command to generate static binary AST
- [ ] `watch` command with built-in Browser Sync & Reload
- [ ] `doc` command to generate documentation website
### ❤ Contributions & Support
- 🐛 Found a bug? [Create a new Issue](https://github.com/lesscript/lesscript/issues)
- 👋 Wanna help? [Fork it!](https://github.com/lesscript/lesscript/fork)
- 😎 [Get €20 in cloud credits from Hetzner](https://hetzner.cloud/?ref=Hm0mYGM9NxZ4)
- 🥰 [Donate to OpenPeeps via PayPal address](https://www.paypal.com/donate/?hosted_button_id=RJK3ZTDWPL55C)
### 🎩 License
Lesscript [LGPLv3 license](https://github.com/lesscript/lesscript/blob/main/LICENSE). Proudly made in 🇪🇺 Europe [by Humans from OpenPeeps](https://github.com/openpeeps).<br>
Copyright © 2023 Lesscript | OpenPeeps & Contributors — All rights reserved.
| 🤘 A statically typed rock'n'roll language that transpiles to JavaScript and Nim | javascript,nim,typescript,transpiler | 2023-08-10T12:47:40Z | 2024-05-18T17:59:33Z | null | 1 | 0 | 18 | 0 | 0 | 2 | null | LGPL-3.0 | Nim |
randinimendis/Bus_Busbooking_system | dev | # Bus_Busbooking_system
Year 1 Semester 2 IWT Module Project Developed an Online Bus Scheduling and booking system for Passengers. It allowed
booking Bus seats, and many more things.


| Year 1 Semester 2 IWT Module Project Developed an Online Bus Scheduling and booking system for Passengers. It allowed booking Bus seats, and many more things. | css,html5,javascript,php,web-application | 2023-08-28T11:17:03Z | 2023-09-01T14:21:05Z | null | 1 | 0 | 42 | 0 | 1 | 2 | null | null | PHP |
joshbrew/threadop | main | ## threadop
`npm i threadop`



### [Example](https://threadop.netlify.app)
## Description
Pure (10kb minified) implementation of a Web Worker thread operation helper. For use in browser or with the web worker library in Nodejs
Create multithreaded pipelines (with esm imports) in a single script file with a clear, minimal workflow.
- Instantiate a thread from a function that simply expects the event.data from the thread postMessage function
- One-off or repeat use with easy cleanup.
- Chain multiple workers with message port automation
- Instantiate threadpools from a single function, chain multiple threadpools.
- Create threads with lists of functions you can call by name.
- Specify imports (local or remote) from strings or objects to use the full range of esm import abilities.
- loops, animations, with propagation.
- Dramatically increase program performance with easy parallelism! The time to instantiate a basic worker is ~0.1ms.
Instantiate threads from generic functions (with imports!) or from URLS i.e. worker file locations or Blobs.
## List of examples:
#### [Example WONNX video processing app](https://github.com/joshbrew/cameraId-wonnx-wasm)
- [Example 1: One-off usage](#example-1-one-off-usage)
- [Example 2: Repeat operations](#example-2-repeat-operations)
- [Example 3: Chaining workers](#example-3-chaining-workers)
- [Example 4: local import](#example-4-local-import)
- [Example 5: Web import with a specified library function](#example-5-web-import-with-a-specified-library-function)
- [Example 6: Thread pool one-off](#example-6-thread-pool-one-off)
- [Example 7: Thread pool chaining](#example-7-thread-pool-chaining)
- [Example 8: Looping](#example-8-looping)
- [Example 9: Canvas Animation](#example-9-canvas-animation)
- [Example 10: Using dedicated worker files and dynamic imports for a parallelized FFT](#example-10-using-dedicated-worker-files-and-dynamic-imports-for-a-parallelized-fft)
- [Example 11: WGSL shader for the DFT with re-use (way faster!), transfer buffers to/from](#example-11-wgsl-shader-for-the-dft-with-re-use-way-faster)
## Usage
Import `threadop` as a default import
`import threadop from 'threadop'`
Or as a method
`import {threadop} from 'threadop'`
Or access it as a global variable
```html
<html>
<head>
<script src="https://cdn.jsdelivr.net/npm/threadop@latest"></script>
</head>
<body>
Hello World
<script>
console.log("Hello world!");
threadop(data => {return data*2}).then((thread) => {
thread.run(5).then(console.log);
}); //globalThis.threadop
</script>
</body>
</html>
```
You can also define the first input as the options object instead of the operation function. This is useful when you want to define a list of functions to call instead of a single operation, for even more complex communications.
## Input Options
```ts
//all possible options
type ThreadOptions = {
operation?:string|Blob|((data)=>(any|Promise<any>)),
imports?:ImportsInput, //ImportsInput
functions?:{[key:string]:Function},
message?:any,
transfer?:Transferable[],
port?:Worker|Worker[],
blocking?:boolean,
pool?:number,
loop?:number, //loop the function on a millisecond interval
animate?:boolean, //loop the function on an animation frame,
callback?:(data) => void
};
type ModuleImport = {
[modulePath: string]:
| string // Default import e.g. 'React'
| boolean // Only import module without named imports
| { // Named imports
[importName: string]: string | boolean; // e.g. { useState: true, useEffect: 'useEff' }
};
};
type ImportsInput =
| string // Single import e.g. './module.js'
| string[] // Multiple imports e.g. ['./mod1.js', './mod2.js']
| ModuleImport; // Object describing imports e.g. { './mod.js': { useState: true } }
type WorkerHelper = {
run: (message: any, transfer?: Transferable[], overridePort?:boolean|number|string|'both') => Promise<any>;
set: (fn:string|Function, fnName?:string) => Promise<string>;
call: (fnName:string, message: any, transfer?: Transferable[], overridePort?:boolean|number|string|'both') => Promise<any>;
terminate: () => void;
addPort: (port: Worker) => void;
addCallback: (callback?: (data: any) => void, oneOff?: boolean) => number;
removeCallback: (cb: number) => void;
setLoop: (interval, message, transfer) => void, //can provide arguments to send results on loop
setAnimation: (message, transfer) => void, //run an animation function, e.g. transfer a canvas with parameters
stop: () => void,
worker: Worker;
id:number,
callbacks: {[key: number]: (data: any, cb?: number) => void};
}
type WorkerPoolHelper = {
run: (message: any|any[], transfer?: (Transferable[])|((Transferable[])[]), overridePort?:boolean|number|string|'both', workerId?:number|string) => Promise<any>;
set: (fn:string|Function, fnName?:string) => Promise<string>;
call: (fnName:string, message: any, transfer?: Transferable[], overridePort?:boolean|number|string|'both', workerId?:number|string) => Promise<any>;
terminate: (workerId?:number|string) => void;
addPort: (port: Worker, workerId?:number|string) => boolean|boolean[];
addCallback: (callback?: (data: any) => void, oneOff?: boolean, workerId?:number|string) => number|number[];
removeCallback: (cb: number, workerId?:number|string) => void;
addWorker:() => number;
setLoop: (interval, message, transfer, workerId?:number|string) => void, //provide arguments and run a function/send results on loop
setAnimation: (message, transfer, workerId?:number|string) => void, //run an animation function, e.g. transfer a canvas with parameters, or transmit results on a framerate-limited loop
stop: (workerId?:number|string) => void,
workers: {[key:string]:Worker};
helpers: {[key:string]:WorkerHelper};
keys: string[],
callbacks: {[key: number]: (data: any, cb?: number) => void};
}
//overloads
// When the message is defined, the function returns a Promise<any>.
function threadop(
operation?:string|Blob|((data)=>(any|Promise<any>)),
options?: {
imports?: ImportsInput,
functions?:{[key:string]:Function},
message: any,
transfer?: Transferable[],
port?: Worker|Worker[],
blocking?: boolean,
loop?:number,
animate?:boolean,
callback?:(data) => void
}
): Promise<any>;
// When the message is defined and pool is defined, the function returns a Promise<any[]>.
function threadop(
operation?:string|Blob|((data)=>(any|Promise<any>)),
options?: {
imports?: ImportsInput,
functions?:{[key:string]:Function},
message: any|any[], //array inputs interpreted as per-thread inputs, can be longer than the number of threads
transfer?: Transferable[],
port?: Worker|Worker[],
blocking?: boolean,
pool:number,
loop?:number,
animate?:boolean,
callback?:(data) => void
}
): Promise<any[]>;
// When the message isn't defined, the function returns a Promise<WorkerHelper>.
function threadop(
operation?:string|Blob|((data)=>(any|Promise<any>)),
options?: {
imports?: ImportsInput,
functions?:{[key:string]:Function},
transfer?: Transferable[],
port?: Worker|Worker[],
blocking?: boolean,
loop?:number,
animate?:boolean,
callback?:(data) => void
}
): Promise<WorkerHelper>;
```
## Examples
There is an `examples.html` file in the example/ folder in this repo, you can run it with the LiveServer extension in VSCode and look in the console to see it working. Below are all the examples tested.
There is also a subfolder called `example/npmproject` that you can run following the readme.
### Example 1: One-off usage
```js
/*
This is the simplest usage of threadop.
You have a function, workerFunction, that you want to run in a separate thread (i.e., Web Worker).
You send a single piece of data (5) to this worker, the worker multiplies this data by 2, and sends the result
(10) back to the main thread.
The function is executed once and the worker terminates after returning the result.
*/
//Define a function to run in the worker
const workerFunction = data => {
// Perform some operation on the data
console.log('Example 1: input', data);
return data * 2;
};
// Run the function with the threadop
threadop(workerFunction, {
message: 5, // Sending a one-off message
}).then(result => {
console.log('Example 1: result', result); // Expected: 10
}).catch(error => {
console.error('Example 1: error',error);
});
```
### Example 2: Repeat operations
```js
/*
This is an example of how to run multiple operations sequentially in a worker.
You initialize the worker with a function (workerFunction2) using threadop.
Once the worker is ready, you send it multiple pieces of data sequentially. Each piece of data is processed independently.
After all operations, the worker is terminated explicitly using the workerHelper.terminate() method. This is
important to ensure that we don't have lingering worker threads.
*/
const workerFunction2 = data => {
console.log('Example 2: input', data);
return data * 2;
};
threadop(workerFunction2).then(workerHelper => {
workerHelper.run(5).then(r1 => {
console.log('Example 2: r1', r1); // Expected: 10
});
workerHelper.run(10).then(r2 => {
console.log('Example 2: r2', r2); // Expected: 20
workerHelper.terminate(); // Terminate the worker after you're done with it.
});
}).catch(error => {
console.error('Example 2: error', error);
});
```
### Example 3: Chaining workers
```js
/*
This example demonstrates how to chain two workers, meaning the output of one worker (workerFunctionA) is used
as the input for another worker (workerFunctionB).
Both workers are initialized independently.
A message port is set up between the two workers for chained communication.
The first worker (workerFunctionA) processes the data and sends its result to the second worker (workerFunctionB),
which processes the result further.
Both workers are terminated after processing, ensuring that no worker threads remain active.
*/
const workerFunctionA = data => {
console.log('Example 3: A input', data);
return data * 2;
};
const workerFunctionB = data => {
console.log('Example 3: B input', data);
return data + 3;
};
// Initialize first worker
threadop(workerFunctionA, {
blocking: true,
}).then(workerHelperA => {
// Initialize second worker and set up message port for chained communication
threadop(workerFunctionB).then(workerHelperB => {
workerHelperA.addPort(workerHelperB.worker);
let ctr = 0;
workerHelperB.addCallback(result => {
console.log('Chain workerHelperB result', result); // Result from the chained worker operation
ctr++;
if(ctr === 2) {
workerHelperA.terminate();
workerHelperB.terminate();
}
workerHelperA.run(10);
});
workerHelperA.run(5).then(result => {
console.log('Chain workerHelperA result', result); // Result from the chained worker operation
});
workerHelperA.run(5) //Blocked!
});
}).catch(error => {
console.error(error);
});
```
### Example 4: local import
```js
/*
This is about loading and using external libraries/modules within the worker.
You want to perform some operations on data using the numjs library. So, before running the worker,
you specify that this library should be imported.
The imports option in threadop allows you to specify which external scripts or libraries the worker
should load before it begins execution.
The data is then sent to the worker, processed using the numjs functions, and the result is returned.
*/
const computeMean = data => {
const nj = globalThis.nj; // numjs is attached to globalThis within the worker context
let ndarray = nj.array(data);
return nj.mean(ndarray);
};
// Sample data
const data = [1, 2, 3, 4, 5];
threadop(computeMean, {
imports: './num.min.js', //['./num.min.js'] //or { './num.min.js':true } //use objects to get more fine grained, e.g. for a import url pass an object with specific module methods and alias strings or bools
message: data
}).then(result => {
console.log('Example 4: Mean:', result);
}).catch(error => {
console.error('Example 4: Error:', error);
});
```
### Example 5: Web import with a specified library function
```js
const lodashop = data => {
return data.map(snakeCase)
};
// Sample data
const lodata = ['HelloWorld', 'left pad', 'ECMAScript'];
threadop(lodashop, {
imports: {[`https://cdn.skypack.dev/lodash@4`]:{snakeCase :true}}, //['./num.min.js'] //or { './num.min.js':true } //use objects to get more fine grained, e.g. for a import url pass an object with specific module methods and alias strings or bools
message: lodata
}).then(result => {
console.log('Example 5: Snake Case result:', result);
}).catch(error => {
console.error('Example 5: Error:', error);
});
```
### Example 6: Thread pool one-off
```js
/**
The example demonstrates how to set up a thread pool to parallelly encode each string in an array into a sequence of bytes using the TextEncoder.
The results are then logged to the console, and any errors encountered during the process are caught and reported.
*/
const threadpoolop = (stringdata) => {
if(!self.encoder) self.encoder = new TextEncoder();
return encoder.encode(stringdata);
}
let poolinput = ['Hello','World','My','Old','Friend'];
threadop(threadpoolop, {
pool:poolinput.length,
message:poolinput
}).then(result => {
console.log('Example 6: Threadpool result:', result, 'input:', poolinput);
}).catch(error => {
console.error('Example 5: Error:', error);
});
```
### Example 7: Thread pool chaining
```js
/*
This example showcases how to chain two threadpools, where the output of the first serves as the input to the second.
It encodes and then reverses a list of strings. After both operations, the results are re-collected, sorted, and then displayed.
In the event of an error in this process, an error message is displayed.
*/
const encodeOperation = stringdata => {
// Simulate the encoding operation.
//console.log('Example 7 step 1 input', stringdata);
let encoded = btoa(stringdata);
return {input:stringdata, encoded};
}
const reverseOperation = encodedData => {
// Simulate the reversing operation.
//console.log('Example 7 step 2 input', encodedData);
let reversed = encodedData.encoded.split("").reverse().join("");
return {reversed, input:encodedData.input};
}
let poolinput = ['Hello','World','My','Old','Friend'];
// First threadpool to encode the strings. Second to reverse. This is best for async batch processes while you need to implement
//something to re-collect results if trying to break up a single problem
threadop(reverseOperation, {
pool: poolinput.length
}).then((pool1) => {
return new Promise((res,rej) => {
let results = [];
pool1.addCallback((data) => {
results.push(data);
if(results.length == poolinput.length) {//got all our data back
let sortedOutput = [];
poolinput.map((inp,i) => {
sortedOutput[i] = results.find((v) => v.input === inp).reversed;
});//we're sorting because pool1 responds asynchronously and we need to check the output order if it's important for the problem
console.log('Example 7: threadpool chain output', sortedOutput, "\nRe-decoded:", sortedOutput.map((v)=>{return atob(v.split("").reverse().join(""));}))// sortedOutput.map(atob));
pool1.terminate();
res(sortedOutput);
}
});
console.log("Example 7: threadpool chain input", poolinput);
// Using ports, pass the encoded strings from the first pool to the second pool.
// Second threadpool to reverse the encoded strings.
threadop(encodeOperation, {
pool: poolinput.length,
message: poolinput,
port: Object.values(pool1.workers)
});
})
}).catch(error => {
console.error('Example 7: Error:', error);
}); //should pass the result to pool1
```
### Example 8: Looping
Execute repeating operations with a set input
```js
threadop(
(data) => `Processed ${data}, ${new Date().toLocaleString()}`,
{
message:"ABC123",
loop:1000,
callback:(data) => {console.log(data)},
}
).then((helper) => {
setTimeout(() => {helper.stop()},5000);
});
```
### Example 9: Canvas Animation
This isn't really the best way to use this library but we included it for the hell of it.
```js
const canvas = document.createElement('canvas');
canvas.width = 800;
canvas.height = 600;
canvas.style.width = '100%';
canvas.style.height = '100%';
canvas.style.position = 'absolute';
document.body.appendChild(canvas);
const offscreen = canvas.transferControlToOffscreen();
//document.body.appendChild(canvas);
threadop(
(data) => {
if(data.canvas && !self.canvas) { //setup
const canvas = data.canvas;
const ctx = data.canvas.getContext("2d");
self.canvas = canvas;
self.ctx = ctx;
let gradientColors = [
'red', 'orange', 'yellow', 'green', 'blue', 'indigo', 'violet'
];
let offset = 0;
self.drawWave = () => {
ctx.clearRect(0, 0, canvas.width, canvas.height);
// Create gradient
let gradient = ctx.createLinearGradient(0, canvas.height / 2, canvas.width, canvas.height / 2);
gradientColors.forEach((color, index) => {
gradient.addColorStop(index / (gradientColors.length - 1), color);
});
ctx.fillStyle = gradient;
const waveHeight = 100;
const waveLength = 0.01;
const speed = 0.04;
ctx.beginPath();
for(let x = 0; x < canvas.width; x++) {
let y = canvas.height / 2 + waveHeight * Math.sin(waveLength * x + offset);
ctx.lineTo(x, y);
}
ctx.lineTo(canvas.width, canvas.height);
ctx.lineTo(0, canvas.height);
ctx.closePath();
ctx.fill();
offset -= speed;
}
} else if(data.width && self.canvas?.width !== data.width) {
console.log("resized!");
self.canvas.width = data.width;
self.canvas.height = data.height;
}
self.drawWave();
},
{
animate:true,
message:{canvas:offscreen},
transfer:[offscreen]
}
).then((helper) => {
window.onresize = (ev) => {
helper.setAnimation({width:window.innerWidth, height:window.innerHeight});
}
});
```
### Example 10 Using dedicated worker files and dynamic imports for a parallelized FFT
This isn't exactly a *good* parallel implementation but it's about 30% faster than a single dedicated thread for the divide and conquer FFT
```js
function nextPowerOf2(n) {
let count = 0;
if (n && !(n & (n - 1))) return n;
while(n != 0) {
n >>= 1;
count += 1;
}
return 1 << count;
}
// Cooley-Tukey radix-2 FFT
async function threadfft(input) {
const N = input.length;
if (N <= 1) return input;
// Decomposition into even and odd components
const even = [];
const odd = [];
for (let i = 0; i < N; i += 2) {
even.push(input[i]);
if ((i + 1) < N) {
odd.push(input[i + 1]);
}
}
let E, O;
if(even.length >= 7500) { // 25% faster
[E,O] = await new Promise((res) => {
import(location.origin+'/lib/threadop.esm.js').then(async (module) => {
res(await Promise.all(
[
module.threadop(threadfft,{message:even}),
module.threadop(threadfft,{message:odd})
]
));
});
})
} else {
[E, O] = [await threadfft(even), await threadfft(odd)];
}
const T = new Array(N);
for (let k = 0; k < N / 2; k++) {
const angle = -2 * Math.PI * k / N;
// complex multiplication for e^(-j*angle) and O[k]
const tReal = Math.cos(angle) * O[k].real - Math.sin(angle) * O[k].imag;
const tImag = Math.cos(angle) * O[k].imag + Math.sin(angle) * O[k].real;
// complex addition for E[k] and t
T[k] = {
real: E[k].real + tReal,
imag: E[k].imag + tImag
};
// complex subtraction for E[k] and t
T[k + N / 2] = {
real: E[k].real - tReal,
imag: E[k].imag - tImag
};
}
return T//res(T);
}
async function parallelFFT(input, sampleRate = 44100, frequencyResolution = 1, dedicatedThreadFile=true) {
const N = input.length;
// Calculate the number of samples required for the desired resolution
const M = Math.max(nextPowerOf2(N), Math.ceil(sampleRate / frequencyResolution));
// Pad the input with zeros if needed
while (input.length < M) {
input.push({real: 0, imag: 0});
}
if (N <= 1) return input;
// Wait for the results from both threads
//const T = await threadop(threadfft, {message: input});
const T = await threadop(dedicatedThreadFile ? './dist/fft.thread.js' : threadfft, {message: input});
// Calculate the magnitudes
const magnitudes = T.map(bin => Math.sqrt(bin.real * bin.real + bin.imag * bin.imag)/M); //not scaling perfectly
// Calculate mid point
const midPoint = Math.floor(M/2);
// Order the magnitudes from -Nyquist to Nyquist
let orderedMagnitudes = new Array(M);
for(let i = 0; i < M; i++) {
if(i < midPoint) {
orderedMagnitudes[midPoint + i] = magnitudes[i];
} else {
orderedMagnitudes[i - midPoint] = magnitudes[i];
}
}
// Frequencies from -Nyquist to Nyquist
let orderedFreqs = [...Array(M).keys()].map(i => (i - midPoint) * sampleRate / M);
return {
amplitudes: orderedMagnitudes,
freqs: orderedFreqs
};
}
//Test
import './lib/plotly-latest.min.js'; //local import
document.body.insertAdjacentHTML('beforeend',`<div id="plot"></div>`);
document.body.insertAdjacentHTML('beforeend',`<div id="plot2"></div>`);
// Create a sine wave
const sampleRate = 44100;
const frequency = 2500; // Frequency of A4 note
const duration = 1; // seconds
const amplitude = 0.5;
let sineWave = [];
let sineWave2 = [];
for (let i = 0; i < sampleRate * duration; i++) {
const value = {
real: amplitude * Math.sin(2 * Math.PI * frequency * i / sampleRate),
imag: 0
};
sineWave.push(value);
sineWave2.push(value.real);
}
console.time('parallelFFT with file (CPU)')
parallelFFT(sineWave, sampleRate, 1).then(output => {
console.timeEnd('parallelFFT with file (CPU)');
const freqs = output.freqs;
const amplitudes = output.amplitudes;
const trace = {
x: freqs,
y: amplitudes,
type: 'line',
name: 'Amplitude Spectrum'
};
const layout = {
title: 'Threaded 2-radix FFT Output',
xaxis: {
title: 'Frequency (Hz)'
},
yaxis: {
title: 'Amplitude'
}
};
globalThis.Plotly.newPlot('plot', [trace], layout);
setTimeout(()=>{
console.time('parallelFFT with dynamic importing function (CPU)')
parallelFFT(sineWave, sampleRate, 1, false).then(output => {
console.timeEnd('parallelFFT with dynamic importing function (CPU)');
});
},1000);
});
```
Plus a dedicated worker file to test against the dynamic importing
##### fft.thread.js (built to dist/fft.thread.js)
```js
import {threadop, initWorker} from './lib/threadop.esm.js'
// Cooley-Tukey radix-2 FFT
async function threadfft(input) {
const N = input.length;
if (N <= 1) return input;
// Decomposition into even and odd components
const even = [];
const odd = [];
for (let i = 0; i < N; i += 2) {
even.push(input[i]);
if ((i + 1) < N) {
odd.push(input[i + 1]);
}
}
let E, O;
if(even.length >= 7500) { // 25% faster
[E,O] = await Promise.all(
[
threadop('./fft.thread.js',{message:even}),
threadop('./fft.thread.js',{message:odd})
]
);
} else {
[E, O] = [await threadfft(even), await threadfft(odd)];
}
const T = new Array(N);
for (let k = 0; k < N / 2; k++) {
const angle = -2 * Math.PI * k / N;
// complex multiplication for e^(-j*angle) and O[k]
const tReal = Math.cos(angle) * O[k].real - Math.sin(angle) * O[k].imag;
const tImag = Math.cos(angle) * O[k].imag + Math.sin(angle) * O[k].real;
// complex addition for E[k] and t
T[k] = {
real: E[k].real + tReal,
imag: E[k].imag + tImag
};
// complex subtraction for E[k] and t
T[k + N / 2] = {
real: E[k].real - tReal,
imag: E[k].imag - tImag
};
}
return T//res(T);
}
initWorker(threadfft);
```
### Example 11: WGSL shader for the DFT with re-use (way faster!)
```js
// Example 11: WGSL shader for the DFT with re-use (way faster!), transfer buffers to/from
async function WGSLDFT({inputArray, sampleRate, frequencyResolution}) {
if(!self.DFT) {
class DFTProcessor {
static async create(device = null) {
if (!device) {
const gpu = navigator.gpu;
const adapter = await gpu.requestAdapter();
device = await adapter.requestDevice();
}
const processor = new DFTProcessor();
await processor.init(device);
return processor;
}
async init(device=null) {
this.device = device;
this.bindGroupLayout = this.device.createBindGroupLayout({
entries: [
{
binding: 0,
visibility: GPUShaderStage.COMPUTE,
buffer: {
type: 'read-only-storage'
}
},
{
binding: 1,
visibility: GPUShaderStage.COMPUTE,
buffer: {
type: 'storage'
}
}
]
});
this.pipelineLayout = this.device.createPipelineLayout({
bindGroupLayouts: [this.bindGroupLayout]
});
this.shaderModule = this.device.createShaderModule({
code: `
struct InputData {
values : array<f32>
}
struct OutputData {
values: array<f32>
}
@group(0) @binding(0)
var<storage, read> inputData: InputData;
@group(0) @binding(1)
var<storage, read_write> outputData: OutputData;
@compute @workgroup_size(256)
fn main(
@builtin(global_invocation_id) globalId: vec3<u32>
) {
let N = arrayLength(&inputData.values);
let k = globalId.x;
var sum = vec2<f32>(0.0, 0.0);
for (var n = 0u; n < N; n = n + 1u) {
let phase = 2.0 * 3.14159265359 * f32(k) * f32(n) / f32(N);
sum = sum + vec2<f32>(
inputData.values[n] * cos(phase),
-inputData.values[n] * sin(phase)
);
}
let outputIndex = k * 2;
if (outputIndex + 1 < arrayLength(&outputData.values)) {
outputData.values[outputIndex] = sum.x;
outputData.values[outputIndex + 1] = sum.y;
}
}
`
});
this.computePipeline = this.device.createComputePipeline({
layout: this.pipelineLayout,
compute: {
module: this.shaderModule,
entryPoint: 'main'
}
});
}
process(inputArray, sampleRate, frequencyResolution) {
//recycle buffers when input sizes are the same
if (!this.inputData || this.inputData.byteLength !== inputArray.byteLength) {
this.inputData = this.device.createBuffer({
size: inputArray.byteLength,
usage: GPUBufferUsage.STORAGE | GPUBufferUsage.COPY_SRC,
mappedAtCreation: true
});
new Float32Array(this.inputData.getMappedRange()).set(inputArray);
this.inputData.unmap();
this.outputData = this.device.createBuffer({
size: inputArray.byteLength * 2,
usage: GPUBufferUsage.STORAGE | GPUBufferUsage.COPY_DST | GPUBufferUsage.COPY_SRC
});
this.bindGroup = this.device.createBindGroup({
layout: this.bindGroupLayout,
entries: [
{
binding: 0,
resource: {
buffer: this.inputData
}
},
{
binding: 1,
resource: {
buffer: this.outputData
}
}
]
});
} else {
const array = new Float32Array(this.inputData.getMappedRange());
array.set(inputArray);
this.inputData.unmap();
}
const commandEncoder = this.device.createCommandEncoder();
const passEncoder = commandEncoder.beginComputePass();
passEncoder.setPipeline(this.computePipeline);
passEncoder.setBindGroup(0, this.bindGroup);
passEncoder.dispatchWorkgroups(Math.ceil(inputArray.length / 64));
passEncoder.end();
const stagingBuffer = this.device.createBuffer({
size: this.outputData.size,
usage: GPUBufferUsage.MAP_READ | GPUBufferUsage.COPY_DST
});
commandEncoder.copyBufferToBuffer(
this.outputData, 0,
stagingBuffer, 0,
this.outputData.size
);
this.device.queue.submit([commandEncoder.finish()]);
return new Promise((res) => {
stagingBuffer.mapAsync(GPUMapMode.READ).then(() => {
const mappedRange = stagingBuffer.getMappedRange();
const rawResults = new Float32Array(mappedRange);
const copiedResults = new Float32Array(rawResults.length);
copiedResults.set(rawResults); // Fast copy
stagingBuffer.unmap();
res({message:copiedResults, transfer:[copiedResults.buffer]}); //specific output format to trigger transferables
});
})
}
}
self.DFT = await DFTProcessor.create();
}
return self.DFT.process(inputArray, sampleRate, frequencyResolution);
}
const inputArray = new Float32Array(sampleRate); // 1 second of samples
for (let i = 0; i < sampleRate; i++) {
inputArray[i] = amplitude * Math.sin(2 * Math.PI * frequency * i / sampleRate); // 440Hz
}
const inp2 = new Float32Array(inputArray);
console.time('WGSL DFT Thread')
threadop(WGSLDFT).then((helper) => {
helper.run({inputArray, sampleRate, frequencyResolution:1},[inputArray.buffer]).then((output) => {
console.timeEnd('WGSL DFT Thread')
//console.log('WGSLDFT Result', output); //unordered results
//console.log(rawResults)
function rearrangeDFTOutput(output) {
const halfLength = output.length / 2;
const rearranged = new Float32Array(output.length);
// Copy the negative frequencies (second half of the output) to the beginning of the rearranged array
rearranged.set(output.subarray(halfLength), 0);
// Copy the positive frequencies (first half of the output) to the end of the rearranged array
rearranged.set(output.subarray(0, halfLength), halfLength);
return rearranged;
}
const rearrangedResults = rearrangeDFTOutput(output);
// Compute the magnitude of the results
const magnitudes = [];
for (let i = 0; i < rearrangedResults.length; i += 2) {
const real = rearrangedResults[i];
const imag = rearrangedResults[i + 1];
const magnitude = 4 * Math.sqrt(real * real + imag * imag) / rearrangedResults.length;
magnitudes.push(magnitude);
}
const frequencyBins = [];
const numSamples = output.length / 2;
const deltaF = sampleRate / numSamples; // Frequency resolution
for (let i = 0; i < numSamples / 2; i++) {
frequencyBins[i] = -sampleRate / 2 + i * deltaF;
}
for (let i = numSamples / 2; i < numSamples; i++) {
frequencyBins[i] = deltaF * (i - numSamples / 2);
}
const trace = {
x: frequencyBins,
y: magnitudes,
type: 'line'
};
document.body.insertAdjacentHTML('beforeend',`<div id="plot3"></div>`);
const layout = {
title: 'DFT Magnitude Spectrum',
xaxis: {
title: 'Frequency (Hz)'
},
yaxis: {
title: 'Magnitude'
}
};
Plotly.newPlot('plot3', [trace], layout);
console.time('WGSL DFT Thread Run 2')
helper.run({inputArray:inp2, sampleRate, frequencyResolution:1}, [inp2.buffer]).then((output) => {
console.timeEnd('WGSL DFT Thread Run 2')
helper.terminate();
});
});
});
```
| Thread operations! Create multithreaded pipelines (with esm imports) in a single script file with a clear, minimal workflow. | multithreading,webworker,workflow,thread,threadpool,frontend,javascript | 2023-08-21T09:39:43Z | 2024-05-13T05:40:30Z | null | 1 | 0 | 60 | 0 | 0 | 2 | null | LGPL-3.0 | JavaScript |
jerp86/urlChanger | main | # URL Changer
<p align="center" style="background-color: #2F2E41">
<a href="https://wefit.com.br/" target="_blank" rel="noreferrer noopener">
<img src="https://user-images.githubusercontent.com/54115624/216507723-680f5174-9963-4b6f-b860-605d751aa02f.png" alt="Símbolo da empresa Wefit Digital Service Design" style="aspect-ratio: 3; width: 50%; object-fit: cover;" role="banner" loading="lazy" decoding="async" fetchpriority="high" />
</a>
</p>
---
<h3 align="center">
<a href="#sobre">Sobre</a> |
<a href="#pré-requisitos">Pré-requisitos</a> |
<a href="#instalação">Instalação</a>
</h3>
<h3 align="center">
<a href="#uso">Uso</a> |
<a href="#contribuição">Contribuição</a> |
<a href="#contribuição">Perguntas Frequentes</a> |
<a href="#licença">Licença</a>
</h3>
---
## Sobre
**URL Changer** é uma extensão para o navegador Google Chrome que permite alterar o início da URL de uma página da web. Com essa extensão, você pode facilmente mudar a URL de uma página em desenvolvimento para a mesma referência do editor AEM (Adobe Experience Manager).
## Pré-requisitos
Para utilizar a extensão URL Changer, você precisa ter um navegador que suporte extensões do Google Chrome, como o próprio Google Chrome ou o Chromium.
## Instalação
1. Abra a página [URL Changer no GitHub](https://github.com/jerp86/urlChanger)
2. Clique no botão `Code` e depois em `Download ZIP` ou clone este repositório para o seu computador usando o seguinte comando:
```bash
git clone https://github.com/jerp86/urlChanger.git
```
3. Caso faça o download, extraia o arquivo ZIP para uma pasta de sua escolha
4. Abra o Google Chrome e navegue até `chrome://extensions`
5. Ative a opção `Modo de desenvolvedor`, no canto superior direito da página de extensões
6. Clique no botão `Carregar extensão descompactada` e selecione a pasta onde você extraiu o arquivo ZIP ou clonou o repositório
A extensão **URL Changer** estará instalada e pronta para uso.
## Uso
Para usar o URL Changer, siga estas etapas:
1. Abra a página da web que você deseja
2. Clique no ícone do **URL Changer** na barra de ferramentas do Chrome
3. Será alterado a url e carregado a nova página
<p align="center">
<img src="https://github.com/jerp86/urlChanger/assets/54115624/018ff0be-08c3-4d5d-95b0-de2cd62cc80b" alt="Animação mostrando a utilização da ferramenta" style="aspect-ratio: 16/9; object-fit: cover;" role="banner" loading="lazy" decoding="async" fetchpriority="high" />
</a>
</p>
## Contribuição
Nós adoramos receber contribuições da comunidade! Se você quiser contribuir com melhorias, correções de bugs ou novos recursos, siga as etapas abaixo:
1. Faça um fork do repositório e clone-o em sua máquina local.
2. Crie um novo branch para suas alterações: `git checkout -b meu-nome-de-branch`.
3. Faça suas alterações e teste-as cuidadosamente.
4. Faça o commit das suas alterações com uma mensagem descritiva: `git commit -m "Adicionar nova funcionalidade"`.
5. Envie suas alterações para o seu repositório forkado: `git push origin meu-nome-de-branch`.
6. Abra um pull request no repositório principal e forneça uma descrição clara e concisa das suas alterações.
Para maiores informações, clique em [Contribuindo com o URL Charger](#CONTRIBUTING.md).
## Perguntas Frequentes
**1. Como posso reportar um bug?**
Se você encontrar algum bug ou problema, por favor, abra uma nova issue neste repositório descrevendo os detalhes do bug e como reproduzi-lo.
**2. Posso adicionar novos recursos à extensão?**
Sim! Ficaríamos felizes em receber novos recursos para a extensão. Por favor, abra uma nova issue para discutir suas ideias antes de começar a implementar.
**3. Essa extensão é compatível com outros navegadores?**
Atualmente, a extensão foi desenvolvida para funcionar apenas no Google Chrome. Não garantimos compatibilidade com outros navegadores.
## Licença
Este projeto está licenciado sob a [MIT License](LICENSE). Sinta-se à vontade para usar, modificar e distribuir de acordo com os termos da licença.
## Referências
- [Documentação do Google Chrome Extensions](https://developer.chrome.com/docs/extensions/)
- [Página do Adobe Experience Manager](https://www.adobe.com/marketing/experience-manager.html)
---
## English Version
If you prefer to read this README in English, you can find the English version [here](README.en.md).
---
<h4 align="center">
Feito por Jerp 👋️
</h4>
<h5 align="center">
<a href="mailto:jerp.dev@gmail.com">Entre em contato!</a>
</h5>
<p align="center">
<a href="https://www.linkedin.com/in/jerp/">
<img alt="Perfil do Linkedin de José Eduardo Rodrigues Pinto" src="https://img.shields.io/badge/LinkedIn-jerp-0e76a8?style=flat&logoColor=white&logo=linkedin" loading="lazy" decoding="async" fetchpriority="high" />
</a>
</p>
| URL Charger é uma extensão para o navegador Google Chrome que permite alterar o início da URL de uma página da web. Com essa extensão, você pode facilmente mudar a URL de uma página em desenvolvimento para a mesma referência do editor AEM (Adobe Experience Manager). | aem-tools,javascript | 2023-08-16T21:46:12Z | 2023-08-18T14:00:01Z | null | 1 | 0 | 11 | 0 | 0 | 2 | null | MIT | JavaScript |
im-mou/alias-classname | master | <br />
<br />
<br />
<div align="center">
<img width="300" alt="alias-classname" src="https://raw.githubusercontent.com/im-mou/alias-classname/master/logo.png" />
</div>
<br />
<br />
<br />
<div align="center">
</div>
<br />
# alias-classname





A small utility for defining aliases for CSS classes, resolve those aliases in order to generate a final classes string with conditional joining.
## How It Works
The `aliasClassName` function returned by this module serves as the main interface. It allows you to define aliases and resolve classes using the registered aliases. This utility handles the process of alias resolution and concatenation of classes.
## Highlights
- Under 1 kB minified & gzipped
- Typed with TypeScript
- Fully tested
- Zero dependencies
## Installation
To install simply run:
Yarn:
```bash
yarn add alias-classname
```
NPM:
```bash
npm install alias-classname
```
## Usage
1. Import the `aliasClassName` function from the module:
```javascript
import aliasClassName from "alias-classname";
```
2. Define your aliases and resolve class names:
Basic usage:
```javascript
const classes = aliasClassName();
const classname = classes("css", "base:my-class", "(base)__modifier");
// outputs: "css my-class my-class__modifier"
```
With default aliases:
```javascript
const classes = aliasClassName("base:component", "mod:container");
const classname = classes("(base)", "body:(base)__(mod)");
// outputs: "component component__container"
const classname2 = classes("(body)--variant");
// outputs: "component__container--variant"
```
Default aliases can also be composed:
```javascript
const classes = aliasClassName(
"base:component",
"mod:(base)__container",
"var:(mod)--variant"
);
const classname = classes("(base)", "(mod)", "(var)");
// outputs: "component component__container component__container--variant"
```
> You're not required to use the [BEM naming convention](https://getbem.com/naming/). But if you do, it can be really helpful for that use case.
3. Debugging:
You can access the aliases and classes stores for debugging purposes:
```javascript
const debugInfo = classes.debug();
console.log(debugInfo.aliases);
console.log(debugInfo.classes);
```
## Problem
When working on projects with complex CSS class naming conventions, managing them can become really cumbersome. Especially when you need to apply multiple classes to elements, the resulting code can quickly become hard to read and maintain.
## Solution
The `aliasClassName` simplifies CSS classes management by allowing you to define aliases for longer class names. These aliases can then be easily used to generate the final joined class names string. This is particularly useful when you want to:
- Maintain cleaner and more readable code by abstracting complex class names behind meaningful aliases.
- Apply consistent and uniform class names throughout your project without repeating lengthy strings.
- Dynamically switch or toggle between different class configurations by using aliases as references.
## Functions and Methods
- `aliasClassName(...aliases: string[]): (classnames: unknown[]) => string`
This is the main function returned by the module. It takes aliases as arguments and returns a function to resolve class names.
- `(...classnames: unknown[]): string`
This is the returned function that takes an array of strings, including aliases, as arguments and returns the resolved final class name string. It concatenates the class names based on the registered aliases.
- `debug(): { aliases: AliasesStore, classes: ClassesStore }`
This method is a property attached to the returned function that allows you to retrieve the current state of the aliases and classes stores for debugging purposes.
## Terminology
- **Aliases:** Shorter identifiers that can be used in place of longer class names.
- **Class Names:** CSS class names or any string that you want to resolve and concatenate.
## Limitations and Considerations
- Aliases should be provided as strings in the format:
- `"alias:class-name"`.
- An alias reference should be provided in the format:
- `"(alias)__class-name"`.
- An alias must have been registered before it's referenced.
- A redefinition of an existing alias will override its current value.
- Circular references or an alias that doesn't exist are not resolved.
- `"a:(a)"` will output `"(a)"`.
## Contributing
All contributions are very welcome. You can submit any ideas as [pull requests](https://github.com/im-mou/alias-classname/pulls) or as [GitHub issues](https://github.com/im-mou/alias-classname/issues). If you'd like to improve code, please feel free!
| Easily compose, manage and simplify CSS classes using aliases. | alias,aliases,bem,class,classname,composition,css,javascript,web,clsx | 2023-08-27T18:38:15Z | 2023-08-31T19:16:35Z | 2023-08-31T19:16:35Z | 1 | 3 | 37 | 0 | 0 | 2 | null | MIT | TypeScript |
RJRETOUCH/Bankist-Website | master | null | A simple website with JavaScript features and cool effects. | css3,javascript,website-design,website-development,website-template | 2023-09-02T19:58:49Z | 2023-09-02T20:00:31Z | null | 1 | 0 | 1 | 0 | 0 | 2 | null | null | HTML |
Kokolipa/belly-button-challenge | bb_main | # Belly Button Challenge [](https://kokolipa.github.io/belly-button-challenge/)
### Project description:
Building an interactive dashboard to describe and explore the [Belly Button Biodiversity dataset](http://robdunnlab.com/projects/belly-button-biodiversity/) using JavaScript and HTML. The dataset reveals that a small handful of microbial species (also called operational taxonomic units, or OTUs, in the study) were present in more than 70% of people, while the rest were relatively rare.
#### Dashboard Creation Process:
The JavaScript (**app.js**) plays as the backend of the dashboard and is divided into two funnels:
1. **Data funnel:** To extract, transform, and load the data subsets to the dashboard's corresponding HTML tags and visuals.
* How?
* Calling the Belly Button API to GET the data response and divide it into three main subsets using D3.json(URL):
* metadata
* names
* samples
* **Mapping** the subsets to extract relevant fields for the dashboard's visuals and assign the filtered subsets to the variables created in the global scope (_"sampleData"_ and _"metaField"_).
* To push all the sample IDs to the HTML tag, I used _document.getElementById_ and referred to the corresponding HTML-dropdown-tag and assigned it to a variable; I then used the _forEach_ to "loop" over the items and pushed them one by one to create a new option using _document.createElement_.
* Finally, for convenience, I chained the catch function to D3.json(URL) to catch errors while working on and with the dataset.
2. **Data visuals:** To create an interactive dashboard, I made a function that plots a visual based on one condition: **if the selected value lives within the subset, filter the results and use the return value to plot the visuals for the dashboard**.
### Libraries used:
1. Plotly
2. D3
### Languages used:
1. HTML - Frontend
2. JavaScript - Backend
### Dashboard Image:

#### Folder structure:
``` yml
.
├── js-belly-button
│ ├── Images
│ | ├── belly_dashboard.png
│ ├── static
│ | ├── .gitkeep
│ | ├── app.js # This is the backend code for the dashboard
│ ├── index.html # This is the frontend
│ ├── samples.json # This json file contains the data used for the project
|___.gitignore
|___README.md
```
| Building an interactive dashboard to describe and explore the Belly Button Biodiversity dataset using JavaScript and HTML. The dataset reveals that a small handful of microbial species (also called operational taxonomic units, or OTUs, in the study) were present in more than 70% of people, while the rest were relatively rare. | css,d3,html,javascript,plotly | 2023-09-02T03:53:09Z | 2023-09-02T07:22:35Z | null | 1 | 0 | 15 | 0 | 0 | 2 | null | null | JavaScript |
DanilaBezhin/Pizzas-store-react | main | the site is still under development
| Large ReactJS project. In brief it is a site for selling pizzas, with filters, sorting, search, data retrieval from API and pagination. | axios,javascript,jsx,react-redux,react-router,reactjs,redux-toolkit,scss,typescript,sceleton | 2023-08-28T07:08:52Z | 2023-08-28T07:48:34Z | null | 1 | 0 | 2 | 0 | 0 | 2 | null | null | JavaScript |
HazmiHazim/Food-Ordering-System | main | # `Food Ordering System`
The Food Ordering System is built using the Laravel framework, which harnesses the power of pure HTML, CSS, and JavaScript. This application is developed to address a longstanding challenge faced by restaurants: streamlining the ordering process that has traditionally relied on staff waiters. With this web application, customers can conveniently place orders via their mobile devices by simply scanning the QR code provided on their table, which redirects them to the website's URL. The primary objective of this application is to facilitate swift and efficient ordering, ensuring that customers receive their orders within 15 to 30 minutes.
Furthermore, the application offers dedicated panels for both staff members and administrators (restaurant owner) to manage incoming customer orders. These panels serve distinct roles within the system. The administrator panel grants full control over the entire system, whereas the staff panel is designed specifically for managing tasks related to customer orders, reservations, complaints, and other responsibilities pertinent to their roles.
# `Available Features`
- Admin panel
- Staff panel
- Order food
- Add to cart system
- Search filter function
- Inventory management
- Manage customer order
# `Installation`
- Clone repository
```
git clone https://github.com/HazmiHazim/Food-Ordering-System.git
```
- Change directory
```
cd YOUR-PATH-TO-PROJECT\Food-Ordering-System
```
```
Example: Lets say Food-Ordering-System in download folder
cd C:\Users\(Computer)\Downloads\Food-Ordering-System
```
- Copy sample `env` file and change configuration according to your need in ".env" file
```
cp .env.example .env
```
- Install php & javascript libraries
```
composer install
```
- Generate key
```
php artisan key:generate
```
- Migrate database
```
php artisan migrate
```
- Run seeder
```
php artisan db:seed
```
- Link local storage (Optional)
```
php artisan storage:link
```
# `Authentication`
- Admin
```
ID: hashceo001
```
```
Password: adminceouser
```
- Staff
```
ID: hashstaff123
```
```
Password: staffuser
``` | System for restaurant in ordering a food using web including the admin panel and staff panel. This system is made by using laravel framework. | css,laravel,php,javascript | 2023-08-09T12:12:54Z | 2024-01-06T14:34:56Z | null | 1 | 0 | 113 | 0 | 0 | 2 | null | null | PHP |
swamy3697/Fly-with-us | main | # Fly-with-us
# Real-Time Flight Information Dashboard


## Overview
The Real-Time Flight Information Dashboard is a web application that provides users with up-to-date information about flights, airports, airlines, and more. It fetches real-time data from the AviationStack API and presents it in a user-friendly interface. This README provides an overview of the application's features, how to use it, and how to contribute.
## Features
- **Real-Time Data**: The dashboard fetches real-time flight data from the AviationStack API, ensuring that users have access to the latest information.
- **Flight Information**: Detailed information about each flight is displayed, including flight number, airline, flight date, and flight status.
- **Arrival and Departure Details**: Users can view information about both arrival and departure for each flight, including airport, ATA code, ICAO code, terminal, gate, scheduled time, and estimated time.
- **Counters Animation**: Animated counters display statistics such as the total number of flights, airports, airlines, routes, total revenue of the aviation industry, and the number of employees.
- **Navigation**: Users can easily navigate through flight information using the "Previous" and "Next" buttons.
## Technologies Used
- **HTML**: The web page structure is defined using HTML.
- **CSS**: CSS styles the web page to make it visually appealing.
- **JavaScript**: JavaScript handles API requests, updates page content dynamically, and enables user interaction.
- **jQuery**: jQuery is used for DOM manipulation and simplifies JavaScript code.
## How to Use
1. Open the `index.html` file in a web browser to launch the application.
2. The dashboard will load with initial flight information.
3. Click the "Next" button to view information about the next flight in the list. You can also click "Previous" to go back to the previous flight.
4. Animated counters at the top of the page will display updated statistics as the page loads.
## API Integration
The application integrates with the AviationStack API to fetch flight information. To use this application, you'll need to obtain an API access key from AviationStack. Replace the placeholder `'98c282d15d199bbb52d356a5704483d7'` in the JavaScript code (located in `homePage.js`) with your actual API access key.
## Contributing
We welcome contributions to enhance the application. Here's how you can contribute:
1. Fork this repository.
2. Create a new branch for your feature or bug fix.
3. Make your changes, commit them, and push to your fork.
4. Submit a pull request, and your contributions will be reviewed and merged if they align with the project's goals.
## Developer
[Swamy Penupothula]
## Contact
For questions or feedback, you can reach us at [swamyp2002@gmail.com].
---
Enjoy exploring real-time flight information with this web application!
| this is the website which shows information about realtime Flight Data | api,aviation,aviation-data,css3,html5,javascript,aviation-stack | 2023-09-03T10:03:12Z | 2023-09-06T13:19:32Z | null | 1 | 0 | 13 | 0 | 0 | 2 | null | null | JavaScript |
SwasticKumar/pain-of-callback-man-walking-on-beach | master | # Callback - Hell

| Man Walking on Beach | callback,css,dom-manipulation,hml,javascript,settimeout | 2023-09-01T15:27:17Z | 2023-09-19T21:00:48Z | null | 1 | 0 | 3 | 0 | 0 | 2 | null | null | JavaScript |
Royal-Code-Master/Dynamic-Web-Project-Java | main | # Dynamic-Web-Project-Java-Maven
This is a dynamic web based application and I provide different types access for this project. Admin and user and it have different views of project. This is the dynamic Quiz app web project and it can able to validate the quiz results also. It can provide certificate based on the quiz score of user. And The admin can able to see the registered and quiz results from the admin portal.
# Requirements
:white_check_mark: Apache Tomcat v-10
:white_check_mark: MySql Jar Connector for JDBC
:white_check_mark: Bootstrap V-5
:white_check_mark: Aos Animation CDN
......






| This is a dynamic web based application and I provide different types access for this project. Admin and user and it have different views of project | bootdtrsp,java-8,javascript,jdbc-database,jsp,maven | 2023-08-28T06:12:31Z | 2023-08-28T06:24:26Z | null | 1 | 0 | 6 | 0 | 0 | 2 | null | MIT | Java |
caazia/portfolio-Cassia-Carvalho | main | <img width="40%" src="https://d335luupugsy2.cloudfront.net/cms/files/10224/1662417840/$u07pzwncrr">
# Programa ONE + Alura Challenge Iniciante em Programação 🚀🚀
## Portfólio - Cássia Carvalho
Meu portfólio é um projeto desenvolvido como parte do desafio Oracle One em parceria com a Alura, voltado para alunos da trilha de front-end. O objetivo do desafio era criar um portfólio online para apresentar minhas habilidades e projetos desenvolvidos ao longo do curso.
O diferencial do meu portfólio está na personalização do design, que foi modificado para refletir minha identidade e estilo pessoal. Adicionei cores, elementos e funcionalidades que tornaram o projeto único. Assim, pude expressar minha criatividade e transmitir minha personalidade através do design do site.
[Visite o projeto online](https://cassia-carvalho.vercel.app)
### Requisitos:
<ul>
<li><p>Possuir um menu de navegação para facilitar a navegação pelo site;</p></li>
<li><p>Uma imagem de banner para criar um impacto visual inicial;</li>
<li><p>Apresentar seções sobre mim, skills, formação, projetos e contato com formulário;</p></li>
<li><p>Oferecer a opção de visualizar o currículo em PDF em uma nova aba do navegador.</p></li>
<li><p>Possui um formulario funcional para contato, não chega em meu email todas as informações. </p></li>
</ul>
<br>
#### O projeto conta com alguns diferenciais:
<ul>
<li><p> Inclusão de um botão de alternância para os modos claro e escuro, localizado no topo do site, permitindo ao usuário escolher a aparência que preferir;</p></li>
<li><p> Design exclusivo e diferenciado entre os modos claro e escuro, tornando a experiência de navegação mais agradável e personalizada;</p></li>
<li><p> Implementação de um formulário de contato com validação em JavaScript, garantindo que as informações sejam preenchidas corretamente antes de serem enviadas.</p></li>
</ul>
#### OBS: Pretendo fazer melhorias no projeto, principalmente em sua forma responsiva. Sendo assim, este não é um projeto final.
<br><br>
## 💻 Esse projeto foi desenvolvido com as seguintes tecnologias:
- Javascript, HTML e CSS;
## ✨🎉 Minha Bagde

❤ ❤ ❤
<br><hr><br>
<div dsplay="center">
| Este projeto é um portfólio que foi desenvolvido como parte do desafio Oracle One + Alura. O objetivo desse challenge é criar um portfólio onde possa exibir todos os meus projetos nos quais estou trabalhando e mostrar minha experiência. | challengeoneportfolio5,css,html,javascript | 2023-08-25T21:03:47Z | 2024-01-17T04:29:11Z | null | 1 | 0 | 25 | 0 | 0 | 2 | null | null | CSS |
VashonG/Loan-Widget | main | # Project Contents
## credit-application
- [package-lock.json](credit-application/package-lock.json)
- [package.json](credit-application/package.json)
### credit-backend
- [server.js](credit-application/credit-backend/server.js)
### node_modules
### public
- [favicon.ico](credit-application/public/favicon.ico)
- [index.html](credit-application/public/index.html)
- [logo192.png](credit-application/public/logo192.png)
- [logo512.png](credit-application/public/logo512.png)
- [manifest.json](credit-application/public/manifest.json)
- [robots.txt](credit-application/public/robots.txt)
### src
- [App.css](credit-application/src/App.css)
- [App.js](credit-application/src/App.js)
- [App.test.js](credit-application/src/App.test.js)
- [LoanApplicationForm.js](credit-application/src/LoanApplicationForm.js)
- [index.css](credit-application/src/index.css)
- [index.js](credit-application/src/index.js)
- [logo.svg](credit-application/src/logo.svg)
- [reportWebVitals.js](credit-application/src/reportWebVitals.js)
- [setupTests.js](credit-application/src/setupTests.js)
## styles
- [styles.css](styles/styles.css)
| The "Loan Module" is an integrated software component designed to simplify and expedite the loan application process for users. Nestled within a broader system, this module encompasses both frontend and backend functionalities. Users are introduced to an interactive modal that walks them through a sequential loan application journey. | backend,css,fintech,frontend,javascript,loan,nodejs,react,widget | 2023-08-15T14:27:18Z | 2024-01-22T03:04:30Z | 2023-11-12T18:40:16Z | 2 | 98 | 168 | 0 | 1 | 2 | null | MIT | JavaScript |
webDev5464/JavaScript-README | main | 
# 🎓 JavaScript Basic
## 📌 Statements
```js
let x, y, z; // Statement 1
x = 5; // Statement 2
y = 6; // Statement 3
z = x + y; // Statement 4
console.log(z);
```
| result |
| :----- |
| 11 |
- JavaScript statement are composed of : `valuess`, `Operators`, `Expressions`, `Keywords` and `Comments`.
**This statement tells the browser to write _"Hello World!"_ inside an HTML element with _id="demo"_.**
```js
document.getElementById("demo").innerHTML = "Hello World!";
```
#### 🔺 Semicolons
Add a semicolon at the end of each executable statement.
```js
let a, b, c; // Declare 3 variables
a = 5; // Assign the value 5 to a
b = 6; // Assign the value 6 to b
c = a + b; // Assign the sum of a and b to c
```
| result |
| :----- |
| 11 |
When separated by semicolons, multiple statements on one line are allowed:
## 📌 Keywords
JavaScript statements often start with a keyword to identify the JavaScript action to be performed.
| Keyword | Description |
| :------- | :------------------------------------------------------------ |
| var | Declares a variable |
| let | Declares a block variable |
| const | Declares a block constant |
| if | Marks a block of statements to be executed on a condition |
| switch | Marks a block of statements to be executed in different cases |
| for | Marks a block of statements to be executed in a loop |
| function | Declares a function |
| return | Exist a function |
| try | Implements error handling to a block of statements |
## 📌 syntax
#### 🔺 How to create variables ? Or How to use variables ?
```js
// create variables:
var x;
let y;
// use variables:
x = 5;
y = 6;
let z = x + y;
```
## 📌 comments
- Single line comment.
- Multiple line comment.
**Single line comments.**
```js
// Change Heading:
document.getElementById("myH").innerHTML = "My first page.";
let x = 5; // Declare x, give it the value of 5.
```
**Multiple line comments.**
```js
/*
The code below will change
the heading with id = "myH"
and the paragraph with id = "myP"
in my web page:
*/
document.getElementById("myH").innerHTML = "My First Page";
document.getElementById("myP").innerHTML = "My first paragraph.";
```
## 📌 variables
**Variables are Containers for storing Data.**
JavaScript variables can be declared in 4 ways:
- Automatically
- Using `var`
- Using `let`
- Using `const`
```js
// Using var
var x = 5;
var y = 6;
var z = x + y;
```
---
📝 **Note** :
- It is considered good programming practice to always declare variables before use.
- The `var` keyword was used in all JavaScript code from 1995 to 2015.
- The `let` and `const` keywords were added to JavaScript in 2015.
- The `var` keyword should only be used in code written for older browsers.
---
```js
// using let
let x = 5;
let y = 6;
let z = x + y;
console.log(z);
```
| result |
| :----- |
| 11 |
```js
// using const
const a = "Hello";
const b = "World!";
const c = a + " " + b;
console.log(c);
```
| result |
| :----------- |
| Hello World! |
#### 🔺 When to Use var, let, or const?
- Always declare variables
- Always use `const` if the value should not be changed
- Always use `const` if the type should not be changed (Arrays and Objects)
- Only use `let` if you can't use `const`
- Only use `var` if you MUST support old browsers.
#### 🔺 Then we "output" the value inside an HTML paragraph with id="demo"
```html
<p id="demo"></p>
<script>
let carName = "Volvo";
document.getElementById("demo").innerHTML = carName;
</script>
```
#### 🔺 Dollar Sign $
Since JavaScript treats a dollar sign as a letter, identifiers containing $ are valid variable names:
```js
let $ = "Hello World";
let $$$ = 2;
let $myMoney = 5;
```
#### 🔺 Underscore (\_)
Since JavaScript treats underscore as a letter, identifiers containing\_ are valid variable names:
```js
let _lastName = "Johnson";
let _x = 2;
let _100 = 5;
```
## 📌 Block scope
#### 🔺 let Block Scope
Variables declared inside a { } block cannot be accessed from outside the block:
```js
{
let x = 2;
}
// x can not be use here!
```
Redeclaring a variable inside a block will not redeclare the variable outside the block:
```js
let x = 10;
// x is here 10
{
let x = 2;
// x is here 2
}
// x is here 10
```
#### 🔺 const Block Scope
```js
const x = 10;
// x here is 10
{
const x = 5;
// x here is 5
}
// x is here is 10
```
## 📌 Operators
The **Assignment Operator** (`=`) assign value a varibale.
```js
// Assign the value 5 to x
let x = 5;
// Assign the value 2 to y
let y = 2;
// Assign the value x + y to z:
let z = x + y;
```
#### 🔺 Addition Operators
The **Addition Operators** (`+`) adds numbers:
```js
let x = 5;
let y = 2;
let z = x + y;
```
#### 🔺 Multiplication
The **Multiplication Operators** (`*`) multiplees numbers:
```js
let x = 5;
let y = 2;
let z = x * y;
```
## 📌 Arithmetic Operators
| Operator | Description |
| :------- | :------------- |
| + | Addition |
| - | Subtraction |
| \* | Multiplication |
| \*\* | Exponentiation |
| / | Division |
| % | Modulus |
| ++ | Increment |
| -- | Decrement |
#### 🔺 Adding
The **adding** operator (`+`) adds numbers:
```js
let x = 5;
let y = 2;
let z = x + y;
```
| result |
| :----- |
| 7 |
#### 🔺 Subtracting
The **subtraction** operator (`-`) subtracts nymbers.
```js
let x = 5;
let y = 2;
let z = x - y;
```
| result |
| :----- |
| 3 |
#### 🔺 Multiplying
The **multiplication** operator (`*`) multiplies numbers.
```js
let x = 5;
let y = 2;
let z = x * y;
```
| result |
| :----- |
| 10 |
#### 🔺 Dividing
The **division** operator (`/`) divides numbers.
```js
let x = 5;
let y = 2;
let z = x / y;
```
| result |
| :----- |
| 2.5 |
#### 🔺 Remainder
The **modulus** operator (`%`) returns the division remainder.
```js
let x = 5;
let y = 2;
let z = x % y;
```
| result |
| :----- |
| 1 |
#### 🔺 Incrementing
The **increment** operator (`++`) increments numbers.
```js
let x = 5;
x++;
let z = x;
```
| result |
| :----- |
| 6 |
#### 🔺 Decrementing
The **decrement** operator (`--`) decrements numbers.
```js
let x = 5;
x--;
let z = x;
```
| result |
| :----- |
| 4 |
#### 🔺 Exponentiation
The **exponentiation** operator (`**`) raises the first operand to the power of the second operand.
```js
let x = 5;
let z = x ** 2;
```
| result |
| :----- |
| 25 |
x \*\* y produces the same result as `Math.pow(x,y)`:
```js
let x = 5;
let z = Math.pow(x, 2);
```
| result |
| :----- |
| 25 |
## 📌 Assignment Operators
Assignment operators assign values to JavaScript variables.
| Operator | Example | Same As |
| :------- | :--------- | :----------- |
| = | x=y | x=y |
| += | x + = y | x = x + y |
| -= | x - = y | x = x - y |
| \*= | x \* = y | x = x \* y |
| /= | x / = y | x = x / y |
| %= | x % = y | x = x % y |
| \*\*= | x \*\* = y | x = x \*\* y |
#### 🔺 The `=` Operator
The **Simple Assignment Operator** assigns a value to a variable.
```js
let x = 10;
// For debugging
console.log(x);
```
| result |
| :----- |
| 10 |
---
```js
let x = 10;
let y = 5 + x;
console.log(y);
```
| result |
| :----- |
| 15 |
#### 🔺 The `+=` Operator
The **Addition Assignment Operator** adds a value to a variable.
```js
let x = 10;
x += 6;
console.log(x);
```
| result |
| :----- |
| 16 |
---
```html
<p id="demo"></p>
```
```js
let text = "Hello";
text += "World!";
document.getElementById("demo").innerHTML = text;
```
| result |
| :---------- |
| HelloWorld! |
#### 🔺 The `-=` Operators
The **Subtraction Assignment Operator** subtracts a value from a variable.
```js
let x = 10;
x -= 5;
```
#### 🔺 The `*=` Operators
The **Multiplication Assignment Operator** multiplies a variable.
```js
let x = 10;
x *= 5;
```
| result |
| :----- |
| 50 |
#### 🔺 The `**=` Operators
The **Exponentiation Assignment Operator** raises a variable to the power of the operand.
```js
let x = 10;
x **= 5;
```
| Result |
| :----- |
| 100000 |
#### 🔺 The `/=` Operators
The **Division Assignment Operator** divides a variable.
```js
let x = 10;
x /= 5;
```
| Result |
| :----- |
| 2 |
#### 🔺 The `%=` Operators
The **Remainder Assignment Operator** assigns a remainder to a variable.
```js
let x = 10;
x %= 5;
```
| Result |
| :----- |
| 0 |
## 📌 Data Types
#### 🔺 JavaScript has 8 Datatypes
**1.** String
**2.** Number
**3.** Bigint
**4.** Boolean
**5.** Undefined
**6.** Null
**7.** Symbol
**8.** Object
#### 🔺 The Object Datatype
The Object data type can contain:
**1.** An Object
**2.** An array
**3.** A date
---
```js
// Numbers:
let length = 16;
let weight = 7.5;
// String:
let x = "Hello";
let y = "John Doe";
// Booleans:
let x = true;
let y = false;
// Object:
const person = { firstName: "John", lastName: "Doe" };
// Array object:
const cars = ["Saad", "volvo", "BMW"];
// Date Object:
const date = new Date("2023-09-11");
```
---
**Note :** A JavaScript variable can hold any type of data.
#### 🔺 The Concept of Data Types
In programming, data types is an important concept.
To be able to operate on variables, it is important to know something about the type.
Without data types, a computer cannot safely solve this:
```js
let x = 16 + "Volvo";
```
| result |
| :------ |
| 16Volvo |
Does it make any sense to add "Volvo" to sixteen? Will it produce an error or will it produce a result?
JavaScript will treat the example above as:
```js
let x = "16" + "Volvo";
```
| result |
| :------ |
| 16Volvo |
**Note :** When adding a number and a string, JavaScript will treat the number as a string.
JavaScript evaluates expressions from left to right. Different sequences can produce different results:
```js
let x = 16 + 4 + "Volvo";
```
| result |
| :------ |
| 20Volvo |
**Note :** When adding a number and a string, JavaScript will treat the number as a string.
```js
let x = "Volvo" + 16 + 4;
```
| result |
| :------- |
| Volvo164 |
#### 🔺 Types are Dynamic
JavaScript has dynamic types. This means that the same variable can be used to hold different data types:
```js
let x;
x = 5;
x = "John";
console.log(x);
```
| result |
| :----- |
| john |
```js
let x;
x = 5;
console.log(x);
x = "John";
```
| result |
| :----- |
| 5 |
#### 🔺 String
A string (or a text string) is a series of characters like "John Doe".
Strings are written with quotes. You can use single or double quotes:
```js
// Using dubble quotes:
let carName = "Volvo xc60";
// Using single quotes:
let carName = "Volvo xc60";
```
You can use quotes inside a string, as long as they don't match the quotes surrounding the string:
```js
// Single quote inside double quotes:
let answer1 = "It's alright";
// Single quotes inside double quotes:
let answer2 = "He is called 'Johnny'";
// Double quotes inside single quotes:
let answer3 = 'He is called "Johnny"';
```
#### 🔺 Numbers
All JavaScript numbers are stored as decimal numbers (floating point).
Numbers can be written with, or without decimals:
```js
// With decimals:
let x1 = 34.0;
// Without decimals:
let x2 = 34;
```
#### 🔺 Bigint
All JavaScript numbers are stored in a a 64-bit floating-point format.
JavaScript BigInt is a new datatype (ES2020) that can be used to store integer values that are too big to be represented by a normal JavaScript Number.
```js
let x = BigInt("123456789012345678901234567890");
```
#### 🔺 Booleans
Booleans can only have two values: `true` or `false`.
```js
let x = 5;
let y = 5;
let z = 6;
console.log(x == y); // true
console.log(x == z); // false
```
#### 🔺 Arrays
JavaScript arrays are written with square brackets.
Array items are separated by commas.
The following code declares (creates) an array called `cars`, containing three items (car names):
```js
const cars = ["Saab", "Volvo", "BMW"];
console.log(cars[0]);
```
| result |
| :----- |
| Saab |
Array indexes are zero-based, which means the first item is [0], second is [1], and so on.
#### 🔺 Object
JavaScript objects are written with curly braces `{}`.
Object properties are written as name:value pairs, separated by commas.
```js
const person = {
firstName: "John",
lastName: "Doe",
age: 50,
eyeColor: "blue",
};
console.log(person.firstName + " is " + person.age + " years old.");
```
| result |
| :-------------------- |
| John is 50 years old. |
#### 🔺 Undefined
In JavaScript, a variable without a value, has the value `undefined`. The type is also `undefined`.
```js
let car;
console.log(car);
```
| result |
| :-------- |
| undefined |
#### 🔺 Empty Values
An empty value has nothing to do with `undefined`.
An empty string has both a legal value and a type.
```js
let car = ""; // The value is "", the typeof is "string"
```
## 📌 Functions
---
A JavaScript function is a block of code designed to perform a particular task.
A JavaScript function is executed when "something" invokes it (calls it).
---
```js
function myFunction(p1, p2) {
return p1 * p2;
}
let result = myFunction(4, 7);
console.log(result);
```
| result |
| :----- |
| 28 |
The code to be executed, by the function, is placed inside curly brackets: **{}**
```js
function name(parameter1, parameter2, parameter3) {
// code to be executed
}
```
#### 🔺 Function syntax
- A JavaScript function is defined with the function keyword, followed by a name, followed by parentheses ().
- Function names can contain letters, digits, underscores, and dollar signs (same rules as variables).
- The parentheses may include parameter names separated by commas:
**(parameter1, parameter2, ...)**
- Function `parameters` are listed inside the parentheses () in the function definition.
- Function `arguments` are the values received by the function when it is invoked.
- Inside the function, the arguments (the parameters) behave as local variables.
#### 🔺 Invocation
The code inside the function will execute when "something" `invokes` (calls) the function:
- When an event occurs (when a user clicks a button)
- When it is invoked (called) from JavaScript code
- Automatically (self invoked)
You will learn a lot more about function invocation later in this tutorial.
```js
let x = myFunction(4, 3);
console.log(x);
function myFunction(a, b) {
return a * b;
}
```
| result |
| :----- |
| 12 |
---
#### 🔺 Whay Functions?
With functions you can reuse code
You can write code that can be used many times.
You can use the same code with different arguments, to produce different results.
---
#### 🔺 The `()` Operators
The () operators invokes (calls) the function:
```js
function toCelsius(f) {
return (5 / 9) * (f - 32);
}
let value = toCelsius(77);
console.log(value); // result : 25
```
#### 🔺 Local Variables
Variables declared within a JavaScript function, become LOCAL to the function.
Local variables can only be accessed from within the function.
```js
let text = "Outside : " + typeof car;
console.log(text);
function carDetail() {
let car = "Volvo";
let text = "Inside : " + typeof car + " " + car;
console.log(text);
}
carDetail();
```
| result |
| :-------------------- |
| Outside : undefined |
| Inside : string Volvo |
## 🔺 Arrow Function
---
Arrow functions were introduced in ES6.
Arrow functions allow us to write shorter function syntax:
---
```js
let myFunction = (a, b) => {
a * b;
};
console.log(myFunction(2, 5));
```
**Before Arrow**
```js
let hello = function () {
return "Hello world";
};
console.log(hello());
// Hello World!
```
**With Arrow Function**
```js
let hello = () => {
return "Hello World!";
};
console.log(hello());
// Hello World!
```
It gets shorter! If the function has only one statement, and the statement `returns` a value, you can remove the brackets and the return keyword:
```js
let hello = (value) => {
return "Hello " + value;
};
console.log(hello("World!"));
// Hello World!
```
In fact, if you have only one parameter, you can skip the parentheses as well:
**Arrow Function Without Parentheses:**
```js
let hello = (value) => "Hello " + value;
console.log(hello("World!"));
// Hello World!
```
## 📌 Objects
This code assigns a **simple value** (John) to a **variable** named person:
```js
let person = "John";
```
This code assigns a **many values** (John, Doe, 24) to a `variable` named car:
```js
const person = { firstName: "John", lastName: "Doe", age: 24 };
console.log(person.firstName + " " + person.lastName);
console.log(person.firstName + " is " + person.age + " years old.");
```
| result |
| :-------------------- |
| John Doe |
| John is 24 years old. |
#### 🔺 Object Method
Objects can also have `methods`.
Methods are actions that can be performed on objects.
Methods are stored in properties as `function definitions`.
| Property | Property Value |
| :-------- | :------------------------------------------------------- |
| firstName | John |
| lastName | Doe |
| age | 24 |
| eyeColor | Brown |
| fullName | function() {return this.firstName + " " + this.lastName} |
_A method is function stored as a property._
```js
const person = {
firstName: "John",
lastName: "Doe",
age: 24,
eyeColor: "Brown",
fullName: function () {
return this.firstName + " " + this.lastName;
},
};
console.log(person.fullName());
```
| result |
| :------- |
| John Doe |
In the example above, `this` refer to **person object.**
**this.firstName** means this **firstName** propery of **this**.
**this.firstName** means the **firstName** property of **person**.
## 📌 String
A JavaScript string is zero or more characters written inside quotes.
```js
let text = "Hello World";
```
**You can use single or duble quotes :**
```js
let text01 = "Hello World";
let text02 = "Hello World";
```
You can use quotes inside a string, as long as they don't match the quotes surrounding the string:
```js
let answer1 = "It's alright";
let answer2 = "He is called 'Johnny'";
let answer3 = 'He is called "Johnny"';
```
#### 🔺 String Length
To find the length of a string, use the built-in `length` property:
```js
let text = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
console.log(text.length);
```
| result |
| :----- |
| 26 |
#### 🔺 Escape Character
Because strings must be written within quotes, JavaScript will misunderstand this string:
```js
let text = "We are the so-called "Vikings" from the north.";
```
The string will be chopped to "We are the so-called ".
The solution to avoid this problem, is to use the **backslash escape character**.
The backslash (`\`) escape character turns special characters into string characters:
| Code | Result | Description |
| :--- | :----- | :----------- |
| \' | ' | Single Quote |
| \" | " | Dubble Quote |
| \\ | \ | Backslash |
The sequence `\"` inserts a double quote in a string:
```js
let text = 'We are the so-called "Vikings" from the north.';
```
The sequence `\'` inserts a single quote in a string:
```js
let text = "It's alright.";
```
The sequence `\\` inserts a backslash in a string:
```js
let text = "The character \\ is called backslash.";
```
You can also break up a code line within a text string with a single backslash:
```js
document.getElementById("demo").innerHTML =
"Hello \
World!";
```
#### 🔺 Strings as Objects
Normally, JavaScript strings are primitive value, created from literals:
But stringscan be also defined as object with the keyword `new`:
```js
let x = "John Doe";
let y = new String(x);
console.log(typeof y);
```
| result |
| :----- |
| object |
---
⚠️ **WARNING !**
Do not create Strings objects.
The `new` keyword complicates the code and slows down execution speed.
String objects can produce unexpected results:
---
When using the `==` operator, x and y are **equal**:
```js
let x = "John Doe";
let y = new String(x);
console.log(x == y); // true
```
When using the `===` operator, x and y are not **equal**:
```js
let x = "John Doe";
let y = new String(x);
console.log(x === y); // false
```
Note the difference between `(x==y)` and `(x===y)`.
## 📌 String Method
| | |
| :------------------- | :------------------ |
| String length | String concat() |
| String slice() | String trim() |
| String substring() | String trimStart() |
| String substr() | String trimEnd() |
| String replace() | String padStart() |
| String replaceAll() | String padEnd() |
| String toUpperCase() | String charAt() |
| String toLowerCase() | String charCodeAt() |
| String split() | |
#### 🔺 String Length
The `length` property returns the length of a string.
```js
let text = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
let length = text.length;
console.log(length); // 26
```
#### 🔺 String slice()
`slice()` extracts a part of a string and returns the extracted part in a new string.
The method takes 2 parameters: start position, and end position (end not included).
```js
let text = "Apple, Banana, Kiwi";
let part = text.slice(7, 13); // Banana
```
---
📝 **Note**
JavaScript counts positions from zero.
First position is 0.
Second position is 1.
---
If you omit the second parameter, the method will slice out the rest of the string:
```js
let text = "Apple, Banana, Kiwi";
let part = text.slice(7); // banana, Kiwi
```
If a parameter is negative, the position is counted from the end of the string:
```js
let text = "Apple, Banana, Kiwi";
let part = text.slice(-12); // Banana, Kiwi
```
This example slices out a portion of a string from position -12 to position -6:
```js
let text = "Apple, Banana, Kiwi";
let part = text.slice(-12, -6); // Banana
```
#### 🔺String substring()
`substring()` is similar to `slice()`.
The difference is that start and end values less than 0 are treated as 0 in `substring()`.
```js
let str = "Apple, Banana, Kiwi";
let part = str.substring(7, 13); // Banana
```
#### 🔺 Replacing String Content
The `replace()` method replaces a specified value with another value in a string:
```js
let text = "Please visit Microsoft!";
let newText = text.replace("Microsoft", "CodeWithDw");
console.log(newText);
// Please visit CodeWithDw!
```
---
<details>
<summary>📝 <strong>Note</strong></summary>
The replace() method does not change the string it is called on.
The replace() method returns a new string.
The replace() method replaces only the first match
If you want to replace all matches, use a regular expression with the /g flag set. See examples below.
</details>
---
To replace all matches, use a regular expression with a `/g` flag (global match):
```js
let text = "Please visit Microsoft and Microsoft!";
let newText = text.replace(/Microsoft/g, "CodeWithDw");
// Please visit CodeWithDw and CodeWithDw!
```
To replace case insensitive, use a regular expression with an `/i` flag (insensitive):
```js
let text = "Please visit Microsoft!";
let newText = text.replace(/MICROSOFT/i, "CodeWithDw");
// Please visit CodeWithDw!
```
#### 🔺 String ReplaceAll()
In 2021, JavaScript introduced the string method `replaceAll()`:
```js
let text = "I love cats. Cats are very easy to love. Cats are very popular.";
text = text.replaceAll("Cats", "Dogs");
text = text.replaceAll("cats", "dogs");
console.log(text);
// I love dogs. Dogs are very easy to love. Dogs are very popular.
```
The `replaceAll()` method allows you to specify a regular expression instead of a string to be replaced.
If the parameter is a regular expression, the global flag (g) must be set, otherwise a TypeError is thrown.
```js
let text = "I love cats. Cats are very easy to love. Cats are very popular";
text = text.replaceAll(/Cats/g, "Dogs");
text = text.replaceAll(/cats/g, "dogs");
```
#### 🔺 String toUpperCase()
```js
let text1 = "Hello World!";
let text2 = text1.toUpperCase(); // HELLO WORLD!
```
#### 🔺 String toLowerCase()
```js
let text1 = "Hello World!";
let text2 = text1.toLowerCase(); // hello world!
```
#### 🔺 String concat()
`concat()` joins two or more strings:
```js
let text1 = "Hello";
let text2 = "World";
let text3 = text1.concat(" ", text2);
console.log(text3);
```
| result |
| :---------- |
| Hello World |
The `concat()` method can be used instead of the plus operator. These two lines do the same:
```js
text = "Hello" + " " + "World!";
text = "Hello".concat(" ", "World!");
```
#### 🔺 String trim()
The `trim()` method removes whitespace from both sides of a string:
```js
let text1 = " Hello World! "; // length 22
let text2 = text1.trim(); // length 12
```
#### 🔺String trimStart()
The `trimStart()` method works like trim(), but removes whitespace only from the start of a string.
```js
let text1 = " Hello World! "; // length 22
let text2 = text1.trimStart(); // length 17
```
#### 🔺 String trimEnd()
The `trimEnd()` method works like `trim()`, but removes whitespace only from the end of a string.
```js
let text1 = " Hello World! "; // length 22
let text2 = text1.trimEnd(); // length 17
```
#### 🔺 String padStart()
The `padStart()` method pads a string from the start.
It pads a string with another string (multiple times) until it reaches a given length.
Pad a string with "0" until it reaches the length 4:
```js
let text = "5";
let padded = text.padStart(4, "0"); // 0005
```
Pad a string with "x" until it reaches the length 4:
```js
let text = "5";
let padded = text.padStart(4, "x"); // xxx5
```
#### 🔺 String padEnd()
The `padEnd()` method pads a string from the end.
It pads a string with another string (multiple times) until it reaches a given length.
```js
let text = "5";
let padded = text.padEnd(4, "0"); // 5000
```
```js
let text = "5";
let padded = text.padEnd(4, "x"); // 5xxx
```
---
📝 **Note**
The `padStart()` end `padEnd()` method is a string method.
To pad a number, convert the number to a string first.
**_How to convert number to string ?_**
```js
let x = 5;
x = toString(x);
console.log(typeof x); // string
```
---
#### 🔺 String charAt()
The `charAt()` method returns the character at a specified index (position) in a string:
```js
let text = "HELLO WORLD";
let char = text.charAt(0); // H
```
#### 🔺 String split()
A string can be converted to an array with the `split()` method:
```js
let text = "a,b,c,d,e,f";
console.log(text[1]); // ,
const myArray = text.split(",");
console.log(myArray[1]); // b
```
If the separator is omitted, the returned array will contain the whole string in index [0].
If the separator is "", the returned array will be an array of single characters:
```js
let word = "H,e,l,l,o";
word = word.split(",");
let len = word.length;
let text = "";
for (let x = 0; x < len; x++) {
text += word[x] + "<br>";
}
document.getElementById("demo").innerHTML = text;
/*
H
e
l
l
o
*/
```
## 📌 String Search
| | |
| :------------------ | :------------------- |
| String indexOf() | String lastIndexOf() |
| String search() | String match() |
| String matchAll() | String includes() |
| String startsWith() | String endsWith() |
#### 🔺 String indexOf()
The `indexOf()` method returns the index (position) the first occurrence of a string in a string:
```js
let text = "Please locate where 'locate' occurs!";
let index = text.indexOf("locate"); // 7
```
---
📝 **Note**
JavaScript counts positions from zero.
0 is the first position in a string, 1 is the second, 2 is the third, ...
---
#### 🔺 String lastIndexOf()
The `lastIndexOf()` method returns the index of the last occurrence of a specified text in a string:
```js
let text = "Please locate where 'locate' occurs!";
let index = text.lastIndexOf("locate"); // 21
```
Both indexOf(), and lastIndexOf() return -1 if the text is not found:
```js
let text = "Please locate where 'locate' occurs!";
let index = text.indexOf("John"); // -1
```
Both methods accept a second parameter as the starting position for the search:
```js
let text = "Please locate where 'locate' occurs!";
let index = text.indexOf("locate", 15); // 21
```
The `lastIndexOf()` methods searches backwards (from the end to the beginning), meaning: if the second parameter is `15`, the search starts at position 15, and searches to the beginning of the string.
```js
let text = "Please locate where 'locate' occurs!";
let lastIndex = text.lastIndexOf("locate", 15); // 7
```
#### 🔺 String search()
The `search()` method searches a string for a string (or a regular expression) and returns the position of the match:
```js
let text = "Please locate where 'locate' occurs!";
console.log(text.search("locate")); // 7
```
```js
let text = "Please locate where 'locate' occurs!";
console.log(text.search(/locate/)); // 7
```
---
<details>
<summary>📝 <strong>Did You Notice?</strong></summary>
The two methods, `indexOf()` and `search()`, are equal?
The two methods, indexOf() and search(), are equal?
The two methods are **NOT** equal. These are the differences:
- The `search()` method cannot take a second start position argument.
- The `indexOf()` method cannot take powerful search values (regular expressions).
You will learn more about regular expressions in a later chapter.
</details>
---
#### 🔺 String match()
The `match()` method returns an array containing the results of matching a string against a string (or a regular expression).
Perform a search for "ain":
```js
let text = "The rain in SPAIN stays mainly in the plain";
text.match("ain"); // 5
```
Perform a global, case-insensitive search for "ain":
```js
let text = "The rain in SPAIN stays mainly in the plain";
text.match(/ain/g); // 3 [ 'ain', 'ain', 'ain' ]
```
Perform a global, case-insensitive search for "ain":
```js
let text = "The rain in SPAIN stays mainly in the plain";
text.match(/ain/gi); // 4 [ 'ain', 'AIN', 'ain', 'ain' ]
```
## 📌 String Templates
---
Synonyms:
- Template
- Literals
- Template Strings
- String Templates
- Back-Tics Syntax
---
#### 🔺 Back-Tics Syntax
Template Literals use back-ticks (``) rather than the quotes ("") to define a string:
```js
let text = `Hello World!`;
```
#### 🔺 Quotes Inside Strings
With **template literals**, you can use both single and double quotes inside a string:
```js
let text = `He's often called "Johnny"`;
```
#### 🔺 Multiline Strings
**Template literals** allows multiline strings:
```js
let text = `The quick
brown fox
jumps over
the lazy dog`;
```
#### 🔺 Interpolation
**Template literals** provide an easy way to interpolate variables and expressions into strings.
The method is called string interpolation.
The syntax is:
```js
${...}
```
#### 🔺 Variable Substitutions
**Template literals** allow variables in strings:
```js
let firstName = "John";
let lastName = "Doe";
let text = `Welcome ${firstName}, ${lastName}!`;
```
#### 🔺 HTML Templates
```js
let header = "Templates Literals";
let tags = ["template literals", "javascript", "es6"];
let html = `<h2>${header}</h2><ul>`;
for (const x of tags) {
html += `<li>${x}</li>`;
}
html += `</ul>`;
document.getElementById("demo").innerHTML = html;
```
## 📌 Numbers
```js
let x = 3.14; // A number with decimals
let y = 3; // A number without decimals
```
Extra large or extra small numbers can be written with scientific (exponent) notation:
```js
let x = 123e5; // 12300000
let y = 123e-5; // 0.00123
```
#### 🔺 Integer Precision
Integers (numbers without a period or exponent notation) are accurate up to 15 digits.
```js
let x = 999999999999999; // x will be 999999999999999
let y = 9999999999999999; // y will be 10000000000000000
```
#### 🔺 Numbers and Strings
---
⚠️ **WARNING !**
JavaScript uses the + operator for both addition and concatenation.
Numbers are added. Strings are concatenated.
---
If you add two numbers, the result will be a number:
```js
let x = 10;
let y = 20;
let z = x + y;
console.log(z);
```
| result |
| :----- |
| 30 |
If you add two strings, the result will be a string concatenation:
```js
let x = "10";
let y = "20";
let z = x + y;
console.log(z);
```
| result |
| :----- |
| 1020 |
If you add a number and a string, the result will be a string concatenation:
```js
let x = 10;
let y = "20";
let z = x + y;
console.log(z);
```
| result |
| :----- |
| 1020 |
A common mistake is to expect this result to be 30:
```js
let x = 10;
let y = 20;
let z = "The result is: " + x + y;
```
A common mistake is to expect this result to be 102030:
```js
let x = 10;
let y = 20;
let z = "30";
let result = x + y + z;
console.log(result);
```
| result |
| :----- |
| 3030 |
---
The JavaScript interpreter works from left to right.
First 10 + 20 is added because x and y are both numbers.
Then 30 + "30" is concatenated because z is a string.
---
#### 🔺 Numeric Strings
JavaScript strings can have numeric content:
```js
let x = 100; // x is a number
let y = "100"; // y is a string
```
#### 🔺 NaN - Not a Number
`NaN` is a JavaScript reserved word indicating that a number is not a legal number.
Trying to do arithmetic with a non-numeric string will result in `NaN` (Not a Number):
```js
let x = 100 / "Apple";
console.log(x);
```
| result |
| :----- |
| NaN |
#### 🔺 Numbers as Objects
But numbers can also be defined as objects with the keyword new:
```js
let x = 123;
let y = new Number(x);
console.log(typeof y);
```
## 📌 Number Methods
| Method | Description |
| :------------ | :------------------------------------------------- |
| toString() | Return a number as a string |
| toFixed() | Returns a number written with a number of decimals |
| toPrecision() | Returns a number written with a specified length |
| ValueOf() | Returns a number as a number |
#### 🔺 toString() Method
The `toString()` method returns a number as a string.
All number methods can be used on any type of numbers (literals, variables, or expressions):
```js
let x = 12;
x = toString(x);
console.log(typeof x); // string
```
#### 🔺 toFixed() Method
`toFixed()` returns a string, with the number written with a specified number of decimals:
```js
let num = 9.656;
const number =
num.toFixed(0) +
"<br>" +
num.toFixed(2) +
"<br>" +
num.toFixed(4) +
"<br>" +
num.toFixed(6);
document.getElementById("demo").innerHTML = number;
/*
10
9.66
9.6560
9.656000
*/
```
---
📝 toFixed(2) is perfect for working with money.
---
#### 🔺 Number() Method
```js
document.getElementById("demo").innerHTML =
Number(true) +
"<br>" + // 1
Number(false) +
"<br>" + // 0
Number("10") +
"<br>" + // 10
Number(" 10 ") +
"<br>" + // 10
Number(" 10") +
"<br>" + // 10
Number("10 ") +
"<br>" + // 10
Number("10.33") +
"<br>" + // 10.33
Number("10,33") +
"<br>" + // NaN
Number("10 33") +
"<br>" + // NaN
Number("John"); // NaN
```
#### 🔺 parseInt() Method
`parseInt()` parses a string and returns a whole number. Spaces are allowed. Only the first number is returned:
```js
document.getElementById("demo").innerHTML =
parseInt("-10") +
"<br>" + // -10
parseInt("-10.33") +
"<br>" + // -10
parseInt("10") +
"<br>" + // 10
parseInt("10.33") +
"<br>" + // 10
parseInt("10 6") +
"<br>" + // 10
parseInt("10 years") +
"<br>" + // 10
parseInt("years 10"); // NaN
```
#### 🔺 Number.isInteger() Method
The `Number.isInteger()` method returns `true` if the argument is an integer.
`toPrecision()` returns a string, with a number written with a specified length:
```js
let num = 9.656;
const number =
num.toPrecision() +
"<br>" +
num.toPrecision(2) +
"<br>" +
num.toPrecision(4) +
"<br>" +
num.toPrecision(6);
document.getElementById("demo").innerHTML = number;
```
#### 🔺 valueOf() Method
`valueOf()` returns a number as a number.
```js
let x = 123;
x.valueOf(); // 123
(345).valueOf(); // 345
(100 + 23).valueOf(); // 123
```
In JavaScript, a number can be a primitive value (typeof = number) or an object (typeof = object).
The `valueOf()` method is used internally in JavaScript to convert Number objects to primitive values.
There is no reason to use it in your code.
## 📌 Array
---
📝 **Whay use arrays ?**
If you have a list of items (a list of car names, for example), storing the cars in single variables could look like this:
```js
let car1 = "Saab";
let car2 = "Volvo";
let car3 = "BMW";
```
However, what if you want to loop through the cars and find a specific one? And what if you had not 3 cars, but 300?
The solution is an array!
An array can hold many values under a single name, and you can access the values by referring to an index number.
---
#### 🔺 Creating an Array
Using an array literal is the easiest way to create a JavaScript Array.
Syntax:
```js
const array_name = [item1, item2, ...];
```
```js
const cars = ["Saab", "Volvo", "BMW"];
```
Spaces and line breaks are not important. A declaration can span multiple lines:
```js
const cars = ["Saab", "Volvo", "BMW"];
```
You can also create an array, and then provide the elements:
```js
const cars = [];
cars[0] = "Saab";
cars[1] = "Volvo";
cars[2] = "BMW";
```
#### 🔺 Using the JavaScript Keyword new
The following example also creates an Array, and assigns values to it:
```js
const cars = new Array("Saab", "Volvo", "BMW");
```
---
The two examples above do exactly the same.
There is no need to use `new Array()`.
For simplicity, readability and execution speed, use the array literal method.
---
#### 🔺 Accessing Array Elements
You access an array element by referring to the **index number**:
```js
const cars = ["Saab", "Volvo", "BMW"];
console.log(cars[0]); // Saab
```
---
📝 **Note** Array indexes start with 0
[0] is the first element. [1] is the second element.
---
#### 🔺 Accessing the Last Array Element
```js
const fruits = ["Banana", "Orange", "Apple", "Mango"];
console.log(fruits[fruits.length - 1]); // Mango
```
#### 🔺 Changing an Array Element
This statement changes the value of the first element in `cars`:
```js
const cars = ["Saab", "Volvo", "BMW"];
cars[0] = "Opel";
console.log(cars);
```
#### 🔺 Converting an Array to a String
The JavaScript method `toString()` converts an array to a string of (comma separated) array values.
```js
const fruits = ["Banana", "Orange", "Apple", "Mango"];
console.log(fruits.toString());
```
#### 🔺 Access the Full Array
With JavaScript, the full array can be accessed by referring to the array name:
```js
const cars = ["Saab", "Volvo", "BMW"];
console.log(cars);
```
#### 🔺 Arrays are Objects
Arrays are a special type of objects. The `typeof` operator in JavaScript returns "object" for arrays.
But, JavaScript arrays are best described as arrays.
Arrays use `numbers` to access its "elements". In this example, `person[0]` returns John:
**Array :**
```js
const person = ["John", "Doe", 46];
```
Objects use `names` to access its "members". In this example, `person.firstName` returns John:
**Object :**
```js
const person = { firstName: "John", lastName: "Doe", age: 46 };
```
#### 🔺 The length Property
The `length` property of an array returns the length of an array (the number of array elements).
```js
const fruits = ["Banana", "Orange", "Apple", "Mango"];
console.log(fruits.length); // 4
```
#### 🔺 Accessing the First Array Element
```js
const fruits = ["Banana", "Orange", "Apple", "Mango"];
console.log(fruits[0]);
```
#### 🔺 Looping Array Elements
One way to loop through an array, is using a for loop:
```js
let Language = ["html", "css", "JavaScript"];
let Len = Language.length;
let text = "<ul>";
for (let i = 0; i < Len; i++) {
text += "<li>" + Language[i] + "</li>";
}
text += "</ul>";
document.getElementById("demo").innerHTML = text;
```
You can also use the `Array.forEach()` function:
```js
const fruits = ["Banana", "Orange", "Apple", "Mango"];
let text = "<ul>";
fruits.forEach(myFruits);
text += "</ul>";
document.getElementById("demo").innerHTML = text;
function myFruits(value) {
text += "<li>" + value + "</li>";
}
```
#### 🔺 Adding Array Elements
The easiest way to add a new element to an array is using the `push()` method:
```js
const fruits = ["Banana", "Orange", "Apple"];
document.getElementById("demo").innerHTML = fruits;
function myFunction() {
fruits.push("Lemon");
document.getElementById("demo").innerHTML = fruits;
}
```
New element can also be added to an array using the length property:
```js
const fruits = ["Banana", "Orange", "Apple"];
document.getElementById("demo").innerHTML = fruits;
function myFunction() {
fruits[fruits.length] = "Lemon";
document.getElementById("demo").innerHTML = fruits;
}
```
---
⚠️ **WARNING !**
Adding elements with high indexes can create undefined "holes" in an array:
---
```js
const fruits = ["Banana", "Orange", "Apple"];
fruits[6] = "Lemon";
let fLen = fruits.length;
let text = "";
for (i = 0; i < fLen; i++) {
text += fruits[i] + "<br>";
}
document.getElementById("demo").innerHTML = text;
/*
Banana
Orange
Apple
undefined
undefined
undefined
Lemon
*/
```
#### 🔺 Associative Arrays
Many programming languages support arrays with named indexes.
Arrays with named indexes are called associative arrays (or hashes).
JavaScript does **not** support arrays with named indexes.
In JavaScript, **arrays** always use **numbered indexes**.
```js
const person = [];
person[0] = "John";
person[1] = "Doe";
person[2] = 46;
console.log(person[0] + " " + person.length); // John 3
```
---
📝 **The Difference Between Arrays and Objects**
In JavaScript, **arrays** use **numbered indexes**.
In JavaScript, **objects** use **named indexes**.
---
#### 🔺 new Array()
JavaScript has a built-in array constructor `new Array()`.
But you can safely use `[]` instead.
These two different statements both create a new empty array named points:
```js
const points = new Array();
const points = [];
```
These two different statements both create a new array containing 6 numbers:
```js
const points = new Array(40, 100, 1, 5, 25, 10);
const points = [40, 100, 1, 5, 25, 10];
console.log(points[0]); // 40
```
#### 🔺 How to Recognize an Array
A common question is: How do I know if a variable is an array?
The problem is that the JavaScript operator `typeof` returns "`object`":
```js
const fruits = ["Banana", "Orange", "Apple"];
let type = typeof fruits; // object
```
The typeof operator returns object because a JavaScript array is an object.
**`Solution 1:`**
To solve this problem ECMAScript 5 (JavaScript 2009) defined a new method `Array.isArray()`:
```js
const fruits = ["Banana", "Orange", "Apple"];
console.log(Array.isArray(fruits)); // true
```
**`Solution 2:`**
The `instanceof` operator returns true if an object is created by a given constructor:
```js
var fruits = ["Banana", "Orange", "Apple"];
console.log(fruits instanceof Array); // true
```
## 📌 Array Methods
| | |
| :------------- | :--------------- |
| Array length | Array toString() |
| Array pop() | Array push() |
| Array shift() | Array unshift() |
| Array join() | Array delete() |
| Array concat() | Array slice() |
| Array splice() |
#### 🔺 Array length
The `length` property returns the length (size) of an array:
```js
const fruits = ["Banana", "Orange", "Apple", "Mango"];
let size = fruits.length; // 4
```
#### 🔺 Array toString()
The JavaScript method `toString()` converts an array to a string of (comma separated) array values.
```js
const fruits = ["Banana", "Orange", "Apple", "Mango"];
let convertString = fruits.toString();
// Banana,Orange,Apple,Mango
```
The `join()` method also joins all array elements into a string.
It behaves just like `toString()`, but in addition you can specify the separator:
```js
const fruits = ["Banana", "Orange", "Apple", "Mango"];
document.getElementById("demo").innerHTML = fruits.join("*");
// Banana * Orange * Apple * Mango
```
---
**Popping and Pushing**
When you work with arrays, it is easy to remove elements and add new elements.
This is what popping and pushing is:
Popping items out of an array, or pushing items into an array.
---
#### 🔺 Array pop()
The `pop()` method removes the last element from an array:
```js
const fruits = ["Banana", "Orange", "Apple", "Mango"];
document.getElementById("demo").innerHTML = fruits;
fruits.pop();
document.getElementById("demo").innerHTML = fruits;
```
The `pop()` method returns the value that was "popped out":
#### 🔺 Array push()
The `push()` method adds a new element to an array (at the end):
```js
const fruits = ["Banana", "Orange", "Apple", "Mango"];
fruits.push("Kiwi");
// Banana,Orange,Apple,Mango,Kiwi
```
#### 🔺 Array shift()
Shifting is equivalent to popping, but working on the first element instead of the last.
The `shift()` method removes the first array element and "shifts" all other elements to a lower index.
```js
const fruits = ["Banana", "Orange", "Apple", "Mango"];
console.log(fruits);
// [ 'Banana', 'Orange', 'Apple', 'Mango' ]
fruits.shift();
console.log(fruits);
// [ 'Orange', 'Apple', 'Mango' ]
```
The `shift()` method returns the value that was "shifted out":
#### 🔺 Array unshift()
The `unshift()` method adds a new element to an array (at the beginning), and "unshifts" older elements:
```js
const fruits = ["Banana", "Orange", "Apple", "Mango"];
console.log(fruits);
// [ 'Banana', 'Orange', 'Apple', 'Mango' ]
fruits.unshift("Kiwi");
console.log(fruits);
// [ 'Kiwi', 'Banana', 'Orange', 'Apple', 'Mango' ]
```
---
📝 Array **indexes** start with 0:
[0] is the first array element
[1] is the second
[2] is the third ...
---
```js
const fruits = ["Banana", "Orange", "Apple", "Mango"];
console.log(fruits);
// [ 'Banana', 'Orange', 'Apple', 'Mango' ]
fruits[0] = "Kiwi";
console.log(fruits);
// [ 'Kiwi', 'Orange', 'Apple', 'Mango' ]
```
#### 🔺 Array length
The `length` property provides an easy way to append a new element to an array:
```js
const fruits = ["Banana", "Orange", "Apple", "Mango"];
console.log(fruits);
// [ 'Banana', 'Orange', 'Apple', 'Mango' ]
fruits[fruits.length] = "Kiwi";
console.log(fruits);
// [ 'Banana', 'Orange', 'Apple', 'Mango', 'Kiwi' ]
```
---
⚠️ **WARNING !**
Array elements can be deleted using the JavaScript operator `delete`.
Using `delete` leaves `undefined` holes in the array.
Use pop() or shift() instead.
---
```js
const fruits = ["Banana", "Orange", "Apple", "Mango"];
console.log(fruits[0]);
// Banana
delete fruits[0];
console.log(fruits[0]);
// undefined
```
#### 🔺 Merging (Concatenating) Arrays
The `concat()` method creates a new array by merging (concatenating) existing arrays:
```js
const myGirls = ["Cecilie", "Lone"];
const myBoys = ["Emil", "Tobias", "Linus"];
const myChildren = myGirls.concat(myBoys);
console.log(myChildren);
// [ 'Cecilie', 'Lone', 'Emil', 'Tobias', 'Linus' ]
```
---
The `concat()` method does not change the existing arrays. It always returns a new array.
---
The `concat()` method can take any number of array arguments:
```js
const arr1 = ["Cecilie", "Lone"];
const arr2 = ["Emil", "Tobias", "Linus"];
const arr3 = ["Robin", "Morgan"];
const myChildren = arr1.concat(arr2, arr3);
console.log(myChildren);
// [ 'Cecilie', 'Lone', 'Emil', 'Tobias', 'Linus', 'Robin', 'Morgan' ]
```
The `concat()` method can also take strings as arguments:
```js
const myArray = ["Emil", "Tobias", "Linus"];
const myChildren = myArray.concat("Peter");
console.log(myChildren);
// [ 'Emil', 'Tobias', 'Linus', 'Peter' ]
```
#### 🔺 Array splice()
The `splice()` method can be used to add new items to an array:
```js
const fruits = ["Banana", "Orange", "Apple", "Mango"];
fruits.splice(2, 0, "Lemon", "Kiwi");
console.log(fruits);
// [ 'Banana', 'Orange', 'Lemon', 'Kiwi', 'Apple', 'Mango' ]
```
The first parameter (2) defines the position **where** new elements should be **added** (spliced in).
The second parameter (0) defines **how many** elements should be removed.
The rest of the parameters ("Lemon" , "Kiwi") define the new elements to be added.
The `splice()` method returns an array with the deleted items:
```js
const fruits = ["Banana", "Orange", "Apple", "Mango"];
fruits.splice(2, 2, "Lemon", "Kiwi");
console.log(fruits);
// [ 'Banana', 'Orange', 'Lemon', 'Kiwi' ]
/*
Remove item : Apple,Mango
*/
```
#### 🔺 Using splice() to Remove Elements
With clever parameter setting, you can use `splice()` to remove elements without leaving "holes" in the array:
```js
const fruits = ["Banana", "Orange", "Apple", "Mango"];
fruits.splice(0, 1);
console.log(fruits);
// [ 'Orange', 'Apple', 'Mango' ]
```
The first parameter (0) defines the position where new elements should be **added** (spliced in).
The second parameter (1) defines **how many** elements should be **removed**.
The rest of the parameters are omitted. No new elements will be added.
#### 🔺 Array slice()
The `slice()` method slices out a piece of an array into a new array.
This example slices out a part of an array starting from array element 1 ("Orange"):
```js
const fruits = ["Banana", "Orange", "Apple", "Mango"];
console.log(fruits.slice(1));
// [ 'Orange', 'Apple', 'Mango' ]
```
---
📝 **Note**
The slice() method creates a new array.
The slice() method does not remove any elements from the source array.
---
This example slices out a part of an array starting from array element 3 ("Apple"):
```js
const fruits = ["Banana", "Orange", "Lemon", "Apple", "Mango"];
console.log(fruits.slice(3));
// [ 'Apple', 'Mango' ]
```
The `slice()` method can take two arguments like `slice(1, 3)`.
The method then selects elements from the start argument, and up to (but not including) the end argument.
```js
const fruits = ["Banana", "Orange", "Lemon", "Apple", "Mango"];
console.log(fruits.slice(1, 3));
// [ 'Orange', 'Lemon' ]
```
If the end argument is omitted, like in the first examples, the `slice()` method slices out the rest of the array.
#### 🔺 Automatic toString()
JavaScript automatically converts an array to a comma separated string when a primitive value is expected.
This is always the case when you try to output an array.
These two examples will produce the same result:
```js
const fruits = ["Banana", "Orange", "Lemon", "Apple", "Mango"];
let x = fruits.toString();
console.log(typeof x); // string
```
## 📌 Sorting Arrays
#### 🔺 Sorting an Array
The `sort()` method sorts an array alphabetically:
```js
const fruits = ["Banana", "Orange", "Apple", "Mango"];
fruits.sort();
console.log(fruits);
// [ 'Apple', 'Banana', 'Mango', 'Orange' ]
```
#### 🔺 Reversing an Array
The `reverse()` method reverses the elements in an array.
You can use it to sort an array in descending order:
```js
const fruits = ["Banana", "Orange", "Apple", "Mango"];
fruits.sort();
fruits.reverse();
console.log(fruits);
// [ 'Orange', 'Mango', 'Banana', 'Apple' ]
```
#### 🔺 Numeric Sort
By default, the `sort()` function sorts values as strings.
This works well for strings ("Apple" comes before "Banana").
However, if numbers are sorted as strings, "25" is bigger than "100", because "2" is bigger than "1".
Because of this, the `sort()` method will produce incorrect result when sorting numbers.
You can fix this by providing a **compare function**:
```js
const points = [40, 100, 1, 5, 25, 10];
console.log(points); // [ 40, 100, 1, 5, 25, 10 ]
let sorted = points.sort(function (a, b) {
return a - b;
});
console.log(sorted); // [ 1, 5, 10, 25, 40, 100 ]
```
#### 🔺 The Compare Function
The purpose of the compare function is to define an alternative sort order.
The compare function should return a negative, zero, or positive value, depending on the arguments:
```js
function(a, b){return a - b}
```
When the sort() function compares two values, it sends the values to the compare function, and sorts the values according to the returned (negative, zero, positive) value.
If the result is negative, `a` is sorted before `b`.
If the result is positive, `b` is sorted before `a`.
If the result is 0, no changes are done with the sort order of the two values.
**Example:**
The compare function compares all the values in the array, two values at a time `(a, b)`.
When comparing 40 and 100, the `sort()` method calls the compare function(40, 100).
The function calculates 40 - 100 `(a - b)`, and since the result is negative (-60), the sort function will sort 40 as a value lower than 100.
You can use this code snippet to experiment with numerically and alphabetically sorting:
```js
<button onclick="myFunction1()">Sort Alphabetically</button>
<button onclick="myFunction2()">Sort Numerically</button>
<p id="demo"></p>
<script>
const points = [40, 100, 1, 5, 25, 10];
document.getElementById("demo").innerHTML = points;
function myFunction1() {
points.sort();
document.getElementById("demo").innerHTML = points;
}
function myFunction2() {
points.sort(function(a, b){return a - b});
document.getElementById("demo").innerHTML = points;
}
</script>
```
#### 🔺 Sorting an Array in Random Order
```html
<!DOCTYPE html>
<html>
<body>
<h1>JavaScript Arrays</h1>
<h2>The sort() Method</h2>
<p>Click the button (again and again) to sort the array in random order.</p>
<button onclick="myFunction()">Try it</button>
<p id="demo"></p>
<script>
const points = [40, 100, 1, 5, 25, 10];
document.getElementById("demo").innerHTML = points;
function myFunction() {
points.sort(function () {
return 0.5 - Math.random();
});
document.getElementById("demo").innerHTML = points;
}
</script>
</body>
</html>
```
#### 🔺 Using Math.max() on an Array
You can use `Math.max.apply` to find the highest number in an array:
```js
const points = [40, 100, 1, 5, 25, 10];
function myArrayMax(arr) {
return Math.max.apply(null, arr);
}
console.log(myArrayMax(points));
// 100
```
#### 🔺 Using Math.min() on an Array
You can use `Math.min.apply` to find the lowest number in an array:
```js
const points = [40, 100, 1, 5, 25, 10];
function myArrayMin(arr) {
return Math.min.apply(null, arr);
}
console.log(myArrayMin(points));
// 1
```
#### 🔺 Sorting Object Arrays
JavaScript arrays often contain objects:
Even if objects have properties of different data types, the `sort()` method can be used to sort the array.
The solution is to write a compare function to compare the property values:
```js
const cars = [
{ type: "Volvo", year: 2016 },
{ type: "Saab", year: 2001 },
{ type: "BMW", year: 2010 },
];
cars.sort((a, b) => {
return a.year - b.year;
});
let result = "";
for (let x = 0; x < cars.length; x++) {
result += cars[x].type + " " + cars[x].year + "<br>";
}
demo.innerHTML = result;
```
## 📌 Array Iteration
#### 🔺 Array forEach()
The `forEach()` method calls a function (a callback function) once for each array element.
```js
const numbers = [45, 4, 9, 16, 25];
let text = "";
numbers.forEach((value, index, array) => {
return (text += value + "<br>");
});
document.getElementById("demo").innerHTML = text;
/*
45
4
9
16
25
*/
```
Note that the function takes 3 arguments:
- The item value
- The item index
- The array itself
The example above uses only the value parameter. The example can be rewritten to:
```js
const numbers = [45, 4, 9, 16, 25];
let text = "";
numbers.forEach((value) => {
return (text += value + "<br>");
});
document.getElementById("demo").innerHTML = text;
```
#### 🔺 Array map()
The `map()` method creates a new array by performing a function on each array element.
The `map()` method does not execute the function for array elements without values.
The `map()` method does not change the original array.
This example multiplies each array value by 2:
```js
const numbers = [45, 4, 9, 16, 25];
const number2 = numbers.map((value) => {
return value * 2;
});
document.getElementById("demo").innerHTML = number2;
/*
90,
8,
18,
32,
50
*/
```
#### 🔺 Array filter()
The `filter()` method creates a new array with array elements that pass a test.
This example creates a new array from elements with a value larger than 18:
```js
const numbers = [45, 4, 9, 16, 25];
const numFilter = numbers.filter((value) => {
return value > 18;
});
console.log(numFilter);
// 45, 25
```
#### 🔺 Array reduce()
The `reduce()` method runs a function on each array element to produce (reduce it to) a single value.
The `reduce()` method works from left-to-right in the array. See also `reduceRight()`.
---
The `reduce()` method does not reduce the original array.
---
This example finds the sum of all numbers in an array:
```js
const numbers = [45, 4, 9, 16, 25];
console.log(
numbers.reduce((total, value, index, array) => {
return total + value;
})
);
// 99
```
Note that the function takes 4 arguments:
The total (the initial value / previously returned value)
The item value
The item index
The array itself
The example above does not use the index and array parameters. It can be rewritten to:
```js
const numbers = [45, 4, 9, 16, 25];
console.log(
numbers.reduce((total, value) => {
return total + value;
})
);
// 99
```
#### 🔺 Array reduceRight()
The `reduceRight()` method runs a function on each array element to produce (reduce it to) a single value.
The `reduceRight()` works from right-to-left in the array. See also `reduce()`.
---
The `reduceRight()` method does not reduce the original array.
---
```js
const numbers = [45, 4, 9, 16, 25];
console.log(
numbers.reduceRight((total, value) => {
return total + value;
})
);
// 99
```
#### 🔺 Array every()
The `every()` method checks if all array values pass a test.
This example checks if all array values are larger than 18:
```js
const numbers = [45, 4, 9, 16, 25];
let result = numbers.every((value, index, array) => {
return value > 18;
});
console.log("All over 18 is " + result);
// All over 18 is false
```
#### 🔺 Array some()
The `some()` method checks if some array values pass a test.
This example checks if some array values are larger than 18:
```js
const numbers = [45, 4, 9, 16, 25];
let result = numbers.some((value, index, array) => {
return value > 18;
});
console.log("All over 18 is " + result);
// All over 18 is true
```
#### 🔺 Array find()
The `find()` method returns the value of the first array element that passes a test function.
This example finds (returns the value of) the first element that is larger than 18:
```js
const numbers = [4, 9, 16, 25, 29];
let result = numbers.find((value, index, array) => {
return value > 18;
});
console.log("First number over 18 is " + result);
// First number over 18 is 25
```
#### 🔺 Array findIndex()
The `findIndex()` method returns the index of the first array element that passes a test function.
This example finds the index of the first element that is larger than 18:
```js
const numbers = [4, 9, 16, 25, 29];
let result = numbers.findIndex((value, index, array) => {
return value > 18;
});
console.log("First number over 18 has index " + result);
// First number over 18 has index 3
```
#### 🔺 Array.from()
The `Array.from()` method returns an Array object from any object with a length property or any iterable object.
```js
const myArr = Array.from("ABCDEFG");
console.log(myArr);
// ['A', 'B', 'C', 'D', 'E', 'F', 'G']
```
#### 🔺 Array Keys()
The `Array.keys()` method returns an Array Iterator object with the keys of an array.
```js
const fruits = ["Banana", "Orange", "Apple", "Mango"];
const key = fruits.keys();
let text = "";
for (let x of key) {
text += x + "<br>";
}
console.log(text);
/* 0<br>1<br>2<br>3<br> */
```
#### 🔺 Array entries()
```js
const fruits = ["Banana", "Orange", "Apple", "Mango"];
const f = fruits.entries();
text = "";
for (let x of f) {
text += x + "<br>";
}
console.log(text);
// 0,Banana<br>1,Orange<br>2,Apple<br>3,Mango<br>
```
#### 🔺 Array includes()
ECMAScript 2016 introduced `Array.includes()` to arrays. This allows us to check if an element is present in an array (including NaN, unlike indexOf).
```js
const fruits = ["Banana", "Orange", "Apple", "Mango"];
console.log(fruits.includes("Apple"));
// true
```
#### 🔺 Array Spread (...)
The ... operator expands an iterable (like an array) into more elements:
```js
const q1 = ["Jan", "Feb", "Mar"];
const q2 = ["Apr", "May", "Jun"];
const q3 = ["Jul", "Aug", "Sep"];
const q4 = ["Oct", "Nov", "May"];
const year = [...q1, ...q2, ...q3, ...q4];
console.log(year);
// [ 'Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'May' ]
```
## 📌 Date Objects
```js
const d = new Date();
```
```js
const d = new Date("2023-9-1");
```
---
📝 **Note**
Date objects are static. The "clock" is not "running".
The computer clock is ticking, date objects are not.
---
#### 🔺 Date Output
By default, JavaScript will use the browser's time zone and display a date as a full text string:
**Fri Sep 01 2023 09:24:22 GMT+0530 (India Standard Time)**
---
You will learn much more about how to display dates, later in this tutorial.
---
#### 🔺 Creating Date Objects
Date objects are created with the `new Date()` constructor.
There are 9 ways to create a new date object:
```js
new Date()
new Date(date string)
new Date(year,month)
new Date(year,month,day)
new Date(year,month,day,hours)
new Date(year,month,day,hours,minutes)
new Date(year,month,day,hours,minutes,seconds)
new Date(year,month,day,hours,minutes,seconds,ms)
new Date(milliseconds)
```
#### 🔺 new Date(date string)
`new Date(date string)` creates a date object from a **date string**:
```js
const d = new Date("September 01, 2023 09:28:44");
```
#### 🔺 new Date(year, month, ...)
`new Date(year, month, ...)` creates a date object with a **specified date and time**.
7 numbers specify year, month, day, hour, minute, second, and millisecond (in that order):
```js
const d = new Date(2023, 11, 24, 10, 33, 30, 0);
document.getElementById("demo").innerHTML = d;
// Sun Dec 24 2023 10:33:30 GMT+0530 (India Standard Time)
```
---
📝 **Note**
JavaScript counts months from **0** to **11**:
**January = 0.**
**December = 11.**
---
#### 🔺 Using 6, 4, 3, or 2 Numbers
6 numbers specify year, month, day, hour, minute, second:
```js
const d = new Date(2023, 11, 24, 10, 33, 30);
```
5 numbers specify year, month, day, hour, and minute:
```js
const d = new Date(2023, 11, 24, 10, 33);
```
4 numbers specify year, month, day, and hour:
```js
const d = new Date(2023, 11, 24, 10);
```
3 numbers specify year, month, and day:
```js
const d = new Date(2023, 11, 24);
```
2 numbers specify year and month:
```js
const d = new Date(2023, 11);
```
## 📌 Short Dates.
#### 🔺 Date Input
There are generally 3 types of JavaScript date input formats:
| Type | Example |
| :--------- | :---------------------------------------- |
| ISO Date | "2015-03-25" (The International Standard) |
| Short Date | "03/25/2015" |
| Long Date | "Mar 25 2015" or "25 Mar 2015" |
#### 🔺 Date Output
Independent of input format, JavaScript will (by default) output dates in full text string format:
```js
Fri Sep 01 2023 12:17:14 GMT+0530 (India Standard Time)
```
#### 🔺 ISO Dates
ISO 8601 is the international standard for the representation of dates and times.
The ISO 8601 syntax (YYYY-MM-DD) is also the preferred JavaScript date format:
```js
const d = new Date("2015-03-25");
```
---
The computed date will be relative to your time zone.
Depending on your time zone, the result above will vary between March 24 and March 25.
---
#### 🔺 ISO Dates (Year and Month)
ISO dates can be written without specifying the day (YYYY-MM):
```js
const d = new Date("2015-03");
```
---
Time zones will vary the result above between February 28 and March 01.
---
#### 🔺 ISO Dates (Only Year)
ISO dates can be written without month and day (YYYY):
```js
const d = new Date("2015");
```
---
Time zones will vary the result above between December 31 2014 and January 01 2015.
---
#### 🔺 Short Dates.
Short dates are written with an "MM/DD/YYYY" syntax like this:
```js
const d = new Date("03/25/2015");
```
#### 🔺 Date Input - Parsing Dates
If you have a valid date string, you can use the `Date.parse()` method to convert it to milliseconds.
`Date.parse()` returns the number of milliseconds between the date and January 1, 1970:
```js
let msec = Date.parse("March 21, 2012");
```
You can then use the number of milliseconds to **convert it to a date** object:
```js
let msec = Date.parse("March 21, 2012");
const d = new Date(msec);
```
## 📌 Get Date Methods
| Method | Description |
| :---------------- | :-------------------------------------------- |
| getFullYear | Get **year** as a four digit number (yyyy) |
| getMonth() | Get **month** as a number (0-11) |
| getDate() | Get **day** as a number (1-31) |
| getDay() | Get **weekday** as a number (0-6) |
| getHours() | Get **hour** (0-23) |
| getMinutes() | Get **minute** (0-59) |
| getSeconds() | Get **second** (0-59) |
| getMilliseconds() | Get **millisecond** (0-999) |
| getTime() | Get time (milliseconds since January 1, 1970) |
---
📝 Note 1
The get methods above return Local time.
Universal time (UTC) is documented at the bottom of this page.
---
---
📝 Note 2
The get methods return information from existing date objects.
In a date object, the time is static. The "clock" is not "running".
The time in a date object is NOT the same as current time.
---
#### 🔺 getFullYear() Method
The `getFullYear()` method returns the year of a date as a four digit number:
```js
const d = new Date();
console.log(d.getFullYear());
// 2023
```
---
⚠️ **WARNING !**
Old JavaScript code might use the non-standard method getYear().
getYear() is supposed to return a 2-digit year.
getYear() is deprecated. Do not use it!
---
#### 🔺 getMonth() Method
The `getMonth()` method returns the month of a date as a number (0-11).
---
📝 Note
In JavaScript, January is month number 0, February is number 1, ...
Finally, December is month number 11.
---
```js
const d = new Date();
console.log(d.getMonth() + 1);
// 9
```
---
📝 **Note**
You can use an array of names to return the month as a name:
---
```js
const months = [
"January",
"February",
"March",
"April",
"May",
"June",
"July",
"August",
"September",
"October",
"November",
"December",
];
const d = new Date();
let month = months[d.getMonth()];
console.log(month);
// September
```
#### 🔺 getDate() Method
The `getDate()` method returns the day of a date as a number (1-31):
```js
const d = new Date();
console.log(d.getDate());
// 1
```
#### 🔺 getHours() Method
The `getHours()` method returns the hours of a date as a number (0-23):
```js
const d = new Date();
console.log(d.getHours());
// 22
```
#### 🔺 getMinutes() Method
The `getMinutes()` method returns the minutes of a date as a number (0-59):
```js
const d = new Date();
console.log(d.getMinutes());
// 15
```
#### 🔺 getSeconds() Method
The `getSeconds()` method returns the seconds of a date as a number (0-59):
```js
const d = new Date();
console.log(d.getSeconds());
// 20
```
#### 🔺 getMilliseconds() Method
The `getMilliseconds()` method returns the milliseconds of a date as a number (0-999):
```js
const d = new Date();
console.log(d.getMilliseconds());
// 609
```
#### 🔺 getDay() Method
The `getDay()` method returns the weekday of a date as a number (0-6).
```js
const d = new Date();
console.log(d.getDay());
// 5
```
---
📝 **Note**
You can use an array of names, and getDay() to return weekday as a name:
---
```js
const days = [
"Sunday",
"Monday",
"Tuesday",
"Wednesday",
"Thursday",
"Friday",
"Saturday",
];
const d = new Date();
console.log(days[d.getDay()]);
// Friday
```
#### 🔺 getTime() Method
The `getTime()` method returns the number of milliseconds since January 1, 1970:
```js
const d = new Date("1970-01-01");
console.log(d.getTime());
// 0
```
```js
const d = new Date();
console.log(d.getTime());
// 1693587194392
```
#### 🔺 Date.now() Method
`Date.now()` returns the number of milliseconds since January 1, 1970.
```js
// Calculate milliseconds in a year
const minute = 1000 * 60;
const hour = minute * 60;
const day = hour * 24;
const year = day * 365;
let years = Math.random(Date.now() / year);
console.log(years);
// 54
```
## 📌 Set Date Methods
Set Date methods are used for setting a part of a date:
| Method | Description |
| :---------------- | :------------------------------------------------ |
| setDate() | Set the day as a number (1-31) |
| setFullYear() | Set the year (optionally month and day) |
| setHours() | Set the hour (0-23) |
| setMilliseconds() | Set the milliseconds (0-999) |
| setMinutes() | Set the minutes (0-59) |
| setMonth() | Set the month (0-11) |
| setSeconds() | Set the seconds (0-59) |
| setTime() | Set the time (milliseconds since January 1, 1970) |
#### 🔺 setFullYear() Method
The `setFullYear()` method sets the year of a date object. In this example to 2020:
```js
const d = new Date();
d.setFullYear(2023);
document.getElementById("demo").innerHTML = d;
// Sat Sep 02 2023 02:05:29 GMT+0530 (India Standard Time)
```
#### 🔺 setMonth() Method
The `setMonth()` method sets the month of a date object (0-11):
```js
const d = new Date();
d.setMonth(8);
// Sat Sep 02 2023 10:05:53 GMT+0530 (India Standard Time)
```
#### 🔺 setDate() Method
The `setDate()` method sets the day of a date object (1-31):
```js
const d = new Date();
d.setDate(3);
// Sun Sep 03 2023 10:08:08 GMT+0530 (India Standard Time)
```
#### 🔺 setHours() Method
The `setHours()` method sets the hours of a date object (0-23):
```js
const d = new Date();
d.setHours(11);
// Sat Sep 02 2023 11:08:24 GMT+0530 (India Standard Time)
```
#### 🔺 setMinutes() Method
The `setMinutes()` method sets the minutes of a date object (0-59):
```js
const d = new Date();
d.setMinutes(15);
// Sat Sep 02 2023 10:15:58 GMT+0530 (India Standard Time)
```
#### 🔺 setSeconds() Method
The `setSeconds()` method sets the seconds of a date object (0-59):
```js
const d = new Date();
d.setSeconds(30);
document.getElementById("demo").innerHTML = d;
// Sat Sep 02 2023 11:33:30 GMT+0530 (India Standard Time)
```
#### 🔺 Compare Dates
Dates can easily be compared.
The following example compares today's date with January 14, 2100:
```js
let text;
const today = new Date();
const someDay = new Date();
someDay.setFullYear(2100, 0, 14);
if (someDay > today) {
text = "Today is before January 14, 2100.";
} else {
text = "Today is after January 14, 2100.";
}
console.log(text);
// Today is before January 14, 2100.
```
---
JavaScript counts months from 0 to 11. January is 0. December is 11.
---
## 📌 Math
#### 🔺 Number to Integer
There are 4 common methods to round a number to an integer:
| | |
| :------------ | :-------------------------------------------- |
| Math.round(x) | Returns x rounded to its nearest integer |
| Math.ceil(x) | Returns x rounded up to its nearest integer |
| Math.floor(x) | Returns x rounded down to its nearest integer |
| Math.trunc(x) | Returns the integer part of x |
#### 🔺 Math.round()
`Math.round(x)` returns the nearest integer:
```js
console.log(Math.round(4.6));
// 5
console.log(Math.round(4.5));
// 5
console.log(Math.round(4.4));
// 4
```
#### 🔺 Math.ceil()
`Math.ceil(x)` returns the value of x rounded up to its nearest integer:
```js
console.log(Math.ceil(4.3));
// 5
console.log(Math.ceil(4.5));
// 5
console.log(Math.ceil(4.6));
// 5
console.log(Math.ceil(4));
// 4
console.log(Math.ceil(-4.3));
// -4
console.log(Math.ceil(-4));
// -4
```
#### 🔺 Math.floor()
Math.floor(x) returns the value of x rounded down to its nearest integer:
```js
console.log(Math.floor(4.9));
// 4
console.log(Math.floor(4.7));
// 4
console.log(Math.floor(4.4));
// 4
console.log(Math.floor(4.2));
// 4
console.log(Math.floor(-4.2));
// -5
```
#### 🔺 Math.trunc()
Math.trunc(x) returns the integer part of x:
```js
console.log(Math.trunc(4.9));
// 4
console.log(Math.trunc(4.7));
// 4
console.log(Math.trunc(4.4));
// 4
console.log(Math.trunc(4.2));
// 4
console.log(Math.trunc(-4.2));
// -4
```
#### 🔺 Math.random()
Math.random() returns a random number between 0 (inclusive), and 1 (exclusive):
```js
<p id="demo"></p>
<button onclick="randomValue()">Click!</button>
<script>
let randomValue = () => {
document.getElementById("demo").innerHTML = Math.random()
}
</script>
// Returns a random number:
```
#### 🔺 Random Integers
`Math.random()` used with `Math.floor()` can be used to return random integers.
---
There is no such thing as JavaScript integers.
We are talking about numbers with no decimals here.
---
```js
// Returns a random integer from 0 to 9:
Math.floor(Math.random() * 10);
// Returns a random integer from 0 to 10:
Math.floor(Math.random() * 11);
// Returns a random integer from 1 to 10:
Math.floor(Math.random() * 10) + 1;
// Returns a random integer from 1 to 100:
Math.floor(Math.random() * 100) + 1;
```
#### 🔺 A Proper Random Function
As you can see from the examples above, it might be a good idea to create a proper random function to use for all random integer purposes.
This JavaScript function always returns a random number between min (included) and max (excluded):
```js
<button onclick="document.getElementById('demo').innerHTML = getRndInteger(0,10)">Click Me</button>
<p id="demo"></p>
<script>
function getRndInteger(min, max) {
return Math.floor(Math.random() * (max - min)) + min;
}
</script>
```
```js
<button onclick="document.getElementById('demo').innerHTML = getRndInteger(1,10)">Click Me</button>
<p id="demo"></p>
<script>
function getRndInteger(min, max) {
return Math.floor(Math.random() * (max - min + 1) ) + min;
}
</script>
```
## 📌 Booleans
#### 🔺 Boolean Values
Very often, in programming, you will need a data type that can only have one of two values, like
- YES / NO
- ON / OFF
- TRUE / FALSE
For this, JavaScript has a **Boolean** data type. It can only take the values **true** or **false**.
#### 🔺 Boolean() Function
You can use the Boolean() function to find out if an expression (or a variable) is true:
```js
console.log(Boolean(10 > 9));
// true
```
```js
console.log(Boolean(10 < 9));
// false
```
#### 🔺 Comparisons and Conditions
The chapter JS Comparisons gives a full overview of comparison operators.
The chapter JS Conditions gives a full overview of conditional statements.
Here are some examples:
| Operator | Description | Example |
| :------- | :----------- | :------------------- |
| == | equal to | if (day == "Monday") |
| > | greater than | if (salary > 9000) |
| < | less than | if (age < 18) |
#### 🔺 Everything Without a "Value" is False
The Boolean value of **0** (zero) is **false**:
```js
let x = 0;
console.log(Boolean(x));
// false
```
The Boolean value of "" (empty string) is **false**:
```js
let x = "";
console.log(Boolean(x));
// false
```
The Boolean value of **undefined** is **false**:
```js
let x;
console.log(Boolean(x));
// false
```
The Boolean value of **null** is **false**:
```js
let x = null;
console.log(Boolean(x));
// false
```
The Boolean value of **false** is (you guessed it) **false**:
```js
let x = false;
console.log(Boolean(x));
// false
```
```js
let x = 5;
let y = 5;
console.log(Boolean(x == y));
// true
```
```js
let x = 5;
let y = 6;
console.log(Boolean(x == y));
// false
```
```js
let x = 5;
let y = "5";
console.log(Boolean(x === y));
// false
```
#### 🔺 How Can it be Used
Comparison operators can be used in conditional statements to compare values and take action depending on the result:
```js
if (age < 18) text = "Too young to buy alcohol";
```
#### 🔺 Conditional (Ternary) Operator
JavaScript also contains a conditional operator that assigns a value to a variable based on some condition.
**Syntax**
```
variablename = (condition) ? value1:value2
```
```js
let age = 28;
let compare = age > 18 ? "Too Young" : "To Small";
console.log(compare);
// Too Young
```
```js
let age = 18;
let compare = age > 18 ? "Too Young" : "To Small";
console.log(compare);
// Too Small
```
```js
let age = 18;
let compare = age >= 18 ? "Too Young" : "To Small";
console.log(compare);
// Too Young
```
```html
<input type="text" id="age" />
<input type="submit" value="Submit" onclick="arrowFunction()" />
<p id="demo"></p>
<script>
let arrowFunction = () => {
let text = "";
let age = Number(document.getElementById("age").value);
if (isNaN(age)) {
text = "Input is a not a number";
} else {
text = age >= 18 ? "Yes You can vote." : "Too young";
}
document.getElementById("demo").innerHTML = text + " to vote";
};
</script>
```
## 📌 if, else, and else if
---
Conditional statements are used to perform different actions based on different conditions.
---
#### 🔺 Conditional Statements
Very often when you write code, you want to perform different actions for different decisions.
You can use conditional statements in your code to do this.
In JavaScript we have the following conditional statements:
- Use `if` to specify a block of code to be executed, if a specified condition is true
- Use `else` to specify a block of code to be executed, if the same condition is false
- Use `else if` to specify a new condition to test, if the first condition is false
- Use `switch` to specify many alternative blocks of code to be executed
#### 🔺 The if Statement
Use the `if` statement to specify a block of JavaScript code to be executed if a condition is true.
**_Syntax_**
```js
if (condition) {
// block of code to be executed if the condition is true
}
```
---
⚠️ **warning**
That if is in lowercase letters. Uppercase letters (If or IF) will generate a JavaScript error.
---
Make a "Good day" greeting if the hour is less than 18:00:
```js
if (hours < 18) {
console.log("Good Day");
}
```
#### 🔺 The else Statement
Use the `else` statement to specify a block of code to be executed if the condition is false.
**_Syntax_**
```js
if (condition) {
// block of code to be executed if the condition is true
} else {
// block of code to be executed if the condition is false
}
```
If the hour is less than 18, create a "Good day" greeting, otherwise "Good evening":
```js
const hours = new Date().getHours();
let greeting = "";
if (hours < 18) {
greeting = "Good Day";
} else {
greeting = "Good Evening";
}
console.log(greeting);
```
```js
if (new Date().getHours() < 18) {
document.getElementById("time").innerHTML = "Good Day";
} else {
document.getElementById("time").innerHTML = "Good Evening";
}
```
#### 🔺 The else if Statement
Use the `else if` statement to specify a new condition if the first condition is false.
**_Syntax_**
```js
if (condition1) {
// block of code to be executed if condition1 is true
} else if (condition2) {
// block of code to be executed if the condition1 is false and condition2 is true
} else {
// block of code to be executed if the condition1 is false and condition2 is false
}
```
If time is less than 10:00, create a "Good morning" greeting, if not, but time is less than 20:00, create a "Good day" greeting, otherwise a "Good evening":
```js
const hours = new Date().getHours();
let greeting = "";
if (hours < 10) {
greeting = "Good Morning";
} else if (hours < 20) {
greeting = "Good Day";
} else {
greeting = "Good Evening";
}
console.log(greeting);
```
## 📌 Switch Statement
---
The `switch` statement is used to perform different actions based on different conditions.
---
Use the `switch` statement to select one of many code blocks to be executed.
**_Syntax_**
```js
switch (expression) {
case x:
// code block
break;
case y:
// code block
break;
default:
// code block
}
```
This is how it works:
- The switch expression is evaluated once.
- The value of the expression is compared with the values of each case.
- If there is a match, the associated block of code is executed.
- If there is no match, the default code block is executed.
The `getDay()` method returns the weekday as a number between 0 and 6.
(Sunday=0, Monday=1, Tuesday=2 ..)
This example uses the weekday number to calculate the weekday name:
```js
const x = new Date().getDay();
let days;
switch (x) {
case 0:
days = "Sunday";
break;
case 1:
days = "Monday";
break;
case 2:
days = "Tuesday";
break;
case 3:
days = "Wednesday";
break;
case 4:
days = "Thursday";
break;
case 5:
days = "Friday";
break;
case 6:
days = "Saturday";
}
console.log("Today is " + days);
```
#### 🔺 break Keyword
When JavaScript reaches a `break` keyword, it breaks out of the switch block.
This will stop the execution inside the switch block.
It is not necessary to break the last case in a switch block. The block breaks (ends) there anyway.
---
📝 **Note**
If you omit the break statement, the next case will be executed even if the evaluation does not match the case.
---
#### 🔺 The default Keyword
The `default` keyword specifies the code to run if there is no case match:
The `getDay()` method returns the weekday as a number between 0 and 6.
If today is neither Saturday (6) nor Sunday (0), write a default message:
```js
const x = new Date().getDay();
let days;
switch (x) {
case 6:
days = "Saturday";
break;
case 0:
days = "Sunday";
break;
default:
days = "Looking forward to the Weekend";
}
console.log(days);
```
The `default` case does not have to be the last case in a switch block:
```js
let days;
switch (new Date().getDay()) {
default:
days = "Looking forward to the Weekend";
break;
case 6:
days = "Saturday";
break;
case 0:
days = "Sunday";
}
console.log(days);
```
---
If `default` is not the last case in the switch block, remember to end the default case with a break.
---
#### 🔺 Common Code Blocks
Sometimes you will want different switch cases to use the same code.
In this example case 4 and 5 share the same code block, and 0 and 6 share another code block:
```js
let text;
switch (new Date().getDay()) {
case 4:
case 5:
text = "Soon it is Weekend";
break;
case 0:
case 6:
text = "It is weekend";
break;
default:
text = "Looking forward to the Weekend";
}
console.log(text);
```
#### 🔺 Switching Details
If multiple cases matches a case value, the `first` case is selected.
If no matching cases are found, the program continues to the `default` label.
If no default label is found, the program continues to the statement(s) `after the switch`.
#### 🔺 Strict Comparison
Switch cases use strict comparison (===).
The values must be of the same type to match.
A strict comparison can only be true if the operands are of the same type.
In this example there will be no match for x:
```js
<input type="number" id="text">
<button type="submit" onclick="myValue()">Submit</button>
<p id="result"></p>
<script>
let myValue = () => {
let value = Number(document.getElementById("text").value)
switch (value) {
case 0:
text = "Off"
break
case 1:
text = "On"
break
default:
text = "Value is not found"
}
document.getElementById("result").innerHTML = text
}
</script>
```
## 📌 For Loop
---
Loops can execute a block of code a number of times.
---
**_Loops_** are handy, if you want to run the same code over and over again, each time with a different value.
Often this is the case when working with arrays:
```js
const cars = ["BMW", "Volvo", "Saab", "Ford", "Fiat", "Audi"];
let text = "";
for (let i = 0; i < cars.length; i++) {
text += cars[i] + "<br>";
}
console.log(text);
// BMW<br>Volvo<br>Saab<br>Ford<br>Fiat<br>Audi<br>
```
#### 🔺 Different Kinds of Loops
JavaScript supports different kinds of loops:
- `for` - loops through a block of code a number of times
- `for/in` - loops through the properties of an object
- `for/of` - loops through the values of an iterable object
- `while` - loops through a block of code while a specified condition is true
- `do/while` - also loops through a block of code while a specified condition is true
#### 🔺 The For Loop
The `for` statement creates a loop with 3 optional expressions:
```js
for (expression 1; expression 2; expression 3) {
// code block to be executed
}
```
**Expression 1** is executed (one time) before the execution of the code block.
**Expression 2** defines the condition for executing the code block.
**Expression 3** is executed (every time) after the code block has been executed.
```js
for (let x = 0; x < 5; x++) {
console.log(x);
}
/*
0
1
2
3
4
*/
```
From the example above, you can read:
Expression 1 sets a variable before the loop starts (let i = 0).
Expression 2 defines the condition for the loop to run (i must be less than 5).
Expression 3 increases a value (i++) each time the code block in the loop has been executed.
**Expression 1**
Normally you will use expression 1 to initialize the variable used in the loop (let i = 0).
This is not always the case. JavaScript doesn't care. Expression 1 is optional.
You can initiate many values in expression 1 (separated by comma):
```js
const cars = ["BMW", "Volvo", "Saab", "Ford"];
let i, len, text;
for (i = 0, len = cars.length, text = ""; i < len; i++) {
text += cars[i] + "<br>";
}
document.getElementById("demo").innerHTML = text;
```
**Expression 2**
Often expression 2 is used to evaluate the condition of the initial variable.
This is not always the case. JavaScript doesn't care. Expression 2 is also optional.
If expression 2 returns true, the loop will start over again. If it returns false, the loop will end.
---
If you omit expression 2, you must provide a break inside the loop. Otherwise the loop will never end. This will crash your browser. Read about breaks in a later chapter of this tutorial.
---
```js
const cars = ["BMW", "Volvo", "Saab", "Ford"];
let i = 2,
len = cars.length,
text = "";
for (; i < len; i++) {
text += cars[i] + "<br>";
}
document.getElementById("demo").innerHTML = text;
/*
Saab
Ford
*/
```
**Expression 3**
Often expression 3 increments the value of the initial variable.
This is not always the case. JavaScript doesn't care. Expression 3 is optional.
Expression 3 can do anything like negative increment (i--), positive increment (i = i + 15), or anything else.
Expression 3 can also be omitted (like when you increment your values inside the loop):
```js
const cars = ["BMW", "Volvo", "Saab", "Ford"];
let i = 2,
len = cars.length,
text = "";
for (; i < len; ) {
text += cars[i] + "<br>";
i++;
}
document.getElementById("demo").innerHTML = text;
/*
Saab
Ford
*/
```
## 📌 For In Loop
The JavaScript `for in` statement loops through the properties of an Object:
**_Syntax_**
```js
for (key in object) {
// code block to be executed
}
```
```js
const person = { fname: "John", lname: "Doe", age: 25 };
let text = "";
for (let x in person) {
text += person[x];
}
console.log(text);
// JohnDoe25
```
**Example Explained**
- The **for** **in** loop iterates over a **person** object
- Each iteration returns a **key** (x)
- The key is used to access the **value** of the key
- The value of the key is **person[x]**
```js
const numbers = [45, 4, 9, 16, 25];
let text = "";
for (let x in numbers) {
text += numbers[x];
}
console.log(text);
// 45491625
```
---
⚠️ **warning**
Do not use **for** **in** over an Array if the index **order** is important.
The index order is implementation-dependent, and array values may not be accessed in the order you expect.
It is better to use a **for** loop, a **for** **of** loop, or **Array.forEach()** when the order is important.
---
```js
const numbers = [45, 4, 9, 16, 25];
let txt = "";
numbers.forEach((value, index, array) => {
txt += value;
});
console.log(txt);
// 45491625
```
#### 🔺 The For Of Loop
The JavaScript `for of` statement loops through the values of an iterable object.
It lets you loop over iterable data structures such as Arrays, Strings, Maps, NodeLists, and more:
**_Syntax_**
```js
for (variable of iterable) {
// code block to be executed
}
```
_variable_ - For every iteration the value of the next property is assigned to the variable. Variable can be declared with `const`, `let`, or `var`.
#### 🔺 Looping over an Array
```js
const cars = ["BMW", "Volvo", "Mini"];
let text = "";
for (let x of cars) {
text += x + "<br>";
}
console.log(text);
// BMW<br>Volvo<br>Mini<br>
```
#### 🔺 Looping over a String
```js
const cars = "JavaScript";
let text = "";
for (let x of cars) {
text += x + "<br>";
}
console.log(text);
// J<br>a<br>v<br>a<br>S<br>c<br>r<br>i<br>p<br>t<br>
```
## 📌 While Loop
Loops can execute a block of code as long as a specified condition is true.
The `while` loop loops through a block of code as long as a specified condition is true.
**_Syntax_**
```js
while (condition) {
// code block to be executed
}
```
In the following example, the code in the loop will run, over and over again, as long as a variable (i) is less than 10:
```js
let text = "";
let i = 0;
while (i < 10) {
text += "<br>The Number is " + i;
i++;
}
console.log(text);
/*
<br>The Number is 0
<br>The Number is 1
<br>The Number is 2
<br>The Number is 3
<br>The Number is 4
<br>The Number is 5
<br>The Number is 6
<br>The Number is 7
<br>The Number is 8
<br>The Number is 9
*/
```
#### 🔺 The Do While Loop
The `do while` loop is a variant of the while loop. This loop will execute the code block once, before checking if the condition is true, then it will repeat the loop as long as the condition is true.
```js
do {
// code block to be executed
} while (condition);
```
The example below uses a `do while` loop. The loop will always be executed at least once, even if the condition is false, because the code block is executed before the condition is tested:
```js
let text = "";
let i = 0;
do {
text += "<br>The Number is " + i;
i++;
} while (i < 10);
console.log(text);
/*
<br>The Number is 0
<br>The Number is 1
<br>The Number is 2
<br>The Number is 3
<br>The Number is 4
<br>The Number is 5
<br>The Number is 6
<br>The Number is 7
<br>The Number is 8
<br>The Number is 9
*/
```
#### 🔺 Comparing For and While
If you have read the previous chapter, about the for loop, you will discover that a while loop is much the same as a for loop, with statement 1 and statement 3 omitted.
The loop in this example uses a `for` loop to collect the car names from the cars array:
```js
const cars = ["BMW", "Volvo", "Saab", "Ford"];
let text = "";
let i = 0;
for (; cars[i]; ) {
text += cars[i] + "<br>";
i++;
}
console.log(text);
// BMW<br>Volvo<br>Saab<br>Ford<br>
```
```js
const cars = ["BMW", "Volvo", "Saab", "Ford"];
let text = "";
let i = 0;
while (cars[i]) {
text += cars[i] + "<br>";
i++;
}
console.log(text);
// BMW<br>Volvo<br>Saab<br>Ford<br>
```
## 🔺 Break and Continue
The `break` statement "jumps out" of a loop.
The `continue` statement "jumps over" one iteration in the loop.
You have already seen the `break` statement used in an earlier chapter of this tutorial. It was used to "jump out" of a switch() statement.
The `break` statement can also be used to jump out of a loop:
```js
let text = "";
for (let i = 0; i < 10; i++) {
if (i === 3) {
break;
}
text += i + "<br>";
}
document.getElementById("demo").innerHTML = text;
/*
0
1
2
*/
```
In the example above, the `break` statement ends the loop ("breaks" the loop) when the loop counter (i) is 3.
#### 🔺 The Continue Statement
The `continue` statement breaks one iteration (in the loop), if a specified condition occurs, and continues with the next iteration in the loop.
This example skips the value of 3:
```js
let text = "";
for (let i = 0; i < 10; i++) {
if (i === 3) {
continue;
}
text += i + "<br>";
}
document.getElementById("demo").innerHTML = text;
/*
0
1
2
4
5
6
7
8
9
*/
```
#### 🔺 Labels
To label JavaScript statements you precede the statements with a label name and a colon:
```
label:
statements
```
The `break` and the `continue` statements are the only JavaScript statements that can "jump out of" a code block.
**_Syntax_**
```
break labelname;
continue labelname;
```
The `continue` statement (with or without a label reference) can only be used to **skip one loop iteration.**
The `break` statement, without a label reference, can only be used to **jump out of a loop or a switch.**
With a label reference, the break statement can be used to **jump out of any code block:**
```js
const cars = ["BMW", "Volvo", "Saab", "Ford"];
let text = "";
list: {
text += cars[0] + "<br>";
text += cars[1] + "<br>";
break list;
text += cars[2] + "<br>";
text += cars[3] + "<br>";
}
document.getElementById("demo").innerHTML = text;
/*
BMW
Volvo
*/
```
## 📌 Errors
**_Throw, and Try...Catch...Finally_**
The `try` statement defines a code block to run (to try).
The `catch` statement defines a code block to handle any error.
The `finally` statement defines a code block to run regardless of the result.
The `throw` statement defines a custom error.
#### 🔺 Errors Will Happen!
When executing JavaScript code, different errors can occur.
Errors can be coding errors made by the programmer, errors due to wrong input, and other unforeseeable things.
In this example we misspelled "alert" as "adddlert" to deliberately produce an error:
```js
try {
textAlert("Hello World");
} catch (err) {
console.log(err.message);
}
```
#### 🔺 try and catch
The `try` statement allows you to define a block of code to be tested for errors while it is being executed.
The `catch` statement allows you to define a block of code to be executed, if an error occurs in the try block.
The JavaScript statements `try` and `catch` come in pairs:
```
try {
Block of code to try
}
catch(err) {
Block of code to handle errors
}
```
#### 🔺 The throw Statement
The `throw` statement allows you to create a custom error.
Technically you can **throw an exception (throw an error)**.
The exception can be a JavaScript `String`, a `Number`, a `Boolean` or an `Object`:
```js
throw "Too big"; // throw a text
throw 500; // throw a number
```
If you use `throw` together with `try` and `catch`, you can control program flow and generate custom error messages.
```js
<input type="text" id="input">
<button type="submit" onclick="resultFunction()">Test Input!</button>
<p id="result"></p>
<script>
let resultFunction = () => {
const result = document.getElementById("result")
result.innerHTML = ""
let input = document.getElementById("input").value
try {
if (input.trim() == "") throw "empty"
if (isNaN(input)) throw "Not a Number!"
input = Number(input)
if (input < 5) throw "too low"
if (input > 10) throw "too high"
} catch (err) {
result.innerHTML = "input is " + err
}
}
</script>
```
#### 🔺 The finally Statement
The `finally` statement lets you execute code, after try and catch, regardless of the result:
```js
try {
Block of code to try
}
catch(err) {
Block of code to handle errors
}
finally {
Block of code to be executed regardless of the try / catch result
}
```
```js
<input type="text" id="input">
<input type="submit" onclick="submitButton()" />
<p id="result"></p>
<script>
function submitButton() {
let result = document.getElementById("result")
let input = document.getElementById("input").value
input.innerHTML = ""
try {
if (input.trim() == "") throw "Input is blank";
if (isNaN(input)) throw "Not a Number";
input = Number(input)
if (input > 10) throw "to high"
if (input < 5) throw "to low"
if (5 < input && 10 > input) throw "Value is submitted"
} catch (err) {
result.innerHTML = err
} finally {
if (5 < input && 10 > input) {
document.getElementById("input").value = ""
}
}
}
</script>
```
#### 🔺 Error Object Properties
| Property | Description |
| :------- | :------------------------------------------ |
| name | set or returns an error name |
| message | set or returns and error message (a string) |
#### 🔺 Error Name Values
Six different values can be returned by the error name property:
| Error name | Description |
| :------------- | :------------------------------------------- |
| EvalError | An error has occurred in the eval() function |
| RangeError | A number "out of range" has occurred |
| ReferenceError | An illegal reference has occurred |
| SyntaxError | A syntax error has occurred |
| TypeError | A type error has occurred |
| URIError | An error in encodeURI() has occurred |
The six different values are described below.
#### 🔺 Range Error
A `RangeError` is thrown if you use a number that is outside the range of legal values.
For example: You cannot set the number of significant digits of a number to 500.
```js
let num = 1;
try {
num.toPrecision(500); // A number cannot have 500 significate digits
} catch (err) {
console.log(err.name);
}
// RangeError
```
#### 🔺 Reference Error
A `ReferenceError` is thrown if you use (reference) a variable that has not been declared:
```js
let x = 5;
try {
x = y + 1; // y cannot be used (reference)
} catch (err) {
console.log(err.name);
}
// ReferenceError
```
#### 🔺 Syntax Error
A `SyntaxError` is thrown if you try to evaluate code with a syntax error.
```js
try {
eval("alert('Hello World)"); //
} catch (err) {
console.log(err.name);
}
// SyntaxError
```
#### 🔺 Type Error
A `TypeError` is thrown if you use a value that is outside the range of expected types:
```js
let num = 1;
try {
num.toUpperCase(); // You can not convert a number to upper case.
} catch (err) {
console.log(err.name);
}
// TypeError
```
## 📌 LocalStorage
- syntax
```js
localStorage
```
- save data to localStorage
```js
localStorage.setItem("key", "value")
```
- Read Data from Local Storage
```js
localStorage.getItem("key")
```
- Remove Data from Local Storage
```js
localStorage.removeItem("key")
```
- Remove All (Clear Local Storage)
```js
localStorage.clear()
```
#### 🔺 Object Store in localStorage
- the key is "person" and the value is the stringified version of the person object. JSON.stringify() is used to convert the JavaScript object into a JSON string because localStorage can only store strings.
```js
const person = { name: "John Doe", age: 32 }
localStorage.setItem("person", JSON.stringify(person))
```
- localStorage stores data as strings, we use JSON.parse() to convert the JSON string back into a JavaScript object.
```js
const storedPerson = JSON.parse(localStorage.getItem("person"))
console.log(storedPerson);
```
## 📌 setTimeout()
```js
setTimeout(() => {
console.log("Hello World!");
}, 5000)
```
So, to summarize, this code will log the string "Hello World!" to the console after a delay of 5 seconds.
## 📌 setInterval
```js
setInterval(() => {
console.log("Hello World!");
}, 2000);
```
So, to summarize, this code will log the string "Hello World!" to the console every 2 seconds, repeatedly, until the page is refreshed or the interval is cleared using the clearInterval function.
```js
// Set up the interval to log a message to the console every 2 seconds
const intervalId = setInterval(() => {
console.log("Hello World!");
}, 2000);
// Clear the interval after 10 seconds
setTimeout(() => {
clearInterval(intervalId);
}, 10000);
```
So, to summarize, this code will log the string "Hello World!" to the console every 2 seconds for 10 seconds, and then stop logging the message to the console.
---
---
---
<!-- ## 🎓 What is JSON ? -->
<!-- - [Click end learn about JSON](./JSON.md) -->
<!-- 🚧 ***Under Working*** -->
## 🎓 HTML DOM
#### 🔺 The HTML DOM (Document Object Model)
The HTML DOM model is constructed as a tree of Objects:

With the object model, JavaScript gets all the power it needs to create dynamic HTML:
- JavaScript can change all the HTML elements in the page
- JavaScript can change all the HTML attributes in the page
- JavaScript can change all the CSS styles in the page
- JavaScript can remove existing HTML elements and attributes
- JavaScript can add new HTML elements and attributes
- JavaScript can react to all existing HTML events in the page
- JavaScript can create new HTML events in the page
#### 🔺 What is the HTML DOM?
The HTML DOM is a standard **object** model and **programming interface** for HTML. It defines:
- The HTML elements as **objects**
- The **properties** of all HTML elements
- The **methods** to access all HTML elements
- The **events** for all HTML elements
In other words: **The HTML DOM is a standard for how to get, change, add, or delete HTML elements.**
#### 🔺 DOM Method
The following example changes the content (the `innerHTML`) of the `<p>` element with `id="demo"`:
```html
<html>
<body>
<p id="demo"></p>
<script>
document.getElementById("demo").innerHTML = "Hello World!";
</script>
</body>
</html>
```
In the example above, `getElementById` is a **method**, while `innerHTML` is a **property**.
#### 🔺 DOM Document
The document object represents your web page.
If you want to access any element in an HTML page, you always start with accessing the document object.
Below are some examples of how you can use the document object to access and manipulate HTML.
---
**Finding HTML Elements**
| Method | Description |
| -------------------------------------- | ----------------------------- |
| document.getElementById(_id_) | Find an element by element id |
| document.getElementByTagName(_name_) | Find Element by tag name |
| document.getElementByClassName(_name_) | Find Element bt class name |
---
**Changing HTML Element**
| Property | Description |
| ------------------------------------ | --------------------------------------------- |
| element.innerHTML = new html content | Change the inner HTML of an element |
| element.attribute = new value | Change the attribute value of an HTMl element |
| element.style.property = new style | Change the style of an HTML element |
| **Method** | **Description** |
| element.setAttribute | Change the attribute value of an HTML element |
---
**Adding and Deleting Elements**
| Method | Description |
| --------------------------------- | --------------------------------- |
| document.createElement(_element_) | Create an HTML element |
| document.removeChild(_element_) | Remove an HTML element |
| document.appendChild(_element_) | Add an HTML element |
| document.replaceChild(_new, old_) | Replace an HTML element |
| document.write(_text_) | Write into the HTML output stream |
---
**Adding Events Handlers**
| Method | Description |
| ---------------------------------------------------------- | --------------------------------------------- |
| document.getElementById(_id_).onclick = function(){_code_} | Adding event handler code to an onclick event |
---
**Finding HTML Objects**
The first HTML DOM Level 1 (1998), defined 11 HTML objects, object collections, and properties. These are still valid in HTML5.
Later, in HTML DOM Level 3, more objects, collections, and properties were added.
| Property | Description | DOM |
| ---------------------------- | -------------------------------------------------------------- | --- |
| document.anchors | Returns all <a> elements that have a name attribute | 1 |
| document.applets | `Deprecated` | 1 |
| document.baseURI | Returns the absolute base URI of the document | 3 |
| document.body | Returns the <body> element | 1 |
| document.cookie | Returns the document's cookie | 1 |
| document.doctype | Returns the document's doctype | 3 |
| document.documentElement | Returns the <html> element | 3 |
| document.documentMode | Returns the mode used by the browser | 3 |
| document.documentURI | Returns the URI of the document | 3 |
| document.domain | Returns the domain name of the document server | 1 |
| document.domConfig | `Obsolete.` | 3 |
| document.embeds | Returns all <embed> elements | 3 |
| document.forms | Returns all <form> elements | 1 |
| document.head | Returns the <head> element | 3 |
| document.images | Returns all <img> elements | 1 |
| document.implementation | Returns the DOM implementation | 3 |
| document.inputEncoding | Returns the document's encoding (character set) | 3 |
| document.lastModified | Returns the date and time the document was updated | 3 |
| document.links | Returns all <area> and <a> elements that have a href attribute | 1 |
| document.readyState | Returns the (loading) status of the document | 3 |
| document.referrer | Returns the URI of the referrer (the linking document) | 1 |
| document.scripts | Returns all <script> elements | 3 |
| document.strictErrorChecking | Returns if error checking is enforced | 3 |
| document.title | Returns the <title> element | 1 |
| document.URL | Returns the complete URL of the document | 1 |
#### 🔺 DOM Element
**Finding Element by id**
The easiest way to find an HTML element in the DOM, is by using the element id.
This example finds the element with `id="intro"`:
```html
<p id="intro">Finding HTML Element bt id</p>
<p id="demo"></p>
<script>
const element = document.getElementById("intro");
document.getElementById("demo").innerHTML =
"The text from the intro paragraph is: " + element.innerHTML;
</script>
```
| Result |
| ---------------------------------------------------------------- |
| The text from the intro paragraph is: Finding HTML Element bt id |
If the element is found, the return method will return the element as an object (in element).
If the element is not found, element will contain `null`.
---
**Finding Element by Tag Name**
This example finds all `<p>` elements:
```html
<p>Hello World</p>
<p>John Doe</p>
<p>My Age is 22</p>
<p id="demo"></p>
<script>
const element = document.getElementsByTagName("P");
document.getElementById("demo").innerHTML =
"The text in first paragraph (index 0) is: " + element[0].innerHTML;
</script>
```
| result |
| ----------------------------------------------------- |
| The text in first paragraph (index 0) is: Hello World |
This example finds the element with `id="main"`, and then finds all `<p>` elements inside `"main"`:
```html
<div id="main">
<p>Hello World</p>
<p>John Doe</p>
</div>
<p>My Age is 22</p>
<p id="demo"></p>
<script>
const x = document.getElementById("main");
const y = x.getElementsByTagName("p");
document.getElementById("demo").innerHTML =
'This second paragraph (index 0) inside "main" is: ' + y[1].innerHTML;
</script>
```
| result |
| ---------------------------------------------------------- |
| This second paragraph (index 0) inside "main" is: John Doe |
---
**Finding Elements by Class Name**
If you want to find all elements with the same class name, use `getElementByClassName()`.
This example returns a list of all elements with `class-"intro"`.
```html
<p class="into">Hello World</p>
<p class="into">John Doe</p>
<p>My Age is 22</p>
<p id="demo"></p>
<script>
const x = document.getElementsByClassName("into");
document.getElementById(
"demo"
).innerHTML = `My name is <b>${x[1].innerHTML}</b>`;
</script>
```
| result |
| ------------------- |
| My name is John Doe |
---
**Using document.anchors**
```html
<a name="HTML" href=""></a>
<a name="CSS" href=""></a>
<a name="JavaScript" href=""></a>
<p id="demo"></p>
<script>
document.getElementById(
"demo"
).innerHTML = `Number of anchor are: ${document.anchors.length}`;
</script>
```
| result |
| ----------------------- |
| Number of anchor are: 3 |
---
**document.body**
```html
<h1>Hello World</h1>
<p>This is a paragraph.</p>
<p id="demo"></p>
<script>
document.getElementById("demo").innerHTML = document.body.innerHTML;
</script>
```
| result |
| -------------------- |
| Hello World |
| This is a paragraph. |
| |
| Hello World |
| This is a paragraph. |
---
**document.forms**
```html
<form action="">
<label for="fName">First name : </label>
<input type="text" name="fName" id="fName" />
</form>
<p id="demo"></p>
<script>
document.getElementById(
"demo"
).innerHTML = `Number Of Forms : ${document.forms.length}`;
</script>
```
| result |
| ------------------- |
| Number Of Forms : 1 |
---
**document.head**
```html
<p id="demo"></p>
<script>
document.getElementById("demo").innerHTML = document.head;
</script>
```
| result |
| ------------------------ |
| [object HTMLHeadElement] |
---
**document.image**
```html
<img src="./code_black_bg.png" alt="CodeImage" />
<img src="./code_white_bg.png" alt="CodeImage" />
<p id="demo"></p>
<script>
document.getElementById("demo").innerHTML =
"Number of images: " + document.images.length;
</script>
```
| result |
| ------------------- |
| Number of images: 2 |
---
**document.links**
```html
<p>
<a href="./html/intro.html">HTML</a><br /><a href="./css/intro.html">CSS</a>
</p>
<p id="demo"></p>
<script>
document.getElementById("demo").innerHTML =
"Number of links: " + document.links.length;
</script>
```
| result |
| ------------------ |
| Number of links: 2 |
---
**document.title**
```html
<!DOCTYPE html>
<html lang="en">
<head>
<title>JavaScript Documentation</title>
</head>
<body>
<p id="demo"></p>
<script>
document.getElementById(
"demo"
).innerHTML = `The title of this document is: <b>${document.title}</b>`;
</script>
</body>
</html>
```
| result |
| ----------------------------------------------------------- |
| The title of this document is: **JavaScript Documentation** |
#### 🔺 Changing HTML Style
To change the style of an HTML element, use this syntax:
```
document.getElementById(*id*).style.property = *new style*
```
The following example changes the style of a `<p>` element.
```html
<p id="p2">Hello World!</p>
<script>
document.getElementById("p2").style.color = "blue";
</script>
```
**Using Events**
The HTML DOM allows you to execute code when an event occurs.
Events are generated by the browser when "things happen" to HTML elements:
- An element is clicked on
- The page has loaded
- Input fields are changed
You will learn more about events in the next chapter of this tutorial.
This example changes the style of the HTML element with `id="id1"`, when the user clicks a button:
```html
<h1 id="demo">Hello World!</h1>
<button
type="button"
onclick="document.getElementById('demo').style.color = 'red'"
>
Click!
</button>
```
#### 🔺 DOM Animation
- Copy End pest in your device.
```html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Animation</title>
<style>
#container {
height: 400px;
width: 400px;
background-color: yellow;
position: relative;
}
#animation {
height: 50px;
width: 50px;
background-color: red;
position: absolute;
}
button {
margin: 0 0 10px 0;
}
</style>
</head>
<body>
<button onclick="action()">Click!</button>
<section id="container">
<div id="animation"></div>
</section>
<script>
function action() {
let animation = document.getElementById("animation");
let id = null;
let pos = 0;
clearInterval(0);
id = setInterval(frame, 5);
function frame() {
if (pos == 350) {
clearInterval(id);
} else {
pos++;
animation.style.top = pos + "px";
animation.style.left = pos + "px";
}
}
}
</script>
</body>
</html>
```
#### 🔺 DOM Events
Reacting to Events
A JavaScript can be executed when an events occurs, like when a user clicks on HTML element.
To execute code when a user on an element, add JavaScript code to an HTML event attribute:
```
click=JavaScript
```
Example of HTML events:
- When a user click to mouse
- When a web page has loaded
- When an image has been loaded
- When the mouse moves over an element
- When an input field changed
- When an HTML form submitted
- When a user strokes a key
In a example, the content of the `<h1>` element is changed when a user clicks on it:
```html
<h1 onclick="this.innerHTML = 'Hello World!'">Click on this text!</h1>
```
In this example, a function is called from the event handler:
```html
<h1 onclick="changeText(this)">Click on this text!</h1>
<script>
function changeText(id) {
id.innerHTML = "Hello World";
}
</script>
```
**Event Attribute**
To assign events to HTML elements you can use event attributes.
```html
<button onclick="timing()">Click!</button>
<script>
function timing() {
document.getElementById("time").innerHTML = Date();
}
</script>
<p id="time"></p>
```
Assign Events Using the HTML DOM
```html
<button id="btn">Click!</button>
<p id="time"></p>
<script>
document.getElementById("btn").onclick = function myTiming() {
document.getElementById("time").innerHTML = Date();
};
</script>
```
**The onchange Event**
The `onchange` event is often used in combination with validation of input fields
```html
<input type="text" name="name" id="name" onchange="upperCase()" />
<script>
function upperCase() {
const x = document.getElementById("name");
x.value = x.value.toUpperCase();
}
</script>
```
**The onmouseover and onmouseout Events**
The `onmouseover` and `onmouseout` events can be used to trigger a function when the user mouses over, or out of, an HTML element:
```html
<div onmouseover="mOn(this)" onmouseout="mOff(this)">Mouse Over me!</div>
<script>
function mOn(obj) {
obj.innerHTML = "Hello World!";
}
function mOff(obj) {
obj.innerHTML = "Mouse Over me!";
}
</script>
```
**The onmousedown, onmouseup and onclick Events**
```html
<h1 id="heading">Click The button</h1>
<button onmousedown="mDown()" onmouseup="mUp()">Click!</button>
<script>
let heading = document.getElementById("heading");
function mDown() {
heading.innerHTML = "Hello World!";
}
function mUp() {
heading.innerHTML = "Click The button";
}
</script>
```
#### 🔺 DOM EventListener
**addEventListener()**
Add an event listener that fires when a user clicks a button:
```js
<button id="button">Click!</button>
<p id="date"></p>
<script>
document.getElementById("button").addEventListener("click", showDate);
function showDate() {
document.getElementById("date").innerHTML = Date();
}
</script>
```
- The `addEventListener()` method attaches an event handler to the specified element.
- The `addEventListener()` method attaches an event handler to an element without overwriting existing event handlers.
- You can add many event handlers to one element.
- You can add many event handlers of the same type to one element, i.e two "click" events.
- You can add event listeners to any DOM object not only HTML elements. i.e the window object.
- The `addEventListener()` method makes it easier to control how the event reacts to bubbling.
- When using the `addEventListener()` method, the JavaScript is separated from the HTML markup, for better readability and allows you to add event listeners even when you do not control the HTML markup.
- You can easily remove an event listener by using the `removeEventListener()` method.
#### 🔺 Event Handler to an Element
```html
<button onclick="addEventListener('click', function () {
alert('Hello World!')
})">Click!</button>
```
#### 🔺 Add many Event Handlers to the same Element.
The `addEventListener()` method allows you to add many events to the same element, without overwriting existing events:
## 🎓 Browser BOM
🚧 **Under Working**
<!-- -->
---
---
---
## 🧪 Simple Methods
- [Single Page Navigation](./pages/singlePageNavigation.md)
- [Toggle navbar](./pages/toggleNavbar.md)
- [fetch API](./pages/fetchAPI.md)
- [setTheme in localStorage](./pages/setThemeInLocalStorage.md)
## 📓 Project's
- [Music WebSite](https://github.com/webDev5464/SimpMusic.git)
- [E-Commerce](./pages/eCom.md)
## 🤵♂️ Interview Preparation and Questions
- [Click Here...](./Interview-Questions/main.md)
## 📥 API and Row Data's
- API
```
https://res.cloudinary.com/dpiiduvvx/raw/upload/v1703580765/API/productsAPI
```
- Array Object products data :- [Click Here!](./modules/products.js)
- Json products data :- [Click Here!](./modules/products.json)
---
## 🔃 Reference's
[](https://github.com/webDev5464/vite-README.git)
[](https://github.com/webDev5464/NodeExpressJs-README.git)
---
---
---
<!-- -->
# 🪪 General Public License
[GNU License](/LICENSE) :
*JavaScript-README Copyright (C) 2023 Dev_eLoper* | Basic to Advance JavaScript curse with Dw. 📝 | documentation-template,javascript,javascript-vanilla,learning-js,students-project | 2023-08-29T15:54:54Z | 2024-04-03T12:06:36Z | null | 1 | 2 | 109 | 0 | 1 | 2 | null | GPL-3.0 | JavaScript |
shanmukhsrisaivedullapalli/MusicPlayer | main | # MusicPlayer
The Simple Music Player is a lightweight web-based music player built using HTML, CSS, and JavaScript. It allows users to play and control their favorite music tracks directly from their web browser. The player has a clean and intuitive interface that makes it easy to use for music enthusiasts of all levels.

# Features
1.Play/pause button: Start and pause the currently selected music track.<br>
2.Next/previous buttons: Navigate between tracks in the playlist.<br>
3.Progress bar: Visual representation of the current track's playback progress.<br>
4.Volume control: Adjust the volume level according to your preference.
# Usage
Clone or download the repository: <br>
1.Start by cloning this repository to your local machine using the following command:<br>
`gh repo clone shanmukhsrisaivedullapalli/MusicPlayer`<br>
Alternatively, you can download the ZIP archive and extract it.
2.Navigate to the project directory: Open a terminal window and navigate to the directory where you cloned or extracted the repository:<br>
`cd Music_player`<br>
3.Open index.html: Simply open the `Main.html` file in your preferred web browser. The music player interface will be displayed.
4.Add your music: To add your own music tracks, modify the playlist array in the script.js file. Each item in the array represents a track and should follow the format:
`script.js`<br>
<pre>
{
'cover': 'path/to/your/cover.jpg',
'source': 'path/to/your/song.mp3'
}
</pre><br>
5.Interact with the player: Use the provided controls to play, pause, skip tracks, adjust volume, and see the progress of the currently playing song.
# Customization
You can customize the look and feel of the music player to match your preferences:
* CSS Styles: You can modify the style.css file to change the colors, layout, and overall styling of the player interface.
* Icons: Replace the provided icons in the Assets directory with your own icons if desired.
# Contact
Feel free to reach me out for the project at `shanmukhsrisaivedullapalli34@gmail.com` if you have any questions, suggestions, or feedback!
| Plays music, Built using HTML, CSS & JAVASCRIPT | css3,html5,javascript | 2023-08-24T10:23:34Z | 2023-08-24T10:57:36Z | null | 1 | 0 | 6 | 0 | 0 | 2 | null | null | JavaScript |
MarioAngelov2/Airbnb | main | null | MERN | Airbnb clone | mongodb,nodejs,react,tailwindcss,javascript | 2023-08-18T09:46:26Z | 2023-09-17T20:20:32Z | null | 1 | 0 | 213 | 0 | 0 | 2 | null | null | JavaScript |
eman289/yummy | master | # Yummy - Explore Delicious Recipes
Welcome to Yummy - your gateway to exploring a world of delicious recipes! This project is designed to help you discover and learn about various meals, their ingredients, and how to prepare them. Whether you're a cooking enthusiast or just looking for some culinary inspiration, Yummy has something for everyone.
## Techniques and Technologies Used
- HTML5 and CSS3 for structuring and styling the web application.
- [Bootstrap](https://getbootstrap.com/) for responsive and mobile-first design.
- [jQuery](https://jquery.com/) for DOM manipulation and event handling.
- [Font Awesome](https://fontawesome.com/) for icons.
## Features
- **Search Meals**: Easily search for meals by name or by the first letter of their name.
- **Explore Categories**: Discover meals by categories such as breakfast, lunch, and dinner.
- **Find Meals by Area**: Explore meals based on their place of origin.
- **Ingredients List**: Browse meals based on available ingredients.
- **Detailed Meal Information**: Get detailed information about a meal, including its ingredients, instructions, and source links.
- **Contact Us**: A user-friendly contact form for easy communication.
## API Integration
This project integrates with [The MealDB API](https://www.themealdb.com/api.php). You can explore their API documentation to discover more features and options for retrieving meal data.
| A simple jQuery food recipes app | api,bootstrap5,css3,food-recipes,html5,javascript,jquery,route | 2023-09-01T19:22:35Z | 2023-09-04T11:34:30Z | null | 1 | 0 | 8 | 0 | 0 | 2 | null | null | JavaScript |
EmilioBlacksmith/bioLink | main | # Personal Bio Links [](https://emilioblacksmith.github.io/bioLink/)
## A Website Project for showing all of my main social links, to share in my social media
This project is a website to showcase my main links, and to help out strangers to know my current social media and personal projects that are currently in the making. It is based in Linktree and Linkin.bio. The main features of this projects are:
* A minimalistic web design for my main social media accounts and main links.
* A dark mode toggle button, that allows the user to have a better reading experience, based on their preference.
* A responsive design that changes depending if the user is in mobile or desktop.
## Preview


## How to tweak this project for your own uses
This project was meant for personal use to share my main links, so I'd encourage you to clone and rename this project to use your own purposes. It's a good starter template, I would, of course, suggest you delete my profile picture to put your own. by doing:
1. Click the <> Code Green button from the top right corner
2. in the Local Section, either click the Download ZIP, or Clone it with the terminal using the next:
```shell
git clone git@github.com:EmilioBlacksmith/bioLink.git
```
3. I would suggest changing the next:
* src/components/Links.jsx
* src/components/Profile.jsx
* src/icons/ -> to put all your favicon files (I used [https://realfavicongenerator.net/](https://realfavicongenerator.net/) to generate mine)
* src/images/ -> add your profile picture here
* index.html -> !! only to change the header with your own name
* src/index.css -> If you want to change the colors for background, buttons and text, change their respective --body_example inside the :root(light) and [data-theme="dark"] (dark)
4. And commit to your own github repo, but before doing the next:
* change the [ " base: "/your-repo-name/" ] ---> inside ./vite.config.js
* and deploying in your terminal with (required to have nodejs installed):
```shell
npm run build
```
5. Done, you will have your own personal bio link to share it to the world, let me know if everything works!
## Find a Bug or anything that should be improved?
If you found an issue or would like to submit an improvement to this project, please submit an issue using the issues tab above.
## Like this project?
Star it or share it to anyone that would find it useful for their own purpose and project. And feel free to follow my socials if you want to support more of this.
## Tech Stack behind this Project
      
## Lighthouse Performance

[ the only issue with accessibility is due to the dark mode toggle due to it "not having a label" ] | A minimalistic responsive website to showcase main social media links or project links, to share to others online. It is based in Linktree and Linkin.bio. | biolink,css,html,javascript,react,social-media,socialmedia | 2023-09-09T21:13:01Z | 2024-04-24T20:42:40Z | null | 1 | 8 | 61 | 0 | 0 | 2 | null | MIT | CSS |
Brenda-A-S/Nails-Beauty-HTML-CSS-JS | main | # Nails Beauty
Desenvolvi e projetei um site exclusivo para serviços de manicure, cuidadosamente construído com HTML, CSS e JavaScript. Este projeto não apenas representa minha paixão pela criação web, mas também reflete meu compromisso com a excelência em design e desenvolvimento:sparkling_heart:
# Resultado

https://github.com/Brenda-A-S/Nails-Beauty-HTML-CSS-JS/assets/69852246/434f70f8-d984-4ab6-93a5-cc874b1b2975
## Conecte-se comigo :link:
* Me siga no [Instagram](https://www.instagram.com/brenda_a_s_dev/)
* Se conecte comigo no [LinkedIn](https://www.linkedin.com/in/brenda-antunes-silva/)
* Veja meu [Portfólio](https://portfolio-brenda-a-s.web.app/)
* Meu [LinkTree](https://linktr.ee/brenda_a_s_dev) | Projeto da criação de um site de serviços de manicure, com HTML, CSS e JS. | css,html,javascript | 2023-08-16T05:09:46Z | 2023-09-02T01:22:14Z | null | 1 | 0 | 29 | 0 | 0 | 2 | null | null | HTML |
Axe10rellana/curso-php-mysql-mvc | main | # Curso de PHP y MySQL con MVC y POO desde cero
## Repositorio del Curso de PHP y MySQL con MVC desde cero hecho en HTML, CSS, JS, JQuery, Bootstrap, PHP y MySQL. | Repositorio del Curso de PHP y MySQL con MVC desde cero hecho en HTML, CSS, JS, JQuery, Bootstrap, PHP y MySQL. | ajax,bootstrap,css,fontawesome,html,javascript,jquery,mysql,pdo,php | 2023-09-07T17:30:55Z | 2023-09-07T17:31:36Z | null | 1 | 0 | 1 | 0 | 0 | 2 | null | MIT | PHP |
NIRMAL1508/vpt-2023-aug-NIRMAL_M | 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)
| 2023 - Venmurasu Programming Team Qualifier Contest-https://github.com/venmurasu-programming-team/2023-Aug-Contest | css,html,javascript,openbookapi | 2023-08-26T08:49:01Z | 2023-11-28T05:37:34Z | null | 3 | 1 | 3 | 0 | 0 | 2 | null | null | JavaScript |
gyandeeparyan/netflix-gpt | main | <div align='center'>
<h1>MOVIES GPT</h1>
<p>The MOVIES-GPT App is an AI-driven platform that enhances the Netflix experience. It leverages OpenAI's GPT-3.5 model to provide personalized content recommendations .This project is for Netflix enthusiasts seeking a more engaging and customized streaming experience. It empowers users to explore content effortlessly, engage in natural language interactions, and gain a deeper understanding of their favorite shows and movies. Whether you're a seasoned Netflix user or just starting your streaming journey, this app is designed to make your entertainment experience more enjoyable and enriching.</p>
<h4> <a href=https://movies-gpt.netlify.app/>View Demo</a> <span> · </span> <a href="https://docs.google.com/document/d/1Muefsocp5KR8cZtmdjgNcY3DQHNFGZIYZ6G1c6BRvGg/edit?usp=sharing"> High Level Design </a> <span> · </span> <a href="https://docs.google.com/document/d/13_4E29XlWuXX90MhpUhNrjjClzJthUMIwcBSlA13YEc/edit?usp=sharing"> Low Level Design </a> <span> · </span> <a href="https://github.com/gyandeeparyan/netflix-gpt/blob/master/README.md"> Documentation </a> <span> · </span> <a href="https://github.com/gyandeeparyan/netflix-gpt/issues"> Report Bug </a> <span> · </span> <a href="https://github.com/gyandeeparyan/netflix-gpt/issues"> Request Feature </a> </h4>
</div>
# :notebook_with_decorative_cover: Table of Contents
- [About the Project](#star2-about-the-project)
- [Contact](#handshake-contact)
## :star2: About the Project
### :camera: Screenshots
<div align="center"> <a href="https://movies-gpt.netlify.app/"><img src="https://i.ibb.co/cwzNN6N/md-home.png" alt='image' width='800'/></a> </div>
<div align="center"> <a href="https://movies-gpt.netlify.app/"><img src="https://i.ibb.co/LvMTxw2/md-movie-lists.png" alt='image' width='800'/></a> </div>
<div align="center"> <a href="https://movies-gpt.netlify.app/"><img src="https://i.ibb.co/YNYTWB0/md-gptpage.png" alt='image' width='800'/></a> </div>
<div >
### :dart: Features
- GPT-Search
- Authentication
- Internationalisation
- TMDB API
- Memoisation
### :art: Color Reference
| Color | Hex |
| --------------- | ---------------------------------------------------------------- |
| Primary Color |  #E50914 |
| Secondary Color |  #0f0d0e |
| Accent Color |  #fcba28 |
| Text Color |  #fff |
### :key: Environment Variables
To run this project, you will need to add the following environment variables to your .env file
`VITE_OPENAPI_KEY`
`VITE_TMDB_KEY`
`VITE_FIRE_BASE_API_KEY`
## :toolbox: Getting Started
### :bangbang: Prerequisites
- Install Node Js in your computer<a href="https://nodejs.org/en"> Here</a>
- Setup Firebase <a href="https://firebase.google.com/"> Here</a>
- Get you OpenAI Platform API key<a href="https://platform.openai.com/"> Here</a>
- Get you TMDB API key<a href="https://developer.themoviedb.org/reference/intro/getting-started"> Here</a>
### :running: Run Locally
Clone the project
```bash
https://github.com/gyandeeparyan/netflix-gpt
```
Go to the project directory
```bash
cd netflix-gpt
```
Install dependencies
```bash
npm i
```
Start the server
```bash
npm run dev
```
### :triangular_flag_on_post: Deployment
To deploy this project run
```bash
firebase deploy
```
## :wave: Contributing
<a href="https://github.com/gyandeeparyan/netflix-gpt/graphs/contributors"> <img src="https://contrib.rocks/image?repo=Louis3797/awesome-readme-template" /> </a>
Contributions are always welcome!
see `contributing.md` for ways to get started
### :scroll: Code of Conduct
Please read the [Code of Conduct](https://github.com/gyandeeparyan/netflix-gpt/blob/master/CODE_OF_CONDUCT.md)
## :handshake: Contact
Gyandeep Aryan - - gyandeeparyan.dev@gmail.com
Project Link: [https://github.com/gyandeeparyan/netflix-gpt](https://github.com/gyandeeparyan/netflix-gpt)
| MOVIES-GPT App revolutionizes the way users engage with and discover content on Netflix by harnessing the power of AI-driven personalization and natural language interaction. With its user-friendly interface and dynamic features, it aims to make streaming entertainment more enjoyable and tailored to individual tastes than ever before. | frontend,javascript,netflix-clone,openai,reactjs,akshay-saini,namaste-javascript,namaste-javascript-course,namaste-react,namaste-react-course | 2023-08-30T10:02:39Z | 2024-04-14T08:12:05Z | null | 1 | 0 | 50 | 0 | 1 | 2 | null | null | JavaScript |
juanigarciadev/portfolio | main | ```
git clone https://github.com/juanigarciadev/portfolio
```
| 🥰 Here you can see more about me, like how to contact me, my resume, projects and more! | frontend,javascript,portfolio,portfolio-website,react,tailwindcss,web-development | 2023-08-30T23:43:17Z | 2024-04-23T22:00:29Z | null | 1 | 0 | 58 | 0 | 0 | 2 | null | null | JavaScript |
vaxad/IMDb-1000 | main | 6

| A Next.js site: Real-time IMDb top 1000 movies via self-made API. Jump ranks, delve into cinematic details. | imdb-webscrapping,javascript,nextjs,reactjs | 2023-08-20T14:37:30Z | 2023-12-06T17:44:55Z | null | 1 | 0 | 8 | 0 | 0 | 2 | null | null | JavaScript |
Travelgate/documentation | main | # Travelgate Documenation
This website is built using [Docusaurus 3](https://docusaurus.io/)
## Requirements
* Node.js version 18 or above
## Installation
```
$ npm install
```
### Generate GraphQL API reference
```
npx docusaurus graphql-to-doc
```
The GraphQL API reference is generated from the TravelgateX GraphQL schema but
the `sidebar-schema.js` needs to be updated. Copy + paste the following code in your
`api/sidebar-schema.js` file:
```javascript
/** @type {import('@docusaurus/plugin-content-docs').SidebarsConfig} */
module.exports = {
schemaSidebar: [
{
type: "autogenerated",
dirName: ".",
},
],
};
```
## Local Development
```
$ npm run start
```
This command starts a local development server and opens up a browser window. Most changes are reflected live without having to restart the server.
### Build (optional)
```
$ npm run build
```
This command generates static content into the `build` directory and can be served using any static contents hosting service.
### Test `.mdx` structure before commit/push
```bash
npx docusaurus-mdx-checker
```
## Deployment
This repository is being automatically deployed to GitHub Pages using GitHub Actions.
The deployment script is located in `.github/workflows/main.yml`.
| Official Travelgate Documentation | documentation,javascript,mdx,web,docusaurus,nodejs | 2023-09-04T12:40:58Z | 2024-05-21T10:47:04Z | null | 68 | 143 | 576 | 0 | 1 | 2 | null | null | MDX |
pro-utkarshM/pro-utkarshM.github.io | main | # Linktree
Welcome to the Linktree repository! This project aims to provide a personal Linktree-like service, allowing users to create a customized list of links to share on their social media profiles or websites. With Linktree, you can conveniently share multiple links through a single URL.
## Repository Overview
This repository contains the source code for the Linktree project. It includes the necessary HTML, CSS, and JavaScript files to build and customize your own Linktree-like page. Additionally, there may be backend files or directories if the project includes a server-side component.
## Technologies Used
The Linktree project utilizes the following technologies:
- **HTML:** The structure and content of the web pages.
- **CSS:** Styling and presentation of the web pages.
- **JavaScript:** Interactivity and dynamic elements on the website.
- **Backend technology:** A backend technology, such as Node.js or another framework, may be used to handle server-side operations.
## Usage
To use the Linktree project, follow these steps:
1. Deploy the project: Deploy the code on a server or hosting platform of your choice.
2. Customize your Linktree page: Edit the HTML and CSS files to configure your own links and customize the appearance of your Linktree-like page.
3. Share your Linktree page: Once deployed and customized, share the URL of your Linktree page with others. When they visit the URL, they will see the list of links you have configured.
## Contributions
Contributions to this repository are welcome! If you wish to contribute to the project or have identified any issues, please refer to the repository's documentation or contact the project owner for more information on how to contribute.
## License
The licensing information for the Linktree project can be found in the repository's LICENSE file. It is important to review and comply with the licensing terms when using or modifying the project.
Thank you for your interest in the Linktree project!
| Personal Portfolio: I am a skilled Linux Kernel and Android Developer, specializing in low-level systems and mobile app development. Explore my projects and let's discuss how I can enhance your software solutions. | css,html,javascript,portfolio,static-site,personal-website,portfolio-website | 2023-08-15T08:32:36Z | 2024-05-22T20:36:14Z | null | 1 | 0 | 2 | 0 | 0 | 2 | null | null | CSS |
maciekwtfowicz/hydrapp | main | # hydrapp
| Simple PWA app for counting glasses of water | html,javascript,pwa,tailwindcss | 2023-08-27T17:32:06Z | 2023-09-13T20:17:45Z | null | 2 | 0 | 9 | 0 | 0 | 2 | null | null | HTML |
Elisabete-MO/angular-blog-project | master | # BlogProject
This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 16.2.1.
## Development server
Run `ng serve` for a dev server. Navigate to `http://localhost:4200/`. The application will automatically reload if you change any of the source files.
## Code scaffolding
Run `ng generate component component-name` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module`.
## Build
Run `ng build` to build the project. The build artifacts will be stored in the `dist/` directory.
## Running unit tests
Run `ng test` to execute the unit tests via [Karma](https://karma-runner.github.io).
## Running end-to-end tests
Run `ng e2e` to execute the end-to-end tests via a platform of your choice. To use this command, you need to first add a package that implements end-to-end testing capabilities.
## Further help
To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI Overview and Command Reference](https://angular.io/cli) page.
| Site para publicar conteúdos, como artigos e fotos. | angular,css,html,typescript,javascript,dio-bootcamp | 2023-09-11T21:16:05Z | 2023-09-12T07:58:39Z | null | 1 | 0 | 4 | 0 | 0 | 2 | null | null | TypeScript |
mahafujahamed/my-tube | main | null | This is simple youtube base website. | api,html5,javascript,projects,reactjs,school-project,tailwindcss,webpack,youtube-video | 2023-09-01T15:48:48Z | 2023-09-04T17:07:01Z | null | 1 | 0 | 4 | 0 | 0 | 2 | null | null | HTML |
MrSandeepSharma/We-are-the-Champions | main | # We are the Champions
- <a href="https://wearethechamp.netlify.app/">Live Preview</a>
## Welcome! 👋
Thanks for viewing my project, this is `my another solo project` in my journey to become a `front-end developer.`
#frontendcareerpath #newbiechallenge #scrimba
## What learned 🎗️
- How to update Data in `Firebase`
- about `classList` and `appendChild` element
- Practiced `Firebase`
## Preview Image 🎆

| another Web App using JavaScript and Firebase 🔥 | 1000days-of-code,begginer-friendly,css3,firebase,front-end-development,html5,javascript,newbie,scrimba,scrimba-frontend | 2023-09-02T06:11:50Z | 2023-09-02T06:28:07Z | null | 1 | 0 | 2 | 0 | 0 | 2 | null | null | JavaScript |
ILadyLuckI/vuejs-stock-trader-projeto | main | # Projeto Stock-trader
Este projeto foi criado para demonstrar os codigos referentes ao curso Vue.js 2 - O guia completo.
| 🛠 | |
| ------------- | --- |
| :sparkles: Daiana | **projeto do curso VueJS**
| :label: Tecnologias | JavaScript - VueJs
| 💻 Link do curso | https://www.udemy.com/share/101Wwu3@RFVCdY-jr08rLNSFvXMMBWh1RuZXzeNW2kBXwodX1EYewXyFBGOBXrD7hReJwRe-/
| 📺 Link do projeto | http://projetovuejs-trader.s3-website-us-east-1.amazonaws.com/
---

## Detalhes do projeto
Neste módulo fizemos a criação da aplicação desde o inicio, com a criação dos varios componentes, methods, actions, getters, temos um filtro também, até a implementação de um pequeno backend com o Firebase do Google, e finalizando com a publicação da aplicação na Amazon (AWS).
## Como funciona?
Para testar a aplicação abra o link do projeto disponível na tabela acima. Você começa com um saldo inicial de R$10000,00 , e a medida que vai comprando as ações este saldo vai diminuindo e as ações ficam armazenadas no seu portfolio. Você pode salvar ou carregar seus dados e recuperá-los após atualizar a página. Caso o navegador seja fechado a aplicação não salvará suas ações.
* Todos os valores são inventados e não representam valores reais. Esta aplicação é apenas para teste e não representa a realidade!
❎ Obs: muitos arquivos contém vários comentários meus, pois é a maneira como gosto de estudar e acho mais facil de absorver o conteúdo, porém eu sei que em um código sério isto não é aceitável. Relevem por favor! ;)
| Projeto do curso de Vue.Js | firebase,javascript,vitrinedev,vuejs | 2023-08-16T13:02:29Z | 2023-08-16T13:43:50Z | null | 1 | 0 | 4 | 0 | 0 | 2 | null | null | Vue |
PatriquePorto/restaurant-pizza-app | main | <h1 align="center"> Fullstack Restaurat App With NextJs & Prisma </h1>
</br>
<img src="/diagram.png" width="100%"></img>
</br>
</br>
<img src="/preview.png" width="100%"></img>
</br>
<br>
## 🚀 Tecnologies
This project was developed with the following technologies:
- React/Next
- Typescript
- Javascript
- Tailwind CSS
- Prisma
- Docker
- Postgresql
## 💻 Project
<p dir="auto">A Fullstack Restaurant App</p>
- A restaurant application page, with: menu navigation, add item to cart, etc.
- Animation with lib Lottiefiles in the project.
- Developed first with the mobile first methodology, then for desktop.
- Compatible with all mobile devices and with a beautiful and pleasant user interface.
- Back-end with PostgreSQL, Prisma and Docker.
- Login auth with Google.
- API stripe connection to process payments
- API image upload Cloudinary connection
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
1 - npx prisma migrate dev
2 - npm or yarn install
3 - first terminal: yarn dev or npm run dev
3 - second terminal: cd src/docker && docker compose up
3 - third terminal: npx prisma studio
```
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.
| A restaurant pizza app | javascript,nextjs,reactjs,tailwindcss,typescript,postgresql,prisma,docker,stripe-payment | 2023-08-10T20:08:10Z | 2023-10-05T21:55:25Z | null | 1 | 0 | 59 | 0 | 0 | 2 | null | null | TypeScript |
AbhijitSarker/chat--gpt3 | main | # GPT-3 Clone
- React Functional components
- React file and folder structure
- Fundamental CSS properties to master flex & grid
- CSS BEM Model
- From soft and pleasant animations to complex gradients
- Perfectly placed media queries for satisfactory responsiveness covering almost all devices
| Modern UI / UX design | bem,css,javascript,react | 2023-09-01T07:11:03Z | 2023-09-04T07:23:57Z | null | 1 | 0 | 14 | 0 | 0 | 2 | null | null | CSS |
CoderMungan/E-Commerce-Django-Api-Mvc | main | # Yapı
1- Django FrameWork ile Mvc yapısıyla yazılmıştır.
2- Http aracılığıyla Jsonresponse döndürülerek Api yazılmıştır.
3- Üyelik, Ürün, Yorum, Sepet, Profil, Kategori modülleri mevcuttur.
4- Hakkımızda ve iletişim sayfası dahil olmak üzere tüm sayfa tamamen back-end tarafında admin panelden değiştirilebilir.
5- Junior iken yazdığım E-Ticaret Sayfasıdır tekrarları mağzur görün. (Middleware, AbstracUser, BaseAbstracUser gibi işi kolaylaştıran taraflar yazılmadan sunulmuştur. Pratik Amaçlıdır.)
# Görseller
<img width="1440" alt="Ekran Resmi 2023-09-15 01 18 31" src="https://github.com/CoderMungan/E-Commerce-Django-Api-Mvc/assets/126997544/70b49408-9896-4a7a-9dd8-4cd2e8c933cf">
<img width="1440" alt="Ekran Resmi 2023-09-15 01 18 57" src="https://github.com/CoderMungan/E-Commerce-Django-Api-Mvc/assets/126997544/614f122f-a243-4317-a865-2d5c9fb6eddf">
<img width="1440" alt="Ekran Resmi 2023-09-15 01 20 51" src="https://github.com/CoderMungan/E-Commerce-Django-Api-Mvc/assets/126997544/d23a9938-2c3b-47d5-b050-54aa10bf564a">
<img width="1440" alt="Ekran Resmi 2023-09-15 01 20 12" src="https://github.com/CoderMungan/E-Commerce-Django-Api-Mvc/assets/126997544/dbcf1064-af94-4ac7-a2b3-e4d2ad0197e1">
<img width="1440" alt="Ekran Resmi 2023-09-15 01 19 38" src="https://github.com/CoderMungan/E-Commerce-Django-Api-Mvc/assets/126997544/c9a6dd08-e618-4053-a772-e3d6f8291fb6">
<img width="1440" alt="Ekran Resmi 2023-09-15 01 20 32" src="https://github.com/CoderMungan/E-Commerce-Django-Api-Mvc/assets/126997544/18f511ce-129b-40d7-a0c5-c665479d7ed6">
<img width="1440" alt="Ekran Resmi 2023-09-15 01 20 00" src="https://github.com/CoderMungan/E-Commerce-Django-Api-Mvc/assets/126997544/5ad72912-d1d6-410c-b35f-cf1ac4f42959">
<img width="1440" alt="Ekran Resmi 2023-09-15 01 18 47" src="https://github.com/CoderMungan/E-Commerce-Django-Api-Mvc/assets/126997544/53866b6b-901d-4e73-bdf6-4033a7eafc51">
<img width="1440" alt="Ekran Resmi 2023-09-15 01 20 16" src="https://github.com/CoderMungan/E-Commerce-Django-Api-Mvc/assets/126997544/395c0b38-1d28-443e-a896-c110e33d9f53">
<img width="1440" alt="Ekran Resmi 2023-09-15 01 18 25" src="https://github.com/CoderMungan/E-Commerce-Django-Api-Mvc/assets/126997544/aad167f2-d938-4305-88cd-98a2d029e29a">
<img width="1440" alt="Ekran Resmi 2023-09-15 01 19 31" src="https://github.com/CoderMungan/E-Commerce-Django-Api-Mvc/assets/126997544/9a802b96-dfe0-4202-a4bd-e0ca663755b0">
<img width="1440" alt="Ekran Resmi 2023-09-15 01 19 47" src="https://github.com/CoderMungan/E-Commerce-Django-Api-Mvc/assets/126997544/6287d520-8c12-4193-b965-14fa42b25038">
<img width="1440" alt="Ekran Resmi 2023-09-15 01 19 05" src="https://github.com/CoderMungan/E-Commerce-Django-Api-Mvc/assets/126997544/07564c02-8fbf-45c5-a716-e2de02c6ffe1">
| null | django,django-api,django-rest-framework,e-ticaret,ecommerce,javascript | 2023-08-20T09:56:05Z | 2023-09-18T17:12:18Z | null | 2 | 3 | 99 | 0 | 0 | 2 | null | MIT | CSS |
valentinoarballo/TeslaClon | master | # Astro Starter Kit: Basics
```
npm create astro@latest -- --template basics
```
[](https://stackblitz.com/github/withastro/astro/tree/latest/examples/basics)
[](https://codesandbox.io/p/sandbox/github/withastro/astro/tree/latest/examples/basics)
[](https://codespaces.new/withastro/astro?devcontainer_path=.devcontainer/basics/devcontainer.json)
> **How does it look?** Check [this preview nephew](https://animated-taffy-0fb30b.netlify.app/)

## 🚀 Project Structure
Inside of this Astro project, you'll see the following folders and files:
```
/
├── public/
│ └── favicon.svg
│ └── some-pictures.png
├── src/
│ ├── components/
│ │ └── Card.astro
│ ├── layouts/
│ │ └── Layout.astro
│ └── pages/
│ └── index.astro
└── package.json
```
Astro looks for `.astro` or `.md` files in the `src/pages/` directory. Each page is exposed as a route based on its file name.
There's nothing special about `src/components/`, but that's where we like to put any Astro/React/Vue/Svelte/Preact components.
Any static assets, like images, can be placed in the `public/` directory.
## Commands
All commands are run from the root of the project, from a terminal:
| Command | Action |
| :------------------------ | :----------------------------------------------- |
| `npm install` | Installs dependencies |
| `npm run dev` | Starts local dev server at `localhost:4321` |
| `npm run build` | Build your production site to `./dist/` |
| `npm run preview` | Preview your build locally, before deploying |
| `npm run astro ...` | Run CLI commands like `astro add`, `astro check` |
| `npm run astro -- --help` | Get help using the Astro CLI |
| Tesla landing clone with Astro, Tailwind CSS and JavaScript | astro,astrojs,javascript,tailwindcss,tesla | 2023-09-09T19:17:33Z | 2023-12-08T18:30:27Z | null | 1 | 8 | 31 | 0 | 0 | 2 | null | null | Astro |
FoXDev-404/Web-Development | main | # Web Development Learning Journey 🚀

Welcome to my Web Development Learning Journey! This repository documents my progress and the exciting things I'm learning in the world of web development. Whether you're a fellow learner, a future employer, or just curious, feel free to explore and follow along.
## About Me 👋
I'm a passionate web development enthusiast on a mission to master the art of crafting dynamic and user-friendly websites. I'm diving deep into HTML, CSS, JavaScript, and exploring the fascinating world of frameworks, libraries, and more.
## What's Inside 📚
This repository is my personal space to organize and showcase my web development journey:
- **Projects:** You'll find folders for various projects I've built, each showcasing different skills and concepts I've learned.
- **Challenges:** From coding challenges to small projects, I'm tackling them to solidify my skills and test my knowledge.
## Learning Goals 🎯
- Master the fundamentals of HTML, CSS, and JavaScript to build solid foundations.
- Explore responsive web design and mobile-first development principles.
- Dive into front-end libraries and frameworks (like React, Vue) for creating interactive user interfaces.
- Learn about back-end technologies and databases to build full-stack applications.
## Connect with Me 🌐
I'm excited to connect with fellow learners, mentors, and professionals in the web development community:
- 📧 Email: rajpal010304@gmail.com
- 📸 Instagram: [@FoXDev_404](https://www.instagram.com/FoXDev_404/)
- 🐦 Twitter: [@rajpal010304](https://twitter.com/rajpal010304)
- 💼 LinkedIn: [Rajpal Nishad](https://www.linkedin.com/in/rajpalnishad/)
## Acknowledgments 🙌
A big shoutout to the amazing online communities, tutorials, and resources that have been guiding me on this exciting journey!
Let's learn and code together! Feel free to explore my projects, follow my progress, and reach out if you'd like to connect.
| This repository documents my progress and the exciting things I'm learning in the world of web development. | html,css,javascript,expressjs,nodejs | 2023-08-26T20:17:29Z | 2024-01-21T10:29:12Z | null | 1 | 0 | 210 | 0 | 0 | 2 | null | MIT | HTML |
suryakant-greytip/CodeSwapper | Main-B | # 🚀 CodeSwapper Web Application

CodeSwapper is an advanced code converter software engineered for seamless translation between programming languages, fortified with code debugging and quality assurance functionalities. Leveraging cutting-edge technologies such as Java, Spring Boot, HTML, CSS, JavaScript, and integrated generative AI, this solo project was completed in just 2 days.

## 🌟 Features
- Code conversion from various programming languages. 🔄
- Code debugging functionality. 🐞
- Code quality review with suggestions. 📊
## 🛠️ Technologies Used
- HTML5
- CSS3
- JavaScript
- Java
- Spring Boot
- ChatGPT API
- Ace Editor
## ⚙️ Installation
1. Clone this repository to your local machine.
```bash
git clone https://github.com/clrsurya11/CodeSwapper.git
```
2. Navigate to the project directory.
```bash
cd CodeSwapper
```
3. Install the dependencies for the back end.
```bash
cd ../server
mvn install
```
## 🚀 Usage
1. Start the back end server.
```bash
cd ../server
mvn spring-boot:run
```
2. Open the front end deployed link.
```netlify
https://65024128f68e5861b3a09232--timely-paprenjak-5ce195.netlify.app/
```
3. Open your web browser and navigate to https://65024128f68e5861b3a09232--timely-paprenjak-5ce195.netlify.app/.
## ⚙️ Configuration
To configure the ChatGPT API and other settings, you can modify the `.env` files in the `client` directory.
## 🤝 Contributing
Contributions are welcome! If you'd like to contribute to this project, please follow these steps:
1. Fork the repository. 🍴
2. Create a new branch for your feature or bug fix. 🌿
3. Make your changes and commit them. 💾
4. Push your changes to your fork. 🚀
5. Submit a pull request to the main repository. 📤
## 🙏 Acknowledgments
- Thanks to the [Ace Editor](https://ace.c9.io/) for providing the code editor component. 👏
- Special thanks to the ChatGPT team for the API. 🌟
```
| CodeSwapper is an advanced code converter software engineered for seamless translation between programming languages, fortified with code debugging and quality assurance functionalities. Leveraging cutting-edge technologies such as Java, Spring Boot, HTML, CSS, JavaScript, and integrated generative AI, this solo project was completed in just 2 days | chatgpt-api,css3,html5,java,javascript,spring-boot | 2023-09-05T20:21:35Z | 2023-09-13T23:11:15Z | null | 1 | 0 | 6 | 0 | 0 | 2 | null | null | Java |
ankitjha2603/3d-resume | main | null | See how I transformed my basic HTML, CSS, and JavaScript resume into something exciting! Using Three.js, I gave my resume a 3D makeover. It's not just a regular resume anymore – you can interact with it and even have some fun. Check it out! | 3d-website,canvas,css3,dat-gui,html5,javascript,threejs | 2023-08-23T01:11:36Z | 2023-11-20T19:23:36Z | null | 1 | 0 | 6 | 0 | 1 | 2 | null | null | JavaScript |
Rafa-KozAnd/E-commerce_Books_Front-End | main | <p align="center">
<img src="http://img.shields.io/static/v1?label=STATUS&message=Concluded&color=blue&style=flat"/>
<img alt="GitHub language count" src="https://img.shields.io/github/languages/count/Rafa-KozAnd/E-commerce_Books_Front-End">
<img alt="GitHub language count" src="https://img.shields.io/github/languages/top/Rafa-KozAnd/E-commerce_Books_Front-End">
<img alt="GitHub repo file count" src="https://img.shields.io/github/directory-file-count/Rafa-KozAnd/E-commerce_Books_Front-End">
<img alt="GitHub repo size" src="https://img.shields.io/github/repo-size/Rafa-KozAnd/E-commerce_Books_Front-End">
<img alt="GitHub language count" src="https://img.shields.io/github/license/Rafa-KozAnd/E-commerce_Books_Front-End">
</p>
# E-commerce_Books_Front-End
- Project Name: 'E-commerce Books - Front-End';
- Languages: 'Angular - TypeScript';
- Softwares/Work Tools: 'V.S. Code';
- Resume: E-commerce of books developed in two repositories, Back-End with C# and Front-End with Angular, made in the DIO platform (https://web.dio.me/play).
-> BackEnd: (https://github.com/Rafa-KozAnd/E-commerce_Books_Back-End); <br>
-> FrontEnd: (https://github.com/Rafa-KozAnd/E-commerce_Books_Front-End);.
- Obs: Example;
- Version: v.1.0.0
- Last Update Date: 26/08/2023.
## Bookstore
This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 12.2.2.
## Development server
Run `ng serve` for a dev server. Navigate to `http://localhost:4200/`. The app will automatically reload if you change any of the source files.
## Code scaffolding
Run `ng generate component component-name` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module`.
## Build
Run `ng build` to build the project. The build artifacts will be stored in the `dist/` directory.
## Running unit tests
Run `ng test` to execute the unit tests via [Karma](https://karma-runner.github.io).
## Running end-to-end tests
Run `ng e2e` to execute the end-to-end tests via a platform of your choice. To use this command, you need to first add a package that implements end-to-end testing capabilities.
## Further help
To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI Overview and Command Reference](https://angular.io/cli) page.
| E-commerce of books developed in two repositories, Back-End with C# and Front-End with Angular, made in the DIO platform (https://web.dio.me/play). -> BackEnd: (https://github.com/Rafa-KozAnd/E-commerce_Books_Back-End); -> FrontEnd: (https://github.com/Rafa-KozAnd/E-commerce_Books_Front-End); | angular,dio,frontend,javascript,tipescript | 2023-08-26T16:57:20Z | 2023-08-26T17:00:10Z | null | 1 | 0 | 2 | 0 | 0 | 2 | null | null | TypeScript |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.