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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
HNSharma-07/JavaScript-Journey | main | # JavaScript Journey🚀
Complete JavaScript from Beginning to Mastery - Unlock the Power of Web Development⚡
<hr>
## Description:📝
- Welcome to the ultimate JavaScript repo designed to take you from a beginner to a JavaScript master! Whether you're just starting your coding journey or looking to enhance your skills, this comprehensive tutorial cover everything from the basics to advanced concepts.
- This repository contains the various varaities of projects and notes to master the JS.
- Also i am going to cover every advanced stuff of senior developer so that any one can master JS and get their hands dirty on any advanced JS framework.
### <a href="https://github.com/HNSharma-07/JavaScript-Tutorials">👉JavaScript Tutorials📓</a>
### Prerequisites:📍
- Only basics of HTML and CSS
- Nothing else
### Expectation after this:🥇
- You will be able to learn any advanced JS framework
- Able to sit in senior level JS Developer interview
### Latest update of the journey🗺️
<a href="https://replit.com/@CodeWithHarsh?path=folder/JS%20Mastery">My Repl</a>
## Future Plans:🎯
Further I am going to cover following things:
- Interview Questions
- Web Performance
- Testing
- And other Latest concepts...
| Complete JavaScript from Beginning to Mastery - Unlock the Power of Web Development⚡ | javascript | 2024-01-29T15:49:06Z | 2024-04-19T05:50:06Z | null | 2 | 2 | 23 | 0 | 1 | 7 | null | null | HTML |
NahidAhmed47/react-popupkit | master | # react-popupkit
A lightweight and easy-to-use react component for creating functional popup without managing state or function handling. Just call the component, apply your styles, and enjoy optimized magical `popup`.
## Features
- **✅ Easy to use 🚀**
- **✅ TypeScript Support 👌**
- **✅ State and functions fully accessible**
- **✅ No default styles are provided. It's depend on you 👌 (js, CSS, styled-components)**
## Installation
This package is available in NPM repository as `react-popupkit`. It will work correctly with all popular bundlers.
```bash
npm install react-popupkit --save
```
or
```bash
yarn add react-popupkit
```
## Quick Demo
Step 01: To start using `react-popupkit`, you just need to import the component from the `react-popupkit` package.
```jsx
import Popup from 'react-popupkit'
```
Step 02: Call the component where you want to use and make popup button:
```jsx
export const App = () => {
return (
<Popup>
<Popup.Button>
{/* set styles inside <Popup.Button> component */}
{/* button content will be here */}
</Popup.Button>
</Popup>
)
}
```
Step 03: Call the popup body component with your custom styles and take all contents inside the body component. (The package has no styles provided):
```jsx
export const App = () => {
return (
<Popup>
<Popup.Button>
{/* set styles inside <Popup.Button> component */}
{/* button content will be here */}
</Popup.Button>
<Popup.Body>
{/* Body content goes here with your custom styles */}
</Popup.Body>
</Popup>
)
}
```
Great! you're done.
## Example
```jsx
export const App = () => {
return (
<Popup>
<Popup.Button className='font-medium px-3 py-1.5 rounded-md bg-slate-600 text-white'>
{/* Replace this with your actual button content */}
Click me
</Popup.Button>
<Popup.Body>
{/* Replace this with your actual popup content */}
<ul className='w-fit whitespace-nowrap h-fit rounded-md bg-zinc-100 border absolute top-full left-full'>
<Popup.TriggerClose>
<li className='text-center py-1 border-b border font-sans cursor-pointer hover:bg-zinc-200 px-10'>
Item 1
</li>
</Popup.TriggerClose>
<Popup.TriggerClose>
<li className='text-center py-1 border-b border font-sans cursor-pointer hover:bg-zinc-200'>Item 2</li>
</Popup.TriggerClose>
<Popup.TriggerClose>
<li className='text-center py-1 border-b border font-sans cursor-pointer hover:bg-zinc-200'>Item 3</li>
</Popup.TriggerClose>
</ul>
</Popup.Body>
</Popup>
)
}
```
- Note: If you use next.js 13 or later (App router) then please make sure use `use client` in the top of the file.
## Hooks with example
If you want to close depends on a specific event then you can do it by `useClosePopup()` hook:
```jsx
import { useClosePopup } from 'react-popupkit'
export const App = () => {
// get close function by using useClosePopup() from react-popupkit
const closePopup = useClosePopup()
useEffect(() => {
// simple api fetch data
const userData = async () => {
const res = await fetch(`url_here`)
const data = await res.json()
if (data.success) {
// popup close after successfully fetch data
closePopup()
}
}
}, [])
return {
/* ...codes */
}
}
```
## Custom state handling
If you want to use in many place of this popup state. Then you can check below example:
```jsx
export const App = () => {
const [isPopupOpen, setIsPopupOpen] = useState(false)
return (
<div>
<Popup isOpen={isPopupOpen} setIsOpen={setIsPopupOpen}>
{/* ...codes */}
</Popup>
{/* handling others thing by depend on Popup state */}
{isPopupOpen && <p>Popup is open!</p>}
</div>
)
}
```
## Usable Components
| Name | Value | Required | Description |
| ------------------------------------------- | --------------------------------- | -------- | ---------------------------------------------------------------------- |
| `<Popup></Popup>` | Others components as a `children` | Yes | Parent wrapper component. |
| `<Popup.Button></Popup.Button>` | `children` | Yes | Make the button for click to open popup. |
| `<Popup.Body></Popup.Body>` | `children` | Yes | Wrap by body component of the desired popup contents |
| `<Popup.TriggerClose></Popup.TriggerClose>` | `children` | No | Wrap the item to which one you want to close the popup after clicking. |
## Props and hooks
| Name | Value | Required | Description |
| ----------------- | ---------- | -------- | ------------------------------------------------------------------------------- |
| `useClosePopup()` | `null` | No | Get access of popup close from anywhere of this component. |
| `isOpen` | `boolean` | No | When handle custom state then use this in the `<Popup>` component. |
| `setIsOpen` | `function` | No | Receive a function that handle state change and use in the `<Popup>` component. |
| `toggle` | `boolean` | No | If want to stop making toggle in `<Popup.Button>` and default true. |
| `className` | `string` | No | Additional CSS class names for styling purposes. |
## Advanced Usage
- Include Popup.TriggerClose for close after click any item into the popup.
- Use conditional rendering or props.
- Control close popup by useClosePopup() hooks.
## Licence
- MIT
## Maintainers
<table>
<tbody>
<tr>
<td align="center">
<a href="https://nahid-ahmed.netlify.app/" target="_blank">
<img width="150" height="150" src="https://avatars.githubusercontent.com/u/121648135?s=400&u=bacda54a66f53fa97ff1258b5abb989454a31f7e&v=4">
</br>
</a>
<p>Nahid Ahmed</p>
<div>
<a href="https://www.linkedin.com/in/nahid-ahmed-281901212/" target="_blank">
<img src="https://img.shields.io/badge/LinkedIn-0077B5?style=for-the-badge&logo=linkedin&logoColor=white" />
</a>
</div>
</td>
</tr>
<tbody>
</table>
| A lightweight and easy-to-use react component for creating functional popup without managing state or function handling. Just call the component, apply your styles, and enjoy optimized magical popup. | npm-package,react-component,typescript,react-popupkit,javascript | 2024-02-12T05:18:34Z | 2024-03-09T06:45:58Z | 2024-03-09T06:45:58Z | 1 | 9 | 41 | 1 | 0 | 7 | null | NOASSERTION | TypeScript |
Elchin-Novruzov/Fight-game-With-JS | main | Exciting 2-Player Local Fight Game: Play Now!
Dive into an exhilarating local multiplayer brawl with this JavaScript-based web game crafted by Elchin Novruzov. Challenge your friends or family to an intense showdown where lightning-fast reflexes and strategic maneuvers reign supreme.
LinkedIn(Preview) Link: [Fight-game-With-JS](https://www.linkedin.com/posts/elchin-novruzov_2-player-local-fight-game-with-js-dive-activity-7162763508487553024-b0c_?utm_source=share&utm_medium=member_android)
Game Controls:
<br>
Player 1 Controls:
A: Move Left <br>
D: Move Right <br>
W: Jump <br>
Space: Kick
<br>
Player 2 Controls:
Left Arrow (<): Move Left <br>
Right Arrow (>): Move Right <br>
Up Arrow: Jump <br>
Down Arrow: Kick
Experience the thrill of combat as you engage in this dynamic battle of skill and wit. Are you ready to emerge victorious? Play now and let the battle begin!
| null | canvas,canvas-game,css3,html5,javascript | 2024-02-04T00:55:01Z | 2024-02-13T20:55:27Z | null | 2 | 3 | 18 | 0 | 0 | 7 | null | Apache-2.0 | JavaScript |
flowxrc/wave | main | ## 🌊 Wave.js
<img src="https://img.shields.io/badge/version-v1.0.8-blue"/> <img src="https://img.shields.io/badge/license-MIT-green"/><br/>
**Wave** is an open-source, lightweight framework for frontend development written in pure JavaScript.<br/>
It functions on a Virtual DOM tree, updating the mounted element from a stored object.<br/>
It useful for writing logical operations, adding events and rendering dynamic UI elements in your web application.
### 👋 Getting Started
- [Installing a pre-built release of wave.js](https://github.com/flowxrc/wave/wiki/Installation-(pre%E2%80%90built))
- [Bundling your own release of wave.js](https://github.com/flowxrc/wave/wiki/Bundling-source)
- [Creating your first app](https://github.com/flowxrc/wave/wiki/Creating-your-first-app)
### 📖 Wiki
You can read our new [wiki page](https://github.com/flowxrc/wave/wiki) for the latest documentation with examples. | 🌊 An open-source, lightweight framework for frontend development written in TypeScript. | cjs,commonjs,framework,frontend,javascript,js,wavejs | 2024-02-16T20:43:59Z | 2024-02-25T14:05:29Z | 2024-02-25T14:05:29Z | 1 | 0 | 17 | 0 | 0 | 7 | null | MIT | JavaScript |
SeanLuis/rest-data-validator | master | # REST Data Validator

[](https://codecov.io/gh/SeanLuis/rest-data-validator)
[](https://github.com/SeanLuis/rest-data-validator/actions/workflows/build.yml)
[](https://badge.fury.io/js/rest-data-validator)
REST Data Validator is a versatile library designed to offer comprehensive validation for data in RESTful APIs. It supports a wide range of data types, validation rules, and is designed with extensibility in mind, making it ideal for ensuring data integrity and compliance with API specifications.
### For detailed **documentation**, visit: [REST Data Validator Documentation](https://rest-data-validator.netlify.app/)

## Features
- **Comprehensive Validation**: Supports validation of strings, numbers, emails, dates, enums, files, and custom formats.
- **Decorator-based Validation**: Utilizes TypeScript decorators for easy and declarative validation directly in your class models.
- **Flexible and Extensible**: Easily extendable to include custom validation rules and logic.
- **Framework Agnostic**: Can be used with any server-side framework or library, such as Express, Koa, or Fastify.
- **Full TypeScript Support**: Leverages TypeScript for type safety and enhanced developer experience.
- **Custom Error Messages**: Allows defining custom error messages for each validation rule to provide clear and specific feedback.
# REST Data Validator
- Features
- Installation
- Usage
- Basic Example
- Using Decorators for Validation
- Custom Validation Rules
- Rest CLI
- Commands
- Model Generation
- Validation Generation
- Validators and Decorators
- ClassValidator
- Number
- Email
- Password
- Date
- Enum
- File
- Range
- Regex
- Custom
- Domain
- Array
- Nested
- Contextual
- Dependency
- Security
- Sanitizer Functions
- Validation Utilities
- Async Validators
- Nested Validators
- Contextual Validators
- Dependency Validators
- Dependency Decorator
- Introduction
- Usage
- Example
- Dependency Function
- Introduction
- Usage
- Example
- Separating Validation Logic in a Clean Architecture Approach
- Decorators Utilities
- Accessors Decorator
- Getter Decorator
- Setter Decorator
- Security Utilities
- Security Validation
- Security Decorator
- Security Events
- Roadmap
- Contributing
- Support Us
- Author
- License
## Installation
```bash
npm install rest-data-validator
```
Or using Yarn:
```bash
yarn add rest-data-validator
```
## Usage
### Basic Example
Basic usage involves importing the validators and applying them to your data models:
```typescript
import { ClassValidator, String, Number, validate } from "rest-data-validator";
@ClassValidator
class User {
@String({ minLength: 3, maxLength: 30 })
name: string;
@Number({ min: 18 })
age: number;
}
const user = new User();
user.name = "John Doe";
user.age = 25;
// It would return true since the conditions are met, otherwise it would throw an exception.
// And using the validator manually
const beforeDate = new Date("2024-12-31");
const afterDate = new Date("2020-01-01");
const options = { before: beforeDate, after: afterDate };
const validDateString = "2022-06-15";
const validationResult = validateDate(validDateString, options).isValid;
console.log(validationResult); // false;
```
### Using Decorators for Validation
Decorators can be applied to class properties to specify the validation rules directly in the model definition:
```typescript
import {
String,
Number,
Enum,
ClassValidator
} from "rest-data-validator";
enum Role {
Admin,
User,
Guest,
}
@ClassValidator
class UserProfile {
@String({ minLength: 2, maxLength: 100 })
username: string;
@Number({ min: 1, max: 100 })
level: number;
@Enum({ enum: Role })
role: Role;
}
const profile = new UserProfile();
profile.username = "validator";
profile.level = 5;
profile.role = Role.User;
```
### Custom Validation Rules
For more complex validation scenarios, custom validators can be created and used:
```typescript
import { IValidationResult, validateCustom } from "rest-data-validator";
function customUsernameValidator(value: string): IValidationResult {
const isValid = /^[a-zA-Z0-9]+$/.test(value);
return {
isValid,
errors: isValid
? []
: ["Username must only contain alphanumeric characters."],
};
}
const result = validateCustom("user123", customUsernameValidator);
console.log(result);
```
## Roadmap
The `rest-data-validator` project aims to continually evolve with the needs of developers and the dynamics of RESTful API design. Below is a tentative roadmap of features and improvements we're exploring:
### Upcoming Features
- [X] **Nested Validation Support**: Implement validation for complex, nested data structures to accommodate intricate API schemas.
- [X] **Asynchronous Validators**: Introduce validators capable of handling asynchronous operations, useful for database lookups or external API validations.
- [ ] **Internationalization**: Offer localized error messages to better serve a global user base.
- [ ] **Sanitization Enhancements**: Expand sanitization utilities for preprocessing data, ensuring robust input handling before validation.
- [ ] **Framework Middleware**: Develop middleware for seamless integration with popular server frameworks like Express and NestJS.
- [ ] **Runtime Type System Integration**: Explore compatibility with runtime type validation libraries to enhance JavaScript validation capabilities.
- [X] **CLI Tooling**: Build CLI tools for generating validator schemas from TypeScript type definitions, aiding in rapid development cycles.
- [ ] **Plugin Architecture**: Create an extensible plugin system allowing custom validators and sanitizers, fostering community-driven enhancements.
- [ ] **Performance Optimization**: Profile and optimize the core validation logic to efficiently handle large datasets and reduce overhead in high-throughput environments.
- [ ] **GUI for Schema Building**: Provide a graphical interface for constructing and exporting validation schemas, streamlining the setup process for `rest-data-validator`.
We welcome community input and contributions to help shape the future of `rest-data-validator`. If you have ideas or features you’d like to see, please open an issue to start the conversation.
Note: The roadmap is subject to change and reflects current planning and priorities.
## Contributing
Contributions are welcome! Please read our contributing guide for details on our code of conduct, and the process for submitting pull requests to us.
## Support Us
If you find the REST Data Validator helpful or interesting, please consider giving it a star on GitHub! 🌟 Your support encourages us to continue developing and maintaining this project.
### Why Star Us?
- **Recognition:** A star is a token of appreciation that motivates open-source contributors.
- **Feedback:** It tells us that our work is valued, guiding us on what features or improvements to prioritize.
- **Visibility:** More stars increase our project's visibility, helping others discover this tool.
### How to Star Our Repository
1. Visit the [REST Data Validator GitHub page](https://github.com/SeanLuis/rest-data-validator).
2. In the top-right corner of the page, click the "Star" button.
3. That's it! You've just made our day a little brighter.
Your star is much more than just a number to us – it's a sign that we're on the right track. Thank you for your support, and we hope REST Data Validator helps you in managing and validating your RESTful APIs more effectively.
Feel free to explore the repository, check out the latest updates, and contribute if you can. Together, we can make REST Data Validator even better!
## Author
- **Sean Luis Guada Rodriguez** - [Visit Website](https://sean-rodriguez.vercel.app)
## License
This project is licensed under the MIT License - see the [LICENSE.md](https://github.com/SeanLuis/rest-data-validator/blob/master/LICENSE) file for details.
| REST Data Validator is a versatile library designed to offer comprehensive validation for data in RESTful APIs. It supports a wide range of data types, validation rules, and is designed with extensibility in mind, making it ideal for ensuring data integrity and compliance with API specifications. | api,data-validation,decorators,framework,javascript,nodejs,rest,rest-api,schema,typescript | 2024-02-28T03:31:19Z | 2024-05-13T15:00:16Z | 2024-05-13T15:00:16Z | 2 | 15 | 139 | 0 | 1 | 7 | null | MIT | TypeScript |
Arquisoft/wiq_es1c | master | # wiq_es1c
[](https://github.com/Arquisoft/wiq_es1c/actions/workflows/release.yml)
[](https://sonarcloud.io/summary/new_code?id=Arquisoft_wiq_es1c)
[](https://sonarcloud.io/summary/new_code?id=Arquisoft_wiq_es1c)
[](https://github.com/Arquisoft/wiq_es1c/issues)
[](https://github.com/Arquisoft/wiq_es1c/issues?q=is%3Aissue+is%3Aclosed)
[](https://github.com/Arquisoft/wiq_es1c/pulls)
[](https://opensource.org/)
[](https://codescene.io/projects/52509)
[](https://codescene.io/projects/52509)
[](https://codescene.io/projects/52509)
<p align="center">
<a href = "http://wiqgame.run.place/" title= "Pagina web">
<img src="https://github.com/Arquisoft/wiq_es1c/blob/master/media/img/wiq_banner_readme.png">
</a>
</p>
This repo is an application composed of several components:
- **Userdetails service**. Express service that handles aggregation of user data.
- **Auth service**. Express service that handles the authentication of users.
- **Game service**. Express service that handles the game itself.
- **Friend service**. Express service that handles the friends.
- **Question service**. Express service that handles the questions generation and distribution.
- **Webapp**. React web application that uses the gateway service to allow basic login and new user features.
## Description
This project has been developed by the contributors listed in the following section, as part of the **Software Architecture course at the University of Oviedo** for the academic year 2023/2024.
**WIQ** is a game inspired in the popular spanish show *"Saber y Ganar"*, where players must answer questions from different topics by choosing one of the options given to them.
The questions in the game are generated automatically, keeping the game interesting and not repetitive.
In addition you will be able to choose the topics you want to answer questions about from our topic list. Along with this we have several game modes related to the gameplay, such as answering as many questions as you can at a time
## Contributors
<img align="right" width="220" height="220" src="media/gif/limbani-monkey.gif">
<table>
<tr>
<td>Rubén Fernández Valdés</td>
<td><a href="https://github.com/RubenFern"><img alt="Github de Rubén" src="https://img.shields.io/badge/Rub%C3%A9n-lightgray?logo=github"></a></td>
</tr>
<tr>
<td>Manuel de la Uz González</td>
<td><a href="https://github.com/Manueluz"><img alt="Github de Manuel" src="https://img.shields.io/badge/Manuel-lightgray?logo=github"></a></td>
</tr>
<tr>
<td>Yago Fernández López</td>
<td><a href="https://github.com/uo289549"><img alt="Github de Yago" src="https://img.shields.io/badge/Yago-lightgray?logo=github"></a></td>
</tr>
<tr>
<td>Noel Expósito Espina</td>
<td><a href="https://github.com/22Noel"><img alt="Github de Noel" src="https://img.shields.io/badge/Noel-lightgray?logo=github"></a></td>
</tr>
<tr>
<td>Manuel González Santos</td>
<td><a href="https://github.com/gs-Manuel"><img alt="Github de Manuel" src="https://img.shields.io/badge/Manuel-lightgray?logo=github"></a></td>
</tr>
<tr>
<td>Javier Monteserín Rodríguez</td>
<td><a href="https://github.com/uo288524"><img alt="Github de Javier" src="https://img.shields.io/badge/Javier-lightgray?logo=github"></a></td>
</tr>
</table>
| WIQ ES1c | docker,expressjs,javascript,mariadb,microservice,react,wikidata | 2024-01-25T16:48:54Z | 2024-04-28T17:53:57Z | 2024-04-27T22:50:37Z | 10 | 130 | 818 | 13 | 1 | 7 | null | null | JavaScript |
spring-boot-react/full-stack-spring-boot-security-jwt-postgresql-docker-nextjs | main | # Full Stack application with Spring Boot backend, Security with JWT, PostgreSQL database, Docker containerization and a Next.js frontend
<b>Author:</b> <a href="https://github.com/spring-boot-react" target="_blank">Full Stack Developer</a><br>
<b>Collaborator(s):</b> <a href="https://github.com/darksos34" target="_blank">Jordy Coder</a><br>
<b>Created:</b> 2024-03-11<br>
<b>Last updated:</b> 2024-03-24
This repository serves as a demonstration on how to create a robust and scalable security application with <b>Spring Security and JWT</b>.<br>
Within this repository, the following technologies are applied:
- []() []() []()
- []() []() []()
- []()
<br>
## 1 Installation Prerequisites
- <a href="https://maven.apache.org/download.cgi" target="_blank">Maven</a>
- <a href="https://adoptium.net" target="_blank">Java 21</a> or higher
- <a href="https://www.docker.com/products/docker-desktop/" target="_blank">Docker Desktop</a>
- IDE (of your choice)
<br>
_**Note:** Make sure to disable any local PostgreSQL installation when running this application._
## 2 Project Installation
Open a new command line.
- Clone the repository:
```bash
git clone https://github.com/spring-boot-react/full-stack-spring-boot-security-jwt-postgresql-docker-nextjs.git
```
- Go into the ```backend``` folder:
```bash
cd backend
```
- Build the project using Maven:
```bash
mvn clean install
```
- Run the <strong>Spring Boot</strong> application:
```bash
mvn spring-boot:run
```
The application will start on port: ```http://localhost:8081```
## 3 Setup the PostgreSQL Database
1. Access PGAdmin via ```http://localhost:5050```
2. Set a master password for PGAdmin, for example ```root```
3. Within the _Quick Links_ section, click **Add New Server**
- General tab - Name: ```postgres```
- Connection tab - Host name/address: ```postgres```
- Connection tab - Username: ```username```
- Connection tab - Password: ```password```
## 4 API Endpoints
To avoid as much manual work as possible, a Postman collection is provided for you to import within your Postman installation.<br>
This file can be found in ```src/main/resources/data/postman/import/collection-import.json```

<i>**NOTE:** Use the tokens, provided to you in the terminal, to access the secured endpoints:</i>

## 5 I18N Internationalization
I18N Internationalization is implemented as part of the raised enhancement issue [Implement I18N Internationalization](https://github.com/spring-boot-react/full-stack-spring-boot-security-jwt-postgresql-docker-nextjs/issues/4).
### 5.1 Internationalization with logging
A default logging language is set within the `.env` file.<br>
Key: `LOGGING_LANGUAGE`<br>
The value can be either of the following:
`en`
`de`
`nl`
The already set logging languages will change language automatically.
To use this functionality, simply use following code:
```java
translateService.getLogMessage(String code);
```
`code`: for example `jwt.si.invalid.signature`
The code is the key you use within the `main/resources/i18n` properties files.
<b>NOTE:</b> you can also make use of arguments.
### 5.2 Internationalization with JSON response messages
To use this functionality, see following code example:
```java
translateService.getMessage(String code, String[] args);
private Book findById(int id) {
return bookRepository.findById(id)
.orElseThrow(() -> new ResourceNotFoundException("book.si.not.found", new String[]{String.valueOf(id)}));
}
```
The code is the key you use within the `main/resources/i18n` properties files.
<b>NOTE:</b> this example uses arguments, which can be accessed within the properties file accordingly. | Full Stack application with Spring Boot backend, Security with JWT, PostgreSQL database, Docker containerization and a Next.js frontend | docker,docker-compose,dockerfile,java,javascript,jwt,nextjs,postgresql,spring-boot,spring-security | 2024-03-10T07:26:04Z | 2024-03-24T21:36:20Z | 2024-03-18T10:58:29Z | 2 | 6 | 29 | 8 | 0 | 7 | null | MIT | Java |
virag-ky/100DaysOfCode-Challenge | main | # 100DaysOfCode challenge
### Join the daily challenges: [iCodeThis](https://iCodeThis.com/?ref=virag)
| Day 1 | Day 2 |
|---|---|
| [](https://www.youtube.com/embed/V4pgkv5WxHQ) | [](https://www.youtube.com/embed/N-HL-IJWXoc) |
| Day 3 | Day 4 |
|---|---|
| [](https://www.youtube.com/embed/-YbD9LOOCy8) | [](https://www.youtube.com/embed/dsdk2gLGFYo)
| Day 5 | Day 6 |
|---|---|
| [](https://www.youtube.com/embed/_r5XCURO50Q) | [](https://www.youtube.com/embed/nzf4rPxp1r0)
| Day 7 | Day 8 |
|---|---|
| [](https://www.youtube.com/embed/o9lo3IJnvDA) | [](https://www.youtube.com/embed/CcMCpA2A_VI)
| Day 9 | Day 10 |
|---|---|
| [](https://www.youtube.com/embed/NwUGlDIfPq4) | [](https://www.youtube.com/embed/JMI8gtBjkKg)
| Day 11 | Day 12 |
|---|---|
| [](https://www.youtube.com/embed/xPaw07YoArE) | [](https://www.youtube.com/embed/InAPCn4cwm4)
| Day 13 | Day 14 |
|---|---|
| [](https://www.youtube.com/embed/9HrXEHENS1k) | [](https://www.youtube.com/embed/jpOEZfsBdTg)
| Day 15 | Day 16 |
|---|---|
| [](https://www.youtube.com/embed/Ofz9p_yjq3Y) | [](https://www.youtube.com/embed/B4rmeB1S67o)
| Day 17 | Day 18 |
|---|---|
| [](https://www.youtube.com/embed/xbKB9kHEEYI) | [](https://www.youtube.com/embed/8v1CRonr7b4)
| Day 19 | Day 20 |
|---|---|
| [](https://www.youtube.com/embed/usHPR3YL_vQ) | [](https://www.youtube.com/embed/zLM81u9yfTo)
| Day 21 | Day 22 |
|---|---|
| [](https://www.youtube.com/embed/u-dE9ztTaqg) | [](https://www.youtube.com/embed/DJTYp0cRsXw)
| Day 23 | Day 24 |
|---|---|
| [](https://www.youtube.com/embed/e_Fx47WzNSU) | [](https://www.youtube.com/embed/eJQHAkE7v10)
| Day 25 | Day 26 |
|---|---|
| [](https://www.youtube.com/embed/CD_t1RPg-dA) | [](https://www.youtube.com/embed/UH9S3O7lrto)
| Day 27 | Day 28 |
|---|---|
| [](https://www.youtube.com/embed/IhxtSMVN-Zk) | [](https://www.youtube.com/embed/vYwt2Y8j6Ho)
| Day 29 | Day 30 |
|---|---|
| [](https://www.youtube.com/embed/xbKB9kHEEYI) | [](https://www.youtube.com/embed/elJ5vudY_ms)
| Day 31 | Day 32 |
|---|---|
| [](https://www.youtube.com/embed/VmWuwTvZayg) | [](https://www.youtube.com/embed/u7RBSCN9UFo)
| Day 33 | Day 34 |
|---|---|
| [](https://www.youtube.com/embed/uQNUSSZNPeM) | [](https://www.youtube.com/embed/3M-yC7ZpOtg)
| Day 35 | Day 36 |
|---|---|
| [](https://www.youtube.com/embed/TugmZDdbJVo) | [](https://www.youtube.com/embed/Qj7eFFRA31Q)
| Day 37 | Day 38 |
|---|---|
| [](https://www.youtube.com/embed/KK8KqlIf1H4) | [](https://www.youtube.com/embed/Sw5348-so2U)
| Day 39 | Day 40 |
|---|---|
| [](https://www.youtube.com/embed/R7Jk8OybTVc) | [](https://www.youtube.com/embed/fdWxqmofoyE)
| Day 41 | Day 42 |
|---|---|
| [](https://www.youtube.com/embed/fo7d7uF8VHI) | [](https://www.youtube.com/embed/ExRQRE65J80)
| Day 43 | Day 44 |
|---|---|
| [](https://www.youtube.com/embed/0ntuU3KU6hU) | [](https://www.youtube.com/embed/B3vhYlR3nm8)
| Day 45 | Day 46 |
|---|---|
| [](https://www.youtube.com/embed/milhlEtP_OU) | [](https://www.youtube.com/embed/m7SEkCFrirY)
| Day 47 | Day 48 |
|---|---|
| [](https://www.youtube.com/embed/hGhrA8vQkAI) | [](https://www.youtube.com/embed/zA-2E3I744Q)
| Day 49 | Day 50 |
|---|---|
| [](https://www.youtube.com/embed/eZQeGrKdyok) | [](https://www.youtube.com/embed/OGpR9oNn3xM)
| Day 51 | Day 52 |
|---|---|
| [](https://www.youtube.com/embed/SjQlAZn5eu8) | [](https://www.youtube.com/embed/sJvYTl08FsE)
| Day 53 | Day 54 |
|---|---|
| [](https://www.youtube.com/embed/uRwkDGpQ5bc) | [](https://www.youtube.com/embed/81C16YaWI1Q)
| Day 55 | Day 56 |
|---|---|
| [](https://www.youtube.com/embed/TdhoXVNcj1c) | [](https://www.youtube.com/embed/cF3xsZcrLFo)
| Day 57 | Day 58 |
|---|---|
| [](https://www.youtube.com/embed/8wbAE7gYAgQ) | [](https://www.youtube.com/embed/uZ5KHH0obMc)
| Day 59 | Day 60 |
|---|---|
| [](https://www.youtube.com/embed/bOIokm5cWdo) | [](https://www.youtube.com/embed/ijC4Eib1vAI)
| Day 61 | Day 62 |
|---|---|
| [](https://www.youtube.com/embed/FBC7VqENoxU) | [](https://www.youtube.com/embed/y8ORIwR4d-c)
| Day 63 | Day 64 |
|---|---|
| [](https://www.youtube.com/embed/77wn_o4VLLo) | [](https://www.youtube.com/embed/5OLx_8SsJkY)
| Day 65 | Day 66 |
|---|---|
| [](https://www.youtube.com/embed/Wu4Ovj2GrEo) | [](https://www.youtube.com/embed/KktNOgaj_rY)
| Day 67 | Day 68 |
|---|---|
| [](https://www.youtube.com/embed/_ClcSZhYfg8) | [](https://www.youtube.com/embed/UAPHRXdwbgY)
| Day 69 | Day 70 |
|---|---|
| [](https://www.youtube.com/embed/W140-6NjjvM) | [](https://www.youtube.com/embed/pOKtTl3SpmQ)
| Day 71 | Day 72 |
|---|---|
| [](https://www.youtube.com/embed/iPgWXmzXMIc) | [](https://www.youtube.com/embed/BHeUqeXC5O4)
| Day 73 | Day 74 |
|---|---|
| [](https://www.youtube.com/embed/G1XtC_3Srr0) | [](https://www.youtube.com/embed/TY2wmWEvX6w)
| Day 75 | Day 76 |
|---|---|
| [](https://www.youtube.com/embed/GyB32GgmfkM) | [](https://www.youtube.com/embed/Grdy_wYRl4Q)
| Day 77 | Day 78 |
|---|---|
| [](https://www.youtube.com/embed/Od6OAvHSRzE) | [](https://www.youtube.com/embed/hFXgjUEZ0gc)
| Day 79 | Day 80 |
|---|---|
| [](https://www.youtube.com/embed/tbFwOriX9gw) | [](https://www.youtube.com/embed/DsWadT8X-VE)
| Day 81 | Day 82 |
|---|---|
| [](https://www.youtube.com/embed/05TeFwwGGM0) | [](https://www.youtube.com/embed/ASh_ZncUOy4)
| Day 83 | Day 84 |
|---|---|
| [](https://www.youtube.com/embed/TLZ9mCh8LhY) | [](https://www.youtube.com/embed/AAOgUBPy79I)
| Day 85 | Day 86 |
|---|---|
| [](https://www.youtube.com/embed/rj1QFMHOYgk) | [](https://www.youtube.com/embed/OLHMfPMO3hc)
| Day 87 | Day 88 |
|---|---|
| [](https://www.youtube.com/embed/H4fPs1_9oeE) | [](https://www.youtube.com/embed/oijVMCv9VU8)
| Day 89 | Day 90 |
|---|---|
| [](https://www.youtube.com/embed/4EMPSOgltyE) | [](https://www.youtube.com/embed/K8XrFpTySwU)
| Day 91 | Day 92 |
|---|---|
| [](https://www.youtube.com/embed/cZB8OAdWe1M) | [](https://www.youtube.com/embed/V2YlOi41Vmk)
| Day 93 | Day 94 |
|---|---|
| [](https://www.youtube.com/embed/fvRyzlQcU-s) | [](https://www.youtube.com/embed/FVRLVPuuweI)
| Day 95 | Day 96 |
|---|---|
| [](https://www.youtube.com/embed/Ph_LI_F0diY) | [](https://www.youtube.com/embed/iBvpAyD0rMw)
| Day 97 | Day 98 |
|---|---|
| [](https://www.youtube.com/embed/xPOEOpbupEw) | [](https://www.youtube.com/embed/UYS_twVK6dk)
| Day 99 | Day 100 |
|---|---|
| [](https://www.youtube.com/embed/HckRJaIZZzc) | [](https://www.youtube.com/embed/8VWTFwFVFdA)
| This repository contains my #100DaysOfCode front-end challenges. | 100-days-of-code,100daysofcode,coding-challenge,css,front-end,html,icodethis,icodethis-challenge,javascript,webdevelopment | 2024-01-27T16:08:21Z | 2024-05-06T10:54:19Z | null | 1 | 0 | 121 | 0 | 2 | 7 | null | null | HTML |
levinunnink/html-form-to-notion | master | # Submit a HTML form to Notion
How to submit a simple HTML form to a Notion DB using only HTML and JavaScript / Node.js. A step by step guide with example source code.
This example shows how to set up a mailing list form that sends data to a Notion DB but you can use it for any sort of data.
**Contents**
1. [Set up your Notion integration](#1-set-up-your-notion-integration)
2. [Set up your Notion databse](#2-set-up-your-notion-database)
3. [Connect your integration to the databse](#3-connect-your-integration-to-the-database)
4. [Create your html form and backend](#4-create-your-html-form-and-backend)
5. [Running the examples](#running-the-examples)
6. [Issues](#issues)
## Guide
### 1. Set up your Notion integration
<img src="https://smmallcdn.net/levi/1709650003838/create-integration.gif" />
Go to the [Notion Integrations page](https://www.notion.so/my-integrations) and create a new integration for your workspace. Once you're done, copy the `Integration Secret` token.
Note: _You should not use this integration secret on the front end._
### 2. Set up your Notion Database
<img src="https://smmallcdn.net/levi/1709650420230/CleanShot%202024-03-05%20at%2009.51.49.gif" />
Create a Notion database to store the form submissions. Note the database ID from the URL. In this example we're creating a database with with two properties: `Name` and `Email`.
### 3. Connect your integration to the database
<img src="https://smmallcdn.net/levi/1709652250712/CleanShot%202024-03-05%20at%2010.23.02.gif" />
Don't miss this step. You need to give your Notion integration access to the new database. You can do this by following these steps:
1. Click on the DB menu in the top right corner ("...")
2. Select "Connect to" and select your integration from the list.
Your integration should appear beneath the "Connections" section on the menu now
### 4. Create your html form and backend
First create a file named `server.js` with the following content:
```javascript
const express = require('express');
const fetch = require('node-fetch');
const bodyParser = require('body-parser');
const app = express();
const PORT = 3000; // Choose an available port
app.use(bodyParser.json());
app.post('/submit-to-notion', async (req, res) => {
try {
const { name, email } = req.body;
const notionDatabaseId = 'YOUR_NOTION_DB';
const integrationToken = 'YOUR_NOTION_SECRET';
const url = `https://api.notion.com/v1/pages`;
const data = {
parent: { database_id: notionDatabaseId },
properties: {
Name: { title: [{ text: { content: name } }] },
Email: { email: email }
// Add more properties based on your Notion database schema
}
};
const result = await fetch(url, {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'Authorization': `Bearer ${integrationToken}`,
'Notion-Version': '2021-08-16'
},
body: JSON.stringify(data)
});
if(result.status !== 200) {
const error = await result.json();
console.error('Got error saving data', error);
return res.status(500).json({ error: error.message });
}
res.status(200).json({ message: 'Data saved to Notion!' });
} catch (error) {
console.error(error);
res.status(500).json({ error: 'Internal Server Error' });
}
});
```
Here's a minimal HTML form that posts to the server we created.
```html
<!-- index.html -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Notion Form</title>
</head>
<body>
<form id="notionForm">
<label for="name">Name:</label>
<input type="text" id="name" name="name" required>
<label for="email">Email:</label>
<input type="email" id="email" name="email" required>
<button type="submit">Submit</button>
</form>
<script>
const notionForm = document.getElementById('notionForm');
notionForm.addEventListener('submit', async function (event) {
event.preventDefault();
const name = document.getElementById('name').value;
const email = document.getElementById('email').value;
// Call the backend script to save data to Notion
await saveToNotion(name, email);
});
async function saveToNotion(name, email) {
const url = 'http://localhost:3000/submit-to-notion'; // Update with your server URL
await fetch(url, {
method: 'POST',
headers: {
'Content-Type': 'application/json',
},
body: JSON.stringify({ name, email })
})
.then(response => response.json())
.then(data => {
alert(data.message);
})
.catch(error => {
console.error('Error:', error);
alert('Failed to save data to Notion.');
});
}
</script>
</body>
</html>
```
Once this is done, you're good to go. Your form data should now be saved directly and securely into Notion each time you submit.
<img src="https://smmallcdn.net/levi/1709652355236/CleanShot%202024-03-05%20at%2010.25.33.gif" />
## Running the examples
### Basic Example
To run the example and test it yourself, follow these steps. Note, you will need Node v18+ installed to run the example.
```bash
% git clone https://github.com/levinunnink/html-form-to-notion.git
% cd html-form-to-notion/examples/basic
% npm i
% npm run start
```
For the example to work you will need to update the `server.js` with your `YOUR_NOTION_DB_ID` and `YOUR_NOTION_SECRET` values from the steps above.
Open `http://localhost:3000` to view the form.
### NextJS Example
To run the NextJS example, follow these steps.
```bash
% git clone https://github.com/levinunnink/html-form-to-notion.git
% cd html-form-to-notion/examples/nextjs
```
Create a `.env` file in the nextjs directory with the following values:
- `NOTION_DB_ID`: The ID of your Notion db.
- `NOTION_SECRET`: The secret token of your Notion Integraiton.
Then run
```bash
% npm i
% npm dev
```
## Issues?
If you want to submit your HTML forms to Notion without any backend, try a free service like [Notion Monkey](https://sheetmonkey.io/notion), which allows you to do submit forms to Notion without any backend code.
## Thanks
This example is inspired by these guides:
- [How to submit a nextjs form to Notion](https://sheetmonkey.io/blog/how-to-submit-a-nextjs-form-to-notion)
| How to submit HTML forms to Notion. | forms,guide,html,notion,notion-api,nextjs,nextjs14,javascript | 2024-03-05T15:38:57Z | 2024-03-11T17:46:02Z | null | 1 | 0 | 11 | 0 | 0 | 7 | null | MIT | null |
iamabhiCH/js-practice | master | null | Geeks for Geeks javascript problems solutions. | array,array-functions,competetive-programming,dsa,geeksforgeeks,geeksforgeeks-solutions,gfg,gfg-solutions,javascript,javascript-problems | 2024-02-12T17:57:18Z | 2024-05-18T09:44:59Z | null | 1 | 0 | 120 | 0 | 0 | 7 | null | null | JavaScript |
Chargily/chargily-pay-javascript | main | # Welcome to JavaScript Package Repository
# for [Chargily Pay](https://chargily.com/business/pay "Chargily Pay")™ Gateway - V2.
Thank you for your interest in JS Package of Chargily Pay™, an open source project by Chargily, a leading fintech company in Algeria specializing in payment solutions and e-commerce facilitating, this Package is providing the easiest and free way to integrate e-payment API through widespread payment methods in Algeria such as EDAHABIA (Algerie Post) and CIB (SATIM) into your JavaScript/Node.js projects.
This package is developed by **Abderraouf Zine ([rofazayn](https://github.com/rofazayn))** and is open to contributions from developers like you.
## Key Features
- Easy integration with Chargily Pay e-payment gateway
- Support for both EDAHABIA of Algerie Poste and CIB of SATIM
- Comprehensive management of customers, products, and prices
- Efficient handling of checkouts and payment links
- Compatible with Node.js and browser environments
## Installation
To include this library in your project, you can use npm or yarn:
```shell
npm install @chargily/chargily-pay
```
or
```shell
yarn add @chargily/chargily-pay
```
## Getting Started
Before utilizing the library, you must configure it with your [Chargily API key](https://dev.chargily.com/pay-v2/api-keys) and specify the mode (test or live). Here's an example to get started:
```ts
import { ChargilyClient } from '@chargily/chargily-pay';
const client = new ChargilyClient({
api_key: 'YOUR_API_KEY_HERE',
mode: 'test', // Change to 'live' when deploying your application
});
```
This initializes the Chargily client, ready for communication with the Chargily Pay API.
## Creating a Customer
To create a customer, you can use the `createCustomer` method:
```ts
const customerData = {
name: 'John Doe',
email: 'john.doe@example.com',
phone: '+213xxxxxxxx',
address: {
country: 'DZ',
state: 'Algiers',
address: '123 Main St',
},
metadata: {
notes: 'Important customer',
},
};
client
.createCustomer(customerData)
.then((customer) => console.log(customer))
.catch((error) => console.error(error));
```
This method returns a promise with the created customer object.
## Updating a Customer
To update an existing customer, use the `updateCustomer` method with the customer's ID and the data you want to update:
```ts
const updateData = {
email: 'new.email@example.com',
metadata: { notes: 'Updated customer info' },
};
client
.updateCustomer('customer_id_here', updateData)
.then((customer) => console.log(customer))
.catch((error) => console.error(error));
```
This will update the specified fields of the customer and return the updated customer object.
## Creating a Product
To create a new product, you can use the `createProduct` method. Here's how to create a product named "Super Product":
```ts
const productData = {
name: 'Super Product',
description: 'An amazing product that does everything!',
images: ['http://example.com/image1.jpg', 'http://example.com/image2.jpg'],
metadata: { category: 'electronics' },
};
client
.createProduct(productData)
.then((product) => console.log(product))
.catch((error) => console.error(error));
```
This method requires the `name` of the product and optionally accepts `description`, an array of `images`, and `metadata`.
## Deleting a Customer
To delete a customer from the Chargily Pay system, you can use the `deleteCustomer` method with the customer's ID:
```ts
client
.deleteCustomer('customer_id_here')
.then((response) => console.log(response))
.catch((error) => console.error(error));
```
This method will return a response indicating whether the deletion was successful.
## Listing Customers
You can list all customers with optional pagination using the `listCustomers` method. Specify the number of customers per page using the `per_page` parameter:
```ts
client
.listCustomers(20) // List 20 customers per page
.then((customersList) => console.log(customersList))
.catch((error) => console.error(error));
```
The response will include a paginated list of customers along with pagination details.
## Updating a Customer
To update an existing customer, you'll need the customer's ID:
```ts
const updatedCustomer = await client.updateCustomer('CUSTOMER_ID', {
name: 'Jane Doe',
email: 'jane.doe@example.com',
phone: '987654321',
address: {
country: 'DZ',
state: 'Oran',
address: '4321 Main St',
},
metadata: {
custom_field_updated: 'new value',
},
});
```
This call updates the specified customer and returns the updated customer object.
## Deleting a Customer
To delete a customer, use their ID:
```ts
const deleteResponse = await client.deleteCustomer('CUSTOMER_ID');
```
This method returns a response indicating whether the deletion was successful.
## Creating a Product
To add a new product to your catalog:
```ts
const newProduct = await client.createProduct({
name: 'Awesome Product',
description: 'A description of your awesome product',
images: ['https://example.com/image.png'],
metadata: {
category: 'Electronics',
},
});
```
This creates a new product and returns the product object.
## Updating a Product
Similar to customers, you can update products using their ID:
```ts
const updatedProduct = await client.updateProduct('PRODUCT_ID', {
name: 'Even More Awesome Product',
description: 'An updated description',
images: ['https://example.com/newimage.png'],
metadata: {
category: 'Updated Category',
},
});
```
This updates the product details and returns the updated product object.
## Creating a Price
To create a price for a product, you need the product's ID:
```ts
const newPrice = await client.createPrice({
amount: 5000,
currency: 'dzd',
product_id: 'PRODUCT_ID',
metadata: {
size: 'M',
},
});
```
This creates a new price for the specified product and returns the price object.
## Updating a Price
You can update the metadata of a price by its ID:
```ts
const updatedPrice = await client.updatePrice('PRICE_ID', {
metadata: {
size: 'L',
},
});
```
This updates the price's metadata and returns the updated price object.
## Creating a Checkout
To create a checkout session for a customer to make a payment:
```ts
const checkout = await client.createCheckout({
items: [
{
price: 'PRICE_ID',
quantity: 1,
},
],
success_url: 'https://your-website.com/success',
failure_url: 'https://your-website.com/failure',
payment_method: 'edahabia', // Optional, defaults to 'edahabia'
locale: 'en', // Optional, defaults to 'ar'
pass_fees_to_customer: true, // Optional, defaults to false
shipping_address: '123 Test St, Test City, DZ', // Optional
collect_shipping_address: true, // Optional, defaults to false
metadata: {
order_id: '123456',
},
});
```
This creates a new checkout session and returns the checkout object, including a `checkout_url` where you can redirect your customer to complete their payment.
## Creating a Payment Link
Payment links are URLs that you can share with your customers for payment:
```ts
const paymentLink = await client.createPaymentLink({
name: 'Product Payment',
items: [
{
price: 'PRICE_ID',
quantity: 1,
adjustable_quantity: false,
},
],
after_completion_message: 'Thank you for your purchase!',
locale: 'en',
pass_fees_to_customer: true,
collect_shipping_address: true,
metadata: {
campaign: 'Summer Sale',
},
});
```
This creates a new payment link and returns the payment link object, including the URL that you can share with your customers.
## Handling Prices
### Creating a Price
To set up a price for a product, you can use the product's ID:
```ts
const newPrice = await client.createPrice({
amount: 5000,
currency: 'dzd',
product_id: 'PRODUCT_ID',
metadata: {
discount: '10%',
},
});
```
This call creates a new price for the specified product and returns the price object.
### Updating a Price
Update a price by its ID:
```ts
const updatedPrice = await client.updatePrice('PRICE_ID', {
metadata: {
discount: '15%',
},
});
```
This updates the metadata for the price and returns the updated price object.
### Fetching Prices
To retrieve all prices for a product:
```ts
const prices = await client.listPrices();
```
This returns a paginated list of all prices.
## Working with Checkouts
### Creating a Checkout
Creating a checkout is a crucial step for initiating a payment process. A checkout can be created by specifying either a list of items (products and quantities) or a total amount directly. You also need to provide a success URL and optionally a failure URL where your customer will be redirected after the payment process.
Here's how you can create a checkout:
```ts
const newCheckout = await client.createCheckout({
items: [
{ price: 'PRICE_ID', quantity: 2 },
{ price: 'ANOTHER_PRICE_ID', quantity: 1 },
],
success_url: 'https://yourdomain.com/success',
failure_url: 'https://yourdomain.com/failure',
payment_method: 'edahabia',
customer_id: 'CUSTOMER_ID',
metadata: { orderId: '123456' },
locale: 'en',
pass_fees_to_customer: false,
});
```
This request creates a new checkout session and returns the checkout object, including a `checkout_url` where you should redirect your customer to complete the payment.
### Retrieving a Checkout
To fetch details of a specific checkout session:
```ts
const checkoutDetails = await client.getCheckout('CHECKOUT_ID');
```
This retrieves the details of the specified checkout session.
## Managing Payment Links
### Creating a Payment Link
Payment Links provide a versatile way to request payments by generating a unique URL that you can share with your customers. Here's how to create one:
```ts
const paymentLink = await client.createPaymentLink({
name: 'Subscription Service',
items: [{ price: 'PRICE_ID', quantity: 1, adjustable_quantity: false }],
after_completion_message: 'Thank you for your subscription!',
locale: 'en',
pass_fees_to_customer: true,
collect_shipping_address: true,
metadata: { subscriptionId: 'sub_12345' },
});
```
This creates a new payment link with specified details and returns the payment link object including the URL to be shared with your customers.
### Updating a Payment Link
To update an existing payment link:
```ts
const updatedLink = await client.updatePaymentLink('PAYMENT_LINK_ID', {
name: 'Updated Subscription Service',
after_completion_message: 'Thank you for updating your subscription!',
metadata: { subscriptionId: 'sub_67890' },
});
```
This updates the specified payment link and returns the updated object.
### Fetching a Payment Link
Retrieve the details of a specific payment link:
```ts
const linkDetails = await client.getPaymentLink('PAYMENT_LINK_ID');
```
This call retrieves the specified payment link's details.
### Listing Payment Links
To list all your payment links:
```ts
const allLinks = await client.listPaymentLinks();
```
This returns a paginated list of all payment links you've created.
## About Chargily Pay™ packages
Chargily Pay™ packages/plugins are a collection of open source projects published by Chargily to facilitate the integration of our payment gateway into different programming languages and frameworks. Our goal is to empower developers and businesses by providing easy-to-use tools to seamlessly accept payments.
## API Documentation
For detailed instructions on how to integrate with our API and utilize Chargily Pay™ in your projects, please refer to our [API Documentation](https://dev.chargily.com/pay-v2/introduction).
## Developers Community
Join our developer community on Telegram to connect with fellow developers, ask questions, and stay updated on the latest news and developments related to Chargily Pay™ : [Telegram Community](https://chargi.link/PayTelegramCommunity)
## How to Contribute
We welcome contributions of all kinds, whether it's bug fixes, feature enhancements, documentation improvements, or new plugin/package developments. Here's how you can get started:
1. **Fork the Repository:** Click the "Fork" button in the top-right corner of this page to create your own copy of the repository.
2. **Clone the Repository:** Clone your forked repository to your local machine using the following command:
```bash
git clone https://github.com/Chargily/chargily-pay-javascript.git
```
3. **Make Changes:** Make your desired changes or additions to the codebase. Be sure to follow our coding standards and guidelines.
4. **Test Your Changes:** Test your changes thoroughly to ensure they work as expected.
5. **Submit a Pull Request:** Once you're satisfied with your changes, submit a pull request back to the main repository. Our team will review your contributions and provide feedback if needed.
## Get in Touch
Have questions or need assistance? Join our developer community on [Telegram](https://chargi.link/PayTelegramCommunity) and connect with fellow developers and our team.
We appreciate your interest in contributing to Chargily Pay™! Together, we can build something amazing.
Happy coding!
| JS Package of Chargily Pay™, the easiest and free way to integrate e-payment API through widespread payment methods in Algeria such as EDAHABIA (Algerie Post) and CIB (SATIM) into your JavaScript/Node.js projects. | algerie,api,cib,edahabia,javascript,js,payment,poste,satim,baridimob | 2024-02-10T10:05:55Z | 2024-03-11T11:01:42Z | 2024-03-10T21:29:41Z | 4 | 3 | 10 | 1 | 1 | 7 | null | MIT | TypeScript |
kis0421/keyword-farmer | master | # keyword-farmer
## Overview
If you use this, you are a farmer.
Build and harvest a farm with the crops you want.
Like a farmer tending his farm, create keywords
It will provide you mock keywords data.
## Installation
```
npm install keyword-farmer
```
## Example
```ts
import { useKeywordFarm } from 'keyword-farmer';
const { create } = useKeywordFarm();
create();
// output: 'sweater' | 'iphone 14 pro' | 'shirt' ...
```
## Options
```ts
interface Config {
lang?: 'en' | 'kr'
length?: number | { min?: number, max?: number }
excludeSpaces?: boolean
specialKeywords?: 'only' | 'mixed' | 'combine'
}
```
- **`lang`** - This is the language of keywords. Currently supports **`en`** **`kr`**, default is **`en`**
- **`length`** - Limit the length of keywords to be handled.
- **`excludeSpaces`** - Whether to exclude spaces in words. The default is **`true`** (inclusive).
- **`specialKeywords`** - This is an option to handle special characters (mutations). Special characters are Unicode special characters.
- **`only`** - The keyword list consists only of `specialKeywords`. Also other options are ignored
- **`mixed`** - Consists of general `keywords` and `specialKeywords`
- **`combine`** - `keyword` characters contain `specialKeywords` combined in random positions.
| Quickly and easily generate fake data for mocking | browser,data,javascript,mock,mocking,nodejs | 2024-02-17T09:59:07Z | 2024-03-17T13:37:15Z | 2024-03-11T14:55:54Z | 1 | 2 | 83 | 0 | 0 | 7 | null | null | TypeScript |
CodeKageHQ/Ask-out-your-Valentine | main | # Valentine's Day Interactive Website (CodeKage)
Thank you to [@mewtru](https://instagram.com/mewtru) for the video idea!
This code was completely created from scratch! utilising Tailwind CSS!
Make this Valentine's Day unforgettable with a charming and interactive web experience. This website allows you to ask the big question, "Will you be my Valentine?" in a unique and playful manner. With cute GIFs that change with responses and dynamic "Yes" and "No" buttons, it's designed to bring a smile and possibly a "Yes!" to someone special.
## Features
- **Interactive Buttons**: Engage with "Yes" and "No" buttons that dynamically respond to user input.
- **Cute GIFs**: Enjoy a selection of heartwarming GIFs that change based on the user's interaction.
- **Tailwind CSS**: Stylish design and responsive layout powered by Tailwind CSS for a modern and mobile-friendly interface.
- **JavaScript Magic**: Experience the joy of interaction with JavaScript that brings the website to life.
## How It Works
- The user is greeted with a cute GIF and the question "Will you be my Valentine?".
- Responding "No" changes the GIF and modifies the size and text of the buttons, adding a playful element to convince the user to reconsider.
- A "Yes" click celebrates the moment with a special GIF and triggers a confetti animation, hiding the response buttons.
## Setup
1. Clone the repository:
```bash
git clone https://github.com/CodeKageHQ/Ask-out-your-Valentine
```
3. Open ```index.html``` in your browser to view the website.
No additional setup is required, as Tailwind CSS is included via CDN and JavaScript is embedded within the HTML.
## Technologies Used
- HTML5
- Tailwind CSS
- JavaScript
- [canvas-confetti](https://www.npmjs.com/package/canvas-confetti) for the confetti effect
## Contributions
Feel the love? Contributions are welcome! Whether it's a new GIF suggestion, design improvements, or code optimisation, feel free to fork the repository and submit a pull request.
## License
This project is open source and available under [MIT License](LICENSE).
Happy Valentine's Day! Let's spread the love ❤️.
| A playful and interactive web experience for asking someone to be your Valentine, featuring charming GIFs and dynamic responses to 'Yes' and 'No' answers. Built with HTML, Tailwind CSS, and a sprinkle of JavaScript for interactivity. | canvas-confetti,css3,html5,interactive-web,javascript,love,romantic,tailwindcss,valentines-day,web-animation | 2024-02-09T13:16:31Z | 2024-02-09T15:20:56Z | null | 2 | 4 | 7 | 0 | 26 | 7 | null | MIT | HTML |
geroxima/separte | main |
# Sé Parte - Plataforma de Crowdfunding Paraguaya

¡Bienvenido a Sé Parte, la plataforma de crowdfunding paraguaya! Sé Parte es un proyecto de código abierto desarrollado como parte del proyecto grupal final del bootcamp Full Stack MERN de Coding Dojo. Estamos emocionados de presentarte una plataforma innovadora que conecta a los emprendedores paraguayos con personas apasionadas que desean contribuir a proyectos excepcionales.
## Descripción del Proyecto
Sé Parte es una plataforma de crowdfunding diseñada específicamente para la comunidad paraguaya. La idea detrás de este proyecto es crear un espacio donde los emprendedores locales puedan presentar sus ideas y recibir el apoyo financiero de personas interesadas en respaldar proyectos valiosos y creativos.
## Características Principales
- **Proyectos Variados:** Sé Parte permite a los emprendedores presentar una amplia gama de proyectos, desde iniciativas tecnológicas hasta proyectos culturales y sociales.
- **Contribuciones Fáciles:** Los usuarios pueden contribuir a proyectos de manera sencilla y segura, eligiendo la cantidad que desean aportar y recibiendo recompensas exclusivas según su nivel de contribución.
- **Transparencia:** Ofrecemos total transparencia en el proceso de financiamiento. Los emprendedores compartirán actualizaciones regulares con sus patrocinadores, brindando una visión clara del progreso del proyecto.
¡Gracias por ser parte de Sé Parte! Juntos, estamos construyendo un futuro más brillante para la innovación y la creatividad paraguayas.
| Proyecto open-source de Crowdfunding paraguayo basado en Sé parte | express,fullstack,javascript,mern,mongodb,nextjs,nodejs,tailwindcss | 2024-02-22T01:27:22Z | 2024-03-14T12:52:29Z | null | 4 | 0 | 108 | 0 | 0 | 7 | null | null | JavaScript |
Kuro-98/SPA-Website | main | # Carolina Spa Salon
¡Bienvenido a **Carolina Spa Salon** - Todas las secciones del spa, llevado a cabo con las técnicas y diseños presentados por el profesor Juan Pablo De la torre Valdez en el curso "CSS La Guía Completa".
## Características Principales
- **Diseño Inspirado en CSS La Guía Completa:** Desarrollado basándonos en las enseñanzas del profesor Juan Pablo De la torre Valdez para un spa y salón de belleza.
- **Uso de Swiper para el Slider:** Implementación de un elegante slider con Swiper para mostrar nuestros servicios y ambiente.
- **Maquetación Eficiente con SASS y Gulp:** Código HTML y CSS desarrollado desde cero utilizando SASS para una estructura de estilos modular y Gulp para una gestión eficiente de tareas.
## Tecnologías Utilizadas
- **HTML:** Estructura sólida para presentación de servicios y detalles del spa.
- **CSS y SASS:** Estilo inspirado en el diseño del spa, con estructura modular y mantenible.
- **JS con Swiper:** Uso de Swiper para un slider interactivo y elegante.
- **Gulp:** Automatización de tareas para una gestión eficiente del proyecto.
## Instrucciones de Despliegue
1. Clona este repositorio: `git@github.com:Kuro-98/SPA-Website.git`
2. Abre el archivo `index.html` en tu navegador favorito.
| 💆♀️ Carolina Spa Salon 🌺 - Desarrollado desde cero con HTML, CSS, SASS, Gulp y JS, incluyendo el uso de Swiper para un elegante slider. Inspirado en el diseño de Juan Pablo De la torre Valdez en el curso CSS La Guía Completa." | css,css3,gulp,gulp-sass,html,html5,javascript,npm,sass,swiper-js | 2024-03-06T19:32:23Z | 2024-05-07T04:15:26Z | null | 1 | 0 | 10 | 0 | 1 | 7 | null | null | SCSS |
kaykeeb3/SIBI_V2 | main | # SIBI - Sistema Administrativo de Biblioteca Virtual
O SIBI é um sistema administrativo desenvolvido para o gerenciamento completo de uma biblioteca de forma virtual. Desde sua primeira versão, foi concebido para solucionar problemas enfrentados e tem sido um projeto em constante evolução, buscando sempre proporcionar facilidade, segurança e praticidade tecnológica para todos os envolvidos na gestão da biblioteca.
## Versão 1.0 - PHP 8, MySQL, HTML, CSS, JavaScript
Na versão inicial do SIBI, foram utilizadas as seguintes tecnologias:
- **PHP 8**: Linguagem de programação do lado do servidor, utilizada para construir a lógica de negócio do sistema.
- **MySQL**: Sistema de gerenciamento de banco de dados relacional, utilizado para armazenar e gerenciar os dados da biblioteca.
- **HTML**: Linguagem de marcação para a estruturação do conteúdo das páginas web.
- **CSS**: Linguagem de estilização para definir o layout e a aparência visual das páginas web.
- **JavaScript**: Linguagem de programação do lado do cliente, utilizada para adicionar interatividade e dinamismo às páginas web.
- **Git e GitHub**: Ferramentas de controle de versão e hospedagem de código, utilizadas para o desenvolvimento colaborativo e versionamento do sistema.
## Tecnologias Utilizadas na Versão Atual
A versão atual do SIBI continua evoluindo e incorporando novas tecnologias para melhorar sua performance, segurança e experiência do usuário:
- **Node.js**: Ambiente de execução JavaScript para construção de aplicações backend.
- **Prisma**: ORM (Object-Relational Mapping) para facilitar o acesso e manipulação de dados no banco de dados.
- **Cors**: Middleware para habilitar o controle de acesso a recursos de origens diferentes.
- **React**: Biblioteca JavaScript para construção de interfaces de usuário interativas.
- **Tailwind CSS**: Framework CSS utilitário que facilita a criação de designs personalizados.
- **Axios**: Cliente HTTP baseado em Promises para fazer requisições para o servidor.
- **Frame Motion**: Biblioteca para adicionar animações fluidas e interativas às interfaces.
## Funcionalidades
O SIBI oferece uma ampla gama de funcionalidades para simplificar e otimizar a gestão da biblioteca virtual:
- **Gerenciamento Completo da Biblioteca**: Cadastro de livros, controle de empréstimos, gerenciamento de usuários, etc.
- **Segurança Avançada**: Políticas de acesso e controle de permissões para proteger os dados sensíveis.
- **Praticidade e Eficiência**: Interface intuitiva e responsiva para facilitar o acesso às informações e execução de tarefas.
- **Monitoramento Automatizado**: Integração com o MONITORA - SIBI para monitoramento da saúde das APIs e detecção de falhas.
- **Notificações em Tempo Real**: Receba notificações instantâneas sobre falhas ou anomalias na operação do sistema.
- **Análise de Métricas**: Registro de métricas de desempenho para análise e otimização do sistema.
## Como Executar o Projeto
Para executar o projeto localmente, siga os seguintes passos:
1. **Clonar o Repositório**: Utilize o comando `git clone https://github.com/Kayke-Ti/SIBI_V2.git` para clonar o repositório.
2. **Instalar Dependências**: Navegue até o diretório do projeto e execute `npm install` para instalar as dependências.
3. **Configurar o Ambiente**: Configure o arquivo `.env` com as variáveis de ambiente necessárias.
4. **Executar o Servidor**: Execute `npm start` para iniciar o servidor backend.
5. **Executar o Cliente**: Em outro terminal, navegue até o diretório `client` e execute `npm start` para iniciar o cliente frontend.
6. **Acessar o Sistema**: Abra o navegador e acesse `http://localhost:3000` para utilizar o SIBI.
## Contribuição
Contribuições são bem-vindas! Sinta-se à vontade para abrir uma issue caso encontre algum problema ou para propor melhorias. Se deseja contribuir diretamente, siga os passos:
1. Faça um fork do projeto.
2. Crie uma branch para sua contribuição (`git checkout -b feature/nova-funcionalidade`).
3. Faça suas alterações e commit (`git commit -am 'Adicionando nova funcionalidade'`).
4. Faça push da branch (`git push origin feature/nova-funcionalidade`).
5. Abra um Pull Request.
## Autor
O SIBI 2.0 foi desenvolvido com amor por [Kayke Barbosa](https://github.com/Kayke-Ti).
## Licença
Este projeto está licenciado sob a Licença MIT - consulte o arquivo [LICENSE](LICENSE) para obter mais detalhes.
| O SIBI é um sistema administrativo desenvolvido para o gerenciamento completo de uma biblioteca de forma virtual. Atualmente, na sua versão 2.0 inicial, o SIBI foi concebido para solucionar problemas enfrentados e desenvolvido como trabalho voluntário em benefício da escola. Seu objetivo principal é proporcionar facilidade, segurança e praticidade | express,javascript,jwt,mysql,nodejs,prisma,reactjs,tawilwind | 2024-02-16T15:10:04Z | 2024-04-15T16:11:54Z | null | 1 | 0 | 66 | 0 | 4 | 7 | null | null | JavaScript |
danieleverest/datastructures-algorithms | master | # datastructures-algorithms
List of Programs related to data structures and algorithms
| List of Programs related to data structures and algorithms | algorithm,algorithm-challenges,algorithms,algorithms-and-data-structures,datastructures,datastructures-algorithms,java,javascript | 2024-03-05T00:41:49Z | 2024-03-04T03:28:05Z | null | 1 | 0 | 86 | 0 | 0 | 7 | null | null | JavaScript |
steelcityamir/crowd-speak | main | # Crowd Speak
Crowd Speak is a simple fast voting system for posts that's easy to run and install on any site.
## 🌟 Features
- A Reddit-style voting system where each post has a score calculated by number of upvotes minus number of downvotes.
- Scores are saved in the backend using a SQLite database.
- Prevents a user from voting twice on same post by tracking votes client-side in `localStorage`.
## Technology stack
- Client JS library
- Node Express app
- SQLite database
## 🐳 Quick Start using Docker
### Build the Docker image for the API server
```bash
docker build -t crowdspeak .
```
### Run the Docker container to start the API server
```bash
docker run -p 3000:3000 --name crowdspeak crowdspeak
```
This will start the API server at [http://localhost:3000](http://localhost:3000).
To launch a demo site that uses your local API server along with the JS client, see [Running the Demo](#running-the-demo).
## 🛠️ Building from source
These instructions will get the project up and running on your local machine for development and testing purposes.
### Prerequisites
- Node.js 16.x or higher
- npm 7.x or higher
### Installation
Clone the repository:
```bash
git clone https://github.com/steelcityamir/crowd-speak.git
cd crowd-speak
```
Install and build the client:
```bash
cd client
npm install
npm run build
```
You should now see minified JS file in `client/dist/crowdspeak.min.js`.
Install and start the API server:
```bash
cd api
npm install
npm run start
```
This should start the API at [http://localhost:3000](http://localhost:3000) with the minified JS file at [http://localhost:3000/crowdspeak.min.js](http://localhost:3000/crowdspeak.min.js).
The API will create an empty SQLite database in `api/database.sqlite` if it does not exist.
## Running the demo
There is a basic demo site where you can see it in action. The demo requires the API server to be running at http://localhost:3000.
```bash
cd demo
npm install
npm run start
```
Go to the site at [http://localhost:8080](http://localhost:8080).
https://github.com/steelcityamir/crowd-speak/assets/54147931/079d58cd-c7e6-4ab0-8ecf-22fa92743382
## Integrating CrowdSpeak into your Site
To add CrowdSpeak to your site, follow these steps:
### Self-host the API server
We recommend running the API server behind a reverse proxy or load balancer so it can be served with an SSL/TLS certificate.
### Add the CrowdSpeak JS client to your site
The `crowdspeak.min.js` file is available on the API server.
```html
<script src="https://<API_SERVER_URL>/crowdspeak.min.js"></script>
```
### Add Voting Buttons and Score Display
For each post, create a container `div` with `data-id` equal to a unique id.
Create upvote and downvote buttons with the respective classes `crowdspeak-upvote` and `crowdspeak-downvote`. Also, include a span to display the score with the class `crowdspeak-score`.
```html
<div data-id="100">
<button class="crowdspeak-upvote">Upvote</button>
<button class="crowdspeak-downvote">Downvote</button>
<span class="crowdspeak-score">0</span>
</div>
```
If you run into problems, take a look at the HTML [code](demo/public/index.html) for the demo site.
## API endpoints
If you don't want to use our client, feel free to create your own using the API documentation below.
### Get all scores
`GET /scores`
#### Response
```json
{
"message": "success",
"data": [
{
"id": 1,
"score": 8
},
{
"id": 2,
"score": 7
},
{
"id": 3,
"score": 6
}
]
}
```
### Get score by id
`GET /scores?id=1`
#### Response
```json
{
"message": "success",
"data": {
"id": 1,
"score": 8
}
}
```
#### Errors
`404 Not Found` - id was not found
### Upvote
Increments the score by 1. If the id does not exist, it will create it and set the score to 1.
`POST /scores/:id/upvote`
No request body required.
### Downvote
Decrements the score by 1. If the id does not exist, it will create it and set the score to -1.
`POST /scores/:id/downvote`
No request body required.
## License
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
| Simple self-hosted voting system for posts | downvotes,upvotes,expressjs,nodejs,sqlite3,javascript | 2024-02-13T13:55:09Z | 2024-04-22T15:46:45Z | null | 1 | 0 | 43 | 0 | 0 | 7 | null | MIT | JavaScript |
Pramodjena/Resume-Builder | main | # Easy Resume :
- Welcome to `Easy Resume` Resume Builder Web App! I'm excited to introduce you to a user-friendly tool designed to help you craft professional resumes with ease. Designed for seasoned professionals. `Easy Resume` app is here to streamline the process for you.
## Tech Stack Used :
- HTML
- CSS
- Javascript
## Live Demo :
- [Deploy Link](https://easy-resume-web.netlify.app/)
| Welcome to `Easy Resume` Resume Builder Web App! I'm excited to introduce you to a user-friendly tool designed to help you craft professional resumes with ease. Whether you're a seasoned professional or just starting your career journey, `Easy Resume` app is here to streamline the process for you. | css3,html5,javascript | 2024-02-13T05:14:34Z | 2024-02-28T10:51:17Z | null | 1 | 0 | 6 | 0 | 0 | 7 | null | null | HTML |
ljharb/es-errors | main | # es-errors <sup>[![Version Badge][npm-version-svg]][package-url]</sup>
[![github actions][actions-image]][actions-url]
[![coverage][codecov-image]][codecov-url]
[![License][license-image]][license-url]
[![Downloads][downloads-image]][downloads-url]
[![npm badge][npm-badge-png]][package-url]
A simple cache for a few of the JS Error constructors.
## Example
```js
const assert = require('assert');
const Base = require('es-errors');
const Eval = require('es-errors/eval');
const Range = require('es-errors/range');
const Ref = require('es-errors/ref');
const Syntax = require('es-errors/syntax');
const Type = require('es-errors/type');
const URI = require('es-errors/uri');
assert.equal(Base, Error);
assert.equal(Eval, EvalError);
assert.equal(Range, RangeError);
assert.equal(Ref, ReferenceError);
assert.equal(Syntax, SyntaxError);
assert.equal(Type, TypeError);
assert.equal(URI, URIError);
```
## Tests
Simply clone the repo, `npm install`, and run `npm test`
## Security
Please email [@ljharb](https://github.com/ljharb) or see https://tidelift.com/security if you have a potential security vulnerability to report.
[package-url]: https://npmjs.org/package/es-errors
[npm-version-svg]: https://versionbadg.es/ljharb/es-errors.svg
[deps-svg]: https://david-dm.org/ljharb/es-errors.svg
[deps-url]: https://david-dm.org/ljharb/es-errors
[dev-deps-svg]: https://david-dm.org/ljharb/es-errors/dev-status.svg
[dev-deps-url]: https://david-dm.org/ljharb/es-errors#info=devDependencies
[npm-badge-png]: https://nodei.co/npm/es-errors.png?downloads=true&stars=true
[license-image]: https://img.shields.io/npm/l/es-errors.svg
[license-url]: LICENSE
[downloads-image]: https://img.shields.io/npm/dm/es-errors.svg
[downloads-url]: https://npm-stat.com/charts.html?package=es-errors
[codecov-image]: https://codecov.io/gh/ljharb/es-errors/branch/main/graphs/badge.svg
[codecov-url]: https://app.codecov.io/gh/ljharb/es-errors/
[actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/ljharb/es-errors
[actions-url]: https://github.com/ljharb/es-errors/actions
| A simple cache for a few of the JS Error constructors. | ecmascript,error,javascript,rangeerror,syntaxerror,typeerror | 2024-02-03T07:47:24Z | 2024-03-09T00:38:39Z | null | 1 | 0 | 16 | 1 | 0 | 7 | null | MIT | JavaScript |
hschneider/neutralino-curl | master | <p align="center">
<img src="https://marketmix.com/git-assets/neutralino-curl/neutralino-curl-header-2.jpg">
</p>
# neutralino-curl
**A CURL Wrapper for Neutralino**
This cross-platform CURL wrapper comes with the following features:
- Fast downloads and uploads via HTTP, HTTPS, FTP, FTPS.
- Supports custom HTTP-headers, e.g. for API authentication.
- No more headaches about CORS.
- Custom parameters support all possible CURL-protocols, like IMAP, POP3, SMTP, SMB, SCP, TELNET, WS, MQTT, LDAP and more.
- Emits JS events to for progress monitoring.

## Run the demo
Clone this repo, and cd to the project folder.
Copy the content from `_install/YOUR_PLATFORM/bin/`to `resources/bin/`.
Then enter
```js
neu update --latest
neu run
```
## Include in your own Project
neutralino-curl is not a classic WebSocket-bound extension. It only consists of the CURL binary for your platform and a JS lib.
### Setup on all Platforms
- Copy the content from `_install/YOUR_PLATFORM/bin/`to `extensions/curl/bin/`.
- Include `extensions/neutralino-curl/curl.js`in your `index.hml`file.
- Init CURL and add the required events to `main.js`.
## Deployment
### On Windows and Linux
The `extensions` folder needs to be placed beside your `resources..neu` folder:
```
app.exe
resources.neu
extensions
```
### On macOS
The `extensions` folder goes into your app bundle's `Resources` folder. This can be automated with **[Neutralino Build Scripts.](https://github.com/hschneider/neutralino-build-scripts)**
## CURL by Example
### Init CURL
```js
let CURL = new NeutralinoCurl();
```
### Add Cutom-Headers
Set HTTP custom-headers. Use this once, it applies to all further operations:
```js
CURL.addHttpHeader('X-API-Token', '1234');
CURL.addHttpHeader('X-API-User', 'jimbo');
```
### GET- & POST-Requests
GET-Request:
```
let result = await CURL.get("https://domain.com/api-endpoint");
```
POST-Request:
```
let d = {
field1: 1,
field2: 2
}
await CURL.post("https://domain.com/api-endpoint", d);
```
### Downloads & Uploads
#### Via HTTP or HTTPS
Download:
```js
await CURL.download("https://file.zip");
```
Download as:
```js
await CURL.download("https://file.zip", 'renamed_file.zip');
```
Upload :
```js
await CURL.upload("file.zip, "https://server.com");
```
#### Via FTP or FTPS:
Set credentials. Use this once, it applies to all further operations:
```js
CURL.setCredentials('username', 'password')
```
Download:
```js
await CURL.download("ftp://server.com/file.zip");
```
Download as:
```js
await CURL.download("ftp://server.com/file.zip", "renamed_file.zip");
```
Upload:
```js
await CURL.upload("file.zip", "ftp://server.com/path")
```
### Use any Protocol, any Command
You can use any command-line parameter and protocol, supported by the curl binary by using `CURL.run()`. If curl's output goes to stdout, the `curlData`event with curl's output in `e.detail` is triggered.
The following example lists all messages on a POP3-server:
```js
await CURL.run('-k -l -u username:password pop3://mail.server.com');
```
Keep in mind, that special, shell-relevant characters in passwords need to be escaped:
```js
// This will fail:
await CURL.run('-k -l -u user@server.com:My$Password! pop3://mail.server.com');
// This is the way:
await CURL.run('-k -l -u user@server.com:My\\$Password\\! pop3://mail.server.com');
```
Read more about [the fantastic possibilites of curl here.](https://everything.curl.dev)
## Methods
| Method | Description |
| ------------------------- | ------------------------------------------------------------ |
| addHttpHeader(key, value) | Add a custom HTTP-header to the header-list. Headers are sent with each HTTP-upload or -download.<br />**key**: HTTP-Header name<br />**value**: HTTP-Header content |
| clearHttpHeader() | Clears the HTTP-header list. |
| get(url) | GET-Request. Returns data as string.<br />**url**: API-endpoint |
| post(url, data) | POST-Request.<br />**url**: API-endpoint<br />**data**: POSt-data as stringified JSON. |
| download(src, dst) | Download a file via HTTP, HTTPS, FTP or FTPS. <br />**src:** URL<br />**dst:** File-path (optional) |
| upload(src, dst) | Upload a file via HTTP, HTTPS, FTP or FTPS. <br />**src:** File-path<br />**dst:** URL |
| resetProgress() | Resets the progress counter and emits a `curlProgress` event with data `0.0`, which in turn clears a connected progressbar. |
| run(args) | Run the curl-binary with custom arguments. This method is also called from `download()` and `upload()` internally.<br />**args:** Curl command-line parameters |
| setCredentials(usr, pwd) | Set credentials for FTP/FTPS operations.<br />**usr**: Username<br />**pwd**: Password |
## Events
| Event | Description |
| --------------- | ------------------------------------------------------------ |
| curlStart | Emitted before the CURL binary is launched. |
| curlProgress(e) | Emitted with each download- or upload-progress step. `e.detail`contains the current progress value as float. |
| curlData(e) | Using `CURL.run()`with custom args, all data is collected from curl's stdout and sent via `e.detail`for further processing. |
| curlStop(e) | Emitted after the CURL binary stopped. `e.detail`contains the exit code as an integer. Read [about CURL exit codes here.](https://everything.curl.dev/cmdline/exitcode) |
## More about Neutralino
- [NeutralinoJS Home](https://neutralino.js.org)
- [Neutralino related blog posts at marketmix.com](https://marketmix.com/de/tag/neutralinojs/)
<img src="https://marketmix.com/git-assets/star-me-2.svg">
| A CURL wrapper for Neutralino. Fast HTTP- and FTP-uploads and downloads without CORS, right from your Neutralino frontend. | cross-platform,crossplatform,curl,javascript,neutralino,neutralinojs | 2024-02-26T13:14:47Z | 2024-04-13T18:57:42Z | 2024-04-13T18:48:54Z | 1 | 0 | 39 | 0 | 0 | 7 | null | MIT | Shell |
nedjulius/prettier-plugin-stylex-key-sort | main | # prettier-plugin-stylex-key-sort
Prettier plugin that sorts StyleX keys according to [StyleX property priorities](https://github.com/facebook/stylex/blob/main/packages/shared/src/utils/property-priorities.js).
## Installation
`npm install --save-dev prettier-plugin-stylex-key-sort`
## Usage
### With `.prettierrc`
```json
{
"plugins": ["prettier-plugin-stylex-key-sort"]
}
```
`npx prettier --write '**/*.{ts,js,tsx,jsx}'`
### Without config
`npx prettier --write '**/*.{ts,js,tsx,jsx}' --plugin=prettier-plugin-stylex-key-sort`
## Options
### minKeys
- Minimum number of keys required after which the sort is enforced
- **Default value**: `2`
```json
{
"plugins": ["prettier-plugin-stylex-key-sort"],
"minKeys": 2
}
```
### validImports
- Possible string from where you can import StyleX modules
- **Default value**: `["@stylexjs/stylex", "stylex"]`
```json
{
"plugins": ["prettier-plugin-stylex-key-sort"],
"validImports": ["stlx"]
}
```
## Contributing
- Any contributions are welcome
- Please open an issue if you encounter any bugs
- Make sure an issue exists before you create a pull request
- Act according to the code of conduct when contributing to the project
| Prettier plugin that auto-sorts StyleX keys | formatter,javascript,prettier,sort-keys,stylex,typescript | 2024-02-11T02:10:38Z | 2024-03-19T11:03:08Z | 2024-03-19T11:03:08Z | 1 | 0 | 46 | 2 | 0 | 7 | null | MIT | TypeScript |
scanurag/FoodFrenzy | main | # FoodFrenzy Web Application

FoodFrenzy is a web-based application designed to revolutionize food industry management. With its intuitive interface, it streamlines operations by seamlessly managing customer data, inventory, and orders. This comprehensive solution ensures efficient decision-making and provides accessibility from any device, enhancing productivity in the dynamic food business landscape.
## Features
### Customer Management
Easily add, update, and delete customer information. Efficiently manage your customer database to enhance customer relationships.
### Inventory Management
Keep track of your inventory items, including stock levels and pricing. Effectively manage your stock to optimize supply chain operations.
### Order Management
Manage customer orders with ease, including order creation, tracking, and fulfillment. Streamline your order processing for improved customer satisfaction.
### User Authentication
Implement secure login and authentication for admin and staff members. Protect sensitive information and control access to different parts of the application.
### Role-Based Access Control
Define roles and permissions for different user types. Ensure that each team member has the appropriate level of access for their responsibilities.
### Thymeleaf Templates
Utilize Thymeleaf for dynamic HTML templates. Create interactive and user-friendly web pages with server-side rendering.
### Database Integration
Integrated with MySQL for data storage. Ensure reliable and scalable data management to support your application's functionality.
## Technologies Used
- **Spring Boot:** Backend framework for building Java-based web applications.
- **Thymeleaf:** Server-side Java template engine for dynamic HTML generation.
- **MySQL:** Relational database management system for data storage.
- **IDE/Tool:** Spring Tool Suite 4 (Eclipse)
## Getting Started
Include instructions on how to set up and run the application locally. Provide any necessary configuration steps, dependencies, or environment variables.
Clone the repository : $ git clone https://github.com/scanurag/FoodFrenzy-project.git
## Preview


















| Designed and developed a E Commerce FoodFrenzy using Java, Spring Boot, Spring MVC, Spring Data JPA, MySQL, HTML, CSS, JavaScript and Thymeleaf | css,curd-operation,html,ioc,j2ee,java,java-8,java-ecommerce-website,java-spring-boot-project,javafullstack | 2024-02-19T12:54:24Z | 2024-02-19T16:09:12Z | null | 1 | 1 | 6 | 0 | 2 | 6 | null | null | HTML |
batrdn/mocking-bird | main | # Mocking Bird

Testing with real-world data scenarios is crucial, but creating such data shouldn't be a chore. Therefore, this project
aims to provide a simple and easy, yet accurate and context-aware data generation for your models or
schemas, so that it makes your testing experience smooth. Whether it is for unit tests, integration tests or stress
tests, you can use it to easily generate fake data with flexible custom options and constraints.
What does it mean to be context-aware? It means that the generated data is not just some random-random value, but it's
generated in a way that it's suitable for the fields and constraints of your model or schema.
For example, if you have a field
`workEmail` in your model, the generated data will be a valid email address, and not just a random string.
# Packages
Mocking Bird is a package-based repo using [Nx](https://nx.dev/). To see how individual packages work in detail, please refer to the respective READMEs.
- [@mocking-bird/core](./packages/core)
- [@mocking-bird/mongoose](./packages/mongoose/README.md)
- [@mocking-bird/graphql](./packages/graphql/README.md)
To contribute to the project with a new package, please refer to the [contribution guidelines](CONTRIBUTING.md).
# Examples
### Mongoose Fixture
```typescript
import { Schema } from 'mongoose';
import { MongooseFixture } from '@mocking-bird/mongoose';
const schema = new Schema({
name: String,
email: String,
age: { type: Number, min: 18, max: 100 },
workEmail: String,
address: {
street: String,
city: String,
country: String,
},
createdAt: Date,
updatedAt: Date,
});
const fixture = new MongooseFixture(schema);
const data = fixture.generate();
```
**Example output:**
```json
{
"name": "Turner, Thompson and Mueller",
"email": "Jerome.Mraz58@yahoo.com",
"age": 55,
"workEmail": "Sabrina99@hotmail.com",
"address": {
"street": "Apt. 123 1234",
"city": "Lake Ethylburgh",
"country": "Gambia"
},
"createdAt": "2023-09-11T05:38:59.576Z",
"updatedAt": "2024-02-26T08:25:16.412Z",
"_id": "a84f58e2fcff9dfaf148d7bf"
}
```
### GraphQL Fixture
```typescript
import { GraphQLFixture } from '@mocking-bird/graphql';
import { GraphQLSchema } from 'graphql';
const typeDefs = `
type User {
name: String
email: String
age: Int
workEmail: String
address: Address
createdAt: Date
updatedAt: Date
}
type Address {
street: String
city: String
country: String
}
`;
GraphQLSchema.registerSchema(typeDefs);
// TypedDocumentNode is a fully typed graphql document node
// For more information: https://github.com/dotansimha/graphql-typed-document-node
const fixture = new GraphQLFixture(TypedDocumentNode);
const data = fixture.generate();
```
# Running tests
Depending on which directory you are in, you can run the tests for the respective package.
`npm run test`
In the root directory, it will run the tests for only affected packages.
Alternatively, you could directly use `nx` to run the tests.
```
npx nx affected -t test --parallel
npx nx run-many --target=test --all
```
# License
The MIT License (MIT) 2024 - [Bat-Erdene Tsogoo](https://github.com/batrdn). Please have a look at the
[LICENSE](LICENSE.md) for more details.
| mocking-bird provides a set of simple, yet accurate and context-aware fixture generation tools for schema or database models. Currently mongoose and graphql fixture generation is supported | faker,mock-data,mock-data-generator,nodejs,testing-tools,typescript,javascript,mongoose-fixture | 2024-02-10T14:24:58Z | 2024-03-30T15:01:16Z | 2024-03-30T14:59:39Z | 1 | 3 | 124 | 0 | 0 | 6 | null | MIT | TypeScript |
Capstone-Projects-2024-Spring/project-blastpad | main | <div align="center">
<img
src="https://raw.githubusercontent.com/Capstone-Projects-2024-Spring/project-blastpad/assets/BlastPad%20Logo.svg"
width="200"
alt="BlastPad Logo"
/>
# BlastPad
[](https://temple-cis-projects-in-cs.atlassian.net/jira/software/c/projects/BP/issues)
[](https://github.com/Capstone-Projects-2024-Spring/project-blastpad/actions/workflows/deploy.yml)
[](https://capstone-projects-2024-spring.github.io/project-blastpad/)
</div>
## Keywords
Section 002, Python, Linux, Raspberry Pi, Embedded Systems, Blockly, React, SQL
## Project Abstract
The BlastPad is a kid-friendly handheld gaming device and block-based coding suite that makes it easy to create, play, and share custom games. Existing products in the STEM teaching tools space struggle to balance both performance and ease-of-use, whereas the BlastPad will offer a good mix of both. Built around a small but mighty Raspberry Pi single-board computer, the device will be an all-in-one solution for learning to make games and playing them. The device will also feature a number of sensors for students to experiment with alongside buttons and switches found on traditional handheld consoles like the Nintendo Game Boy.
The BlastPad will feature a kid-friendly user interface for navigating the downloaded game library, editing games, and for changing the settings of the BlastPad. Akin to existing handheld gaming devices like the Nintendo Switch, users will scroll through a list of games and choose to either play each game or edit them. Choosing to edit a game will launch the block-based code editor, where users can edit their games. Choosing to play a game will launch the game directly, replacing the main interface until the game is complete. In the settings panel, users will configure their WiFi setup, configure private groups called Classrooms, manage their Community Account, and change the colors of the user interface.
Users will use a web-based drag-and-drop block code editor to create programs and games from the BlastPad itself or their personal device (computer, phone, tablet). The code editor will feature a toolbox of existing “code blocks” representing different programming constructs such as variables, if statements, loops, and functions. These code blocks will snap together—either on top of each other or one inside of another—to form a cohesive program. Under the hood, the block code program will translate directly to Python and run on the device as a Python program. Users will click a “Run” button on the code editor that downloads the program from the web browser to the BlastPad and runs it using Python.
Users will share their own games and download others’ games through a public website hosted on a remote server. Each game uploaded to the site will have its own title and description, perhaps in the form of a markdown README file for customizability.
## High Level Requirement
Users can connect to the BlastPad’s locally hosted web-based block coding editor on their device of choice or the BlastPad itself. Within the block-based coding editor, users can choose from a large collection of pre-existing code blocks including I/O, control statements, sprite drawing, and even sensor measurement blocks. When finished, users will save the program to the BlastPad so a user can test the program instantly after making their edits. If the user is satisfied with their program and wants to share it, they can upload it to a public repository where they can also find games that other people made.
## Conceptual Design
The BlastPad will be based on the Raspberry Pi computer. On-board, there will be a stripped down version of Linux that runs games in Pygame and a web server using Flask. On the device, a browser will display the main user interface and the block code editor received from the Flask server. Companion devices connected to the same Wi-Fi network can access the block code editor, allowing users to make changes their programs and push them to the BlastPad. Additional electronics such as sensors and switches will be attached to the Raspberry Pi using the GPIO connections.
## Background
The inspiration for this project proposal came from years of tutoring students in programming and embedded systems. When working with devices such as the BBC micro:bit, the most experienced students would run out of projects for the devices after 20 lessons or so due to limiting hardware or software, after which it becomes a paper weight. Our goal for this project is to provide students with powerful hardware while also providing an easy to use interface to get started programming. Two competitors of the BlastPad include similar embedded system devices such as the BBC micro:bit and the CircuitMess Nibble.
The BBC micro:bit is the most popular of these competitors but features only a measly 5x5 LED matrix display and 2 tactile buttons. Similar to the BlastPad, students can use a block-based editor to interface with the micro:bit, but the lackluster hardware tends to bore even excited learners when compared to the iPads and iPhones they grew up with.
The Nibble is less popular but features a small color screen and a block-based IDE. The downside of the Nibble is that it is far less powerful than the latest Raspberry Pi. The Nibble also requires an active internet connection to access the block-based IDE, meaning the device could become unusable without an active internet connection or if CircuitMess discontinues their online services.
The BlastPad would be more powerful than both devices, featuring a Raspberry Pi that can run an entire operating system and web server. The power of the Raspberry Pi will allow the BlastPad coding suite to grow alongside its user base. The BlastPad would also be more engaging for young students, featuring a bright high-definition RGB screen that makes students' accomplishments feel more tangible. The BlastPad’s on-device block-based code editor allows users to quickly write and test their code while also giving them the security of using the device without an internet connection.
## Required Resources
https://capstone-projects-2024-spring.github.io/project-blastpad/docs/requirements/general-requirements
## Collaborators
[//]: # ( readme: collaborators -start )
<table>
<tr>
<td align="center">
<a href="https://github.com/Snarr">
<img src="https://avatars.githubusercontent.com/u/20634143?v=4" width="100;" alt="Snarr"/>
<br />
<sub><b>Jacob Snarr</b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/gummyfrog">
<img src="https://avatars.githubusercontent.com/u/32652208?v=4" width="100;" alt="Neil"/>
<br />
<sub><b>Neil Conley</b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/Jeffin-J">
<img src="https://avatars.githubusercontent.com/u/112404549?v=4" width="100;" alt="Jeffin"/>
<br />
<sub><b>Jeffin Johnykutty</b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/MWedee">
<img src="https://avatars.githubusercontent.com/u/104322948?v=4" width="100;" alt="Mustafa Wedee"/>
<br />
<sub><b>Mustafa Wedee</b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/mustafamalik-tu">
<img src="https://avatars.githubusercontent.com/u/144449116?v=4" width="100;" alt="Mustafa Malik"/>
<br />
<sub><b>Mustafa Malik</b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/tuk05348">
<img src="https://avatars.githubusercontent.com/u/123013839?v=4" width="100;" alt="Niaz Baharudeen"/>
<br />
<sub><b>Niaz Baharudeen</b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/APM1015">
<img src="https://avatars.githubusercontent.com/u/122992723?v=4" width="100;" alt="Aiden McGonagle"/>
<br />
<sub><b>Aiden McGonagle</b></sub>
</a>
</td>
</tr>
</table>
[//]: # ( readme: collaborators -end )
| A kid-friendly handheld gaming device and block-based coding suite that makes it easy to create, play, and share custom games. | javascript,linux,python,raspberry-pi,react,vite | 2024-01-29T20:12:16Z | 2024-05-06T15:16:00Z | 2024-04-29T03:10:59Z | 11 | 147 | 673 | 0 | 1 | 6 | null | null | JavaScript |
nousantx/React-Styler | 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
| Styler test for reactjs for getting more efficiency. | css-framework,front-end-development,javascript,reactjs,ui-components | 2024-02-03T05:05:01Z | 2024-04-09T08:43:34Z | null | 1 | 0 | 6 | 0 | 0 | 6 | null | null | JavaScript |
HackResist/GeeksForGeeks-POTD | main | # Due to my ongoing exams, I won't be able to update the daily problems for a few days. Thanks for Your Support!
## After Exam I update Daily Solutions of POTD.
## My Exam End on 5-06-2024

[Go To Today Solution(13-05-2024)](https://github.com/HackResist/GeeksForGeeks-POTD/tree/main/13-05-2024)
<!--
<p align="center">
<a href="#blank"><img src="Geeksforgeeks.png" alt="HackResist"></a>
</p>
<div align='left'>
-->
<h1>📖Geeksforgeeks Porblem Of The Day Solutions</h1>
</div>
<p> Welcome to the GeeksforGeeks Problem of the Day (PotD) Solutions repository! This repository aims to provide daily solutions to the coding challenges presented by GeeksforGeeks as part of their Problem of the Day series. GeeksforGeeks is a popular platform for computer science resources, tutorials, and coding practice, offering a wide range of programming challenges to help developers enhance their skills. </p>
## *🔹Go To Geeksforgeeks:*
<div align='center'> <a href="https://geeksforgeeks.org/"><img src="https://img.shields.io/badge/GeeksforGeeks-100000?style=plastic&logo=geeksforgeeks&logoColor=FFFFFF&labelColor=42BA3D&color=23891F" alt="Lokesh Chauhan | GeeksforGeeks"/></a>
</div>
<div align='center'>
<h4> <span> · </span> <a href="https://github.com/HackResist/GeeksForGeeks-POTD/issues"> Report Mistakes </a> </h4>
</div>
## March Code:
<details>
<summary>This is March Solutions</summary>
[17-03-2024](https://github.com/HackResist/GeeksForGeeks-POTD/tree/main/17-03-2024)
[18-03-2024](https://github.com/HackResist/GeeksForGeeks-POTD/tree/main/18-03-2024)
[19-03-2024](https://github.com/HackResist/GeeksForGeeks-POTD/tree/main/19-03-2024)
[20-03-2024](https://github.com/HackResist/GeeksForGeeks-POTD/tree/main/20-03-2024)
[21-03-2024](https://github.com/HackResist/GeeksForGeeks-POTD/tree/main/21-03-2024)
[22-03-2024](https://github.com/HackResist/GeeksForGeeks-POTD/tree/main/22-03-2024)
[23-03-2024](https://github.com/HackResist/GeeksForGeeks-POTD/tree/main/23-03-2024)
[24-03-2024](https://github.com/HackResist/GeeksForGeeks-POTD/tree/main/24-03-2024)
[25-03-2024](https://github.com/HackResist/GeeksForGeeks-POTD/tree/main/25-03-2024)
[26-03-2024](https://github.com/HackResist/GeeksForGeeks-POTD/tree/main/26-03-2024)
[27-03-2024](https://github.com/HackResist/GeeksForGeeks-POTD/tree/main/27-03-2024)
[28-03-2024](https://github.com/HackResist/GeeksForGeeks-POTD/tree/main/28-03-2024)
[30-03-2024](https://github.com/HackResist/GeeksForGeeks-POTD/tree/main/30-03-2024)
[31-03-2024](https://github.com/HackResist/GeeksForGeeks-POTD/tree/main/31-03-2024)
</details>
## April Code:
<details>
<summary>This is April Solutions</summary>
[01-04-2024](https://github.com/HackResist/GeeksForGeeks-POTD/tree/main/1-04-2024)
[02-04-2024](https://github.com/HackResist/GeeksForGeeks-POTD/tree/main/2-04-2024)
[03-04-2024](https://github.com/HackResist/GeeksForGeeks-POTD/tree/main/03-04-2024)
[04-04-2024](https://github.com/HackResist/GeeksForGeeks-POTD/tree/main/04-04-2024)
[05-04-2024](https://github.com/HackResist/GeeksForGeeks-POTD/tree/main/05-04-2024)
[06-04-2024](https://github.com/HackResist/GeeksForGeeks-POTD/tree/main/06-04-2024)
[07-04-2024](https://github.com/HackResist/GeeksForGeeks-POTD/tree/main/07-04-2024)
[08-04-2024](https://github.com/HackResist/GeeksForGeeks-POTD/tree/main/08-04-2024)
[09-04-2024](https://github.com/HackResist/GeeksForGeeks-POTD/tree/main/09-04-2024)
[10-04-2024](https://github.com/HackResist/GeeksForGeeks-POTD/tree/main/10-04-2024)
[11-04-2024](https://github.com/HackResist/GeeksForGeeks-POTD/tree/main/11-04-2024)
[12-04-2024](https://github.com/HackResist/GeeksForGeeks-POTD/tree/main/12-04-2024)
[13-04-2024](https://github.com/HackResist/GeeksForGeeks-POTD/tree/main/13-04-2024)
[14-04-2024](https://github.com/HackResist/GeeksForGeeks-POTD/tree/main/14-04-2024)
[15-04-2024](https://github.com/HackResist/GeeksForGeeks-POTD/tree/main/15-04-2024)
[16-04-2024](https://github.com/HackResist/GeeksForGeeks-POTD/tree/main/16-04-2024)
[17-04-2024](https://github.com/HackResist/GeeksForGeeks-POTD/tree/main/17-04-2024)
[18-04-2024](https://github.com/HackResist/GeeksForGeeks-POTD/tree/main/18-04-2024)
[19-04-2024](https://github.com/HackResist/GeeksForGeeks-POTD/tree/main/19-04-2024)
[20-04-2024](https://github.com/HackResist/GeeksForGeeks-POTD/tree/main/20-04-2024)
[21-04-2024](https://github.com/HackResist/GeeksForGeeks-POTD/tree/main/21-04-2024)
[22-04-2024](https://github.com/HackResist/GeeksForGeeks-POTD/tree/main/22-04-2024)
[23-04-2024](https://github.com/HackResist/GeeksForGeeks-POTD/tree/main/23-04-2024)
[24-04-2024](https://github.com/HackResist/GeeksForGeeks-POTD/tree/main/24-04-2024)
[25-04-2024](https://github.com/HackResist/GeeksForGeeks-POTD/tree/main/25-04-2024)
[26-04-2024](https://github.com/HackResist/GeeksForGeeks-POTD/tree/main/26-04-2024)
[27-04-2024](https://github.com/HackResist/GeeksForGeeks-POTD/tree/main/27-04-2024)
[28-04-2024](https://github.com/HackResist/GeeksForGeeks-POTD/tree/main/28-04-2024)
[30-04-2024](https://github.com/HackResist/GeeksForGeeks-POTD/tree/main/30-04-2024)
</details>
## May Code:
<details>
<summary>This is May Solutions</summary>
[01-05-2024](https://github.com/HackResist/GeeksForGeeks-POTD/tree/main/01-05-2024)
[02-05-2024](https://github.com/HackResist/GeeksForGeeks-POTD/tree/main/02-05-2024)
[03-05-2024](https://github.com/HackResist/GeeksForGeeks-POTD/tree/main/03-05-2024)
[04-05-2024](https://github.com/HackResist/GeeksForGeeks-POTD/tree/main/04-05-2024)
[05-05-2024](https://github.com/HackResist/GeeksForGeeks-POTD/tree/main/05-05-2024)
[06-05-2024](https://github.com/HackResist/GeeksForGeeks-POTD/tree/main/06-05-2024)
[07-05-2024](https://github.com/HackResist/GeeksForGeeks-POTD/tree/main/07-05-2024)
[08-05-2024](https://github.com/HackResist/GeeksForGeeks-POTD/tree/main/08-05-2024)
[09-05-2024](https://github.com/HackResist/GeeksForGeeks-POTD/tree/main/09-05-2024)
[10-05-2024](https://github.com/HackResist/GeeksForGeeks-POTD/tree/main/10-05-2024)
[11-05-2024](https://github.com/HackResist/GeeksForGeeks-POTD/tree/main/11-05-2024)
[12-05-2024](https://github.com/HackResist/GeeksForGeeks-POTD/tree/main/12-05-2024)
[13-05-2024](https://github.com/HackResist/GeeksForGeeks-POTD/tree/main/13-05-2024)
</details>
## ⭐️Features
- **Daily Solutions:** Get solutions to GeeksforGeeks' Problem of the Day challenges delivered straight from my GitHub repository.
- **Multiple Languages:** Solutions are provided in all supported languages by GeeksforGeeks, including Python, Java, C++, JavaScript, and more, allowing users to choose their preferred programming language.
- **Accessible Learning:** Whether you're a beginner looking to understand coding concepts or an experienced developer seeking optimization techniques, these solutions provide valuable insights and learning opportunities.
## **💬Disclaimer:**
The solutions provided in this repository are intended for educational purposes only. While efforts are made to ensure accuracy and correctness, they may not always represent the most optimal or error-free solutions. Use them responsibly and strive to understand the underlying concepts and algorithms.
| Here is Solution of GeeksForGeeks Solutions of Problem Of The Day in All Supported Languages. Go To Geeksforgeeks- | algorithms,all,c-sharp,cpp,daily-coding-problem,dsa-algorithm,gfg,java,javascript,language | 2024-03-13T11:17:36Z | 2024-05-15T11:38:56Z | null | 1 | 0 | 361 | 0 | 1 | 6 | null | null | Java |
lassiecoder/npx-lassiecoder | main | # `npx lassiecoder` in your terminal?
## Preview

## Create your personalized NPX introduction card
### Step 1: Select a Unique Package Name
Choose a distinctive name for your package, as it will be the identifier for invoking your introduction command using `npx`.
### Step 2: Establish a New Directory
Create a fresh directory for your package, naming it after the chosen package name.
```bash
mkdir npx-username
cd npx-username
```
### Step 3: Initialize Your Package
Initialize your project as a Node.js package using the command:
```bash
npm init -y
```
### Step 4: Develop an Executable Script
Within your project directory, create a JavaScript file named `index.js` and store it in a folder named `bin`. This file will function as the executable script for your npx command.
Ensure to specify the `bin` field in `package.json`:
```json
"bin": {
"username": "./bin/index.js"
}
```
**Ensuring Script Execution Capability:**
To enable script execution, follow these steps:
For Mac/Linux:
```bash
chmod +x bin/index.js
```
For Windows:
```bash
git update-index --chmod=+x bin/index.js
```
### Step 5: Add your script to execute and display in terminal
Execute your script with the following command:
```bash
node bin/index.js
```
### Step 6: Publish the package
Once your script runs successfully, publish the package:
**1. Log in to npm:**
```bash
npm adduser
```
**2. After logging in, return to the terminal and run:**
```bash
npm publish
```
### Step 7: Execute Your NPX Command
Once the package is published, run your npx command:
```bash
npx username
```
Follow these steps to create your personalized NPX introduction command and share it with others!
***Happy coding! 🚀***
| A personalized command-line business card. This innovative tool allows you to showcase your professional profile, skills, and contact information directly in the terminal. Simply run `npx [Your Package Name]` to instantly generate your customized NPX Card, providing a unique and memorable way to introduce yourself to fellow developers. | npx-card,lassiecoder,npx-business-card,npx-lassiecoder,card,cli,intro,introduction,javascript,nodejs | 2024-03-08T21:35:27Z | 2024-03-29T08:31:19Z | null | 1 | 1 | 10 | 0 | 0 | 6 | null | MIT | JavaScript |
jokeri2222/Quizlet-Hack | main |
# Quizlet hack
NOTE images are curently being worked on and if the set is all images no text it wont work!
## Description
This is a Quizlet hack made for Chrome browser and Tampermonkey. Made in vanilla js but tested only on Chromium browsers.
## Instructions
1. Open the QuizletHack.user.js
2. Click raw to install this script to Tampermonkey or copy-paste it on the console. Ctrl+Shift+i opens the developer tab and there you can find the console. Paste the code the code there and press enter to run it.
3. Enter the join code.

5. Have happy cheating :). Also if the cheat does not work this make be because of the users quizlet being private.
## Features
The latest version includes Auto Answer and Show Answers. By pressing Alt+h on your keyboard it will hide the menu and by pressing Alt+x it will terminate the menu. You can drag the menu from the top bar and minimize and close if you want. Closing the cheat will end the script and will not auto-answer or show the answers. You can use this as a panic button. Or just do Alt+x.

## Credits
Huge thanks to [Epic0001](https://github.com/Epic0001) for bug testing, general bug fixing and coming up with the idea. Without his help, this project would be way outdated and not fully working piece of cheatware.
## Donations
The cheat is free to use but if you respect me and my work and you want to support me in making these hacks and updating them. Here is a way to donate to me and it really helps me. Thank you!
[](https://www.paypal.com/donate/?hosted_button_id=DUXNZVDCDAQ8S)
| A Quizlet hack made in vanilla js. Just copy-paste to console and you are ready to cheat. Also downloadable to Tampermonkey. | javascript,javascript-vanilla,js,quizlet,quizlet-cheats,quizlet-hack,quizlet-live,tampermonkey,tampermonkey-extension,tampermonkey-javascript-userscripts | 2024-02-05T00:49:02Z | 2024-05-03T21:53:35Z | null | 2 | 0 | 27 | 0 | 0 | 6 | null | null | JavaScript |
codenteq/interfeys | master | <p align="center"><img src="https://codenteq.com/wp-content/uploads/2024/03/interfeys-logo.webp" width="250" alt="İnterfeys Design System Logo" /></p>
<h1 align="center">Interfeys Design System</h1>
<p align="center">
<a href="https://www.npmjs.com/package/@codenteq/interfeys">
<img src="https://img.shields.io/npm/v/@codenteq/interfeys.svg" alt="NPM Package Stable" />
</a>
<a href="https://github.com/codenteq/interfeys/blob/master/LICENSE">
<img src="https://img.shields.io/github/license/codenteq/interfeys.svg" alt="License" />
</a>
<a href="https://www.jsdelivr.com/package/npm/@codenteq/interfeys">
<img src="https://img.shields.io/jsdelivr/npm/hm/@codenteq/interfeys" alt="jsDelivr hits" />
</a>
<a href="https://github.com/semantic-release/semantic-release">
<img src="https://img.shields.io/badge/semantic--release-react-e10079?logo=semantic-release" alt="semantic-release: angular" />
</a>
</p>
Interfeys is a design system provided by [Codenteq](https://github.com/codenteq) to create a consistent UI/UX for app users.
Web implementation of the design system is created as native web components so it can be used within every type of web frameworks including React. Our target is providing a UI library that has neatly designed and developed for providing best possible user experience for the users of applications that uses Interfeys DS.
## Getting Started
First, install the package:
```bash
npm i @codenteq/interfeys
```
In order for the styles to be applied correctly, you will need to ensure that the path to @codenteq is included in the content field of your `tailwind.config.ts`.
```javascript
'./node_modules/@codenteq/**/*.{js,ts,jsx,tsx}'
```
```typescript
<Button
type={'button'}
label={'Interfeys works!'}
/>
```
## How to contribute
Interfeys Design System is always open for direct contributions. Contributions can be in the form of design suggestions, documentation improvements, new component suggestions, code improvements, adding new features or fixing problems. For more information please check our [Contribution Guideline document.](https://github.com/codenteq/interfeys/blob/master/CONTRIBUTING.md)
## Useful Links
* [Storybook Documentation](https://interfeys.codenteq.com/)
| Interfeys is a design system provided by Codenteq to create a consistent UI/UX for app users. | components,design-system,frontend,javascript,typescript,web-components,uikit | 2024-03-05T17:21:01Z | 2024-05-21T12:06:49Z | 2024-05-21T12:06:49Z | 2 | 23 | 77 | 0 | 2 | 6 | null | MIT | TypeScript |
Honzoraptor31415/URLShortener | main | # URL Shortener
I once again made something when I was bored.
## Technologies/languages this project uses:
<br/>
[](/)
| A fully functional URL shortener I made when I was bored (again) | appwrite,appwrite-database,sveltekit,typescript,url-shortener,javascript,svelte,bitly-clone | 2024-03-04T08:15:38Z | 2024-03-28T08:41:42Z | null | 1 | 0 | 16 | 0 | 0 | 6 | null | null | Svelte |
fzn0x/hypf | main | <p align="center" width="100%">
<img width="55%" src="./assets/hyperfetch.png">
</p>
Supertiny (4kB minified & 0 dependencies) and strong-typed HTTP client for Deno, Bun, Node.js, Cloudflare Workers and Browsers.
```sh
# Node.js
npm install hypf
# Bun
bun install hypf
```
The idea of this tool is to provide lightweight `fetch` wrapper for Node.js, Bun:
```js
import hypf from "hypf";
const hypfRequest = hypf.createRequest("https://jsonplaceholder.typicode.com"); // Pass true for DEBUG mode
// Example usage of POST method with retry and timeout
const [postErr, postData] = await hypfRequest.post(
"/posts",
{ retries: 3, timeout: 5000 },
{
title: "foo",
body: "bar",
userId: 1,
}
);
if (postErr) {
console.error("POST Error:", postErr);
} else {
console.log("POST Data:", postData);
}
```
Cloudflare Workers:
```ts
export default {
async fetch(
request: Request,
env: Env,
ctx: ExecutionContext
): Promise<Response> {
const hypfInstance = await hypf.createRequest(
"https://jsonplaceholder.typicode.com"
);
const [getErr, getData] = await hypfInstance.get<
Array<{
userId: number;
id: number;
title: string;
body: string;
}>
>("/posts");
if (getErr) {
console.error("GET Error:", getErr);
}
return Response.json(getData);
},
};
```
and Browsers:
```html
<script src="https://unpkg.com/hypf/dist/hyperfetch-browser.min.js"></script>
<script>
(async () => {
const request = hypf.default.createRequest(
"https://jsonplaceholder.typicode.com"
);
})();
</script>
```
# Why Hyperfetch?
## Simple Core
We define things easier with composed functions, ofcourse contribute easier.
```js
get: (url, options, data) => httpMethodFunction(url, options)('GET', options, data),
post: (url, options, data) => httpMethodFunction(url, options)('POST', options, data),
put: (url, options, data) => httpMethodFunction(url, options)('PUT', options, data),
delete: (url, options, data) => httpMethodFunction(url, options)('DELETE', options, data),
patch: (url, options, data) => httpMethodFunction(url, options)('PATCH', options, data),
options: (url, options, data) => httpMethodFunction(url, options)('OPTIONS', options, data),
getAbortController,
```
## Error Handling
No need to write `try..catch` ! hypf do it like this:
```js
const hypfRequest = hypf.createRequest("https://jsonplaceholder.typicode.com";
// Example usage of POST method with retry and timeout
const [postErr, postData] = await hypfRequest.post(
'/posts',
{ retries: 3, timeout: 5000 },
{
title: 'foo',
body: 'bar',
userId: 1,
}
);
if (postErr) {
console.error('POST Error:', postErr);
} else {
console.log('POST Data:', postData);
}
```
## Hooks
Hooks is supported and expected to not modifying the original result by design.
```js
const hooks = {
preRequest: (url, options) => {
console.log(`Preparing to send request to: ${url}`);
// You can perform actions before the request here
},
postRequest: (url, options, data, response) => {
console.log(
`Request to ${url} completed with status: ${
response?.[0] ? "error" : "success"
}`
);
// You can perform actions after the request here, including handling errors
},
};
const requestWithHooks = hypf.createRequest(
"https://jsonplaceholder.typicode.com",
hooks,
true
); // pass true for DEBUG mode
// Example usage of POST method with retry and timeout
const [postErr, postData] = await requestWithHooks.post(
"/posts",
{ retries: 3, timeout: 5000 },
{
title: "foo",
body: "bar",
userId: 1,
}
);
```
List of Hooks:
```ts
export interface Hooks {
preRequest?: (url: string, options: RequestOptions) => void;
postRequest?: <T, U>(
url: string,
options: RequestOptions,
data?: T,
response?: [Error | null, U]
) => void;
preRetry?: (
url: string,
options: RequestOptions,
retryCount: number,
retryLeft: number
) => void;
postRetry?: <T, U>(
url: string,
options: RequestOptions,
data?: T,
response?: [Error | null, U],
retryCount?: number,
retryLeft?: number
) => void;
preTimeout?: (url: string, options: RequestOptions) => void;
postTimeout?: (url: string, options: RequestOptions) => void;
}
```
## Retry Mechanism
You can retry your request once it's failed!
```js
const [postErr, postData] = await requestWithHooks.post(
"/posts",
{ retries: 3, timeout: 5000 },
{
title: "foo",
body: "bar",
userId: 1,
}
);
```
Jitter and backoff also supported. 😎
```js
const [postErr, postData] = await requestWithHooks.post(
"/posts",
{ retries: 3, timeout: 5000, jitter: true }, // false `jitter` to use backoff
{
title: "foo",
body: "bar",
userId: 1,
}
);
```
You can modify backoff and jitter factor as well.
```js
const [postErr, postData] = await requestWithHooks.post(
"/posts",
{ retries: 3, timeout: 5000, jitter: true, jitterFactor: 10000 }, // false `jitter` to use backoff
{
title: "foo",
body: "bar",
userId: 1,
}
);
// or backoff
const [postErr, postData] = await requestWithHooks.post(
"/posts",
{ retries: 3, timeout: 5000, jitter: false, backoffFactor: 10000 }, // false `jitter` to use backoff
{
title: "foo",
body: "bar",
userId: 1,
}
);
```
Retry on timeout also supported.
```js
const [postErr, postData] = await requestWithHooks.post(
"/posts",
{ retries: 3, timeout: 5000, retryOnTimeout: true },
{
title: "foo",
body: "bar",
userId: 1,
}
);
```
## Infer Response Types
```ts
const [getErr, getData] = await hypfRequest.get<
Array<{
userId: number;
id: number;
title: string;
body: string;
}>
>("/posts", {
retries: 3,
timeout: 5000,
});
getData?.[0]?.id; // number | undefined
```
### URLSearchParams
```ts
const [getErr, getData] = await hypfRequest.get("/posts", {
retries: 3,
timeout: 5000,
params: {
id: 1,
},
}); // /posts?id=1
```
### Applications Knowledges
#### Constant
```js
const DEFAULT_MAX_TIMEOUT = 2147483647;
const DEFAULT_BACKOFF_FACTOR = 0.3;
const DEFAULT_JITTER_FACTOR = 1;
```
#### AbortController
We expose abort controller, you can cancel next request anytime.
```js
// DELETE will not work if you uncomment this
const controller = requestWithHooks.getAbortController();
controller.abort();
// Example usage of DELETE method with retry and timeout
const [deleteErr, deleteData] = await requestWithHooks.delete("/posts/1", {
retries: 3,
timeout: 5000,
});
if (deleteErr) {
console.error("DELETE Error:", deleteErr);
} else {
console.log("DELETE Data:", deleteData);
}
```
---
License MIT 2024
| 🤏 Supertiny (1.9kB MINIFIED + GZIPPED & 0 dependencies) and strong-typed HTTP client for Deno, Bun, Node.js, Cloudflare Workers and Browsers. | fetch,fetch-api,fetch-wrapper,frontend,http,http-client,http-request,javascript,js,json | 2024-03-12T21:13:42Z | 2024-05-14T22:04:36Z | 2024-05-14T22:04:36Z | 1 | 0 | 32 | 1 | 0 | 6 | null | MIT | TypeScript |
odracirdev/challengeHTML | main | 
# HTML 30-day challenge by ManzDev
Este repositorio contiene la solución al ["HTML 30-day Challenge"](https://lenguajehtml.com/challenge/) creado por [ManzDev](https://manz.dev) con la finalidad de aprender y/o practicar con los lenguajes HTML, CSS y un poco de JavaScript.
> [!IMPORTANT]
> Estos desafíos los resuelvo en vivo en mi canal de twitch, si quieres ver cómo lo hago te invito a seguirme. También puedes ver el calendario con todos los directos en tu hora local accediendo a mi servidor de discord.
> [!NOTE]
> Por ahora las soluciones solo tienen el código necesario para pasar cada una de las pruebas, mi idea es que cuando termine con los 30 desafíos poder hacer un refactor completo de todos y convertirlos en mini proyectos.
<div align="center">
[](https://discord.gg/AFrzAEYA85)
[](https://twitch.tv/odracirdev)
</div>
## Lista de desafíos
| Día | Desafío | Solución |
|-----|---------|----------|
|01| ✅ Crea una página HTML con código CSS desde un archivo diferente. | [🔗](https://odracirdev.github.io/challengeHTML/desafios/01/index.html) |
|02| ✅ Crea una página con un titular, varios párrafos de texto y una imagen. | [🔗](https://odracirdev.github.io/challengeHTML/desafios/02/index.html) |
|03| ✅ Construye una página con un párrafo que tenga enlaces internos y externos (a otros sitios web). | [🔗](https://odracirdev.github.io/challengeHTML/desafios/03/index.html) |
|04| ✅ Valida el código HTML de tus ejemplos anteriores (y los siguientes a partir de ahora). | [🔗](https://odracirdev.github.io/challengeHTML/desafios/04/index.html) |
|05| ✅ Ponle un título y una descripción al documento, ideal para SEO. | [🔗](https://odracirdev.github.io/challengeHTML/desafios/05/index.html) |
|06| ✅ Crea un grupo de secciones (acordeón) donde se despliegue sólo uno a la vez. | [🔗](https://odracirdev.github.io/challengeHTML/desafios/06/index.html) |
|07| ✅ Coloca una imagen en formato JPEG-XL. Si el navegador no la soporta, que use AVIF. Sino, que use JPG. | [🔗](https://odracirdev.github.io/challengeHTML/desafios/07/index.html) |
|08| ✅ Crear un párrafo de texto con palabras destacadas en diferentes colores. | [🔗](https://odracirdev.github.io/challengeHTML/desafios/08/index.html) |
|09| ✅ Crea un pergamino con una lista de objetos, donde se numere con números romanos (mayúsculas). | [🔗](https://odracirdev.github.io/challengeHTML/desafios/09/index.html) |
|10| ✅ Busca 5 videos de youtube. Inserta uno en la página. Haz que se pueda cambiar entre ellos como una TV. Dale estilo con CSS para que se vea más bonito. | [🔗](https://odracirdev.github.io/challengeHTML/desafios/10/index.html) |
|11| ✅ Escribe un texto con super/subíndices (fórmulas químicas, por ejemplo). | [🔗](https://odracirdev.github.io/challengeHTML/desafios/11/index.html) |
|12| ✅ Crea un slider que permita seleccionar un número entre 1-50 y lo muestre en vivo al cambiar. | [🔗](https://odracirdev.github.io/challengeHTML/desafios/12/index.html) |
|13| ✅ Crea una barra medidora que muestre los tickets vendidos en un cine (64/100 tickets vendidos). | [🔗](https://odracirdev.github.io/challengeHTML/desafios/13/index.html) |
|14| ✅ Muestra un bloque de fragmento de código CSS en una página. Si quieres ir al máximo, añade una librería Javascript para añadirle resaltado de colores. | [🔗](https://odracirdev.github.io/challengeHTML/desafios/14/index.html) |
|15| ✅ Crea una página con un video MP4 (no de youtube), que muestre una imagen de portada antes de darle a reproducir. | [🔗](https://odracirdev.github.io/challengeHTML/desafios/15/index.html) |
|16| ✅ Muestra un texto con el atajo de teclado CTRL+ALT+SUPR y dale estilo para que parezcan teclas. | [🔗](https://odracirdev.github.io/challengeHTML/desafios/16/index.html) |
|17| ✅ Crea una card de usuario: username como título, un avatar, edad, país, nacimiento y enlace a su web. | [🔗](https://odracirdev.github.io/challengeHTML/desafios/17/index.html) |
|18| ✅ Crea un pequeño artículo de prensa con una noticia inventada. Usa etiquetas HTML semánticas. | [🔗](https://odracirdev.github.io/challengeHTML/desafios/18/index.html) |
|19| ✅ Crea una tabla con información. Incluye una cabecera y un pie de tabla. La última columna será de un color diferente. | [🔗](https://odracirdev.github.io/challengeHTML/desafios/19/index.html) |
|20| ✅ Crea un formulario para dejar un comentario en una página: Usuario y comentario de texto. | [🔗](https://odracirdev.github.io/challengeHTML/desafios/20/index.html) |
|21| ✅ Crea una lista desplegable donde se pueda seleccionar entre 3 grupos de productos ficticios. | [🔗](https://odracirdev.github.io/challengeHTML/desafios/21/index.html) |
|22| ✅ En la lista anterior, permite al usuario introducir opciones personalizadas (no sólo las de la lista) y filtrar las opciones existentes. | [🔗](https://odracirdev.github.io/challengeHTML/desafios/22/index.html) |
|23| ✅ Crea un formulario que te permita elegir un día entre el 15/nov y el 15/dic. | [🔗](https://odracirdev.github.io/challengeHTML/desafios/23/index.html) |
|24| ✅ Crea un formulario de registro que valide si el username escrito es válido (sólo letras y números) o no. | [🔗](https://odracirdev.github.io/challengeHTML/desafios/24/index.html) |
|25| ✅ Crea una galería de fotos. Asegúrate que no se cargan si están fuera de la región visible del navegador. | [🔗](https://odracirdev.github.io/challengeHTML/desafios/25/index.html) |
|26| ✅ Crea un mensaje emergente al pulsar un botón, que desaparezca al pulsar fuera del mensaje. | [🔗](https://odracirdev.github.io/challengeHTML/desafios/26/index.html) |
|27| ✅ Crea una serie de etiquetas que permitan mostrar como miniatura una imagen en redes sociales. | [🔗](https://odracirdev.github.io/challengeHTML/desafios/27/index.html) |
|28| ✅ Crea una ventana modal que bloquee la interación con otros botones. Requiere un poco de Javascript. | [🔗](https://odracirdev.github.io/challengeHTML/desafios/28/index.html) |
|29| ✅ Crea un sistema de pestañas (tabs) para mostrar información. Necesita algo de Javascript. | [🔗](https://odracirdev.github.io/challengeHTML/desafios/29/index.html) |
|30| ✅ Carga una librería Javascript de confetti y lánzalo cuando pulses en un botón. Requiere algo de Javascript. | [🔗](https://odracirdev.github.io/challengeHTML/desafios/30/index.html) |
| null | css,html,javascript | 2024-02-27T20:17:58Z | 2024-04-28T03:25:09Z | null | 2 | 1 | 78 | 1 | 0 | 6 | null | MIT | HTML |
MoistCatawumpus/awesome-docker | main | # <img src="logo.png" width="30"> **Awesome Docker**
### https://moistcatawumpus.github.io/awesome-docker/
Welcome to Awesome Docker, your go-to resource for Docker services and configurations!
# Docker Setup
### [Get Started with Docker Here!](https://www.docker.com/get-started/)
# Something Didn't Work?
Please open an Issue [here](https://github.com/MoistCatawumpus/awesome-docker/issues) and I will get on it as soon as possible!
## Inspired By
[veggiemonk/awesome-docker](https://github.com/veggiemonk/awesome-docker)
| 🐳Welcome to Awesome Docker, your go-to resource for Docker services and configurations! | awesome-list,css,docker,docker-compose,docker-image,html,html-css,html-css-javascript,html5,javascript | 2024-02-04T00:57:10Z | 2024-02-10T10:13:24Z | 2024-02-10T05:22:19Z | 1 | 0 | 35 | 0 | 0 | 6 | null | GPL-3.0 | JavaScript |
ViktorSvertoka/goit-react-woolf-hw-02-phonebook | main | Використовуй цей
[шаблон React-проекту](https://github.com/goitacademy/react-homework-template#readme)
як стартову точку своєї програми.
# Критерії приймання
- Створені репозиторії `goit-react-woolf-hw-02-phonebook`.
- При здачі домашньої роботи є два посилання: на вихідні файли та робочі
сторінки кожного завдання на `GitHub Pages`.
- Під час запуску коду завдання в консолі відсутні помилки та попередження.
- Для кожного компонента є окремий файл у папці `src/components`.
- Все, що компонент очікує у вигляді пропсів, передається йому під час виклику.
- JS-код чистий і зрозумілий, використовується `Prettier`.
- Стилізація виконана `CSS-модулями` або `Styled Components` чи `Tailwind CSS`
🤭.
# Телефонна книга
Напиши застосунок зберігання контактів телефонної книги.
## Крок 1
Застосунок повинен складатися з форми і списку контактів. На поточному кроці
реалізуй додавання імені контакту та відображення списку контактів. Застосунок
не повинен зберігати контакти між різними сесіями (оновлення сторінки).
Використовуйте цю розмітку інпуту з вбудованою валідацією для імені контакту.
```html
<input
type="text"
name="name"
pattern="^[a-zA-Zа-яА-Я]+(([' -][a-zA-Zа-яА-Я ])?[a-zA-Zа-яА-Я]*)*$"
title="Name may contain only letters, apostrophe, dash and spaces. For example Adrian, Jacob Mercer, Charles de Batz de Castelmore d'Artagnan"
required
/>
```
Стан, що зберігається в батьківському компоненті `<App>`, обов'язково повинен
бути наступного вигляду, додавати нові властивості не можна.
```bash
state = {
contacts: [],
name: ''
}
```
Кожен контакт повинен бути об'єктом з властивостями `name` та `id`. Для
генерації ідентифікаторів використовуй будь-який відповідний пакет, наприклад
[nanoid](https://www.npmjs.com/package/nanoid). Після завершення цього кроку,
застосунок повинен виглядати приблизно так.

## Крок 2
Розшир функціонал застосунку, дозволивши користувачам додавати номери телефонів.
Для цього додай `<input type="tel">` у форму і властивість для зберігання його
значення в стані.
```bash
state = {
contacts: [],
name: '',
number: ''
}
```
Використовуй цю розмітку інпуту з вбудованою валідацією для номеру контакту.
```html
<input
type="tel"
name="number"
pattern="\+?\d{1,4}?[-.\s]?\(?\d{1,3}?\)?[-.\s]?\d{1,4}[-.\s]?\d{1,4}[-.\s]?\d{1,9}"
title="Phone number must be digits and can contain spaces, dashes, parentheses and can start with +"
required
/>
```
Після завершення цього кроку, застосунок повинен виглядати приблизно так.

## Крок 3
Додай поле пошуку, яке можна використовувати для фільтрації списку контактів за
ім'ям.
- Поле пошуку – це інпут без форми, значення якого записується у стан
(контрольований елемент).
- Логіка фільтрації повинна бути нечутливою до регістру.
```bash
state = {
contacts: [],
filter: '',
name: '',
number: ''
}
```

Коли ми працюємо над новим функціоналом, буває зручно жорстко закодувати деякі
дані у стан. Це позбавить необхідності вручну вводити дані в інтерфейсі для
тестування роботи нового функціоналу. Наприклад, можна використовувати такий
початковий стан.
```bash
state = {
contacts: [
{id: 'id-1', name: 'Rosie Simpson', number: '459-12-56'},
{id: 'id-2', name: 'Hermione Kline', number: '443-89-12'},
{id: 'id-3', name: 'Eden Clements', number: '645-17-79'},
{id: 'id-4', name: 'Annie Copeland', number: '227-91-26'},
],
filter: '',
name: '',
number: ''
}
```
## Крок 4
Якщо твій застосунок реалізований в одному компоненті `<App>`, виконай
рефакторинг, виділивши відповідні частини в окремі компоненти. У стані
кореневого компонента `<App>` залишаться тільки властивості `contacts` і
`filter`.
```bash
state = {
contacts: [],
filter: ''
}
```
Достатньо виділити чотири компоненти: форма додавання контактів, список
контактів, елемент списку контактів та фільтр пошуку.
Після рефакторингу кореневий компонент програми виглядатиме так.
```jsx
<div>
<h1>Phonebook</h1>
<ContactForm ... />
<h2>Contacts</h2>
<Filter ... />
<ContactList ... />
</div>
```
## Крок 5
Заборони користувачеві можливість додавати контакти, імена яких вже присутні у
телефонній книзі. При спробі виконати таку дію виведи `alert` із попередженням.

## Крок 6
Розшир функціонал застосунку, дозволивши користувачеві видаляти раніше збережені
контакти.

## Фінальний результат

| Home task for React course📘 | goit,javascript,react,goit-react-woolf-hw-02-phonebook,tailwindcss | 2024-02-05T17:11:03Z | 2024-02-10T21:35:57Z | null | 1 | 0 | 13 | 0 | 0 | 6 | null | null | JavaScript |
MastayY/kumanime-api | master | # Kumanime API
<p align="center">
<a href="https://github.com/LuckyIndraEfendi">
<img src="https://avatars.githubusercontent.com/u/93984625?v=4" alt="Mastay" width="120" >
</a>
<h3 align="center">Kumanime API</h3>
<p align="center">
<samp>Rest API gratis untuk mendapatkan data anime serta link streaming anime dari website <a href="https://anime-indo.biz">AnimeIndo</a></samp>
</p>
</p>
# Instalasi
- Jalankan perintah di terminal
```sh
# clone repo
git clone https://github.com/MastayY/kumanime-api.git
# masuk folder
cd kumanime-api
# install dependensi
npm install
# jalankan server
npm run dev
```
- Server akan berjalan di http://localhost:3000
# Routes
Endpoint : http://localhost:3000/api
| Endpoint | Params | Description |
| --------------------- | --------------- | -------------------------- |
| /latest | - | Latest Release |
| /popular | - | Popular Series |
| /movie/page/:page | :page | Anime Movie |
| /search/:query | :query | Search Anime |
| /anime/:slug | :slug | Anime details |
| /episode/:slug | :slug | Detail Episode |
# Support Me
[Saweria](https://saweria.co/Mastay)
| Kumanime API merupakan api untuk streaming atau download anime subtitle indonesia. | anime-api,anime-scraper,javascript,javascript-project,nonton-anime,anime-indo,anime-web-scraper,otakudesu,animeindo-api | 2024-01-25T16:02:26Z | 2024-02-22T10:36:47Z | null | 1 | 3 | 16 | 0 | 1 | 6 | null | MIT | JavaScript |
InfiniteX95/inspekt-web | main | # <picture><source media="(prefers-color-scheme: dark)" srcset="/img/inspekt-logo-white.png"><source media="(prefers-color-scheme: light)" srcset="/img/inspekt-logo.png"><img alt="Inspekt-Web logo" width="30"></picture> [Inspekt-Web](https://infinitex95.github.io/inspekt-web/)
Inspekt-Web is an audio file spectrum viewer powered by [ffmpeg-wasm](https://github.com/ffmpegwasm/ffmpeg.wasm).
[Material Web](https://github.com/material-components/material-web/tree/main) toolkit is used for styling.
A deployment is available [HERE](https://infinitex95.github.io/inspekt-web/).
## Preview
| Desktop | Phone |
| -------------- |:---------------:|
| <img src="https://github.com/InfiniteX95/inspekt-web/assets/29018679/3630a79b-b67a-45dc-8759-51ce88d502d4"/> | <img src="https://github.com/InfiniteX95/inspekt-web/assets/29018679/42caf10e-dbda-4a53-8b3f-ac611fbd46f2" width="50%"/> |
## Setup
[Node.js and NPM](https://nodejs.org/en) are needed to download the required dependencies.
You can run this on your own server by cloning this repository and installing the dependencies with :
```sh
git clone https://github.com/InfiniteX95/inspekt-web.git
cd inspekt-web
npm install
```
## Development
You can start a local devserver with :
```sh
npm run start
```
To update `bundle.js` after modifying the component list in `material.js` :
```sh
npm run material
```
| Web audio spectrogram visualizer | audio,audio-analysis,audio-metadata,audio-spectrum,audio-spectrum-visualizer,css,ffmpeg,ffmpeg-wasm,html,javascript | 2024-02-16T11:38:33Z | 2024-04-11T23:08:18Z | 2024-04-11T23:08:18Z | 1 | 4 | 23 | 0 | 0 | 6 | null | GPL-3.0 | JavaScript |
ViktorSvertoka/tattoo-studio | 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
# or
bun dev
```
Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
You can start editing the page by modifying `app/page.tsx`. The page auto-updates as you edit the file.
This project uses [`next/font`](https://nextjs.org/docs/basic-features/font-optimization) to automatically optimize and load Inter, a custom Google Font.
## Learn More
To learn more about Next.js, take a look at the following resources:
- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.
- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.
You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js/) - your feedback and contributions are welcome!
## Deploy on Vercel
The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js.
Check out our [Next.js deployment documentation](https://nextjs.org/docs/deployment) for more details.
| Landing page Tattoo studio | javascript,nextjs,teilwinds-css,typescript | 2024-01-28T18:56:40Z | 2024-03-22T21:55:38Z | null | 1 | 0 | 24 | 0 | 0 | 6 | null | null | TypeScript |
DaveSimoes/React-Tutorial-2024 | main | <div align= "center">
<h3><code>Welcome to React-Tutorial-2024</code> Your newest learning tool
</div>
# 📋 Index
1. [Introduction to React](#introduction-to-react)
2. [JSX](#jsx)
3. [Functional Components](#functional-components)
4. [Class Components](#class-components)
5. [Props](#props)
6. [State](#state)
7. [Lifecycle Methods](#lifecycle-methods)
8. [Events Handling](#events-handling)
9. [React Hooks](#react-hooks)
10. [Controlled Components](#controlled-components)
11. [Error Boundaries](#error-boundaries)
12. [Higher Order Components](#higher-order-components)
13. [Rendering Lists](#rendering-lists)
14. [Context API](#context-api)
15. [Keys](#keys)
17. [Forms](#forms)
18. [Styling in React](#styling-in-react)
19. [Render Props](#render-props)
20. [CSS Modules](#css-modules)
21. [Real World Examples](#real-world-examples)
22. [Best Practices](#best-practices)
23. [Additional Topics](#additional-topics)
24. [License to use](#license-to-use)
## Introduction to React
React is a JavaScript library for creating user interfaces. It enables developers to build reusable UI components and efficiently update the DOM by using a virtual DOM for optimal performance.
`create-react-app`
```
# Terminal
npx create-react-app my-react-app
cd my-react-app
npm start
```
## JSX
JSX is a syntax extension for JavaScript that looks similar to XML or HTML. It allows developers to write HTML elements and components in a more concise and readable manner within JavaScript files.
```// src/App.js
import React from 'react';
function App() {
return (
<div>
<h1>Hello, React!</h1>
</div>
);
}
export default App;
```
## Functional Components
Class components are ES6 classes that extend the React Component.
They can maintain and manage local state and have access to lifecycle methods, making them more feature-rich than functional components.
```
import React from 'react';
const FunctionalComponent = () => {
return <p>This is a functional component.</p>;
}
export default FunctionalComponent;
```
## Class Components
Class components are ES6 classes that extend the React Component.
They can maintain and manage local state and have access to lifecycle methods, making them more feature-rich than functional components.
```
import React, { Component } from 'react';
class ClassComponent extends Component {
render() {
return <p>This is a class component.</p>;
}
}
export default ClassComponent;
```
## Props
Props are a way of passing data from a parent component to a child component in React. They are immutable and provide a way of making components dynamic and reusable.
```
import React from 'react';
const PropsExample = (props) => {
return <p>{props.message}</p>;
}
export default PropsExample;
```
## State
State React represents the changing state of a component. This allows components to manage and update their own data, resulting in dynamic and interactive user interfaces.
```
import React, { Component } from 'react';
class StateExample extends Component {
constructor(props) {
super(props);
this.state = {
count: 0
};
}
render() {
return (
<div>
<p>Count: {this.state.count}</p>
<button onClick={() => this.setState({ count: this.state.count + 1 })}>
Increment
</button>
</div>
);
}
}
export default StateExample;
```
## Lifecycle Methods
Lifecycle methods são métodos especiais em componentes de classe que são invocados em diferentes fases do ciclo de vida de um componente. componentDidMount é um método de ciclo de vida comummente utilizado, executado depois de um componente ser renderizado no DOM.
```
import React, { Component } from 'react';
class LifecycleExample extends Component {
componentDidMount() {
console.log('Component is mounted!');
}
render() {
return <p>Lifecycle Example</p>;
}
}
export default LifecycleExample;
```
## Events Handling
React uses camelCase to handle events. Functions can be defined to handle events such as clicks, changes, etc., providing interactivity to the components.
```
import React from 'react';
const EventHandlingExample = () => {
const handleClick = () => {
alert('Button clicked!');
}
return (
<button onClick={handleClick}>
Click me
</button>
);
}
export default EventHandlingExample;
```
## React Hooks
React Hooks are functions that allow functional components to manage state and side effects.
They were introduced in React 16.8 and provide a more concise way of working with state and lifecycle methods in functional components.
```
import React, { useState } from 'react';
const UseStateExample = () => {
const [count, setCount] = useState(0);
return (
<div>
<p>Count: {count}</p>
<button onClick={() => setCount(count + 1)}>
Increment
</button>
</div>
);
}
export default UseStateExample;
````
## Controlled Components
Controlled components in React have inputs and their state controlled by React. They receive their current value and the onChange handler as props, making them controlled by React and not by the DOM.
```
import React, { useState } from 'react';
const ControlledComponent = () => {
const [inputValue, setInputValue] = useState('');
const handleChange = (e) => {
setInputValue(e.target.value);
}
return (
<input
type="text"
value={inputValue}
onChange={handleChange}
placeholder="Type here"
/>
);
}
export default ControlledComponent;
```
## Error Boundaries
Error boundaries are React components that detect JavaScript errors anywhere in the child component tree and log those errors, present a fallback UI or take other action.
```
import React, { Component } from 'react';
class ErrorBoundary extends Component {
constructor(props) {
super(props);
this.state = { hasError: false };
}
static getDerivedStateFromError(error) {
return { hasError: true };
}
componentDidCatch(error, errorInfo) {
logErrorToMyService(error, errorInfo);
}
render() {
if (this.state.hasError) {
return <p>Something went wrong.</p>;
}
return this.props.children;
}
}
export default ErrorBoundary;
```
## Higher Order Components
Higher Order Components (HOCs) are functions that take a component and return a new component with additional functionality. They are a way of reusing the component's logic.
```
import React from 'react';
const WithLogger = (WrappedComponent) => {
return class extends React.Component {
componentDidMount() {
console.log('Component is mounted!');
}
render() {
return <WrappedComponent {...this.props} />;
}
};
}
export default WithLogger;
// Usage
import React from 'react';
import WithLogger from './WithLogger';
const MyComponent = () => {
return <p>My Component</p>;
}
const EnhancedComponent = WithLogger(MyComponent);
```
## Rendering Lists
React provides the `map` function to render lists of items dynamically. Each item in the array is mapped to a React element, making it easier to render dynamic content.
```
import React from 'react';
const RenderingList = () => {
const items = ['Item 1', 'Item 2', 'Item 3'];
return (
<ul>
{items.map((item, index) => (
<li key={index}>{item}</li>
))}
</ul>
);
}
export default RenderingList;
```
## Context API
The Context API in React offers a way of transmitting data through the component tree without having to pass props manually at each level. It's useful for sharing values such as themes or authentication status.
```
import React from 'react';
const ThemeContext = React.createContext('light');
export default ThemeContext;
```
```
import React, { useContext } from 'react';
import ThemeContext from './ThemeContext';
const ThemedComponent = () => {
const theme = useContext(ThemeContext);
return <p style={{ color: theme === 'light' ? 'black' : 'white' }}>Themed Component</p>;
}
export default ThemedComponent;
```
## Keys
Keys in React help identify which items have been changed, added or removed. They should be unique within the list and help React with efficient updates.
```
import React from 'react';
const KeysExample = () => {
const data = [
{ id: 1, name: 'Item 1' },
{ id: 2, name: 'Item 2' },
{ id: 3, name: 'Item 3' },
];
return (
<ul>
{data.map(item => (
<li key={item.id}>{item.name}</li>
))}
</ul>
);
}
export default KeysExample;
```
## Forms
Handling forms in React involves managing form data using state and handling form submission via event handlers. Controlled components are used to synchronize form elements with React's state.
```
import React, { useState } from 'react';
const FormExample = () => {
const [formData, setFormData] = useState({ username: '', password: '' });
const handleChange = (e) => {
setFormData({
...formData,
[e.target.name]: e.target.value,
});
}
const handleSubmit = (e) => {
e.preventDefault();
console.log('Form submitted:', formData);
}
return (
<form onSubmit={handleSubmit}>
<label>
Username:
<input
type="text"
name="username"
value={formData.username}
onChange={handleChange}
/>
</label>
<label>
Password:
<input
type="password"
name="password"
value={formData.password}
onChange={handleChange}
/>
</label>
<button type="submit">Submit</button>
</form>
);
}
export default FormExample;
```
## Styling in React
Inline Styles:
React allows you to style components using inline styles, where styles are defined as objects and applied directly to elements.
```
import React from 'react';
const InlineStyleExample = () => {
const styles = {
color: 'blue',
fontSize: '18px',
};
return <p style={styles}>Styled with inline styles</p>;
}
export default InlineStyleExample;
```
## Render Props
Render Props is a technique for sharing code between React components using a prop whose value is a function. This allows for the dynamic composition of components.
```
import React, { useState } from 'react';
const MouseTracker = ({ render }) => {
const [position, setPosition] = useState({ x: 0, y: 0 });
const handleMouseMove = (event) => {
setPosition({ x: event.clientX, y: event.clientY });
}
return (
<div style={{ height: '100vh' }} onMouseMove={handleMouseMove}>
{render(position)}
</div>
);
}
export default MouseTracker;
```
```
// Usage
import React from 'react';
import MouseTracker from './MouseTracker';
const App = () => {
return (
<MouseTracker
render={(position) => (
<p>
Mouse position: {position.x}, {position.y}
</p>
)}
/>
);
}
export default App;
```
## CSS Modules
CSS Modules help define the scope of styles for a specific component, avoiding global style conflicts. Each component can have its own CSS module with locally scoped styles.
```
.myComponent {
color: green;
}
```
```
import React from 'react';
import styles from './CSSModulesExample.module.css';
const CSSModulesExample = () => {
return <p className={styles.myComponent}>Styled with CSS Modules</p>;
}
export default CSSModulesExample;
```
## Real World Examples
### example 1: To-Do List Application
Features:
* Adding and removing tasks
* Marking tasks as completed
* Filtering tasks (completed/incomplete)
```
import React, { useState } from 'react';
const TodoApp = () => {
const [tasks, setTasks] = useState([]);
const [newTask, setNewTask] = useState('');
const addTask = () => {
setTasks([...tasks, { text: newTask, completed: false }]);
setNewTask('');
};
const toggleTask = (index) => {
const updatedTasks = [...tasks];
updatedTasks[index].completed = !updatedTasks[index].completed;
setTasks(updatedTasks);
};
const removeTask = (index) => {
const updatedTasks = [...tasks];
updatedTasks.splice(index, 1);
setTasks(updatedTasks);
};
return (
<div>
<input
type="text"
value={newTask}
onChange={(e) => setNewTask(e.target.value)}
/>
<button onClick={addTask}>Add Task</button>
<ul>
{tasks.map((task, index) => (
<li key={index}>
<input
type="checkbox"
checked={task.completed}
onChange={() => toggleTask(index)}
/>
<span style={{ textDecoration: task.completed ? 'line-through' : 'none' }}>
{task.text}
</span>
<button onClick={() => removeTask(index)}>Remove</button>
</li>
))}
</ul>
</div>
);
};
export default TodoApp;
```
### Example 2: Weather App
This weather application example illustrates the practical application of React concepts, including state management, useEffect for side effects, event handling, API interaction and conditional rendering. Users can learn how to create a functional weather application and understand the integration of React hooks into real-world scenarios.
Fetaures:
Functional Component and State Hooks:
* The WeatherApp is a functional component.
* State is controlled using the `useState` hooks for `weather` and `city`.
Using useEffect to obtain data:
* The `useEffect` hooks are used to perform side effects, such as fetching weather data from the OpenWeatherMap API.
* The `fetchWeatherData` function is asynchronous and fetches weather data based on the selected city using the `fetch` API.
Conditional Rendering:
* The weather data is conditionally rendered only if it exists (`weather && ...`).
Event Handling:
* The user input for the city is captured through an input element, and the `setCity` function is called on its `onChange` event.
API Interaction:
* The OpenWeatherMap API is used to fetch real-time weather data based on the user's selected city.
* An API key is required for authentication and authorization.
Dynamically Updating Content:
* The weather data is dynamically updated based on the selected city, and the component re-renders when the city changes.
Styling:
* Basic styling is applied using standard HTML and inline styles for simplicity.
Temperature Conversion:
* The temperature is converted from Kelvin to Celsius for better readability.
```
// src/RealWorldExamples/WeatherApp.js
import React, { useState, useEffect } from 'react';
const WeatherApp = () => {
const [weather, setWeather] = useState(null);
const [city, setCity] = useState('New York');
const apiKey = 'YOUR_OPENWEATHERMAP_API_KEY';
useEffect(() => {
// Fetch weather data from OpenWeatherMap API
const fetchWeatherData = async () => {
try {
const response = await fetch(
`https://api.openweathermap.org/data/2.5/weather?q=${city}&appid=${apiKey}`
);
if (!response.ok) {
throw new Error('Failed to fetch weather data');
}
const data = await response.json();
setWeather(data);
} catch (error) {
console.error(error.message);
}
};
fetchWeatherData();
}, [city, apiKey]);
return (
<div>
<h1>Weather App</h1>
<label>
Enter City:
<input
type="text"
value={city}
onChange={(e) => setCity(e.target.value)}
/>
</label>
{weather && (
<div>
<h2>{weather.name}, {weather.sys.country}</h2>
<p>Temperature: {Math.round(weather.main.temp - 273.15)}°C</p>
<p>Weather: {weather.weather[0].description}</p>
</div>
)}
</div>
);
};
export default WeatherApp;
```
## Best Practices
### Structuring React projects
Best practices:
* Follow folder structure conventions (for example, grouping components, styles and tests in separate folders).
* Use meaningful names for components, avoiding generic terms like "Item" or "Data".
* Organize code based on features rather than file types (for example, group components, styles and tests for a specific feature in the same folder).
```
/src
/components
/Button
Button.js
Button.test.js
Button.css
/features
/Todo
TodoList.js
TodoItem.js
TodoForm.js
/styles
global.css
/tests
/unit
Button.test.js
/integration
TodoIntegration.test.js
```
### Performance optimization techniques:
Best practices:
* Use PureComponent or React.memo for components that are only rendered again when properties or state change.
* Implement code splitting to load only the necessary components when needed, improving initial loading times.
* Use lazy loading for components that are not immediately needed, improving application performance.
```
// Using React.memo
const MemoizedComponent = React.memo(({ data }) => {
// Component logic
});
// Using Code Splitting and Lazy Loading
const MyComponent = React.lazy(() => import('./MyComponent'));
// In your component
const App = () => (
<React.Suspense fallback={<LoadingSpinner />}>
<MyComponent />
</React.Suspense>
);
```
### Testing React applications:
Best practices:
* Write unit tests for individual components using test libraries such as Jest and test utilities provided by React.
* Implement integration tests to ensure that different components work together smoothly.
* Use tools such as React's test library to test user interactions and component behavior.
Example:
```
// Jest Unit Test
test('renders correctly', () => {
const { getByText } = render(<Button label="Click me" />);
expect(getByText('Click me')).toBeInTheDocument();
});
// Jest Integration Test
test('increments count on button click', () => {
const { getByText } = render(<Counter />);
fireEvent.click(getByText('Increment'));
expect(getByText('Count: 1')).toBeInTheDocument();
});
// React Testing Library
import { render, screen } from '@testing-library/react';
import userEvent from '@testing-library/user-event';
test('clicking button increments count', () => {
render(<MyComponent />);
userEvent.click(screen.getByRole('button'));
expect(screen.getByText('Count: 1')).toBeInTheDocument();
});
```
### Routing e Navigation:
Best practices:
* Use React Router for client-side routing in a single-page application.
* Define routes to different views or sections of your application.
* Implement navigation components, such as `<Link>`, to allow easy navigation between routes.
Example:
```
// React Router
import { BrowserRouter as Router, Route, Link } from 'react-router-dom';
const App = () => (
<Router>
<nav>
<ul>
<li><Link to="/">Home</Link></li>
<li><Link to="/about">About</Link></li>
<li><Link to="/contact">Contact</Link></li>
</ul>
</nav>
<Route path="/" exact component={Home} />
<Route path="/about" component={About} />
<Route path="/contact" component={Contact} />
</Router>
);
```
### State Management:
Best practice:
* Use local component state for simple, localized state requirements.
* Use the Context API to share state between components without prop drilling.
* Consider external state management libraries, such as Redux or Recoil, for complex state management needs in larger applications.
```
// Using Local Component State
const Counter = () => {
const [count, setCount] = useState(0);
return (
<div>
<p>Count: {count}</p>
<button onClick={() => setCount(count + 1)}>Increment</button>
</div>
);
};
// Using Context API
const ThemeContext = React.createContext('light');
const ThemedComponent = () => {
const theme = useContext(ThemeContext);
return <p style={{ color: theme === 'light' ? 'black' : 'white' }}>Themed Component</p>;
};
// Using Redux
// (Assuming you have a Redux store configured)
import { useSelector, useDispatch } from 'react-redux';
const CounterRedux = () => {
const count = useSelector(state => state.count);
const dispatch = useDispatch();
return (
<div>
<p>Count: {count}</p>
<button onClick={() => dispatch({ type: 'INCREMENT' })}>Increment</button>
</div>
);
};
```
### Deployment
Best practices:
* Choose a hosting platform such as Netlify, Vercel or GitHub Pages to facilitate deployment.
* Set up build scripts to optimize assets for production (packaging, minification and compression).
* Set up continuous integration/continuous deployment (CI/CD) pipelines for automatic deployment on code changes.
Example:
* Deployment platforms like Netlify and Vercel offer straightforward deployment based on your Git repository. You can connect your repository to the platform, configure build settings, and deploy with e
### Error Handling:
Best practices:
* Implement error thresholds to catch and handle errors gracefully, preventing the entire application from crashing.
* Record errors in a service for tracing and debugging purposes.
* Present user-friendly error messages and provide instructions on how to recover from errors, when possible.
Example:
```
// Error Boundary
class ErrorBoundary extends React.Component {
constructor(props) {
super(props);
this.state = { hasError: false };
}
static getDerivedStateFromError(error) {
return { hasError: true };
}
componentDidCatch(error, errorInfo) {
logErrorToService(error, errorInfo);
}
render() {
if (this.state.hasError) {
return <p>Something went wrong. Please try again.</p>;
}
return this.props.children;
}
}
```
### Accessibility (a11y):
Best practices:
* Use semantic HTML elements to provide meaningful structure to the page.
* Include ARIA functions and attributes to improve accessibility for screen readers.
* Ensure that keyboard navigation is seamless and logical for users who depend on it.
Example:
```
// Semantic HTML Elements
<article>
<h2>Article Title</h2>
<p>Article content...</p>
</article>
// ARIA Roles and Attributes
<button aria-label="Close" onClick={handleClose}>
✕
</button>
// Keyboard Navigation
<input type="text" onKeyDown={handleKeyDown} />
```
### Performance Optimization:
Best practices:
* Optimize component rendering using memoization techniques (React.memo or useMemo).
* Take advantage of code splitting and slow loading to reduce the size of the initial package and improve loading times.
* Use React's PureComponent or shouldComponentUpdate to avoid unnecessary rendering.
Example:
```
// Using React.memo
const MemoizedComponent = React.memo(({ data }) => {
// Component logic
});
// Using Code Splitting and Lazy Loading
const MyComponent = React.lazy(() => import('./MyComponent'));
// In your component
const App = () => (
<React.Suspense fallback={<LoadingSpinner />}>
<MyComponent />
</React.Suspense>
);
// Using PureComponent
class PureCounter extends React.PureComponent {
render() {
return <p>Count: {this.props.count}</p>;
}
```
## Additional Topics
### Version control and updates:
* Regularly update dependencies to benefit from new features, bug fixes and security patches.
* Follow semantic versioning for libraries and packages used in the project.
* Be cautious with major updates and test thoroughly before updating.
Example:
```
# Regularly update dependencies
npm update
# Follow semantic versioning
# Example: Major.Minor.Patch
# ^1.2.3 means any version that is compatible with 1.2.3
```
### Implementation in production:
* Minimize the number of requests and optimize assets for faster loading times.
* Implement server-side rendering (SSR) to improve performance and search engine optimization (SEO).
* Use tools such as Webpack for packaging and Babel to transpile code for production.
*
Configure Webpack for production builds with optimizations:
```
// webpack.config.js
const path = require('path');
module.exports = {
mode: 'production',
entry: './src/index.js',
output: {
filename: 'bundle.js',
path: path.resolve(__dirname, 'dist'),
},
// Other webpack configurations...
};
```
### Community resources:
* Encourage students to explore the official React documentation for detailed explanations and examples.
* Join the React community by participating in forums such as Stack Overflow, Reddit or the Reactiflux Discord community.
* Explore tutorials, blog posts and video courses from reliable sources to deepen your knowledge.
Examples:
Point students to the official React documentation: [React Documentation].(https://react.dev/)
## Contribution guidelines
Thank you for your interest in contributing to this Amazing React Tutorial! Your contributions help make this resource even more valuable to students of all levels. Whether you're fixing a bug, improving an existing feature or adding something entirely new, your efforts make a difference.
## How to contribute
1. **Fork the Repository: Click on the "Fork" button in the top right corner of this repository to create your copy.
2. **Clone the Repository: Clone the repository to your local machine using `git clone <repository-url>`.
3. **Create a Branch: Create a new branch for your contribution with a descriptive name: `git checkout -b your-feature`.
4. **Make changes: Make your changes in the appropriate files. Feel free to improve existing examples, add new ones, correct typos or improve the documentation.
5. **Commit changes: Submit your changes with a clear and concise message: `git commit -m "Your message here"`.
6. **Push Changes: Send your changes to the forked repository: `git push origin your-feature`.
7. **Create a Pull Request:** Open a pull request in the original repository. Forneça um título claro, descreva suas alterações e envie o pull request.
## Coding style and standards
Follow consistent coding styles.
Make sure your code is well documented, especially if you are adding new examples or features.
## Report problems
If you encounter a problem or have suggestions for improvement, please open a problem in the [Problems] tab (https://github.com/your-username/react-tutorial/issues).
## Thank you
Thank you for considering contributing to this React Tutorial. Your dedication to making this resource better is greatly appreciated. Let's learn and grow together!
## License to Use
<h6 align="center"><a href="/LICENSE">MIT</a> @ David Simoes</h6>
### Did you like the React Tutorial?
If you found this React Tutorial useful, consider giving it a star! ⭐ Your support is incredibly motivating and helps others discover this resource.
Thank you for being part of our community and hap! 🚀
| :octocat: React Tutorial, with practical examples, real-world applications, and industry best practices. ☔ | best-practices,react,tutorial,programing,programing-language,tutorial-teaches-people,hooks,javascript,javascript-library,jsx | 2024-01-31T01:30:53Z | 2024-02-15T16:27:48Z | null | 1 | 0 | 81 | 0 | 1 | 6 | null | MIT | null |
ViktorSvertoka/goit-react-woolf-hw-02-feedback | main | # Критерії приймання
- Створені репозиторії `goit-react-woolf-hw-02-feedback`.
- При здачі домашньої роботи є два посилання: на вихідні файли та робочі
сторінки кожного завдання на `GitHub Pages`.
- Під час запуску коду завдання в консолі відсутні помилки та попередження.
- Для кожного компонента є окремий файл у папці `src/components`.
- Все, що компонент очікує у вигляді пропсів, передається йому під час виклику.
- JS-код чистий і зрозумілий, використовується `Prettier`.
- Стилізація виконана `CSS-модулями` або `Styled Components`.
# Віджет відгуків
Як і більшість компаній, кафе Expresso збирає відгуки від своїх клієнтів. Твоє
завдання – створити додаток для збору статистики. Є лише три варіанти зворотного
зв'язку: добре, нейтрально і погано.
## Крок 1
Застосунок повинен відображати кількість зібраних відгуків для кожної категорії.
Застосунок не повинен зберігати статистику відгуків між різними сесіями
(оновлення сторінки).
Стан застосунку обов'язково повинен бути наступного вигляду, додавати нові
властивості не можна.
```bash
state = {
good: 0,
neutral: 0,
bad: 0
}
```
Інтерфейс може мати такий вигляд.

## Крок 2
Розшир функціонал застосунку таким чином, щоб в інтерфейсі відображалося більше
статистики про зібрані відгуки. Додай відображення загальної кількості зібраних
відгуків з усіх категорій та відсоток позитивних відгуків. Для цього створи
допоміжні методи `countTotalFeedback()` і `countPositiveFeedbackPercentage()`,
які підраховують ці значення, ґрунтуючись на даних у стані (обчислювані дані).

## Крок 3
Виконай рефакторинг застосунку. Стан застосунку повинен залишатися у кореневому
компоненті `<App>`.
- Винеси відображення статистики в окремий компонент
`<Statistics good={} neutral={} bad={} total={} positivePercentage={}>`.
- Винеси блок кнопок в компонент
`<FeedbackOptions options={} onLeaveFeedback={}>`.
- Створи компонент `<Section title="">`, який рендерить секцію із заголовком і
дітей (children). Обгорни кожен із `<Statistics>` і `<FeedbackOptions>` у
створений компонент секції.
## Крок 4
Розшир функціонал застосунку таким чином, щоб блок статистики рендерився тільки
після того, як було зібрано хоча б один відгук. Повідомлення про відсутність
статистики винеси в компонент `<Notification message="There is no feedback">`.

## Фінальний результат

| Home task for React course📘 | goit,javascript,react,styled-components,goit-react-woolf-hw-02-feedback | 2024-02-05T16:56:24Z | 2024-02-06T20:19:29Z | null | 1 | 0 | 6 | 0 | 0 | 6 | null | null | JavaScript |
NigelOToole/share-url | main | # Share URL
### Share a URL with Web Share, copy to clipboard or to a social platform
### [Demo and documentation](http://nigelotoole.github.io/share-url/)
---
## Quick start
```javascript
$ npm install @nigelotoole/share-url --save-dev
```
Import the JS into your project, add the elements to your HTML and initialize the plugin if needed.
---
### License
MIT © Nigel O Toole
| Share a URL with Web Share, copy to clipboard or to a social platform | javascript,share,webcomponent | 2024-02-28T13:58:24Z | 2024-03-22T09:29:59Z | null | 1 | 0 | 9 | 0 | 0 | 6 | null | MIT | CSS |
danukarangith/Internet-Technology-01 | main | null | null | css-animations,css-grid,css-modules,html,javascript,learning-by-doing,functions | 2024-02-10T05:19:17Z | 2024-05-22T10:22:10Z | null | 1 | 0 | 286 | 0 | 0 | 6 | null | null | HTML |
Santhoshmani1/npm-cli-tour | main | # npm cli tour

## Introduction
npm-cli-tour is a command line tool that helps you to understand the npm commands. It provides a step by step guide to understand the npm commands and their usage.
## Getting Started
Open your terminal and run the following command :
```node
npx npm-cli-tour
```
## Commands
The npm-cli-tour package currently supports the 4 basic npm commands.
1. npm init
2. npm install
3. npm install --save-dev
4. npm uninstall
# Contributing
Contributions are welcome! raise an issue and send a pull request 🎉.
Support the project by giving a ⭐️ and sharing it with your friends!
| CLI application for getting started with node package manager | cli,nodejs,npm,javascript,npm-package,typescript | 2024-03-12T14:06:58Z | 2024-03-20T05:29:14Z | 2024-03-20T05:29:14Z | 1 | 2 | 21 | 1 | 0 | 6 | null | null | JavaScript |
akashdeep023/Food_Plaza | main | # Food Plaza - Elevating Your Fully Responsive Food Delivery Experience! 🍽️
<p align="center">
<b style="color: blue; ">Visitor count</b>
<br>
<a style="" href="https://github.com/akashdeep023">
<img src="https://profile-counter.glitch.me/food-plaza/count.svg" />
</a>
</p>
## Table of Contents
- [Project Overview](#project-overview)
- [Tech Stack](#tech-stack)
- [Key Features](#key-features)
- [Powered by Swiggy API](#powered-by-swiggy-api)
- [Fully Responsive Design](#fully-responsive-design)
- [Installation](#installation)
- [Acknowledgments](#acknowledgments)
- [Author](#author)
- [Project Link](#project-link)
- [Thank You](#thank-you)
- [Ex- Image](#ex--image)
## Project Overview
Welcome to Food Plaza, a cutting-edge food delivery app designed to revolutionize your dining experience. Get ready to enjoy seamless food ordering with a user-friendly interface and personalized features.
## Tech Stack
- **React**: Frontend library for building user interfaces.
- **Redux Toolkit**: State management solution for React applications.
- **Formik**: Form library for React forms management.
- **React Router**: Declarative routing for React applications.
- **React Redux**: Official React bindings for Redux.
- **React Hot Toast**: Library for customizable toast notifications in React.
- **Parcel**: Web application bundler with fast build times.
- **Babel**: JavaScript compiler for transforming code.
## Key Features
- **Seamless Food Ordering:** Enjoy a smooth and hassle-free food ordering experience.
- **User-Friendly Interface:** Intuitive design for easy navigation and interaction.
- **Add to Cart Feature:** Personalized and efficient ordering process with the ability to add items to cart.
- **Search and Filter:** Easily discover restaurants using search and filter functionalities.
- **Scroll Feature:** Scroll to explore a diverse selection of exciting restaurants.
## Powered by Swiggy API
Food Plaza is powered by the robust Swiggy API, providing users with access to a diverse and extensive selection of top-notch restaurants.
## Fully Responsive Design
Experience Food Plaza seamlessly across all devices, from desktops to smartphones, with our fully responsive design.
## Installation
Follow these steps to set up and run Food Plaza locally:
1. **Clone the Repository:**
```bash
git clone https://github.com/akashdeep023/Food_Plaza.git
cd Food_Plaza
```
2. **Install Dependencies:**
```bash
npm install
```
3. **Start the Development Server:**
```bash
npm start
```
4. **Open in Your Browser:**
Open http://localhost:3000 in your web browser.
## Acknowledgments
A huge shoutout to Akshay Saini 🚀 sir for being a constant source of inspiration and guidance throughout this incredible journey! Join us on this exciting journey as we redefine the way you experience food delivery! 🌮🚀
## Author
Akash Deep \
Email: ad3500476@gmail.com \
LinkedIn : https://www.linkedin.com/in/akashdeep023/
## Project Link
- [1st Live Link](https://food-plaza-jack.onrender.com/)
- [2st Live Link](https://food-plaza-jack.onrender.com/)
## Thank You
Thank you for exploring Food_Plaza! Your feedback is valuable. If you have any suggestions or thoughts, feel free to share them with us. 😊
---
---
## Ex- Image
**Home Page**





**Collection Page**

**Restaurant Page**



**Footer Page**

**Search Page**


**About Page**


**Contact Page**

**Cart Page**


**SubComponent**

**Shimmer Page**

### Thanks for visit... 😊😊😊
| Food Plaza - Elevating Your Fully Responsive Food Delivery Experience! 🍽️ | api,fetch-api,javascript,react-hot-toast,react-router,reactjs,redux,redux-toolkit,responsive-design,swiggy-api | 2024-02-29T14:52:41Z | 2024-04-02T10:20:40Z | null | 1 | 0 | 7 | 0 | 2 | 6 | null | null | JavaScript |
DarkslayerHaos/ruvyrias | main | <p align='center'>
<img src='https://images.wallpaperscraft.com/image/single/girl_umbrella_anime_151317_1600x1200.jpg' />
</p>
# <p align='center'>Note: This version supports only Lavalink V4 or above.</p>
<p align="center">
<a href="https://www.npmjs.com/package/ruvyrias">
<img src="https://img.shields.io/npm/v/ruvyrias" alt="npm"/>
</a>
<img src="https://img.shields.io/github/issues-raw/DarkslayerHaos/ruvyrias" alt="GitHub issues"/>
<img src="https://img.shields.io/npm/l/ruvyrias" alt="NPM"/>
</p>
<p align="center">
<a href="https://nodei.co/npm/ruvyrias/">
<img src="https://nodei.co/npm/ruvyrias.png?downloads=true&downloadRank=true&stars=true" alt="Ruvyrias NPM Package"/>
</a>
</p>
## Table of contents
- [Documentation](https://ruvyrias-lock.vercel.app/)
- [Installation](#installation)
- [About](#about)
- [Implementation Repositories](#implementation-repositories)
- [Basic Usage](#basic-usage)
- [Bot Example](https://github.com/DarkslayerHaos/ruvyrias-example)
## Installation
```bash
# Using npm
npm install ruvyrias
# Using yarn
yarn add ruvyrias
```
## About
To use, you need a configured [Lavalink](https://github.com/lavalink-devs/Lavalink) instance.
Ruvyrias is a robust Discord music bot client tailored for Lavalink V4 and above. Key features include:
- **Stability:** A reliable and smooth client experience.
- **TypeScript Support:** Enhanced development with TypeScript.
- **Lavalink Compatibility:** 100% compatible with Lavalink version 4 and above.
- **Object-Oriented:** Organized and maintainable code.
- **Customizable:** Adapt the client to your bot preferences.
- **Easy Setup:** Quick and hassle-free installation.
- **Queue System:** Efficiently manage music playback.
- **Platform Support:** Built-in compatibility with Youtube, Soundcloud, Spotify, Apple Music, and Deezer.
## Implementation Repositories
Note: `Send PR to add your repository here.`
| Repository | Creator | Additional Information |
| ---------------------------------------------------------------------- | ----------------------------------------------------| ----------------------------------------------------|
| [Ruvyrias Example](https://github.com/DarkslayerHaos/ruvyrias-example) | [DarkslayerHaos](https://github.com/DarkslayerHaos) | Official Ruvyrias Exampe Bot, easy setup and usage. |
| [Lunox](https://github.com/adh319/Lunox/tree/Lavalink_v4) | [adh319](https://github.com/adh319) | Check out the repository for futher information. |
## Basic Usage
```js
// Import necessary modules.
const { Client, GatewayIntentBits, ActivityType } = require('discord.js');
const { Ruvyrias } = require('ruvyrias');
// Define Lavalink nodes configuration.
const nodes = [
{
name: 'main',
host: 'localhost',
port: 2333,
password: 'youshallnotpass',
secure: false,
resume: true,
},
];
// Define options for Ruvyrias client.
const RuvyriasOptions = {
library: 'discord.js',
defaultPlatform: 'ytsearch',
autoResume: true,
reconnectTries: Infinity,
reconnectTimeout: 1000 * 10,
};
// Initialize Discord client with necessary intents.
const client = new Client({
intents: [
GatewayIntentBits.Guilds,
GatewayIntentBits.GuildMessages,
GatewayIntentBits.GuildVoiceStates,
GatewayIntentBits.MessageContent,
],
});
// Create Ruvyrias instance and bind it to the client.
client.ruvyrias = new Ruvyrias(client, nodes, RuvyriasOptions);
// Event handler for when the bot is ready.
client.on('ready', (client) => {
console.log(`[+] Logged in as: ${client.user?.tag}`);
client.ruvyrias.init(client);
client.user.setActivity({ name: '!play', type: ActivityType.Listening })
});
// Event handler for message creation.
client.on('messageCreate', async (message) => {
// Ignore messages that don't start with '!' or are from bots.
if (!message.content.toLowerCase().startsWith('!') || message.author.bot) return;
// Extract command and arguments from the message
const args = message.content.slice(1).trim().split(/ +/g);
const command = args.shift()?.toLowerCase()
if (command === 'play') {
const query = args.join(' ');
// Creating the Player.
const player = client.ruvyrias.createConnection({
guildId: message.guildId,
voiceChannel: message.member.voice.channel.id,
textChannel: message.channelId,
deaf: true,
mute: false
});
const resolve = await client.ruvyrias.resolve({ query, requester: message.author });
const { loadType, tracks, playlistInfo } = resolve;
// Handle errors or empty responses.
if (loadType === 'error' || loadType === 'empty') {
return message.reply({ embeds: [{ description: `❌ An error occurred, please try again!`, color: Colors.Red }] });
}
// Handle playlist loading.
if (loadType === 'playlist') {
for (const track of tracks) {
player.queue.add(track);
}
if (!player.playing && !player.paused) return player.play();
return message.reply(`🎶 [${playlistInfo?.name}](${query}) with \`${tracks.length}\` tracks added.`);
}
// Handle single track or search results loading.
else if (loadType === 'search' || loadType === 'track') {
const track = tracks[0];
player.queue.add(track);
if (!player.playing && !player.paused) return player.play();
return message.channel.send(`🎶 \`${track.info.title}\` added to queue.`);
}
}
});
// Runs when a Lavalink Node is successfully connected.
client.ruvyrias.on('nodeConnect', node => {
console.log(`[+] Node ${node.options.name} connected.`)
});
// Runs when a new track starts playing in the music player.
client.ruvyrias.on('trackStart', (player, track) => {
const channel = client.channels.cache.get(player.textChannel);
channel.send(`🎶 Now playing: \`${track.info.title}\` by \`${track.info.author}\`.`);
});
// Runs when the music playlist reaches the end and the music player leaves the voice channel.
client.ruvyrias.on('queueEnd', player => {
player.stop();
const channel = client.channels.cache.get(player.textChannel);
channel.send('⛔ The player queue has ended, i\'m leaving voice channal!');
});
// Log in the bot using the provided token.
client.login('token');
```
## Credits
The [Ruvyrias](https://github.com/DarkslayerHaos/ruvyrias) client, customized by [DarkslayerHaos](https://github.com/DarkslayerHaos), is a fork originally derived from the code of [Poru](https://github.com/parasop/poru) developed by [Parasop](https://github.com/parasop). | A stable and powerful Lavalink client for NodeJS. | discordjs,djs,eris,javascript,js,lavalink,lavalink-client,library,nodejs,ruvyrias | 2024-03-14T16:36:37Z | 2024-04-16T03:44:52Z | 2024-04-16T03:44:52Z | 2 | 2 | 29 | 0 | 1 | 6 | null | MIT | TypeScript |
Megh2005/Heritage | main | null | Official website of the department of Civil Engineering of Heritage Institute of Technology | canvas,civil-engineering,css,httml,javascript,particles-js,website | 2024-02-23T07:08:44Z | 2024-04-07T04:26:32Z | null | 1 | 0 | 5 | 0 | 0 | 6 | null | null | JavaScript |
JEETAHIRWAR/advice-generator-app | main | # Frontend Mentor - Advice generator app
This is a solution to the [Advice generator app challenge on Frontend Mentor](https://www.frontendmentor.io/challenges/advice-generator-app-QdUG-13db). Frontend Mentor challenges help you improve your coding skills by building realistic projects.
## Table of contents
- [Overview](#overview)
- [The challenge](#the-challenge)
- [Screenshot](#screenshot)
- [Links](#links)
- [My process](#my-process)
- [Built with](#built-with)
- [What I learned](#what-i-learned)
- [Continued development](#continued-development)
- [Useful resources](#useful-resources)
- [Author](#author)
- [Acknowledgments](#acknowledgments)
## Overview
### The challenge
Users should be able to:
- View the optimal layout for the app depending on their device's screen size
- See hover states for all interactive elements on the page
- Generate a new piece of advice by clicking the dice icon
### Desktop Screenshot

### Mobile Screenshot
<div style="display: flex; align-items: center;">
<img align="left" src="./design/mobile-Screenshot2.png" alt="Mobile Screenshot" width="360" height="680" style="margin-right: 50px;">
<div>
### Links
Solution URL: [Click Here](https://github.com/JEETAHIRWAR/advice-generator-app) </br>
Live Site URL: [Click Here](https://jeetahirwar.github.io/advice-generator-app/)
## My process
### Built with
<pre style="background-color: #2D3250; color: #DCF2F1; font-weight: 600; font-family: 'Manrope', sans-serif; font-size: 16px; padding: 10px;">
- Semantic HTML5 markup
- CSS custom properties
- Flexbox
- CSS Grid
- Mobile-first workflow
- JavaScript
- Fetch API for data retrieval
- Responsive design
- Box shadows for enhanced styling
</pre>
</div>
</div>
### What I learned
During this project, I learned how to use the Fetch API to retrieve data from an external source and update the content dynamically on the webpage. I also improved my skills in responsive design, incorporating box shadows, and creating interactive elements.
### Continued development
I plan to continue refining my skills in JavaScript, especially in handling asynchronous operations and improving the overall user experience. Additionally, I aim to explore more advanced styling techniques and experiment with different design patterns.
### Useful resources
- [MDN Web Docs - Fetch API](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API): Comprehensive guide on using the Fetch API.
- [CSS Tricks - Box Shadows](https://css-tricks.com/almanac/properties/b/box-shadow/): A handy reference for creating box shadows.
- [Frontend Mentor](https://www.frontendmentor.io/challenges/advice-generator-app-QdUG-13db): The challenge description and community feedback.
## Acknowledgments
I'd like to thank Frontend Mentor for providing this challenging project and the supportive community that offers valuable feedback and insights. Additionally, I appreciate the resources from MDN Web Docs and CSS Tricks that contributed to my learning process.
---
<div align="right">
## Author
[JEET AHIRWAR](https://github.com/JEETAHIRWAR)
- Frontend Mentor - [@jeetahirwar](https://www.frontendmentor.io/profile/JEETAHIRWAR)
</div>
---
## Like my work and want to support me?
Feel free to connect with me on LinkedIn:
[](https://www.linkedin.com/in/jeet-ahirwar-0b71371b2/)
[](https://www.your-portfolio-website.com/)
[](https://www.twitter.com/jeet_05404201)
[](https://www.instagram.com/_jeet__007_/)
If you find the Advice generator App helpful and would like to support my work, you can do so in the following ways:
1. **⭐Star this Repository:** If you like this project, show your appreciation by starring the GitHub repository. Your stars help others discover and benefit from this project as well.
2. **📢Feedback and Contributions:** I welcome feedback, bug reports, and contributions. If you have suggestions, ideas, or want to contribute code, please create issues or pull requests on GitHub.
3. **💬Share with Others:** If you find this app useful, consider sharing it with friends and colleagues who might also benefit from it.
4. **<img src="https://github.com/JEETAHIRWAR/quiz_app/assets/102626329/2189867a-1ab7-4ad8-8392-011050ae267b" width="20" alt="FollowersMeGIF">
Follow Me:** Stay updated with my latest projects and contributions by following me on GitHub.
Your support is greatly appreciated and helps me improve and create more useful projects in the future.
---
## Contributing
- **Fork the Repository**: Click the "Fork" button at the top right of the repository on GitHub.
- **Clone the Repository**: Clone the forked repository to your local machine using Git.
```bash
git clone https://github.com/JEETAHIRWAR/quiz_app.git
- **Create a Branch**: Create a new branch to work on your feature or bug fix.
```bash
git checkout -b feature/your-feature-name
- **Make Changes**: Make your desired changes to the codebase.
- **Commit Changes**: Commit your changes with a descriptive commit message.
```bash
git commit -m "Add your commit message here"
- **Push Changes**: Push your changes to your forked repository.
```bash
git push origin feature/your-feature-name
- **Open a Pull Request**: Go to the original repository on GitHub and click the "New Pull Request" button. Follow the prompts to create your pull request.
- **Discuss and Review**: Participate in the discussion with the project maintainers. Make any necessary changes to your pull request based on feedback.
- **Merge Pull Request**: Once your pull request is approved, it will be merged into the main project.
Thank you for your contributions!
Please review our Code of Conduct before contributing and follow the best practices for code quality and style.
We appreciate your help in making the Quiz Web App even better. 🚀
---
<div>
<h3 align="center">❤️Thank You 😎</h3>
<div align="center">
<p>😊Thank you for checking out my project!</p>
<img src="https://github.com/JEETAHIRWAR/quiz_app/assets/102626329/b940f963-0774-462b-9ae7-1416a2982693" alt="Happy Hacking" width="400">
<h4>👻 Happy Coding </h4>
<p>🥳Your support means a lot to me. If you have any questions or feedback, feel free to reach out.</p>
</div>
</div>
----
----
| This project is a responsive advice generator app built with HTML, CSS, and JavaScript. It fetches random advice from an external API on user interaction, incorporating subtle animations for an engaging experience. | css-flexbox,external-api,fetch-api,html,javascript,responsive-design,css-animations- | 2024-02-01T05:21:12Z | 2024-02-06T15:41:40Z | null | 1 | 0 | 18 | 0 | 0 | 6 | null | null | JavaScript |
nicolabovolato/basica | master | [](https://github.com/nicolabovolato/basica/actions/workflows/ci.yml)
# Basica
The Foundational Library of Modern Applications
## [Docs](https://basica.bovolato.dev)
`npm install @basica/core @basica/config @basica/fastify`
```ts
import { IocContainer } from "@basica/core/ioc";
import { loggerFactory } from "@basica/core/logger";
import { AppBuilder } from "@basica/core";
import { configure, envProvider } from "@basica/config";
import { lifecyclePlugin } from "@basica/fastify";
import { Type } from "@sinclair/typebox";
// Validate configuration
const config = configure(envProvider(), Type.Object({
logger: loggerConfigSchema
}));
// Dependency injection
const container = new IocContainer()
.addSingleton("logger", () => loggerFactory(config.logger))
.addSingleton("svc", (s) => ({
hello: () => {
s.logger.info("svc called!");
return "hello world";
},
healthcheck: () => ({ status: "healthy" }),
}));
const app = new AppBuilder(container)
// Lifecycle management
.configureLifecycle((b, c) => b
// Healthchecks
.addHealthcheck("svc", (c) => c.svc)
// Plugins
.with(lifecyclePlugin, (b) => b
.addFastifyEntrypoint("http", (f) => f
.mapHealthchecks({ path: "/health" })
.configureApp((app) => {
app
.useOpenapi()
.fastify.get("/", () => c.svc.hello());
}
)
)
)
).build();
app.run();
``` | The Foundational Library of Modern Applications | fastify,framework,javascript,microservice,microservices,rest-api,restful-api,typebox,typescript,web-application | 2024-02-01T08:26:46Z | 2024-05-01T10:17:28Z | 2024-05-01T10:18:47Z | 1 | 12 | 21 | 0 | 0 | 6 | null | MIT | TypeScript |
Mehrshad-Z/Water-Tracker | master | # Water Tracker
" Water tracker is a web application that helps you track your daily water consumption and reach your set goal in this field. This project is implemented using HTML, CSS and JavaScript and has a simple and beautiful user interface. If you care about your health and want to drink enough water, this project is right for you. "
- Responsively (on mobile/tablet/desktop)
- Select the desired target
- Container with different water volumes
- Simple and practical user interface
## 🛠️ Tools & Skills
- <code>JavaScript</code>
- <code>HTML</code>
- <code>CSS</code>
You can see this project live ([Click here 👀](https://mehrshad-z.github.io/Water-Tracker/))
<hr>
[Follow](https://github.com/Mehrshad-Z) for more projects 🕹️
| Water Tracker is a simple and elegant app that helps you track your daily water intake and stay hydrated. | css,front-end,frontend,html,javascript,script,water-tracker,webapp,website | 2024-01-27T18:59:43Z | 2024-02-09T18:07:17Z | null | 1 | 0 | 17 | 0 | 0 | 5 | null | null | CSS |
mitko8009/ShkoloTweaks | main |
[](https://github.com/mitko8009/ShkoloTweaks/blob/main/LICENSE)

**Shkolo Tweaks** is a web extension for customising **[Shkolo]("https://www.shkolo.bg/")**. It features a dark theme, widgets, stats, and much more.
## Features
- Customization
- Provides Additional Functionality
- Stat Tracking
- Supports English and Bulgarian
## Availability
**Shkolo Tweaks** is available on all *Chromium Browsers*.
**Download NOW**
[](https://chromewebstore.google.com/detail/shkolotweaks/benlbhlopnomakndbgihpghghdcejpjc?hl=en&authuser=0)
## Authors
- [@mitko8009](https://github.com/mitko8009)
[](https://www.instagram.com/mitko8009_/)
- [@DeyanVNikolov](https://github.com/DeyanVNikolov)
| Web extension for customizing Shkolo | chrome-extension,firebase,javascript,pyqt5,manifest-v3,webextension,quality-of-life,shkolo,school | 2024-02-28T11:00:32Z | 2024-05-18T21:33:43Z | null | 3 | 6 | 97 | 1 | 0 | 5 | null | GPL-3.0 | JavaScript |
MariaAbba/Car_website | master | <h1 align="Center">Responsive e-commerce website.</h1>
###
<div align="center">
<img width="531" alt="Screenshot 2024-03-24 113618" src="https://github.com/MariaAbba/Car_website/assets/99909488/f4eb33e5-912d-401a-853b-169d98cf3a2c">
</div>
###
<h2 align="center">Implementations</h2>
###
<div align="center">
<img src="https://cdn.jsdelivr.net/gh/devicons/devicon/icons/react/react-original.svg" height="40" alt="react logo" />
<img width="12" />
<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/typescript/typescript-original.svg" height="40" alt="typescript logo" />
<img width="12" />
<img src="https://cdn.jsdelivr.net/gh/devicons/devicon/icons/nextjs/nextjs-original.svg" height="40" alt="nextjs logo" />
<img width="12" />
<img src="https://cdn.jsdelivr.net/gh/devicons/devicon/icons/tailwindcss/tailwindcss-original-wordmark.svg" height="40" alt="tailwindcss logo" />
</div>
###
| This is the dynamic car-related web application, crafted with React , Nextjs, Typescript and Tailwind. This project is a virtual pit stop for automotive enthusiasts, designed to deliver a seamless and engaging experience for users interested in exploring, comparing, and discovering information about various cars. | javascript,nextjs,react,reactjs,tailwind,typescript,css,front-end,frontend,html | 2024-03-04T16:40:42Z | 2024-03-24T07:36:40Z | null | 1 | 0 | 55 | 0 | 0 | 5 | null | null | TypeScript |
EDM115/palex | master | # palex
**A javascript package to help you create and manage color palettes**
  
 
  
 [](https://app.deepsource.com/gh/EDM115/palex/)
Did you ever wanted to create a *color palette* for your website or your app but you didn't knew how to do it ? Did you had the idea to create a whole palette from a *single* color but thought it was too hard ? Or maybe you were wondering how to make a color palette *colorblind friendly* ?
Well today is your lucky day because `palex` is here to help you with all of that !
> [!NOTE]
> `palex` was created when I was working on [@data-fair/app-charts](https://github.com/data-fair/app-charts) and I needed to create color palettes for the charts. During this time I created several functions to help me with that, and some didn't make it to the final version, so I decided to release `palex` as a standalone library to help anyone struggling with color palettes !
## Installation
You can install `palex` using your favorite package manager, here are some examples :
```bash
npm install palex
yarn add palex
```
Find the package on : [NPM](https://www.npmjs.com/package/palex) | [jsDelivr](https://www.jsdelivr.com/package/npm/palex)
## Usage
You can instanciate `palex` the CommonJS way :
```js
const palex = require('palex')
console.log(palex.palex('#FFB86C', 'color', 10, cbf = true, golden = true))
```
Or the ESM way (used in the following documentation) :
```js
import { palex } from 'palex'
console.log(palex('#FFB86C', 'color', 10, cbf = true, golden = true))
```
> [!IMPORTANT]
> If you're using the ESM way, you'll need to either use the `.mjs` extension or have a `"type": "module"` in your `package.json` file.
## Documentation
The following documentation will explain how to use `palex` and its functions. It tries to be as comprehensive as possible, but if you have any question, feel free to open an issue ! Pull requests are also welcome if you want to add a feature or fix a bug !
### `palex(input, type, numColors = 10, cbf = false, golden = false, grey = false)`
The main entrypoint of `palex`. It generates a color palette based on a given input and type.
- `input` : The input color(s). It can be a palette string (brewer), a color(s) string (hex, rgb, or named color) or an array containing any of these.
- `type` : The type of the input. It can be `brewer`, `hues`, `complementary`, `color` or `greyscale`.
- `numColors` : The number of colors to generate. It defaults to 10.
- `cbf` : If `true`, the palette will be colorblind friendly. It defaults to `false`. Have no effect if the type is `brewer` or `greyscale`.
- `golden` : If `true`, the palette will be based on the golden ratio. It defaults to `false`. Not recommended to use along with `cbf`.
- `grey` : If `true`, a greyscale will be added to the generated palette if the number of colors is less than numColors. It defaults to `false`.
Returns an array of colors in hexadecimal format.
```js
import { palex } from 'palex'
console.log(palex('#FFB86C', 'color', 10, cbf = true, golden = true))
// ["#df9220", "#2520df", "#dfb220", "#df3720", "#c6df20", "#df20a7", "#dfde20", "#2c20df", "#ccdf20", "#205fdf"]
```
### `sanitizeInput(input)`
Did you ever wanted to know how every function in `palex` can accept such a wide range of inputs ? Well, it's because of `sanitizeInput` ! I wanted to create something easy to use so *you* don't have to worry about changing the input to fit the function.
- `input` : The input to sanitize. It can be a palette string (brewer), a color(s) string (hex, rgb, or named color) or an array containing any of these.
Returns the sanitized input.
```js
import { sanitizeInput } from 'palex'
console.log(sanitizeInput('#FFB86C'))
// "#ffb86c"
console.log(sanitizeInput('Set3'))
// "Set3"
console.log(sanitizeInput('rgb(255, 184, 108)'))
// "#ffb86c"
console.log(sanitizeInput('ff0, #abc, FFB86C, , ,, ,,, rgb(100, 200, 81)'))
// ["#ffff00", "#aabbcc", "#ffb86c", "#64c851"]
```
### `generatePaletteFromBrewer(input, numColors)`
Generates a color palette from a brewer palette string.
> [!TIP]
> You can find strings to use here : https://loading.io/color/feature/
> All strings in the Diverging section are valid, all from Qualitative except HCL, and most from Gradient too :\)
- `input` : The brewer palette string.
- `numColors` : The number of colors to generate. If not provided, it defaults to 2 and will return the 2 base colors of the palette.
Returns an array of colors in hexadecimal format.
```js
import { generatePaletteFromBrewer } from 'palex'
console.log(generatePaletteFromBrewer('Set3', 10))
// ["#8dd3c7", "#ffe3b1", "#e19ec9", "#aaa1df", "#ffa778", "#d4d766", "#f1d1e1", "#caa8ca", "#dbd29f", "#ffed6f"]
```
### `getGoldenColor(color)`
Returns a color based on the golden ratio from a given color. The idea behind it stems from the very good [PleaseJS](https://github.com/Fooidge/PleaseJS?tab=readme-ov-file#make_color-options) library.
- `color` : The color to base the new color on.
Returns a color in hexadecimal format.
```js
import { getGoldenColor } from 'palex'
console.log(getGoldenColor('#FFB86C'))
// "#df8320"
```
### `generateGreyscale(start, end, steps)`
Generates a greyscale palette from a start point to an end point with a given number of steps.
- `start` : The start point of the greyscale, from 0 to 255.
- `end` : The end point of the greyscale, from 0 to 255.
- `steps` : The number of steps to generate.
Returns an array of colors in hexadecimal format.
```js
import { generateGreyscale } from 'palex'
console.log(generateGreyscale(0, 10, 5))
// generates 11 colors, from black at 0 to white at 5, and values above steps and below end are white
// ["#000000", "#333333", "#666666", "#999999", "#cccccc", "#ffffff", "#ffffff", "#ffffff", "#ffffff", "#ffffff", "#ffffff"]
console.log(generateGreyscale(6, 10, 6))
// generates 5 colors. they are all pure white
// ["#ffffff", "#ffffff", "#ffffff", "#ffffff", "#ffffff", "#ffffff"]
console.log(generateGreyscale(1, 5, 10))
// generates 5 colors. since steps is bigger than end - start, we will have a greyscale that avoids black and white
// ["#1a1a1a", "#333333", "#4d4d4d", "#666666", "#808080"]
```
### `generateHues(palette, numColors, cbf = false)`
Generates a hue palette from a given color palette and a number of colors. It can also make the palette colorblind friendly.
- `palette` : The palette to base the hue on.
- `numColors` : The number of colors to generate.
- `cbf` : If `true`, the palette will be colorblind friendly. It defaults to `false`.
Returns an array of colors in hexadecimal format.
```js
import { generateHues } from 'palex'
console.log(generateHues(['#BD93F9', '#F1FA8C', '#6272A4'], 10))
// ["#bd93f9", "#f1fa8c", "#6272a4", "#fdecff", "#faffc8", "#7997db", "#fff3ff", "#a6bcf5", "#cee3ff"]
import { generatePaletteFromBrewer } from 'palex'
console.log(generateHues(generatePaletteFromBrewer('Set3', 10), 10))
// ["#8dd3c7", "#ffe3b1", "#e19ec9", "#aaa1df", "#ffa778", "#d4d766", "#f1d1e1", "#caa8ca", "#dbd29f", "#ffed6f"]
```
### `generateHuesFromColor(color, numColors, cbf = false)`
Generates a color palette hue from a given color and a number of colors. It can also make the palette colorblind friendly.
- `color` : The color to base the hue on.
- `numColors` : The number of colors to generate.
- `cbf` : If `true`, the palette will be colorblind friendly. It defaults to `false`.
Returns an array of colors in hexadecimal format.
```js
import { generateHuesFromColor } from 'palex'
console.log(generateHuesFromColor('#FFB86C', 10))
// ["#ffb86c", "#ffc56e", "#ffd794", "#ffe9b7", "#fffadb", "#fff3ff", "#fff3ff", "#fff3ff", "#fff3ff", "#fff3ff"]
```
### `generateComplementary(palette, numColors, cbf = false)`
Generates a complementary palette from a given color palette and a number of colors. It can also make the palette colorblind friendly.
- `palette` : The palette to base the complementary on.
- `numColors` : The number of colors to generate.
- `cbf` : If `true`, the palette will be colorblind friendly. It defaults to `false`.
Returns an array of colors in hexadecimal format.
```js
import { generateComplementary } from 'palex'
console.log(generateComplementary(['#BD93F9', '#F1FA8C', '#6272A4'], 10))
// ["#bd93f9", "#f1fa8c", "#6272a4", "#cff993", "#958cfa", "#a49462", "#f093f9", "#bafa8c", "#7362a4", "#939cf9"]
import { generatePaletteFromBrewer } from 'palex'
console.log(generateComplementary(generatePaletteFromBrewer('Set3', 10), 10))
// ["#8dd3c7", "#ffe3b1", "#e19ec9", "#aaa1df", "#ffa778", "#d4d766", "#f1d1e1", "#caa8ca", "#dbd29f", "#ffed6f"]
```
### `generatePaletteFromColor(color, numColors, cbf = false)`
Generates a color palette from a given color and a number of colors. Starts by generating a complementary color, then generates a number of analogous colors. If the number of colors is not reached, it generates a number of triadic colors. It can also make the palette colorblind friendly.
- `color` : The color to base the palette on.
- `numColors` : The number of colors to generate.
- `cbf` : If `true`, the palette will be colorblind friendly. It defaults to `false`.
Returns an array of colors in hexadecimal format.
```js
import { generatePaletteFromColor } from 'palex'
console.log(generatePaletteFromColor('#FFB86C', 10))
// ["#ffb86c", "#6cb3ff", "#fcff6c", "#ff6f6c", "#b3ff6c", "#ff6cb3", "#6cff6f", "#ff6cfc", "#6cffb8", "#b86cff"]
```
### `adjustForColorBlindness(palette)`
Adjusts a given palette to make it colorblind friendly. It works by simulating the three types of color blindness (protanopia, deuteranopia, and tritanopia) using the `color-blind` library. The function compares all the colors in each simulated palette and shifts one of them to a closer but not similar color if they are too similar. This process is repeated for each simulated palette until they are "fixed". The function then computes the three fixed palettes into a single palette by selecting the best color for each index. This process can be recursively applied until the palette is fully adjusted.
- `palette` : The palette to adjust.
Returns an array of colors in hexadecimal format.
```js
import { adjustForColorBlindness } from 'palex'
console.log(adjustForColorBlindness(['#FFB86C', '#6CB3FF', '#FCFF6C', '#FF6F6C', '#B3FF6C', '#FF6CB3', '#6CFF6F', '#FF6CFC', '#6CFFB8', '#B86CFF']))
// ["#f3bc6a", "#8e8bff", "#fff7dd", "#ff8170", "#f1ff93", "#ab9aa6", "#fbfa68", "#9690ec", "#eef5af", "#548cff"]
```
### `simulateColorBlindness(color)`
Simulates color blindness on a given color using the `color-blind` library. It works by simulating the 4 types of color blindness (protanopia, deuteranopia, tritanopia, and achromatopsia) and returns the base color + the simulated colors.
- `color` : The color to simulate color blindness on.
Returns an array containing the base color and the simulated colors in hexadecimal format.
```js
import { simulateColorBlindness } from 'palex'
console.log(simulateColorBlindness('#FFB86C'))
// ["#ffb86c", "#d9c570", "#f3bc6a", "#ffb0bb", "#c2c2c2"]
```
### Re-exposure
> [!TIP]
> Since this package uses the libraries `chroma.js` and `color-blind`, you can use them directly to create your own color palettes or to simulate color blindness.
> `palex` re-expose their object so you can directly use them without adding a line to your `package.json` file :\)
> Find their documentation here : [chroma.js](https://www.vis4.net/chromajs) and [color-blind](https://github.com/skratchdot/color-blind)
```js
import { chroma, blinder } from 'palex'
console.log(chroma.bezier(['#FFB86C', '#6CB3FF']).scale().colors(5))
// ["#ffb86c", "#e8b693", "#ccb5b7", "#a7b4db", "#6cb3ff"]
console.log(blinder.protanopia('#FFB86C'))
// "#d9c570"
```
## Contributing
Here's a quick guide to contributing to `palex` :
1. Fork the repository (and star it)
2. Clone your fork
```bash
git clone https://github.com/your-username/palex.git
cd palex
```
3. Do your changes
4. Test your changes
Import the function you wanna test in `test/App.vue` and instanciate it like the others are
```bash
npm run test
```
5. Commit your changes
```bash
git add -A
git commit -m "Your changes"
git push
```
6. Open a pull request
## Donate
I'm a small developer from France, and as I write this I'm still pursuing my studies. If you want to support me, here's how you can do it :
- Star this repository
- Follow me on [GitHub](https://github.com/EDM115)
- Donate :
- [PayPal](https://paypal.me/8EDM115)
- [GitHub Sponsors](https://github.com/sponsors/EDM115)
- [BuyMeACoffee](https://www.buymeacoffee.com/EDM115)
- [Donate on Telegram](https://t.me/EDM115bots/698)
## License
- `palex` is licensed under the [MIT License](https://github.com/EDM115/palex/blob/master/LICENSE)
- `chroma.js` is licensed under the [BSD License](https://github.com/gka/chroma.js/blob/main/LICENSE)
- `color-blind` is licensed under the [MIT License + CC-BY-SA-4.0](https://github.com/skratchdot/color-blind?tab=readme-ov-file#license)
> [!NOTE]
> Sources that helped during development :
> - [vis4/chroma.js](https://www.vis4.net/chromajs)
> - [vis4/palettes](https://www.vis4.net/palettes/#/10|d|00429d,96ffea,ffffe0|ffffe0,ff005e,93003a|1|1)
> - [Fooidge/PleaseJS#make_color-options](https://github.com/Fooidge/PleaseJS?tab=readme-ov-file#make_color-options)
> - [loading.io/color/feature](https://loading.io/color/feature/)
| A javascript package to help you create color palettes | color,color-palette,colorblind,generate-color,javascript,library,npm,package,palette | 2024-01-30T16:57:50Z | 2024-05-23T06:46:53Z | 2024-02-15T14:42:39Z | 1 | 54 | 93 | 1 | 0 | 5 | null | MIT | JavaScript |
ViktorSvertoka/goit-react-woolf-hw-05-movies | main | # Критерії приймання
- Створений репозиторій `goit-react-woolf-hw-05-movies`
- При здачі домашньої роботи є посилання: на вихідні файли та робочі сторінки
кожного проекту на `GitHub Pages`.
- У стані компонентів зберігається мінімально необхідний набір даних, решта
обчислюється
- Під час запуску коду завдання в консолі відсутні помилки та попередження.
- Для кожного компонента є окрема папка з файлом React-компонента та файлом
стилів
- Все, що компонент очікує у вигляді пропсів, передається йому під час виклику.
- Імена компонентів зрозумілі та описові
- JS-код чистий і зрозумілий, використовується `Prettier`
- Стилізація виконана `CSS-модулями` або `Styled Components`.
## Кінопошук
Створи базову маршрутизацію для застосунку пошуку і зберігання фільмів. Прев'ю
робочого застосунку
[дивись за посиланням](https://drive.google.com/file/d/1vR0hi3n1236Q5Bg4-se-8JVKD9UKSfId/view?usp=sharing).
## themoviedb.org API
Для бекенду використовуй [themoviedb.org API](https://www.themoviedb.org/).
Необхідно зареєструватися (можна ввести довільні дані) та отримати API-ключ. У
цій роботі будуть використовуватися наступні ендпоінти.
- [/trending/get-trending](https://developers.themoviedb.org/3/trending/get-trending)
список найпопулярніших фільмів на сьогодні для створення колекції на головній
сторінці.
- [/search/search-movies](https://developers.themoviedb.org/3/search/search-movies)
пошук фільму за ключовим словом на сторінці фільмів.
- [/movies/get-movie-details](https://developers.themoviedb.org/3/movies/get-movie-details)
запит повної інформації про фільм для сторінки кінофільму.
- [/movies/get-movie-credits](https://developers.themoviedb.org/3/movies/get-movie-credits)
запит інформації про акторський склад для сторінки кінофільму.
- [/movies/get-movie-reviews](https://developers.themoviedb.org/3/movies/get-movie-reviews)
запит оглядів для сторінки кінофільму.
[Посилання на документацію](https://developers.themoviedb.org/3/getting-started/introduction)
## Маршрути
У застосунку повинні бути такі маршрути. Якщо користувач зайшов за неіснуючим
маршрутом, його необхідно перенаправляти на домашню сторінку.
- `'/'` – компонент `<HomePage>`, домашня сторінка зі списком популярних
кінофільмів.
- `'/movies'` – компонент `<MoviesPage>`, сторінка пошуку кінофільмів за
ключовим словом.
- `'/movies/:movieId'` – компонент `<MovieDetailsPage>`, сторінка з детальною
інформацією про кінофільм.
- `/movies/:movieId/cast` – компонент `<Cast>`, інформація про акторський склад.
Рендериться на сторінці `<MovieDetailsPage>`.
- `/movies/:movieId/reviews` – компонент `<Reviews>`, інформація про огляди.
Рендериться на сторінці `<MovieDetailsPage>`.
## Code Splitting (поділ коду)
Додай асинхронне завантаження JS-коду для маршрутів застосунку, використовуючи
`React.lazy()` і `Suspense`.
### Фінальний результат


| Home task for React course📘 | goit,javascript,react,goit-react-woolf-hw-05-movies | 2024-02-17T21:25:17Z | 2024-02-25T11:39:16Z | null | 1 | 0 | 26 | 0 | 0 | 5 | null | null | JavaScript |
Elchin-Novruzov/Sales-Support-Portal-Admin-Dashboard | main | Admin Panel Dashboard
Overview
This project showcases an admin panel dashboard designed to facilitate efficient team management, streamline communication through a mail system, and integrate with the Sales Support Portal. Additionally, it provides tools for identifying areas for future improvement and growth.
Features
Team Management: Easily manage team members, assign roles, and track progress on various tasks and projects.
Mail System: Seamlessly communicate with team members through an integrated mail system, facilitating quick and efficient correspondence.
Sales Support Portal Integration: Integrate with the Sales Support Portal to prioritize customer needs and streamline the purchasing experience.
Future Improvement Tools: Utilize tools embedded within the dashboard to identify areas for enhancement and growth, fostering continuous improvement.
Technologies Used
HTML: Used for structuring the dashboard layout and content.
CSS: Employed for styling and enhancing the visual appeal of the dashboard.
JavaScript: Implemented for dynamic interactions and functionality within the dashboard.
Bootstrap: Leveraged for responsive design and ensuring compatibility across various devices.
Usage
Preview Link:[ LinkedIn Post](https://www.linkedin.com/feed/update/urn:li:activity:7166017213643104257/)
To deploy the admin panel dashboard locally, follow these steps:
Clone the repository to your local machine.
Extract .rar files.
Navigate to the project directory.
Open the index.html file in your preferred web browser.
Fork the repository.
Create a new branch for your feature or bug fix.
Make your changes and commit them with descriptive messages.
Push your changes to your fork.
Submit a pull request to the main repository.
| null | bootstrap5,css3,html,javascript,json,toml | 2024-02-21T03:07:51Z | 2024-02-21T11:51:58Z | null | 1 | 0 | 7 | 0 | 0 | 5 | null | MIT | JavaScript |
klnamv/gpt_arena | main | # GPT arena ⚡️
Get answers from different GPT models.
In the web application you can compare models: `gpt-3.5-turbo` and `gpt-4-1106-preview`.
<img width="512" alt="image" src="https://github.com/klnamv/gpt_arena/assets/117654777/dc804819-8951-4652-9901-2004cc8d58a7">
# Technologies 💻
- `React`
- `React Markdown`
- `OpenAI API`
- `SASS`
# How It Works?
Users input data that is asynchronously sent to the selected GPT model via the OpenAI API, using a streaming to output the generated text - the model's response, and ReactMarkdown to display the output, providing a full-fledged representation of the message.
# OpenAI API Key 🔐
To interact with the GPT models, an API key from OpenAI is required. This key enables your application to authenticate requests to OpenAI's services, ensuring that usage is secure and measured.
**Acquiring an API Key**
1. Create an account at OpenAI.
2. Navigate to the API section and generate a new API key.
3. Once you have your key, you will use it in your environment file to authenticate API requests from your application.
**Setting Up Your API Key**
In the root of your project:
1. Create a `.env` file.
2. Add the following line: `REACT_APP_OPENAI_API_KEY='your-api-key-here'`.
3. This will allow your application to authenticate its requests to OpenAI.
# How Can It Be Improved?
- Add a personal account (username, password, API key);
- Save user info, sessions in DataBase (MongoDB or Postgres);
- Add the ability to select models for comparison (drop-down list);
- Adapt the web application for mobile devices;
# Known Problems 🐛
- The web application is not adapted for phones and tablets.
# Running the Project 🚦
To run the project in your local environment, follow these steps:
1. Clone the repository to your local machine.
2. Run <code>npm install</code> or <code>yarn</code> in the project directory to install the required dependencies.
3. Create `.env` file, inside write <code>REACT_APP_OPENAI_API_KEY='your-api-key-here'</code>
4. Run <code>npm run start</code> or <code>yarn start</code> to get the project started.
5. Open http://localhost:3000 (or the address shown in your console) in your web browser to view the app.
# Demo 📸
[demo](https://github.com/klnamv/gpt_arena/assets/117654777/25b08343-e89a-465a-b41f-39b772798133)
| Get answers from different GPT models. | gpt-3,gpt-4,gptchat,javascript,openai-api,reactjs,gptarena | 2024-02-29T19:17:53Z | 2024-04-25T21:04:01Z | null | 1 | 6 | 21 | 3 | 6 | 5 | null | MIT | JavaScript |
Tejas-0612/QuickBytes | main | <div align="center">
<br />
<a href="https://quick-bytes.vercel.app/" target="_blank">
<img src="./src/assets/logo.png" alt="Project Banner">
</a>
<br />
<p align="center">Get the latest News in a <strong>Byte</strong>.</p>
</div>
### <span name="demo">🚀 Demo</span> - 🔗<a href="https://quick-bytes.vercel.app/" target="_blank">click here</a>
## 📋 <a name="table">Table of Contents</a>
1. 🤖 [Introduction](#introduction)
2. ⚙️ [Tech Stack](#tech-stack)
3. 🔋 [Features](#features)
4. 🤸 [Quick Start](#quick-start)
5. ⚖️ [License](#license)
6. 🙏🏻 [Acknowledgements](#acknowledgements)
## <a name="introduction">🤖 Introduction</a>
QuickBytes is a web app that provides quick access to summarized news headlines across various categories. Stay informed on topics ranging from Politics, Technology, Entertainment, Sports, Business, Science, and more. Built with React and Tailwind CSS, the app offers an intuitive interface for browsing news content.Keep up with the latest updates effortlessly!
## <a name="tech-stack">⚙️ Tech Stack</a>
- React.js - JavaScript library for building user interfaces.
- Tailwind CSS - Utility-first CSS framework for rapid UI development.
- React Router Dom - Declarative routing for React applications.
- Lucide React - Icon library for React applications.
## <a name="features">🔋 Features</a>
👉 **Read News Headlines Quickly**: Browse through the latest news headlines in a concise and summarized format.
👉 **Customizable News Categories**: Choose from a variety of news categories to tailor your reading experience.
👉 **Responsive Design**: Enjoy seamless browsing on both desktop and mobile devices.
👉 **Intuitive UI**: User-friendly interface for easy navigation and reading.
## <a name="quick-start">🤸 Quick Start</a>
Follow these steps to set up the project locally on your machine.
**Prerequisites**
Make sure you have the following installed on your machine:
- [Git](https://git-scm.com/)
- [Node.js](https://nodejs.org/en)
- [npm](https://www.npmjs.com/) (Node Package Manager)
**Cloning the Repository**
```bash
git clone https://github.com/Tejas-0612/QuickBytes.git
cd QuickBytes
```
**Installation**
Install the project dependencies using npm:
```bash
npm install
```
**Running the Project**
```bash
npm run dev
```
Open [http://localhost:3000](http://localhost:3000) in your browser to view the project.
## <a name="license">⚖️ License</a>
Distributed under the MIT License. See LICENSE for more information.
## <a name="acknowledgements">🙏🏻 Acknowledgements</a>
- <a href="https://vitejs.dev/" target="_blank"> Vite</a> - Next Generation Frontend Tooling.
- <a href="https://vitejs.dev/" target="_blank"> Inshorts</a> - Inspiration for the project.
#
| QuickBytes 🗞️ is a web app that provides quick access to summarized news headlines across various categories. Stay informed on topics ranging from Politics, Technology, Entertainment, Sports, Business, Science, and more. | javascript,news,reactjs,tailwindcss | 2024-02-09T16:00:57Z | 2024-04-18T11:12:26Z | null | 1 | 0 | 8 | 0 | 0 | 5 | null | MIT | JavaScript |
hamzalodhi2023/Random-Quotes-Generator | master | This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app).
## Getting Started
First, run the development server:
```bash
npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev
```
Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
You can start editing the page by modifying `app/page.js`. 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.
| Random Quotes Generato Using React JS. Give it a star 🌟 if you find it useful. | app,css,css-flexbox,css3,html,html5,javascript,js,programming,quotes-api | 2024-03-10T08:00:55Z | 2024-03-10T08:00:14Z | null | 1 | 0 | 2 | 0 | 0 | 5 | null | null | JavaScript |
deepinfra/deepinfra-node | main | null | Official TypeScript wrapper for DeepInfra Inference API | api,api-client,deep-learning,javascript,llm,llm-inference,typescript,wrapper | 2024-03-12T22:26:38Z | 2024-05-13T10:21:55Z | 2024-05-08T10:39:20Z | 2 | 32 | 141 | 3 | 0 | 5 | null | MIT | TypeScript |
RamanSharma100/vyuha | main | null | A Nodejs Template Engine Inspired by EJS, Angular and Laravel Blade | express,expressjs,javascript,javascript-library,layouts,nodejs,npm,npm-package,template-engine,templates | 2024-02-08T07:05:00Z | 2024-03-06T17:09:54Z | 2024-02-10T13:03:16Z | 1 | 0 | 20 | 0 | 1 | 5 | null | null | TypeScript |
mdmonis25/Javascript-Muz | main | null | JavaScript Muz is a series about problem-solving using JavaScript and its built-in methods and objects. It's beginner-friendly, but it requires basic JavaScript knowledge to make the most of it. It can help you build logic and prepare for interviews. | interview-preparation,javascript,problem-solving,programming | 2024-02-13T14:05:09Z | 2024-03-28T05:21:08Z | null | 1 | 0 | 32 | 0 | 0 | 5 | null | null | JavaScript |
ricoanimations/ricoanimations.github.io | release | # ricoanimations.github.io
Welcome to the RicoAnimations Website, where we mainly share proxies and games on my website.
This website is mainly coded by Rico, and some is coded by Yashraj.
The reason why I (Rico) made this website was so that we could give people from schools access to unblocked things.
All games are owned by their respectful owners. | Proxies, Games, Videos, Movies, AI, and much more you can use on this website! | css,games,games-unblocked,github-pages,html,html5,movie-streaming,movies,proxies,proxy | 2024-02-02T00:24:47Z | 2024-05-20T16:31:19Z | null | 3 | 0 | 122 | 0 | 9 | 5 | null | null | JavaScript |
Gubchik123/obsidian-movie-search-plugin | master | 
_Easily create movie notes._

<br>
## Features
- Flow:
- Create a new movie note.
- Search for movies by keywords.
- Select the movie from the search results.
- Get the movie information immediately in the Obsidian note.
- Settings:
- Set the folder location where the new file is created.
- Set the template file location.
- Set up the services that you use to search for movies.
- Third-party plugins integration:
- Use the [Dataview plugin](https://obsidian.md/plugins?id=dataview) to render the movie notes.
- Use the [Templater plugin](https://github.com/SilentVoid13/Templater) with.
- Advanced:
- Enables [Inline scripts](#inline-script) for templates.
<br>
## How to install
### From Community Plugins
Click the link to install the Movie Search plugin: [Install Link](https://obsidian.md/plugins?id=movie-search)
**OR**
Search in the Obsidian Community plugins. And install it.
<p align="center"><img src="./md_images/install.png" alt="Install image"/></p>
### Manually (from GitHub)
<details>
<summary><h4 style="display: inline-block;">Steps</h4></summary>
1. Clone the repository to your Obsidian plugins folder.
```bash
git clone https://github.com/Gubchik123/obsidian-movie-search-plugin.git
```
2. Install the dependencies.
```bash
yarn install
```
3. Build the plugin.
```bash
yarn build
```
4. Reload Obsidian and enable the plugin in the settings.
</details>
<br>
## How to use
### 1. Click the ribbon icon (star), or execute the command "Create new movie note".
<p align="center"><img src="./md_images/use/1.png" alt="1 step image"/></p>
### 2. Search for movies by keywords.
<p align="center"><img src="./md_images/use/2.png" alt="2 step image"/></p>
### 3. Select the movie from the search results.
<p align="center"><img src="./md_images/use/3.png" alt="3 step image"/></p>
### 4. Voila! A note has been created.
<p align="center"><img src="./md_images/use/4.png" alt="4 step image"/></p>
<br>
## How to use settings
<p align="center"><img src="./md_images/settings.png" alt="Settings image"/></p>
<details>
<summary><h3 style="display: inline-block;">Options</h3></summary>
### New file location
Set the folder location where the new file is created. Otherwise, a new file is created in the Obsidian Root folder.
### New file name format
Set the format of the new file name. The default is title of the movie.
### Template file
You can set the template file location. There is an example template at the bottom.
### Preferred locale
Set the preferred locale for the movie search. The default is 'auto', which means that the locale is automatically detected by user's query or browser settings.
### Ask preferred locale
Enable or disable the asking of the preferred locale before searching for movies.
### Open new movie note
Enable or disable the opening of the new movie note after creation.
### TMDB Settings
#### API Key
Set the API key for TMDB.
> You can get an API key from [developer.themoviedb.org](https://www.themoviedb.org/settings/api).
> You can use either "Access Token Auth" (JWT) or "API Key Auth".
#### Include adult
Enable or disable the inclusion of adult content in the search results.
</details>
<br>
## Example template
Personally I use the following template to create movie notes ;)
> Please also find a definition of the variables used in this template below (look at: [Template variables definitions](#template-variables-definitions)).
<details>
<summary><h3 style="display: inline-block;">templates/Search/Movie.md</h3></summary>
```markdown
---
created: "{{date:DD.MM.YYYY}} {{time:HH:mm}}"
tags:
- Entertainment
- { { media_type } }
status: TO WATCH
cover: "{{poster_path}}"
banner: "{{backdrop_path}}"
---
## 📺 -> {{title}}

### 1️⃣ -> Introduction
Title:: {{title}}
Tagline:: {{tagline}}
Release-date:: {{release_date}}
Rating:: {{vote_average}}
Vote-count:: {{vote_count}}
### 2️⃣ -> Summary
[Homepage]({{homepage}})
{{overview}}
### 3️⃣ -> My conclusion
...
#### Score:: 0
### 4️⃣ -> Global Information
Adult:: {{adult}}
Original-title:: {{original_title}}
Original-language:: {{original_language}}
Popularity:: {{popularity}}
Genres:: {{genres}}
Director:: {{director}}
Main-actors:: {{main_actors}}
Production-companies:: {{production_companies}}
Production-countries:: {{production_countries}}
Spoken-languages:: {{spoken_languages}}
### 5️⃣ -> TMDB information
ID:: {{id}}

```
> The idea of the template was taken from the [OB_Template](https://github.com/llZektorll/OB_Template/blob/main/0A_Templates/0A_10_Entertainment/0A_10_2_Movies%26ShowReview.md). Look through the repository for more examples.
> I use the Obsidian plugin [Banners](https://obsidian.md/plugins?id=obsidian-banners) (in the note properties) to display the backdrop image.
</details>
<br>
## Dataview rendering
<p align="center"><img src="./md_images/dataview.png" alt="Dataview image"/></p>
Here is the dataview query used in the demo
<details>
<summary><h3 style="display: inline-block;">Examples</h3></summary>
### List of watched movies
````
```dataview
TABLE WITHOUT ID
"" as Cover,
link(file.link, Title) as Title,
dateformat(Release-date, "yyyy") as Year,
Vote-average as "Vote average",
Original-title as "Org title",
Score + " / 10" as Score
FROM "My/Entertainments/Movies" AND #Movie
WHERE status = "WATCHED"
SORT Score DESC, Vote-average DESC, Title ASC
```
````
### List of movies to watch
````
```dataview
TABLE WITHOUT ID
"" as Cover,
link(file.link, Title) as Title,
dateformat(Release-date, "yyyy") as Year,
Vote-average as "Vote average",
Original-title as "Org title"
FROM "My/Entertainments/Movies" AND #Movie
WHERE status = "TO WATCH"
SORT Vote-average DESC, Title ASC
```
````
</details>
<br>
## Template variables definitions
Please find here a definition of the possible variables to be used in your template. Simply write `{{name}}` in your template, and replace name by the desired movie data, including:
<details>
<summary><h3 style="display: inline-block;">Table</h3></summary>
| name | type | description |
| -------------------- | ------- | -------------------------------------- |
| adult | boolean | The adult status of the movie. |
| backdrop_path | string | The backdrop image URL of the movie. |
| main_actors | string | The main actors of the movie. |
| media_type | string | It can be 'Movies' or 'TV'. |
| director | string | The director of the movie. |
| genres | string | The genres of the movie. |
| homepage | string | The homepage of the movie. |
| id | integer | The TMDB ID of the movie. |
| original_language | string | The original language of the movie. |
| original_title | string | The original title of the movie. |
| overview | string | The overview of the movie. |
| popularity | float | The popularity of the movie. |
| poster_path | string | The cover image URL of the movie. |
| production_companies | string | The production companies of the movie. |
| production_countries | string | The production countries of the movie. |
| release_date | string | The date the movie was published. |
| spoken_languages | string | The spoken languages of the movie. |
| tagline | string | The tagline of the movie. |
| title | string | The title of the movie. |
| vote_average | float | The average vote of the movie. |
| vote_count | integer | The vote count of the movie. |
| youtube_url | string | The youtube trailer URL of the movie. |
</details>
<br>
## Advanced
### Inline Script
<details>
<summary><h4 style="display: inline-block;">Examples</h4></summary>
#### To print out a movie object:
````
```json
<%=movie%>
```
````
or
````
```json
<%=JSON.stringify(movie, null, 2)%>
```
````
#### When you want to list or link genres:
```
---
Genres: <%=movie.genres.map(genre=>`\n - ${genre}`).join('')%>
---
Genres: <%=movie.genres.map(genre => `[[Genre/${genre}]]`).join(', ')%>
```
</details>
<br>
## License
[Obsidian Movie Search Plugin](https://github.com/Gubchik123/obsidian-movie-search-plugin) is licensed under the [MIT License](https://github.com/Gubchik123/obsidian-movie-search-plugin/blob/master/LICENSE.md).
<br>
## Contributing
Feel free to contribute.
You can create an [issue](https://github.com/Gubchik123/obsidian-movie-search-plugin/issues/new) to report a bug, suggest an improvement for this plugin, ask a question, etc.
You can make a [pull request](https://github.com/Gubchik123/obsidian-movie-search-plugin/compare) to contribute to this plugin development.
<br>
## Support
If this plugin helped you and you wish to contribute :)
Buy me coffee on [buymeacoffee.com/Gubchik123](https://www.buymeacoffee.com/Gubchik123)
<a href="https://www.buymeacoffee.com/Gubchik123" target="_blank"><img src="https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png" alt="Buy Me A Coffee" height="60"></a>
| Obsidian plugin to help you create movie notes. | css,html,javascript,obsidian,obsidian-plugin,typescript | 2024-02-11T17:02:38Z | 2024-03-29T09:19:36Z | 2024-03-29T09:19:36Z | 1 | 0 | 45 | 0 | 0 | 5 | null | MIT | TypeScript |
Lifailon/TorAPI | main | <p align="center">
<img src="https://github.com/Lifailon/TorAPI/blob/main/logo.png" alt="Image alt">
</p>
---
<!--<h2 align='center'>🎞️ TorAPI 🎞️</h2>-->
<p align="center">
<a href="https://github.com/nodejs/node"><img title="Node" src="https://img.shields.io/badge/node.js-6DA55F?style=for-the-badge&logo=node.js&logoColor=white"></a>
<a href="https://github.com/expressjs/express"><img title="Express" src="https://img.shields.io/badge/express.js-%23404d59.svg?style=for-the-badge&logo=express&logoColor=%2361DAFB"></a>
</p>
<p align="center">
<a href="https://github.com/Lifailon/TorAPI"><img title="Language"src="https://img.shields.io/github/languages/top/lifailon/TorAPI?logo=javascript&color=gold&label=JavaScript"></a>
<a href="https://hub.docker.com/repository/docker/lifailon/torapi/general"><img title="Language"src="https://img.shields.io/docker/image-size/lifailon/torapi?label=Docker%20Image"></a>
<a href="https://github.com/Lifailon/TorAPI"><img title="Version"src="https://img.shields.io/github/v/tag/lifailon/TorAPI?logo=Git&color=blue&label=Version"></a>
<a href="https://github.com/Lifailon/TorAPI/blob/main/LICENSE"><img title="License"src="https://img.shields.io/github/license/lifailon/TorAPI?logo=GitHub&color=green&label=License"></a>
</p>
Unofficial API server for RuTracker, Kinozal, RuTor and NoNameClub to get torrent files and other information by movie title, TV series or id. This project is an idea fork of [Torrents-Api](https://github.com/Ryuk-me/Torrents-Api) ✨ (all code is completely rewritten) for Russian-speaking torrent providers.
There are 2 types of queries:
- **Search by title**, in which we will get all available distributions from the specified torrent tracker (its ID and brief information with a link to download the torrent file).
- **Search by ID** of the specified provider, where we will get additional information: hash for direct download through torrent-client, links to Kinopoisk and IMDb databases, detailed description of the movie or TV series, as well as the content of the torrent-file (list and size of files).
📄 Released under the [MIT license](https://github.com/Lifailon/TorAPI/blob/rsa/LICENSE).
---
### 🔗 Full list of available providers:
| Provider name | Release | Mirrors | Registration | VPN | Search by ID |
| - | - | - | - | - | - |
| [RuTracker](https://rutracker.org) | 2004 | 3 | Yes* | Yes | Yes |
| [Kinozal](https://kinozal.tv) | 2006 | 2 | Yes* | Yes | Yes |
| [RuTor](https://rutor.info) | 2009 | 2 | No | Yes | Yes |
| [NoNameClub](https://nnmclub.to) | 2006 | 1 | No | Yes | Yes |
| [FastsTorrent](http://fasts-torrent.net) | 2022 | 1 | No | No | No |
\* Registration is required only when downloading a torrent file via a direct link. All distributions when searching by ID contain hashes (magnet-links), allowing you to download the content and form a torrent file using a torrent-client.
---
## 🚀 Install
Clone the repository, install dependencies and start the server:
```shell
git clone https://github.com/Lifailon/TorAPI
cd TorAPI
npm install
npm start
```
The server will start on the port `8443` (default).
## 🐳 Docker
Upload the image and run the container from the [Docker Hub](https://hub.docker.com/repository/docker/lifailon/torapi/general):
```shell
docker run -d --name TorAPI -p 8443:8443 lifailon/torapi:latest
```
Or use project files to build from [dockerfile](https://github.com/Lifailon/TorAPI/blob/main/dockerfile):
```shell
git clone https://github.com/Lifailon/TorAPI
cd TorAPI
docker build -t torapi .
docker run -d --name TorAPI -p 8443:8443 torapi
```
---
## 📚 Doc
#### Endpoint format:
```js
/api/<PROVIDER/ALL>/<TITLE/ID>/<PAGE>/<YEAR>
```
#### Methods:
Only `GET`
#### Parameters:
| Name | Mandatory | Type | Description |
| - | - | - | - |
| *PROVIDER* | True | *str* | Provider name (corresponds to the [list of providers](#-full-list-of-available-providers)) or *ALL*. |
| *TITLE* | True* | *str* | *Name* of the movie or TV series. Cyrillic characters are supported. You can use spaces if the query is enclosed in inverted commas, or use an addition character (+) instead. |
| *ID* | True* | *str* | Get more information about a film or TV series by the ID of the specified provider. |
| *PAGE* | False | *int* | Page number from which the response will be received (`0 to 20`). |
| *YEAR* | False | *int* | Year of release of the film or TV series for filtering (supported only by the provider *Kinozal*). |
\* You can use one of two parameters in the endpoint path: *TITLE* or *ID*.
#### Requests and responses:
- [RuTracker](#rutracker)
- [Kinozal](#kinozal)
- [RuTor](#rutor)
- [NoNameClub](#nonameclub)
- [FastsTorrent](#faststorrent)
#### RuTracker
▶️ `curl -s http://172.19.37.240:8443/api/rutracker/the+rookie+2024/0 | jq .`
```json
[
{
"Name": "(Soundtrack, Rock) Новичок / Новобранец / The Rookie (Daddy Cop (From The TV Show \"The Rookie\")) (by Zander Hawley) - 2024 (2018), MP3 (tracks), 320 kbps",
"Id": "6499482",
"Url": "https://rutracker.net/forum/viewtopic.php?t=6499482",
"Torrent": "https://rutracker.net/forum/dl.php?t=6499482",
"Size": "5.3 MB",
"Downloads": "21",
"Checked": "True",
"Type": "Саундтреки к сериалам (lossy)",
"Type_Link": "https://rutracker.net/forum/tracker.php?f=1499",
"Seed": "1",
"Peer": "1",
"Date": "14.03.2024"
},
{
"Name": "Новичок / Новобранец / The Rookie / Сезон: 6 / Серии: 1-3 из 13 (Билл Роу) [2024, США, драма, комедия, криминал, WEB-DL 720p] MVO (LostFilm) + MVO (TVShows) + MVO (HDrezka) + Original + Sub (Rus, Eng)",
"Id": "6498673",
"Url": "https://rutracker.net/forum/viewtopic.php?t=6498673",
"Torrent": "https://rutracker.net/forum/dl.php?t=6498673",
"Size": "5.75 GB",
"Downloads": "435",
"Checked": "False",
"Type": "Новинки и сериалы в стадии показа (HD Video)",
"Type_Link": "https://rutracker.net/forum/tracker.php?f=1803",
"Seed": "31",
"Peer": "6",
"Date": "11.03.2024"
},
{
"Name": "Новичок / Новобранец / The Rookie / Сезон: 6 / Серии: 1-3 из 13 (Билл Роу, Майкл Гои) [2024, США, драма, комедия, криминал, WEB-DL 1080p] 3 x MVO (LostFilm, TVShows, HDrezka) + Original + Sub (Rus, Eng)",
"Id": "6489949",
"Url": "https://rutracker.net/forum/viewtopic.php?t=6489949",
"Torrent": "https://rutracker.net/forum/dl.php?t=6489949",
"Size": "9.92 GB",
"Downloads": "1843",
"Checked": "True",
"Type": "Новинки и сериалы в стадии показа (HD Video)",
"Type_Link": "https://rutracker.net/forum/tracker.php?f=1803",
"Seed": "152",
"Peer": "81",
"Date": "9.03.2024"
},
{
"Name": "Новичок / The Rookie / Сезон: 6 / Серии: 1-3 из 10 (Билл Роу, Майкл Гои) [2024, США, боевик, драма, криминал, WEB-DLRip] MVO (LostFilm) + Original",
"Id": "6489937",
"Url": "https://rutracker.net/forum/viewtopic.php?t=6489937",
"Torrent": "https://rutracker.net/forum/dl.php?t=6489937",
"Size": "1.78 GB",
"Downloads": "1265",
"Checked": "True",
"Type": "Новинки и сериалы в стадии показа",
"Type_Link": "https://rutracker.net/forum/tracker.php?f=842",
"Seed": "79",
"Peer": "52",
"Date": "8.03.2024"
}
]
```
- Search by id:
`curl -s http://172.19.37.240:8443/api/rutracker/6489937 | jq .`
```json
{
"Name": "Новичок / Новобранец / The Rookie / Сезон: 6 / Серии: 1-6 из 10 (Билл Роу, Майкл Гои) [2024, США, боевик, драма, криминал, WEB-DLRip] MVO (LostFilm) + Original",
"Hash": "E5B7183C1E987471F31186D3ADDA6E77176804D1",
"Torrent": "https://rutracker.org/forum/dl.php?t=6489937",
"IMDb_link": "https://www.imdb.com/title/tt7587890/",
"Kinopoisk_link": "https://www.kinopoisk.ru/series/1142153/",
"IMDb_id": "7587890",
"Kinopoisk_id": "1142153",
"Year": "2024",
"Release": "США",
"Type": "боевик, драма, криминал",
"Duration": "00:43:00",
"Audio": "Профессиональный (многоголосый закадровый) -",
"Directer": "Билл Роу, Майкл Гои",
"Actors": "Нэйтан Филлион, Мелисса О’Нил, Эрик Винтер, Дженна Деван, Шон Эшмор, Лиззет Чавез, Мекиа Кокс, Алисса Диас, Тру Валентино, Ричард Т. Джонс ,Бриджет Риган, Трой Кастанеда, Мэллори Томпсон, Алекс Элин Гойко, Констанс Эджума",
"Description": "Начинать с чистого листа всегда нелегко, особенно для уроженца маленького городка Джона Нолана, который после перевернувшего его жизнь случая решил воплотить в жизнь давнюю мечту и вступить в ряды полиции Лос-Анджелеса. Возрастного новичка встречают с понятным скептицизмом, однако жизненный опыт, упорство и чувство юмора дают Джону преимущество.",
"Video_Quality": "WEB-DLRip",
"Video": "XviD, 720x400 (16:9), 23.976 fps, 1600 Kbps",
"Files": [
{
"name": "The.Rookie.S06E01.WEB-DLRip.RGzsRutracker.avi",
"size": "614.25 MB"
},
{
"name": "The.Rookie.S06E02.WEB-DLRip.RGzsRutracker.avi",
"size": "615.56 MB"
},
{
"name": "The.Rookie.S06E03.WEB-DLRip.RGzsRutracker.avi",
"size": "596.67 MB"
},
{
"name": "The.Rookie.S06E04.WEB-DLRip.RGzsRutracker.avi",
"size": "614.88 MB"
},
{
"name": "The.Rookie.S06E05.WEB-DLRip.RGzsRutracker.avi",
"size": "596.57 MB"
},
{
"name": "The.Rookie.S06E06.WEB-DLRip.RGzsRutracker.avi",
"size": "614.89 MB"
}
]
}
```
#### Kinozal
- Search by title:
▶️ `curl -s http://172.19.37.240:8443/api/kinozal/the+rookie/0/2024 | jq .`
```json
[
{
"Name": "Новичок (Новобранец) (6 сезон: 1-6 серии из 13)",
"Id": "2023066",
"OriginalName": "The Rookie",
"Year": "2024",
"Language": "3 x ПМ, СТ",
"Format": "WEB-DL (1080p)",
"Url": "https://kinozal.tv/details.php?id=2023066",
"Torrent": "https://dl.kinozal.tv/download.php?id=2023066",
"Size": "19.63 ГБ",
"Comments": "23",
"Seeds": "32",
"Peers": "18",
"Date": "12.04.2024 23:43"
},
{
"Name": "Новичок (Новобранец) (6 сезон: 1-6 серии из 10)",
"Id": "2022944",
"OriginalName": "The Rookie",
"Year": "2024",
"Language": "ПМ (LostFilm)",
"Format": "WEB-DLRip",
"Url": "https://kinozal.tv/details.php?id=2022944",
"Torrent": "https://dl.kinozal.tv/download.php?id=2022944",
"Size": "3.57 ГБ",
"Comments": "12",
"Seeds": "41",
"Peers": "28",
"Date": "12.04.2024 08:31"
},
{
"Name": "Новичок (Новобранец) (1-6 сезоны: 1-104 серии из 120)",
"Id": "1656552",
"OriginalName": "The Rookie",
"Year": "2018-2024",
"Language": "ПМ (LostFilm)",
"Format": "WEB-DLRip (1080p)",
"Url": "https://kinozal.tv/details.php?id=1656552",
"Torrent": "https://dl.kinozal.tv/download.php?id=1656552",
"Size": "240.24 ГБ",
"Comments": "133",
"Seeds": "6",
"Peers": "16",
"Date": "12.04.2024 01:09"
},
{
"Name": "Новичок (Новобранец) (6 сезон: 1-4 серии из 13)",
"Id": "2026484",
"OriginalName": "The Rookie",
"Year": "2024",
"Language": "3 x ПМ, СТ",
"Format": "WEB-DL (720p)",
"Url": "https://kinozal.tv/details.php?id=2026484",
"Torrent": "https://dl.kinozal.tv/download.php?id=2026484",
"Size": "7.65 ГБ",
"Comments": "1",
"Seeds": "0",
"Peers": "1",
"Date": "30.03.2024 15:27"
}
]
```
- Example of using Cyrillic characters in a search query from PowerShell:
`Invoke-RestMethod "http://172.19.37.240:8443/api/kinozal/Новичок (Новобранец)/0/2024"`
```PowerShell
Name : Новичок (Новобранец) (6 сезон: 1-6 серии из 13)
Id : 2023066
OriginalName : The Rookie
Year : 2024
Language : 3 x ПМ, СТ
Format : WEB-DL (1080p)
Url : https://kinozal.tv/details.php?id=2023066
Torrent : https://dl.kinozal.tv/download.php?id=2023066
Size : 19.63 ГБ
Comments : 23
Seeds : 37
Peers : 17
Date : 12.04.2024 23:43
Name : Новичок (Новобранец) (6 сезон: 1-6 серии из 10)
Id : 2022944
OriginalName : The Rookie
Year : 2024
Language : ПМ (LostFilm)
Format : WEB-DLRip
Url : https://kinozal.tv/details.php?id=2022944
Torrent : https://dl.kinozal.tv/download.php?id=2022944
Size : 3.57 ГБ
Comments : 12
Seeds : 42
Peers : 36
Date : 12.04.2024 08:31
Name : Новичок (Новобранец) (1-6 сезоны: 1-104 серии из 120)
Id : 1656552
OriginalName : The Rookie
Year : 2018-2024
Language : ПМ (LostFilm)
Format : WEB-DLRip (1080p)
Url : https://kinozal.tv/details.php?id=1656552
Torrent : https://dl.kinozal.tv/download.php?id=1656552
Size : 240.24 ГБ
Comments : 133
Seeds : 6
Peers : 23
Date : 12.04.2024 01:09
Name : Новичок (Новобранец) (6 сезон: 1-4 серии из 13)
Id : 2026484
OriginalName : The Rookie
Year : 2024
Language : 3 x ПМ, СТ
Format : WEB-DL (720p)
Url : https://kinozal.tv/details.php?id=2026484
Torrent : https://dl.kinozal.tv/download.php?id=2026484
Size : 7.65 ГБ
Comments : 1
Seeds : 4
Peers : 0
Date : 30.03.2024 15:27
```
- Search by id:
▶️ `curl -s http://172.19.37.240:8443/api/kinozal/2022944 | jq .`
```json
[
{
"Original": "The Rookie",
"Title": "Новичок (Новобранец)",
"Hash": "E5B7183C1E987471F31186D3ADDA6E77176804D1",
"IMDb_link": "https://www.imdb.com/title/tt7587890/",
"Kinopoisk_link": "https://www.kinopoisk.ru/film/1142153",
"IMDB_id": "7587890",
"Kinopoisk_id": "1142153",
"Year": "2024",
"Type": "Боевик, драма, криминал",
"Release": "США, eOne Television, Perfectmon Pictures, ABC Studios",
"Directer": "Тори Гаррет, Дэвид МакУиртер, Роберт Белла, Чери Ноулан, Джон Уэртас",
"Actors": "Натан Филлион, Шон Эшмор, Эрик Винтер, Мелисса О`Нил, Алисса Диас, Ричард Т. Джонс, Мекиа Кокс, Тру Валентино, Эрджей Смит, Каноа Гу, Майкл Трукко, Пейтон Лист (I), Брент Хафф",
"Description": "Начинать с чистого листа всегда нелегко, особенно для уроженца маленького городка Джона Нолана, который после инцидента, перевернувшего его жизнь, решил воплотить в жизнь давнюю мечту и присоединиться к полиции Лос-Анджелеса. Возрастного новичка встречают с понятным скептицизмом, однако жизненный опыт, упорство и чувство юмора дают Джону преимущество.",
"Quality": "WEB-DLRip",
"Video": "XviD, ~ 1600 Кбит/с, 720x400",
"Audio": "Русский, английский (АС3, 2 ch, 192 Кбит/с)",
"Size": "3.57 ГБ",
"Duration": "6 x ~ 00:44:00",
"Transcript": "Профессиональный многоголосый",
"Seeds": "41",
"Peers": "28",
"Downloaded": "1001",
"Files": [
{
"name": "The.Rookie.S06E01.WEB-DLRip.RGzsRutracker.avi",
"size": "614 МБ"
},
{
"name": "The.Rookie.S06E02.WEB-DLRip.RGzsRutracker.avi",
"size": "616 МБ"
},
{
"name": "The.Rookie.S06E03.WEB-DLRip.RGzsRutracker.avi",
"size": "597 МБ"
},
{
"name": "The.Rookie.S06E04.WEB-DLRip.RGzsRutracker.avi",
"size": "615 МБ"
},
{
"name": "The.Rookie.S06E05.WEB-DLRip.RGzsRutracker.avi",
"size": "597 МБ"
},
{
"name": "The.Rookie.S06E06.WEB-DLRip.RGzsRutracker.avi",
"size": "615 МБ"
}
],
"Comments": "12",
"IMDb": "8.0",
"Kinopoisk": "8.4",
"Kinozal": "9.3",
"Votes": "18",
"Added": "23 февраля 2024 в 00:46",
"Update": "12 апреля 2024 в 08:31"
}
]
```
#### RuTor
- Search by title:
▶️ `curl -s http://172.19.37.240:8443/api/rutor/the+rookie+2024/0 | jq .`
```json
[
{
"Name": "Новичок / Новобранец / The Rookie [06x01-06 из 22] (2024) WEBRip от Kerob | L2",
"Id": "970650",
"Url": "https://rutor.info/torrent/970650/novichok_novobranec_the-rookie-06x01-06-iz-22-2024-webrip-ot-kerob-l2",
"Torrent": "https://d.rutor.info/download/970650",
"Hash": "f3377c04134adeac02c4e191e0e6317436afddda",
"Size": "3.39 GB",
"Comments": "5",
"Seed": "7",
"Peer": "9",
"Date": "10.04.2024"
},
{
"Name": "Новичок / Новобранец / The Rookie [06x01-06 из 22] (2024) WEBRip 720p от Kerob | L2",
"Id": "970647",
"Url": "https://rutor.info/torrent/970647/novichok_novobranec_the-rookie-06x01-06-iz-22-2024-webrip-720p-ot-kerob-l2",
"Torrent": "https://d.rutor.info/download/970647",
"Hash": "4b6ec5d821d844831ae30e9c851cbf72a9528c85",
"Size": "7.18 GB",
"Comments": "0",
"Seed": "8",
"Peer": "5",
"Date": "10.04.2024"
}
]
```
- Search by id:
▶️ `curl -s http://172.19.37.240:8443/api/rutor/970650 | jq .`
```json
{
"Name": "Новичок / Новобранец / The Rookie [06x01-06 из 22] (2024) WEBRip от Kerob | L2",
"Hash": "f3377c04134adeac02c4e191e0e6317436afddda",
"Torrent": "https://d.rutor.info/download/970650",
"IMDb_link": "http://www.imdb.com/title/tt7587890/",
"Kinopoisk_link": "http://www.kinopoisk.ru/film/1142153/",
"IMDb_id": "7587890",
"Kinopoisk_id": "1142153",
"Rating": "10 из 10 (1 голосов, самая низкая оценка - 10, самая высокая - 10)",
"Category": "Зарубежные сериалы",
"Seeds": "7",
"Peers": "6",
"Seed_Date": "25-04-2024 10:19:07 (59 минут назад)",
"Add_Date": "10-04-2024 23:24:09 (14 дня назад)",
"Size": "3.39 GB (3638136322 Bytes)",
"Files": [
{
"Name": "The.Rookie.S06.400p.Kerob/The.Rookie.S06E01.400p.Kerob.avi",
"Size": "602.01 MB"
},
{
"Name": "The.Rookie.S06.400p.Kerob/The.Rookie.S06E02.400p.Kerob.avi",
"Size": "562.48 MB"
},
{
"Name": "The.Rookie.S06.400p.Kerob/The.Rookie.S06E03.400p.Kerob.avi",
"Size": "621.50 MB"
},
{
"Name": "The.Rookie.S06.400p.Kerob/The.Rookie.S06E04.400p.Kerob.avi",
"Size": "690.81 MB"
},
{
"Name": "The.Rookie.S06.400p.Kerob/The.Rookie.S06E05.400p.Kerob.avi",
"Size": "460.92 MB"
},
{
"Name": "The.Rookie.S06.400p.Kerob/The.Rookie.S06E06.400p.Kerob.avi",
"Size": "531.88 MB"
}
]
}
```
#### NoNameClub
▶️ `curl -s http://172.19.37.240:8443/api/nonameclub/the+rookie+2018/0 | jq .`
```json
[
{
"Name": "Новичок / The Rookie (2018) WEB-DL [H.264/1080p-LQ] (сезон 1, серии 1-20 из 20) TVShows",
"Id": "1259608",
"Url": "https://nnmclub.to/forum/viewtopic.php?t=1259608",
"Torrent": "https://nnmclub.to/forum/download.php?id=1018672",
"Size": "51.2 GB",
"Comments": "6",
"Type": "Зарубежные сериалы",
"Seed": "1",
"Peer": "0",
"Date": "22.04.2019 12:09"
},
{
"Name": "Новичок / The Rookie (2018) WEB-DL [H.264/1080p-LQ] (сезон 1, серии 1-20 из 20) LostFilm",
"Id": "1278446",
"Url": "https://nnmclub.to/forum/viewtopic.php?t=1278446",
"Torrent": "https://nnmclub.to/forum/download.php?id=1030902",
"Size": "52.7 GB",
"Comments": "6",
"Type": "Зарубежные сериалы",
"Seed": "3",
"Peer": "1",
"Date": "20.04.2019 03:30"
},
{
"Name": "Новичок / The Rookie (2018) WEB-DLRip (сезон 1, серии 1-20 из 20) LostFilm",
"Id": "1256703",
"Url": "https://nnmclub.to/forum/viewtopic.php?t=1256703",
"Torrent": "https://nnmclub.to/forum/download.php?id=1016767",
"Size": "10.5 GB",
"Comments": "31",
"Type": "Зарубежные сериалы",
"Seed": "7",
"Peer": "2",
"Date": "19.04.2019 01:55"
},
{
"Name": "Новобранец / The Rookie (2018) WEB-DLRip [H.264/720p] (сезон 1, серия 1-8 из 20) LostFilm (обновляемая)",
"Id": "1265982",
"Url": "https://nnmclub.to/forum/viewtopic.php?t=1265982",
"Torrent": "https://nnmclub.to/forum/download.php?id=1022722",
"Size": "10.2 GB",
"Comments": "6",
"Type": "Архив Сериалов и Архив Старого многосерийного кино до 90-х",
"Seed": "0",
"Peer": "1",
"Date": "22.12.2018 07:00"
```
- Search by id:
`curl -s http://172.19.37.240:8443/api/nonameclub/1259608 | jq .`
```json
{
"Name": "Новичок / The Rookie (2018) WEB-DL [H.264/1080p-LQ] (сезон 1, серии 1-20 из 20) TVShows",
"Hash": "C4E5F91AB1F8BBDF79B51C6E6167CFC806E2AA2B",
"Torrent": "https://nnmclub.to/forum/download.php?id=1018672",
"IMDb_link": "https://www.imdb.com/title/tt7587890/?ref_=plg_rt_1",
"Kinopoisk_link": "https://www.kinopoisk.ru/film/1142153/",
"IMDb_id": "75878901",
"Kinopoisk_id": "1142153",
"Release": "США / eOne Television, Perfectmon Pictures, ABC Studios",
"Type": "драма, криминал",
"Directer": "Грег Биман, Адам Дэвидсон, Тоа Фрейзер",
"Actors": "Нэйтан Филлион, Алисса Диас, Титус Макин мл., Эрик Винтер, Ричард Т. Джонс, Мелисса О’Нил, Мерседес Масон, Эфтон Уильямсон, Марсей Монро, Дэвид ДеСантос и др.",
"Description": "Начинать с чистого листа всегда нелегко, особенно для уроженца маленького городка Джона Нолана, который после инцидента, перевернувшего его жизнь, решил воплотить в жизнь давнюю мечту и присоединиться к полиции Лос-Анджелеса. Возрастного новичка встречают с понятным скептицизмом, однако жизненный опыт, упорство и чувство юмора дают Джону преимущество",
"Duration": "00:43:00 серия",
"Video_Quality": "WEB-DL",
"Video": "AVC/H.264, 1920x1080 (16:9), ~7024 kbps",
"Audio": "Многоголосый закадровый, любительский (TVShows)",
"Registration": "22 Апр 2019 12:09:12",
"Rating": "4.7",
"Votes": "56",
"Size": "51.2 GB",
"Files": [
{
"Name": "The.Rookie.S01.1080p.TVShows",
"Size": "Directory"
},
{
"Name": "The.Rookie.S01E01.1080p.TVShows.mkv",
"Size": "2.42 GB"
},
{
"Name": "The.Rookie.S01E02.1080p.TVShows.mkv",
"Size": "2.68 GB"
},
{
"Name": "The.Rookie.S01E03.1080p.TVShows.mkv",
"Size": "2.61 GB"
},
{
"Name": "The.Rookie.S01E04.1080p.TVShows.mkv",
"Size": "2.11 GB"
},
{
"Name": "The.Rookie.S01E05.1080p.TVShows.mkv",
"Size": "2.16 GB"
},
{
"Name": "The.Rookie.S01E06.1080p.TVShows.mkv",
"Size": "2.43 GB"
},
{
"Name": "The.Rookie.S01E07.1080p.TVShows.mkv",
"Size": "2.23 GB"
},
{
"Name": "The.Rookie.S01E08.1080p.TVShows.mkv",
"Size": "1.85 GB"
},
{
"Name": "The.Rookie.S01E09.1080p.TVShows.mkv",
"Size": "2.03 GB"
},
{
"Name": "The.Rookie.S01E10.1080p.TVShows.mkv",
"Size": "2.81 GB"
},
{
"Name": "The.Rookie.S01E11.1080p.TVShows.mkv",
"Size": "3 GB"
},
{
"Name": "The.Rookie.S01E12.1080p.TVShows.mkv",
"Size": "2.74 GB"
},
{
"Name": "The.Rookie.S01E13.1080p.TVShows.mkv",
"Size": "2.88 GB"
},
{
"Name": "The.Rookie.S01E14.1080p.TVShows.mkv",
"Size": "2.88 GB"
},
{
"Name": "The.Rookie.S01E15.1080p.TVShows.mkv",
"Size": "2.68 GB"
},
{
"Name": "The.Rookie.S01E16.1080p.TVShows.mkv",
"Size": "2.85 GB"
},
{
"Name": "The.Rookie.S01E17.1080p.TVShows.mkv",
"Size": "2.68 GB"
},
{
"Name": "The.Rookie.S01E18.1080p.TVShows.mkv",
"Size": "2.67 GB"
},
{
"Name": "The.Rookie.S01E19.1080p.TVShows.mkv",
"Size": "2.76 GB"
},
{
"Name": "The.Rookie.S01E20.1080p.TVShows.mkv",
"Size": "2.7 GB"
}
]
}
```
#### FastsTorrent
▶️ `Invoke-RestMethod "http://172.19.37.240:8443/api/faststorrent/новичок/0"`
```PowerShell
Name Size Torrent
---- ---- -------
Новичок (2023) WEB-DLRip 1,37 ГБ http://fasts-torrent.net/download/444562/torrent/-2023-web-dlrip/
Новичок (2023) WEB-DLRip 1080p 4,31 ГБ http://fasts-torrent.net/download/444563/torrent/-2023-web-dlrip-1080p/
Новичок: Федералы (сезон 1, серия 1-22 из 22) (2022) WEBRip | RuDub 11,39 ГБ http://fasts-torrent.net/download/433754/torrent/-1-1-22-22-2022-webrip-rudub/
Новичок (3 сезон: 1-11 серии из 20) (2021) WEBRip | LakeFilms 4.31 Gb http://fasts-torrent.net/download/397471/torrent/-3-1-11-20-2021-webrip-lakefilms/
Новичок (3 сезон: 1-11 серии из 20) (2021) WEBRip 720p | LakeFilms 8.58 Gb http://fasts-torrent.net/download/397470/torrent/-3-1-11-20-2021-webrip-720p-lakefilms/
Новичок (3 сезон: 1-11 серии из 20) (2021) WEBRip 1080p | LakeFilms 14.06 Gb http://fasts-torrent.net/download/397469/torrent/-3-1-11-20-2021-webrip-1080p-lakefilms/
Новичок (3 сезон: 1-3 серии из 20) (2020) WEB-DLRip | LostFilm 1.8 Gb http://fasts-torrent.net/download/390632/torrent/-3-1-3-20-2020-web-dlrip-lostfilm/
Новичок (3 сезон: 1 серии из 20) (2020) WEB-DL 720p | LostFilm 1.67 Gb http://fasts-torrent.net/download/389588/torrent/-3-1-20-2020-web-dl-720p-lostfilm/
Новичок (3 сезон: 1 серии из 20) (2021) WEBRip 1080p | Ultradox 1.53 Gb http://fasts-torrent.net/download/389406/torrent/-3-1-20-2021-webrip-1080p-ultradox/
Новичок (3 сезон: 1 серии из 20) (2021) WEBRip 720p | Ultradox 982.68 Mb http://fasts-torrent.net/download/389405/torrent/-3-1-20-2021-webrip-720p-ultradox/
```
▶️ `Invoke-RestMethod "http://172.19.37.240:8443/api/faststorrent/засланец из космоса/0"`
```PowerShell
Name Size Torrent
---- ---- -------
Засланец из космоса (3 сезон: 1-8 серии из 12) (2024) WEBRip | RuDub 4,28 ГБ http://fasts-torrent.net/download/451290/torrent/-3-1-8-12-2024-webrip-rudub/
Засланец из космоса (3 сезон: 1-2 серия из 12) (2024) WEB-DLRip | LostFilm 1,24 ГБ http://fasts-torrent.net/download/448905/torrent/-3-1-2-12-2024-web-dlrip-lostfilm/
Засланец из космоса (1 сезон: 1-10 серии из 10) (2021) WEBRip | WestFilm 5.45 Gb http://fasts-torrent.net/download/396204/torrent/-1-1-10-10-2021-webrip-westfilm/
Засланец из космоса (1 сезон: 1-10 серии из 10) (2021) WEBRip 720p | WestFilm 7.23 Gb http://fasts-torrent.net/download/396205/torrent/-1-1-10-10-2021-webrip-720p-westfilm/
Засланец из космоса (1 сезон: 1-10 серии из 10) (2021) WEBRip 1080p | WestFilm 29.54 Gb http://fasts-torrent.net/download/396206/torrent/-1-1-10-10-2021-webrip-1080p-westfilm/
Засланец из космоса (1 сезон: 1-10 серия из 10) (2021) WEBRip | BaibaKo 5.48 Gb http://fasts-torrent.net/download/396225/torrent/-1-1-10-10-2021-webrip-baibako/
Засланец из космоса (1 сезон: 1 серии из 10) (2021) WEBRip 720p | Ultradox 1.01 Gb http://fasts-torrent.net/download/391194/torrent/-1-1-10-2021-webrip-720p-ultradox/
Засланец из космоса (1 сезон: 1 серии из 10) (2021) WEBRip | Ultradox 650.75 Mb http://fasts-torrent.net/download/391193/torrent/-1-1-10-2021-webrip-ultradox/
```
### ⏬ Save torrent file
To save the torrent file on your computer, you can use one of the following constructs:
- Linux:
```bash
id=970650
url=$(curl -s "http://172.19.37.240:8443/api/rutor/$id" | jq -r .Torrent)
curl -s $url --output ~/downloads/$id.torrent
```
- Windows:
```PowerShell
$id = 970650
$url = $(Invoke-RestMethod "http://172.19.37.240:8443/api/rutor/$id").Torrent
Invoke-RestMethod $url -OutFile "$home\Downloads\$id.torrent"
``` | Unofficial API server for RuTracker, Kinozal, RuTor and NoNameClub to get torrent files and other information by movie title, TV series or id. | api,api-server,axios,cheerio,express,express-js,expressjs,javascript,js,nodemon | 2024-03-12T15:00:59Z | 2024-05-22T08:53:15Z | 2024-04-28T23:18:44Z | 1 | 0 | 41 | 0 | 1 | 5 | null | MIT | JavaScript |
chesslablab/website | main | ## Website
[](https://www.gnu.org/licenses/gpl-3.0)
[](https://github.com/dwyl/esta/issues)

The ChesslaBlab website allows to play chess online outside the umbrella of mainstream platforms like Lichess or Chess.com. This means that it enables to play chess online without being tracked.
Manifesto:
- Anyone, regardless of age, race, gender or social background should have access to easy-to-use, safe and decentralized chess sites and be able to choose which one to use.
- Chess is a sport, a science, and an art.
- Players should have more control over their own online activity.
- Chess can help you improve your cognitive abilities which is a good think.
- Anyone can learn to think more scientifically.
### Documentation
Read the latest docs [here](https://chesslablab.github.io/website/).
More detailed documentation will be available soon. Stay tuned!
### License
The [MIT License](https://github.com/chesslablab/website/blob/master/LICENSE).
### Contributions
We encourage you to contribute to the ChesslaBlab website! Please follow the [Contributing Guidelines](https://github.com/chesslablab/website/blob/master/CONTRIBUTING.md).
<a href="https://github.com/chesslablab/website/graphs/contributors">
<img src="https://contrib.rocks/image?repo=chesslablab/website" />
</a>
Made with [contrib.rocks](https://contrib.rocks).
| Website intended to learn and play chess online. | chess,mpa,php,ssr,symfony,es6,javascript | 2024-02-13T11:33:17Z | 2024-05-22T15:16:38Z | null | 4 | 117 | 1,166 | 19 | 7 | 5 | null | MIT | JavaScript |
tweneboah/mern-stack-project-based-course | main | # MERN Stack Project-Based Course
Welcome to the official repository for the MERN Stack Project-Based Course. This course is designed to take you from a beginner to a proficient full-stack web developer by building real-world projects using MongoDB, Express.js, React.js, and Node.js.
## Why This Course?
- **Hands-On Projects**: Dive deep into building comprehensive web applications that can be showcased in your portfolio.
- **From Zero to Hero**: Start with the basics and progress to advanced concepts in full-stack development.
- **Community Support**: Join a vibrant community of learners and experts ready to assist you on your development journey.
## Getting Started
Before diving into the projects, make sure to:
- 🍴 **Fork** this repository to have your own version of the course where you can upload your projects.
- ⭐ **Star** this repository to bookmark it for future reference and support us.
## Projects Overview
This course includes several hands-on projects to solidify your understanding of the MERN stack. Here's what you'll be building:
2. **Advanced Blog Project**: Implement authentication, authorization, and blog post management, subscriptions, leaderboard, revenue from post views, account verifications, password reset, google login, file uploads,User dashboard, notifications, categories, rich text editor, and more.
3. **NEXT Project underway**:
Each project is accompanied by step-by-step guides and best practices to help you learn and apply the concepts effectively.
## Enroll in the Course
This update coming soon before tomorrow
[](https://www.udemy.com/course/mern-stack-complete-blog-application-from-scratch-2021/?referralCode=5E579E09DB87E37D4910)
## Connect With Us
We're committed to building a supportive and engaging community of learners and developers. Connect with us and your peers through:..
- **Personal Website**: [Visit MasyncTech](https://masynctech.com/)
- **Facebook**: [Follow us on Facebook](https://www.facebook.com/masynctech)
- **YouTube**: [Subscribe to our YouTube channel](https://www.youtube.com/channel/UCqgi3TTpWwO22hIxzPOLhWw)
- **Discord**: [Join our Discord community](https://discord.com/invite/k8X6W9DC2Q)
Thank you for choosing our MERN Stack Project-Based Course. We're excited to see what you build and how far you go!
| A comprehensive MERN Stack project-based course repository, featuring real-world applications like a Currency Converter and Caching with Redis. Dive into full-stack development with hands-on projects, detailed instructions, and best practices for building scalable web applications. New projects are continuously added to keep the learning journey | express,javascript,mern-stack,nodejs,react-query,reactjs | 2024-02-10T05:34:26Z | 2024-03-25T17:23:02Z | null | 1 | 0 | 27 | 0 | 1 | 5 | null | null | JavaScript |
bube054/go-js-array-methods | main | # go-js-array-methods
The Array package offers a comprehensive suite of functions designed to manipulate slices in Go efficiently. Drawing inspiration from JavaScript array methods, our package implements familiar functionalities such as Push, Pop, and Reverse, all while ensuring that the original slice remains immutable. This design choices streamlines code complexity.
One notable feature of this package is its robust handling of indexes. Functions like At, Slice, and Includes seamlessly accommodate negative indexes, safeguarding against crashes while ensuring operations remain within range. Any attempt to access indexes beyond the boundaries of the slice results in clear error messages.
Harnessing the power of generics, our implementation minimizes redundancy and maximizes flexibility, contributing to a more versatile and adaptable codebase.
While some methods like Flat and FlatMap are not feasible due to language limitations, others, such as Sort, are deliberately omitted due to ambiguity, considering Go's built-in Sort function.
Furthermore, we introduce specialized variants of common functions like MapStrict, ReduceStrict, and ReduceRightStrict. These variants guarantee explicit return types ([]T), in contrast to their counterparts (Map, Reduce, ReduceRight), which allow for arbitrary return types ([]any).
Our Array package aims to empower Go developers with a robust toolkit for slice manipulation, prioritizing efficiency, clarity, and reliability.
| s/n | Function | Description |
| --- | -------- | -------------------------------------------------------------- |
| 1 | At ✔ | The At() function returns an indexed element from a slice and returns a possible error relating to out of range indexes. |
| 2 | Concat ✔ | The Concat() function Concatenates (joins) two or more slices. | The Concat() function returns a new slice, containing the joined slices. The Concat() function does not change the existing slices. |
| 3 | CopyWithin ✔ | The CopyWithin() function returns a copy of slice elements to another position in an slice and a possible error relating to out of range indexes.. The CopyWithin() function overwrites the existing values in the new slice. |
| 4 | Entries ✔ | The entries() function returns an Slice with structs with field/value: {index 0, element "Banana"}. The entries() function does not change the original slice. |
| 5 | Every ✔ | The Every() function executes a function for each slice element. The Every() function returns true if the function returns true for all elements. The Every() function returns false if the function returns false for one element. The Every() function does not execute the function for empty elements. |
| 6 | Fill ✔ | The Fill() function returns fills of specified elements in an slice with a value and a possible error due to indexes out of range.|
| 7 | Filter ✔ | The filter() function creates a new slice filled with elements that pass a test provided by a function. The filter() function does not execute the function for empty elements. The filter() function does not change the original slice. |
| 8 | Find ✔ | The Find() function returns the value of the first element that passes a test. The Find() function executes a function for each slice element. The Find() function returns undefined if no elements are found. The Find() function does not execute the function for empty elements. The Find() function does not change the original slice. |
| 9 | FindIndex ✔ |The FindIndex() function executes a function for each slice element. The FindIndex() function returns the index (position) of the first element that passes a test. The FindIndex() function returns -1 if no match is found. The FindIndex() function does not execute the function for empty slice elements. The FindIndex() function does not change the original slice. |
| 10 | FindLast ✔ | The FindLast() function returns the value of the last element that passes a test. The FindLast() function executes a function for each slice element. The FindLast() function returns -1 if no elements are found. The FindLast() function does not execute the function for empty elements. The FindLast() function does not change the original slice. |
| 11 | FindLastIndex ✔ | The FindLastIndex() function executes a function for each array element. The FindLastIndex() function returns the index (position) of the last element that passes a test. The FindLastIndex() function returns -1 if no match is found. The FindLastIndex() function does not execute the function for empty slice elements.The FindLastIndex() function does not change the original slice. |
| 12 | Flat ❌ | ————————— |
| 13 | FlatMap ❌ | ————————— |
| 14 | ForEach ✔ | The ForEach() function calls a function for each element in an slice. The ForEach() function is not executed for empty elements. |
| 15 | Includes ✔ | The Includes() function returns true if an slice contains a specified value. The Includes() function returns false if the value is not found. The Includes() function is case sensitive. |
| 16 | IndexOf ✔ | The IndexOf() function returns the first index (position) of a specified value. The IndexOf() function returns -1 if the value is not found. The IndexOf() function starts at a specified index and searches from left to right (from the given start postion to the end of the array). By default the search starts at the first element and ends at the last. Negative start values counts from the last element (but still searches from left to right). |
| 17 | Join ✔ | The Join() function returns an slice as a string. The Join() function does not change the original slice. Any separator can be specified. The default is comma (,). Join function only works for strings. |
| 18 | Keys ❌ | ————————— |
| 19 | LastIndexOf ✔ | The LastIndexOf() function returns the last index (position) of a specified value and a possible error due to indexes out of range. The LastIndexOf() function returns -1 if the value is not found. The LastIndexOf() starts at a specified index and searches from right to left (from the given position to the beginning of the slice). By default the search starts at the last element and ends at the first. Negative start values counts from the last element (but still searches from right to left). |
| 20 | Map ✔ | Map() creates a new slice from calling a function for every slice element. Map creates a new slice of any type. Map() does not execute the function for empty elements. Map() does not change the original slice. |
| 21 | MapStrict ✔ | Map() creates a new slice from calling a function for every slice element. Map creates a new slice of the original slice type. Map() does not execute the function for empty elements. Map() does not change the original slice. |
| 22 | Pop ✔ | The Pop() function removes (pops) the last element of an slice. The Pop() function does not change the original slice. The Pop() function returns the new slice without the last element and a pointer of removed element. |
| 23 | Push ✔ | The Push() function adds new items to the end of an slice. The Push() function returns the new slice. |
| 24 | Reduce ✔ | The Reduce() function executes a Reducer function for slice element. The Reduce() function returns the function's accumulated result and an an error. The Reduce() function does not execute the function for empty slice elements. The Reduce() function does not change the original slice. Note at the first callback, there is no return value from the previous callback. Normally, alice element 0 is used as initial value, and the iteration starts from slice element 1. If an initial value is supplied, this is used, and the iteration starts from slice element 0. |
| 25 | ReduceStrict ✔ | The ReduceStrict() function executes a Reducer function for slice element. The ReduceStrict() function returns the function's accumulated result(typed with the slices type) and an an error. The ReduceStrict() function does not execute the function for empty slice elements. The ReduceStrict() function does not change the original slice. Note at the first callback, there is no return value from the previous callback. Normally, alice element 0 is used as initial value, and the iteration starts from slice element 1. If an initial value is supplied, this is used, and the iteration starts from slice element 0. |
| 26 | ReduceRight ✔ | The Reduce() function executes a Reducer function for slice element. The ReduceRight() function works from right to left. The Reduce() function returns the function's accumulated result and an an error. The Reduce() function does not execute the function for empty slice elements. The Reduce() function does not change the original slice. Note at the first callback, there is no return value from the previous callback. Normally, alice element 0 is used as initial value, and the iteration starts from slice element 1. If an initial value is supplied, this is used, and the iteration starts from slice element 0. |
| 27 | ReduceRightStrict ✔ | The ReduceStrict() function executes a Reducer function for slice element. The ReduceRightStrict() function works from right to left . The ReduceStrict() function returns the function's accumulated result(typed with the slices type) and an an error. The ReduceStrict() function does not execute the function for empty slice elements. The ReduceStrict() function does not change the original slice. Note at the first callback, there is no return value from the previous callback. Normally, alice element 0 is used as initial value, and the iteration starts from slice element 1. If an initial value is supplied, this is used, and the iteration starts from slice element 0. |
| 28 | Reverse ✔ | The Reverse() function Reverses the order of the elements in an slice. The Reverse() function does not overwrites the original slice. |
| 29 | Shift ✔ | The Shift() function removes the first item of an slice. The Shift() function changes the original slice. The Shift() function returns the new slice and a pointer to the shifted element. |
| 30 | Slice ✔ | The Slice() function returns selected elements in an slice, as a new slice and and error. The Slice() function selects from a given start, up to a (not inclusive) given end. The Slice() function does not change the original slice. |
| 31 | Some ✔ | The Some() function checks if any slice elements pass a test (provided as a callback function). The Some() function executes the callback function once for each slice element.The Some() function returns true (and stops) if the function returns true for one of the slice elements. The Some() function returns false if the function returns false for all of the slice elements. The Some() function does not execute the function for empty slice elements. The Some() function does not change the original slice. |
| 32 | Sort ❌ | ————————— |
| 33 | Splice ✔ | The Splice() function adds and/or removes slice elements. The Splice() function does not overwrites the original slice. |
| 34 | ToString ✔ | The ToString() function returns a string with slice values separated by commas. The ToString() function does not change the original slice. The ToString function only works for a slice of strings. |
| 35 | Unshift ✔ | The Unshift() function adds new elements to the beginning of an slice. The Unshift() function does not overwrite the original slice. |
| 36 | ValueOf ✔ | The ValueOf() function returns the slice itself. The ValueOf() function does not change the original slice. fruits. ValueOf() returns the same as fruits. |
| 37 | With ✔ | The With() function updates a specified slice element. The With() function returns a new slice. The With() function does not change the original slice. |
## Downloading The Package
```
go get github.com/bube054/go-js-array-methods
```
## Importing And Using The Package
```go
package main
import (
"github.com/bube054/go-js-array-methods/array"
)
func main() {
isekais := []string{"re:zero", "mushoku tensei", "tbate"}
res := array.Reverse(isekais)
fmt.Println(res) // [tbate, mushoku tensei, re:zero]
}
```
### 1. At()
The At() function returns an indexed element from a slice and returns a possible error relating to out of range indexes.
```go
fruits := []string{"Banana", "Orange", "Apple", "Mango"}
index := 3 // negative values also allowed
result, err := array.At(fruits, index)
if err != nil {
fmt.Println("Err", err) // nil
}
fmt.Println("Result:", result) // nil
```
### 2. Concat()
The Concat() function Concatenates (joins) two or more slices. | The Concat() function returns a new slice, containing the joined slices. The Concat() function does not change the existing slices.
```go
names1 := []string{"Cecilie", "Lone"}
names2 := []string{"Emil", "Tobias", "Linus"}
result := []string{"Cecilie", "Lone", "Emil", "Tobias", "Linus"}
children := array.Concat[string](names1, names2)
if !reflect.DeepEqual(result, children) {
fmt.Println("err") // "err"
return
}
fmt.Println(children) // ["Cecilie", "Lone", "Emil", "Tobias", "Linus"]
```
### 3. CopyWithin()
The CopyWithin() function returns a copy of slice elements to another position in an slice and a possible error relating to out of range indexes.. The CopyWithin() function overwrites the existing values in the new slice.
```go
fruits := []string{"Banana", "Orange", "Apple", "Mango", "Kiwi", "Papaya"}
newFruits, err := array.CopyWithin(fruits, -6, -4, 2)
fmt.Println("New:", newFruits) // [Banana Orange Apple Mango Kiwi Papaya]
fmt.Println("New:", err) // error occurs because of out of range index.
```
### 4. Entries()
The entries() function returns an Slice with structs with field/value: {index 0, element "Banana"}. The entries() function does not change the original slice.
```go
fruits := []string{"Banana", "Orange", "Apple", "Mango", "Kiwi", "Papaya"}
newFruits := array.Entries(fruits)
fmt.Println("New:", newFruits) // [{0 Banana} {1 Orange} {2 Apple} {3 Mango} {4 Kiwi} {5 Papaya}]
```
### 5. Every()
The Every() function executes a function for each slice element. The Every() function returns true if the function returns true for all elements. The Every() function returns false if the function returns false for one element. The Every() function does not execute the function for empty elements.
```go
points := []int{10, 25, 65, 40}
allPointsGreaterThan50 := func(point int, ind int, list []int) bool {
if point > 50 {
return true
} else {
return false
}
}
result := array.Every(points, allPointsGreaterThan50)
fmt.Println("Result:", result) // false
```
### 6. Fill()
The Fill() function returns fills of specified elements in an slice with a value and a possible error due to indexes out of range.
```go
fruits := []string{"Banana", "Orange", "Apple", "Mango"}
newFruits, err := array.Fill(fruits, "Kiwi", 1, 3)
fmt.Println("newFruits:", newFruits) // [Banana Kiwi Kiwi Mango]
fmt.Println("err:", err) // an error can occur because of out of range index.
```
### 7. Filter()
The filter() function creates a new slice filled with elements that pass a test provided by a function. The filter() function does not execute the function for empty elements. The filter() function does not change the original slice.
```go
ages := []int{32, 33, 16, 40}
checkAdult := func(age int, ind int, list []int) bool {
if age > 18 {
return true
} else {
return false
}
}
newAges := array.Filter(ages, checkAdult)
fmt.Println("newAges:", newAges) // [32 33 40]
```
### 8. Find()
The Find() function returns a pointer value of the first element that passes a test. The Find() function executes a function for each slice element. The Find() function returns undefined if no elements are found. The Find() function does not execute the function for empty elements. The Find() function does not change the original slice.
```go
ages := []int{3, 10, 18, 20}
find18YrsOld := func(el int, ind int, list []int) bool {
if el > 18 {
return true
} else {
return false
}
}
ans := array.Find(ages, find18YrsOld)
if ans != nil {
fmt.Println("ans:", *ans) // 20
} else {
fmt.Println("ans:", ans) // nil
}
```
### 9. FindIndex()
The FindIndex() function executes a function for each slice element. The FindIndex() function returns the index (position) of the first element that passes a test. The FindIndex() function returns -1 if no match is found. The FindIndex() function does not execute the function for empty slice elements. The FindIndex() function does not change the original slice.
```go
ages := []int{3, 10, 18, 20}
find18YrsOld := func(age int, ind int, list []int) bool {
if age >= 18 {
return true
} else {
return false
}
}
ans := array.FindIndex(ages, find18YrsOld)
fmt.Println("ans:", ans) // 2
```
### 10. FindLast()
The FindLast() function returns the value of the last element that passes a test. The FindLast() function executes a function for each slice element. The FindLast() function returns -1 if no elements are found. The FindLast() function does not execute the function for empty elements. The FindLast() function does not change the original slice.
```go
ages := []int{3, 7, 10, 15, 18, 20, 25}
find18YrsOld := func(el int, ind int, list []int) bool {
if el >= 18 {
return true
} else {
return false
}
}
ans := array.FindLast(ages, find18YrsOld)
fmt.Println("ans:", *ans) // 25
```
### 11. FindLastIndex()
The FindLastIndex() function executes a function for each array element. The FindLastIndex() function returns the index (position) of the last element that passes a test. The FindLastIndex() function returns -1 if no match is found. The FindLastIndex() function does not execute the function for empty slice elements.The FindLastIndex() function does not change the original slice.
```go
ages := []int{3, 10, 18, 20}
find18YrsOld := func(el int, ind int, list []int) bool {
if el > 18 {
return true
} else {
return false
}
}
ans := array.FindIndex(ages, find18YrsOld)
fmt.Println("ans:", ans) // 3
```
### 12. Flat() ❌
### 13. FlatMap() ❌
### 14. ForEach()
The ForEach() function calls a function for each element in an slice. The ForEach() function is not executed for empty elements.
```go
numbers := []int{65, 44, 12, 4}
sum := 0
array.ForEach(numbers, func(el int, ind int, list []int) {
sum += el
})
fmt.Println("Sum:", sum) // 125
```
### 15. Includes()
The Includes() function returns true if an slice contains a specified value. The Includes() function returns false if the value is not found. The Includes() function is case sensitive.
```go
fruits := []string{"Banana", "Orange", "Apple", "Mango"}
start := 1 // start searching from index 1, negative indexes are also allowed
present := array.Includes(fruits, "Orange", &start)
fmt.Println("Present:", present) // true
```
### 16. IndexOf()
The IndexOf() function returns the first index (position) of a specified value. The IndexOf() function returns -1 if the value is not found. The IndexOf() function starts at a specified index and searches from left to right (from the given start postion to the end of the array). By default the search starts at the first element and ends at the last. Negative start values counts from the last element (but still searches from left to right).
```go
// example 1
fruits := []string{"Banana", "Orange", "Apple", "Mango"}
// start := 1
present := array.IndexOf(fruits, "Orange", nil)
fmt.Println("Present:", present) // 1
// example 2
fruits = []string{"Orange", "Banana", "Orange", "Apple", "Mango"}
start = 1
present = array.IndexOf(fruits, "Orange", &start)
fmt.Println("Present:", present)
```
### 17. Join()
The Join() function returns an slice as a string. The Join() function does not change the original slice. Any separator can be specified. The default is comma (,). Join function only works for strings.
```go
// example 1
fruits := []string{"Banana", "Orange", "Apple", "Mango"}
delim := " and "
newFruits := array.Join(fruits, &delim)
fmt.Println("newFruits:", newFruits) // Banana and Orange and Apple and Mango
```
### 18. Keys() ❌
### 19. LastIndexOf()
The LastIndexOf() function returns the last index (position) of a specified value and a possible error due to indexes out of range. The LastIndexOf() function returns -1 if the value is not found. The LastIndexOf() starts at a specified index and searches from right to left (from the given position to the beginning of the slice). By default the search starts at the last element and ends at the first. Negative start values counts from the last element (but still searches from right to left).
```go
fruits := []string{"Orange", "Apple", "Mango", "Apple", "Banana", "Apple"}
start := 3
present := array.LastIndexOf(fruits, "Apple", &start)
fmt.Println("Present:", present) // 5
```
### 20. Map()
Map() creates a new slice from calling a function for every slice element. Map creates a new slice of any type. Map() does not execute the function for empty elements. Map() does not change the original slice.
```go
numbers := []int{65, 44, 12, 4}
newNums := array.Map(numbers, func(e int, i int, s []int) any {
return e * 10
})
fmt.Println("newNums:", newNums) // [650 440 120 40]
```
### 21. MapSrict()
Map() creates a new slice from calling a function for every slice element. Map creates a new slice of the original slice type. Map() does not execute the function for empty elements. Map() does not change the original slice.
```go
numbers := []int{65, 44, 12, 4}
newNums2 := array.MapStrict(numbers, func(e int, i int, s []int) int {
return e / 10
})
fmt.Println("newNums2:", newNums2) // [6 4 1 0]
```
### 22. Pop()
The Pop() function removes (pops) the last element of an slice. The Pop() function does not change the original slice. The Pop() function returns the new slice without the last element and a pointer of removed element.
```go
fruits := []string{"Banana", "Orange", "Apple", "Mango"}
newFruits, fruit := array.Pop(fruits)
fmt.Println("newFruits:", newFruits) // [Banana Orange Apple]
fmt.Println("fruit:", *fruit) // Mango
```
### 23. Push()
The Push() function adds new items to the end of an slice. The Push() function returns the new slice.
```go
fruits := []string{"Banana", "Orange", "Apple", "Mango"}
newFruits := array.Push(fruits, "Kiwi", "Lemon")
fmt.Println("newFruits:", newFruits) // [Banana Orange Apple Mango Kiwi Lemon]
```
### 24. Reduce()
The Reduce() function executes a Reducer function for slice element. The Reduce() function returns the function's accumulated result and an an error. The Reduce() function does not execute the function for empty slice elements. The Reduce() function does not change the original slice. Note at the first callback, there is no return value from the previous callback. Normally, alice element 0 is used as initial value, and the iteration starts from slice element 1. If an initial value is supplied, this is used, and the iteration starts from slice element 0.
```go
myFunc := func(acc any, el int, ind int, slice []int) any {
accNum := acc.(int)
return accNum - el
}
init := 0
res, err := array.Reduce(numbers, myFunc, init)
fmt.Println("RES:", res) // 250
fmt.Println("ERR:", err) // nil
```
### 25. ReduceStrict()
The ReduceStrict() function executes a Reducer function for slice element. The ReduceStrict() function returns the function's accumulated result(typed with the slices type) and an an error. The ReduceStrict() function does not execute the function for empty slice elements. The ReduceStrict() function does not change the original slice. Note at the first callback, there is no return value from the previous callback. Normally, alice element 0 is used as initial value, and the iteration starts from slice element 1. If an initial value is supplied, this is used, and the iteration starts from slice element 0.
```go
numbers := []int{175, 50, 25}
myFunc := func(acc int, el int, ind int, slice []int) int {
return acc - el
}
// init := 0
res, err := array.ReduceStrict(numbers, myFunc, nil)
fmt.Println("RES:", res) // 100
fmt.Println("ERR:", err) // nil
```
### 26. ReduceRight()
The Reduce() function executes a Reducer function for slice element. The ReduceRight() function works from right to left. The Reduce() function returns the function's accumulated result and an an error. The Reduce() function does not execute the function for empty slice elements. The Reduce() function does not change the original slice. Note at the first callback, there is no return value from the previous callback. Normally, alice element 0 is used as initial value, and the iteration starts from slice element 1. If an initial value is supplied, this is used, and the iteration starts from slice element 0.
```go
numbers := []int{100}
myFunc := func(acc any, el int, ind int, slice []int) any {
accNum := acc.(int)
return accNum - el
}
// init := 0
res, err := array.ReduceRight(numbers, myFunc, 300)
fmt.Println("RES:", res) // 200
fmt.Println("ERR:", err) // nil
```
### 27. ReduceRightStrict()
The ReduceStrict() function executes a Reducer function for slice element. The ReduceRightStrict() function works from right to left . The ReduceStrict() function returns the function's accumulated result(typed with the slices type) and an an error. The ReduceStrict() function does not execute the function for empty slice elements. The ReduceStrict() function does not change the original slice. Note at the first callback, there is no return value from the previous callback. Normally, alice element 0 is used as initial value, and the iteration starts from slice element 1. If an initial value is supplied, this is used, and the iteration starts from slice element 0.
```go
numbers := []int{175, 50, 25}
myFunc := func(acc int, el int, ind int, slice []int) int {
return acc - el
}
// init := 0
res, err := array.ReduceRightStrict(numbers, myFunc, nil)
fmt.Println("RES:", res) // -200
fmt.Println("ERR:", err) // nil
```
### 28. Reverse()
The Reverse() function Reverses the order of the elements in an slice. The Reverse() function does not overwrites the original slice.
```go
fruits := []string{"Cecilie", "Lone", "Emil", "Tobias", "Linus"}
res := array.Reverse(fruits)
fmt.Println("RES:", res) // [Linus Tobias Emil Lone Cecilie]
```
### 29. Shift()
The Shift() function removes the first item of an slice. The Shift() function changes the original slice. The Shift() function returns the new slice and a pointer to the shifted element.
```go
fruits := []string{"Banana", "Orange", "Apple", "Mango"}
newFruits, fruit := array.Shift(fruits)
fmt.Println("newFruits:", newFruits) // [Orange Apple Mango]
fmt.Println("fruit:", *fruit) // Banana
```
### 30. Slice()
The Slice() function returns selected elements in an slice, as a new slice and and error. The Slice() function selects from a given start, up to a (not inclusive) given end. The Slice() function does not change the original slice.
```go
fruits := []string{"Banana", "Orange", "Lemon", "Apple", "Mango"}
newFruits, err := array.Slice(fruits, -3, -1)
fmt.Println("RES:", newFruits) // [Lemon Apple]
fmt.Println("ERR:", err) // nil
```
### 31. Sort() ❌
### 32. Some()
The Some() function checks if any slice elements pass a test (provided as a callback function). The Some() function executes the callback function once for each slice element.The Some() function returns true (and stops) if the function returns true for one of the slice elements. The Some() function returns false if the function returns false for all of the slice elements. The Some() function does not execute the function for empty slice elements. The Some() function does not change the original slice.
```go
ages := []int{3, 10, 18, 20}
age := array.Some(ages, func(age int, ind int, list []int) bool {
return age > 100
})
fmt.Println("RES:", age) // false
```
### 33. Splice()
The Splice() function adds and/or removes slice elements. The Splice() function does not overwrites the original slice.
```go
fruits := []string{"Banana", "Orange", "Apple", "Mango", "Kiwi"}
index := 2
res, err := array.Splice(fruits, 2, &index)
fmt.Println("RES:", res) // [Banana Orange Mango Kiwi]
fmt.Println("ERR:", err) // nil
index = 2
res, err = array.Splice(fruits, 0, &index, "Mango", "Coconut")
fmt.Println("RES:", res) // [Mango Coconut Apple Mango Kiwi]
fmt.Println("ERR:", err) // nil
```
### 34. ToString()
The ToString() function returns a string with slice values separated by commas. The ToString() function does not change the original slice. The ToString function only works for a slice of strings.
```go
fruits := []string{"Banana", "Orange", "Apple", "Mango"}
res := array.ToString(fruits)
fmt.Println("RES:", res) // Banana,Orange,Apple,Mango
```
### 35. Unshift()
The Unshift() function adds new elements to the beginning of an slice. The Unshift() function does not overwrite the original slice.
```go
fruits := []string{"Banana", "Orange", "Apple", "Mango"}
newFruits := array.UnShift(fruits, "Kiwi", "Lemon")
fmt.Println("newFruits:", newFruits) // [Kiwi Lemon Banana Orange Apple Mango]
```
### 36. ValueOf()
The Unshift() function adds new elements to the beginning of an slice. The Unshift() function does not overwrite the original slice.
```go
fruits := []string{"Banana", "Orange", "Apple", "Mango"}
newFruits := array.ValueOf(fruits)
fmt.Println("newFruits", newFruits) // [Banana Orange Apple Mango]
```
### 37. With()
The With() function updates a specified slice element. The With() function returns a new slice. The With() function does not change the original slice.
```go
months := []string{"Januar", "Februar", "Mar", "April"}
// _ = months
myMonths, err := array.With(months, 2, "March")
fmt.Println("Mons:", myMonths) // [Januar Februar March April]
fmt.Println("Err:", err) // nil
``` | This comprehensive module provides an array (no pun intended) of helper functions specifically designed to empower developers in working efficiently with golang slices. It encompasses popular methods like Map, Filter, Reduce, ForEach, Some, and many more, offering streamlined functionalities to enhance your golang coding experience. | arrays,higher-order-functions,methods,slices,utils,generics,golang,javascript | 2024-02-08T15:10:34Z | 2024-04-08T12:57:38Z | null | 2 | 0 | 12 | 0 | 0 | 5 | null | MIT | Go |
BrennonMeireles/boletim-escolar | main | # Boletim Escolar
Este é o repositório do projeto de Boletim Escolar desenvolvido como parte do curso no Senai. O projeto foi elaborado utilizando HTML, CSS e JavaScript, com um design responsivo para garantir uma experiência consistente em diferentes dispositivos.<br><br>
<div align="center">
<img src="https://github.com/BrennonMeireles/boletim-escolar/assets/141636246/beb8c887-298b-4101-81f5-2e5b305c529b" alt="image" width="600px">
</div>
<br><br>
# Visão Geral
O Boletim Escolar é uma aplicação web que permite aos usuários visualizarem suas notas de forma organizada e intuitiva, inspirado no estilo e design do Senai. Utilizamos o Figma para criar o design inicial, buscando uma integração visual com o ambiente do curso.
# Funcionalidades
- Visualização das notas em diferentes disciplinas.
- Cálculo automático da média geral.
- Indicação de aprovação ou reprovação.
- Responsividade para dispositivos móveis e desktop.
#Tecnologias Utilizadas
- HTML5
- CSS3
- JavaScript
#Como Utilizar
Clone este repositório em sua máquina local.
Abra o arquivo index.html em seu navegador web.
Explore as diferentes seções do boletim e suas funcionalidades.
# Contribuição
Contribuições são bem-vindas! Se você identificar problemas, bugs ou tiver sugestões de melhorias, sinta-se à vontade para abrir uma issue ou enviar um pull request.
| projeto de Boletim Escolar desenvolvido como parte do curso no Senai. O projeto foi elaborado utilizando HTML, CSS e JavaScript, com um design responsivo para garantir uma experiência consistente em diferentes dispositivos. | backend,css,css3,figma,front-end,frontend,html,html5,javascript,js | 2024-02-26T12:50:55Z | 2024-03-06T00:24:26Z | null | 2 | 0 | 57 | 0 | 0 | 5 | null | null | JavaScript |
LucasSlessa/WEB_portifolio | master | null | Portifolio_WEB | css,html,javascript | 2024-03-03T04:31:06Z | 2024-04-04T15:19:28Z | null | 1 | 0 | 28 | 0 | 0 | 5 | null | NOASSERTION | HTML |
sombriks/enterprise-kotlin-handbook | main | # [enterprise-kotlin-handbook][0001]
Some exercises to explore out how modern, enterprise grade services can be
written in kotlin. It's slightly opinionated, proceed at your own risk.
## Motivation
Kotlin has a strong case as [java substitute][0002] on Android/mobile scenario
but it's not exclusive to it anymore for a good time now.
This doc go as a gentle approach on how to provision projects using kotlin over
java in enterprise solutions with [spring boot][0003].
The ecosystem around the JVM spans in time over decades and the problems solved
goes beyond thousands of reusable libraries. Get access to such richness with
any imaginable stack is a big deal and deserves attention in order to save time,
health and money when starting something new or maintaining battle-tested
solutions out there.
## Before we start
Some people might have a solid background on other stacks, for example
[Frontend Javascript/Typescript][0004], to cite a popular one. Whenever handy,
some comparison will be presented.
## How this guide is structured
This is a [monorepo/multiproject][0005], which usually is a bad idea but in this
case we mainly host documentation, so offer sample projects to better explore a
subject being presented is ok.
Main docs resides in [docs](docs) folder, sample projects in [samples](samples)
folder. There are a few exercises on each them.
Start by the [docs](docs) folder.
## How to contribute
Want to help or just do yourself some exercises? [fork this project][0006]!
[0001]: https://github.com/sombriks/enterprise-kotlin-handbook
[0002]: https://kotlinlang.org/docs/comparison-to-java.html
[0003]: https://spring.io/projects/spring-boot
[0004]: https://typescriptlang.org/
[0005]: https://en.wikipedia.org/wiki/Monorepo
[0006]: https://github.com/sombriks/enterprise-kotlin-handbook/fork
| some exercises to explore how enterprise grade services can be written in kotlin | guide,java,javascript,kotlin,gradle,maven | 2024-02-18T15:24:44Z | 2024-03-06T23:20:21Z | null | 1 | 0 | 33 | 0 | 1 | 5 | null | null | null |
nayakrujul/CompSci | main | <div align="center">
<a href="https://cs.rujulnayak.com/">
<img
src="https://github.com/nayakrujul/CompSci/assets/55329600/43878b7a-6220-4cfe-b79a-a8cc6b5494db"
height="200px" alt="CS logo" title="https://cs.rujulnayak.com/" />
</a>
<br />
<a href="https://cs.rujulnayak.com/" style="text-decoration: none;">
<img src="https://img.shields.io/website/https/cs.rujulnayak.com/index.html.svg" />
</a>
<br />
<a href="https://github.com/nayakrujul/CompSci/commits/main/" style="text-decoration: none;">
<img src="https://img.shields.io/github/last-commit/nayakrujul/CompSci" />
</a>
<br />
<a href="https://github.com/nayakrujul/CompSci/blob/main/LICENSE" style="text-decoration: none;">
<img src="https://img.shields.io/github/license/nayakrujul/CompSci" />
</a>
<br />
<a href="https://www.aqa.org.uk/subjects/computer-science-and-it/gcse/computer-science-8525" style="text-decoration: none;">
<img src="https://img.shields.io/badge/exam_board-AQA-purple" />
</a>
</div>
<hr />
**[Computer Science Revision](https://cs.rujulnayak.com/)** by Rujul Nayak: an online, mobile-friendly revision guide for AQA GCSE Computer Science students.
| An online revision guide for AQA GCSE Computer Science students | compsci,computer-science,educational,gcse,gcse-computer-science,html,javascript,revision,website,gplv3 | 2024-02-15T10:42:24Z | 2024-05-21T16:02:47Z | null | 1 | 0 | 246 | 0 | 0 | 5 | null | GPL-3.0 | HTML |
SINAZZzz/project-ts | main | ## Project collection with typescript
<b> In this collection, we have various projects that are based on typescript. </b>
## Current projects
<b><i>Login</i><br /></b>
> Html / Css / ts <br />
<b><i>Add Task</i> <br /></b>
> Html / Css / ts <br />
<b><i>Add Person</i><br /></b>
> Html / Css / ts <br />
<b><i>Dashboard</i><br /></b>
> Html / Css / ts / Tailwind <br />
<b><i>Todo List</i><br /></b>
> React / Redux / Ts <br />
<b><i>Form</i><br /></b>
> React / useReducer / Ts / Formic / Yup <br />
<b><i>Swiper</i><br /></b>
> Html / Css / Ts / Swiper <br />
| Project collection with typescript | bootstrap,css,html,javascript,json-server,mui,nodejs,react,reactrouterdom,redux-toolkit | 2024-01-30T21:03:59Z | 2024-03-27T04:11:47Z | null | 1 | 0 | 56 | 0 | 0 | 5 | null | null | CSS |
Alexandrbig1/task-pro | main | # Task Pro App
Welcome to the Task Pro App, the final project from the Fullstack Development Bootcamp. This web application allows users to manage tasks efficiently, similar to popular task management tools like Trello.
<img align="right" src="https://media.giphy.com/media/du3J3cXyzhj75IOgvA/giphy.gif" width="100"/>
[](https://github.com/Alexandrbig1/task-pro/commits/main)
[](https://github.com/Alexandrbig1/task-pro/blob/main/LICENSE)
[](https://vitejs.dev/)
[](https://reactjs.org/)
[](https://nodejs.org/)
[](https://expressjs.com/)
[](https://www.mongodb.com/)
[](https://mongoosejs.com/)
[](https://jwt.io/)
[](https://nodemailer.com/)
[](https://styled-components.com/)
[](https://github.com/axios/axios)
[](https://developer.mozilla.org/en-US/docs/Web/JavaScript)
[](https://react-icons.github.io/react-icons/)
## Table of Contents
- [Project Contributors](#project-contributors)
- [Figma Design File](#figma-design-file)
- [Screenshots](#screenshots)
- [Features](#features)
- [Technologies Used](#technologies-used)
- [Getting Started](#getting-started)
- [Contributing](#contributing)
- [Issues](#issues)
- [License](#license)
- [Acknowledgments](#acknowledgments)
- [Connect with me](#connect-with-me)
## Project Contributors
- [Alex Smagin](https://github.com/Alexandrbig1) - Team Lead (Front End)
- [Denys Shchypt](https://github.com/DenysShchypt) - Team Lead (Back End)
- [Batalova Kira](https://github.com/batalova-kira) - Scrum Master
- [Olena Nechyporenko](https://github.com/Olena-Nechyporenko) - Fullstack developer
- [Yuriy Krasnobokiy](https://github.com/YuriyKrasnobokiy) - Fullstack developer
- [Natalia Spivak](https://github.com/Nataly-Naf) - Fullstack developer
- [Oleg Baranov](https://github.com/Olegmkv) - Fullstack developer
- [Vialov Vlad](https://github.com/igrok1803444) - Fullstack developer
- [Dmytro Mukolyuk](https://github.com/KRB-U) - Fullstack developer
- [Vladyslav Parkhomovych](https://github.com/Parkhomovych) - Fullstack developer
- [Svitlana Yurikova](https://github.com/SvitUriko) - Fullstack developer
- [Yulia Tsarenko](https://github.com/Yullia90) - Fullstack developer
## Figma Design File
[Figma Design](https://www.figma.com/file/fJF13s2UlxPIwTMcPVrSiz/TaskPro?type=design&t=8OR5JW2MuSskYTdw-0)
## Backend APIs with Swagger Documentation
[Swagger](https://task-backend-project.onrender.com/api-docs/#/)
### Screenshots:
 _Caption for Screenshot 1
(Welcome Page)_
 _Caption for Screenshot 2
(Sign Up Page)_
 _Caption for Screenshot 3
(Sign In Page)_
 _Caption for Screenshot 4
(Home Page Violet Theme)_
 _Caption for Screenshot 5
(Board Page Dark Theme)_
 _Caption for Screenshot 6
(Creamy Sharks Team)_
## Features
- **User Authentication:** Users can register and log in to access the main application.
- **Task Management:** Create, edit, and prioritize tasks. Move tasks between different columns (process, done).
- **Theme Switcher:** Users can toggle between light and dark themes for a personalized experience.
- **Support Email:** In-app feature to send support emails if any issues arise.
- **Task Customization:** Set task priority with different colors, add icons, and set deadlines.
- **Profile Editing:** Users can edit their profiles, including changing avatars.
## Technologies Used
- **Frontend:**
- React
- Vite
- Styled Components
- Redux
- React Icons
- MUI Joy (Material-UI experimental component library)
- Formik (Form library)
- Axios (HTTP client)
- Modern Normalize (Modern version of Normalize.css)
- Prop Types (Runtime type checking for React props)
- React Beautiful DND (Drag and drop library for React)
- React Datepicker
- React Helmet Async (Async version of React Helmet)
- React Loader Spinner
- React Read More Read Less
- React Toastify (Notification library)
- **Backend:**
- Node.js
- Express
- MongoDB
## Getting Started
1. **Clone the Repository:**
```bash
git clone https://github.com/Alexandrbig1/task-pro.git
cd task-pro
```
2. **Install Dependencies:**
```bash
npm install
```
3. **Start the Development Server:**
```bash
npm run dev
```
4. **Open in Browser:**
Open your browser and visit `http://localhost:3000`.
## Contributing
Contributions are welcome! Please check out our Contribution Guidelines for details on how to contribute to this project.
## Issues
If you encounter any issues or have suggestions, please [open an issue](https://github.com/Alexandrbig1/task-pro/issues).
## License
This project is licensed under the [MIT License](LICENSE).
## Feedback
I welcome feedback and suggestions from users to improve the application's functionality and user experience.
## Acknowledgments
We extend our sincere gratitude to the entire team at [GoIT](https://goit.global/us/) for their unwavering guidance and support during our enriching journey through the Fullstack Bootcamp. This comprehensive 10-month program has equipped us with valuable skills across various modules, and we are particularly grateful for the in-depth learning experience in Node.js, which serves as the final module in this transformative bootcamp.
Our heartfelt appreciation goes to the instructors and mentors who have played a pivotal role in shaping our understanding of Fullstack Development. Their expertise and dedication have been instrumental in our successful completion of the bootcamp, culminating in the development of TaskPro.
TaskPro, our final project, stands as a testament to the comprehensive knowledge acquired during the bootcamp. The project's success wouldn't have been possible without the foundation laid by GoIT, particularly in the Node.js module, which has been a crucial component of this endeavor.
Thank you, GoIT, for fostering an environment of learning and growth, and for providing the tools and knowledge that empower us to embark on meaningful journeys in the world of Fullstack Development.
With gratitude,
Creamy Sharks
## Languages and Tools
<div align="center">
<a href="https://en.wikipedia.org/wiki/HTML5" target="_blank"><img style="margin: 10px" src="https://profilinator.rishav.dev/skills-assets/html5-original-wordmark.svg" alt="HTML5" height="50" /></a>
<a href="https://www.w3schools.com/css/" target="_blank"><img style="margin: 10px" src="https://profilinator.rishav.dev/skills-assets/css3-original-wordmark.svg" alt="CSS3" height="50" /></a>
<a href="https://www.javascript.com/" target="_blank"><img style="margin: 10px" src="https://profilinator.rishav.dev/skills-assets/javascript-original.svg" alt="JavaScript" height="50" /></a>
<a href="https://reactjs.org/" target="_blank" rel="noreferrer"> <img src="https://raw.githubusercontent.com/devicons/devicon/master/icons/react/react-original-wordmark.svg" alt="react" width="40" height="40"/></a>
<a href="https://www.mongodb.com/" target="_blank"><img style="margin: 10px" src="https://profilinator.rishav.dev/skills-assets/mongodb-original-wordmark.svg" alt="MongoDB" height="50" /></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://styled-components.com/" target="_blank"><img style="margin: 10px" src="https://profilinator.rishav.dev/skills-assets/styled-components.png" alt="Styled Components" height="50" /></a>
<a href="https://www.figma.com/" target="_blank" rel="noreferrer"><img src="https://www.vectorlogo.zone/logos/figma/figma-icon.svg" alt="figma" width="40" height="40"/></a>
<a href="https://git-scm.com/" target="_blank" rel="noreferrer"> <img src="https://www.vectorlogo.zone/logos/git-scm/git-scm-icon.svg" alt="git" width="40" height="40"/></a>
<a href="https://postman.com" target="_blank" rel="noreferrer"><img src="https://www.vectorlogo.zone/logos/getpostman/getpostman-icon.svg" alt="postman" width="40" height="40"/></a>
</div>
## Connect with me:
<div align="center">
<a href="https://linkedin.com/in/alex-smagin29" target="_blank">
<img src=https://img.shields.io/badge/linkedin-%231E77B5.svg?&style=for-the-badge&logo=linkedin&logoColor=white alt=linkedin style="margin-bottom: 5px;" />
</a>
<a href="https://github.com/alexandrbig1" target="_blank">
<img src=https://img.shields.io/badge/github-%2324292e.svg?&style=for-the-badge&logo=github&logoColor=white alt=github style="margin-bottom: 5px;" />
</a>
<a href="https://discord.gg/F4Jprw8q" target="_blank">
<img src="https://img.shields.io/badge/discord-%237289DA.svg?&style=for-the-badge&logo=discord&logoColor=white" alt="Discord" style="margin-bottom: 5px;" />
</a>
<a href="https://stackoverflow.com/users/22484161/alex-smagin" target="_blank">
<img src=https://img.shields.io/badge/stackoverflow-%23F28032.svg?&style=for-the-badge&logo=stackoverflow&logoColor=white alt=stackoverflow style="margin-bottom: 5px;" />
</a>
<a href="https://dribbble.com/Alexandrbig1" target="_blank">
<img src=https://img.shields.io/badge/dribbble-%23E45285.svg?&style=for-the-badge&logo=dribbble&logoColor=white alt=dribbble style="margin-bottom: 5px;" />
</a>
<a href="https://www.behance.net/a1126" target="_blank">
<img src=https://img.shields.io/badge/behance-%23191919.svg?&style=for-the-badge&logo=behance&logoColor=white alt=behance style="margin-bottom: 5px;" />
</a>
<a href="https://www.upwork.com/freelancers/~0117da9f9f588056d2" target="_blank">
<img src="https://img.shields.io/badge/upwork-%230077B5.svg?&style=for-the-badge&logo=upwork&logoColor=white&color=%23167B02" alt="Upwork" style="margin-bottom: 5px;" />
</a>
</div>
| TaskPro is the culmination of our journey through a 11-month Fullstack Development Bootcamp. This fullstack application showcases the depth of knowledge and skills we've acquired in building robust and feature-rich web applications. | backend,bootcamp,css3,figma,frontend,fullstack,html5,javascript,js,node-js | 2024-01-31T19:48:13Z | 2024-02-20T05:24:35Z | null | 11 | 100 | 420 | 0 | 5 | 5 | null | MIT | JavaScript |
Abhishek-UIUX/ReactTreeFileManager | main | # React Tree File-Explorer
https://github.com/Abhishek-UIUX/ReactTreeFileManager/assets/73067180/308a60a5-9058-4d59-989c-a269064d72d1
React Tree File-Manager is a versatile and user-friendly file management system built with React and JavaScript. This project enables users to effortlessly navigate, create, update, and delete files and folders in a visually appealing tree structure. With a focus on simplicity and extensibility, this file manager is designed for seamless integration into React applications, offering a responsive and interactive file exploration experience.
## Key Features
- Tree-structured file navigation
- Create, update, and delete files and folders
- Designed for easy integration with React applications
- Customizable and extensible for diverse use cases
## Getting Started
1. Clone the repository.
2. Install dependencies using `npm install`.
3. Explore the demo application and integrate the file manager into your React project effortlessly.
## Demo
Check out the live demo [here](https://react-tree-file-manager.vercel.app/).
Feel free to star the repository if you find it useful, and don't hesitate to open issues or pull requests for improvements. Happy coding!
| A user-friendly file management system for React applications. Navigate, create, update, and delete files and folders in a responsive tree structure. Easily integrate into your React projects. | file-explorer,file-manager,frontend,hooks,javascript,react,react-applications,react-components,reactjs,tree-structure | 2024-02-20T17:01:53Z | 2024-02-22T16:50:58Z | null | 1 | 0 | 8 | 0 | 0 | 5 | null | null | JavaScript |
kolosochok/django-ecommerce | main | # Django Full Stack E-Commerce Application
This project is a comprehensive solution for building and managing a robust e-commerce platform using Python, Django, JavaScript, jQuery, and SQLite.
## Demo💫
🌐👉https://valleys.pythonanywhere.com
**Homepage**

**Admin Panel**

## Overview⚡️
This project aims to provide a solid foundation to create a feature-rich and scalable e-commerce website. Leveraging the power of Django, a high-level web framework written in Python, and integrating dynamic front-end interactions with JavaScript and jQuery, our application delivers a seamless and responsive user experience.
## Tech Stack🚀
- Backend: Python, Django
- Frontend: JavaScript, jQuery
- Database: SQLite
## Features📚
- User Authentication
- User Profile
- Shopping Cart
- Wishlist
- Product Discount
- Products / Vendors Page
- Product detail / Vendor detail Page
- Tags for Product and Blog
- Category list Page
- Improved Admin Panel
- Product Reviews
- Blog post Comments
- Products Filter
- Search Functionality
- Related Products
- Related Blog posts
## Installation Guide📚
1. Clone and change to the directory:
```
git clone https://github.com/kolosochok/django-ecommerce
cd django-ecommerce
```
2. Create and activate a virtual environment:
Unix based systems:
```
virtualenv env
source env/bin/activate
```
Windows:
```
python -m venv env
source env/Scripts/activate
```
3. Install Python requirements:
```
pip install -r requirements.txt
```
4. Create a SECRET_KEY and copy:
```
python secret_key.py
```
5. Create a `.env` file and add a SECRET_KEY value to `.env`:
```
SECRET_KEY=generated-secret-key
```
6. Migrate DB:
```
python manage.py migrate
```
7. To create superuser:
```
python manage.py createsuperuser
```
8. Run application:
```
python manage.py
```
*happy coding* | Full-Stack Django ecommerce website | django,ecommerce,full-stack,javascript,jquery,python,blog,multivendor-ecommerce,css,html | 2024-01-27T17:51:22Z | 2024-02-25T12:51:44Z | null | 1 | 0 | 42 | 0 | 2 | 5 | null | MIT | HTML |
parham-ab/React-Ecommerce-Shop | main | # React-Ecommerce-Shop
React JS E-commerce web app developed by Tailwind, next UI, Redux-Toolkit, RTK Query and more...




## Features
- **Product Catalog:** Explore our wide range of products conveniently organized into categories for easy browsing.
- **Product Details:** View detailed information about each product, including descriptions, images, and pricing.
- **Shopping Cart:** Add products to your cart and manage quantities before proceeding to checkout.
- **Persistent Storage**: Data is saved locally using localStorage, ensuring persistence across sessions.
- **Dark Mode**: dark mode & light mode support.
- **Responsive Design:** Enjoy a seamless shopping experience across various devices, including desktops, tablets, and mobile phones.
- **State Management**: Redux Toolkit is used for efficient state management.
- **Routing**: Built with react-router-dom for seamless navigation between different views.
- **User Notifications**: Utilizes react-toastify for displaying user-friendly notifications.
- **Styling**: Styled-components, Tailwindcss & NextUI is used to enhance UI aesthetics.
## Dependencies
- [React.js](https://reactjs.org/)
- [Redux Toolkit](https://redux-toolkit.js.org/)
- [tailwindcss](https://tailwindcss.com/)
- [next-UI](https://nextui.org/)
- [react-router-dom](https://reactrouter.com/web/guides/quick-start)
- [react-toastify](https://fkhadra.github.io/react-toastify/introduction)
- [styled-components](https://styled-components.com/)
- [swiper](https://swiperjs.com/)
- [react-icons](https://react-icons.github.io/react-icons/)
## Contributing
Contributions are welcome! If you'd like to contribute to this project, please feel free.
## License
This project is licensed under the [MIT License](LICENSE).
## Contact
For any inquiries or feedback, feel free to reach out to [parhamab17@gmail.com](parhamab17@gmail.com).
## Installation
To get started, simply clone the repository and install the dependencies:
```bash
git clone https://github.com/your-username/React-Ecommerce-Shop.git
cd React-Ecommerce-Shop
npm install
```
| React JS E-commerce web app developed by Tailwind, next UI, Redux-Toolkit, RTK Query and more... | ecommerce,javascript,lazy-loading,nextui,react,react-icons,react-router-dom,react-toastify,redux,redux-toolkit | 2024-02-28T08:59:26Z | 2024-03-17T10:32:17Z | null | 1 | 0 | 36 | 0 | 1 | 5 | null | MIT | JavaScript |
zakandaiev/vite-frontend-starter | main | <img width=150 align="right" src="https://raw.githubusercontent.com/zakandaiev/vite-frontend-starter/main/src/img/vite-logo.svg" alt="Vite Logo">
# Vite FrontEnd Starter
Vite FrontEnd Starter is a boilerplate kit for easy building modern static web-sites using Vite builder
## Homepage
[https://zakandaiev.github.io/vite-frontend-starter](https://zakandaiev.github.io/vite-frontend-starter)
## How to use
### Instalation
``` bash
# Clone the repository
git clone https://github.com/zakandaiev/vite-frontend-starter.git
# Go to the folder
cd vite-frontend-starter
# Install packages
npm i
# Remove the link to the original repository
# - if you use Windows system
Remove-Item .git -Recurse -Force
# - or if you use Unix system
rm -rf .git
```
### Development
``` bash
# Start development mode with live-server
npm run dev
```
### Building
``` bash
# Build static files for production
npm run build
# or
npm run prod
# Start server for build preview
npm run preview
```
## Features
* Modern Vite environment for development
* Twig template engine
* Well thought-out and convenient project structure
* HTML5 and CSS3 ready
* SEO friendly
* SASS/SCSS preprocessor
* Autoprefixer
* Live-server with hot-reload
* HTML, CSS, JS, images auto minifier
* Ready-to-use Javascript utils, HTML styled components, CSS helpers, SASS utils etc.
* reseter.css
* .htaccess, robots.txt, sitemap.xml, favicon
* 404 page
* And many more...
## TODO
* vite's config `base` not appends to anchors in html files, so we got the htmlHandleDocsBase() in `vite.config.js` as temp solution
| Vite FrontEnd Starter is a boilerplate kit for easy building modern static web-sites using Vite builder | autoprefixer,babel,boilerplate,css,css-grid,es6,favicon,frontend,htaccess,html | 2024-01-31T20:13:39Z | 2024-05-09T08:00:37Z | null | 1 | 0 | 16 | 0 | 0 | 5 | null | MIT | SCSS |
FaeWulf/discord-bot-animated-avatar-banner | main | null | Simple script to change bot's avatar/banner into an animated one. | animated-gif,discordjs,discordjs-bot,javascript,avatar,banner,discord,script | 2024-03-07T22:10:46Z | 2024-03-18T23:50:34Z | null | 1 | 0 | 7 | 0 | 0 | 5 | null | null | JavaScript |
Samitha-Edirisinghe/My-Portfolio | main | null | This repository contains the source code for my personal portfolio website. It's built using HTML, CSS, and JavaScript. The website showcases my projects, provides information about me, and offers a way to contact me. Feel free to explore the code and use it as a reference for creating your own portfolio website. | css,html,html-css,html-css-javascript,html-project,html-projects,html-source,html-template,javascript,php | 2024-02-24T09:59:26Z | 2024-02-28T08:03:18Z | null | 1 | 0 | 7 | 0 | 0 | 5 | null | null | CSS |
ViktorSvertoka/goit-react-woolf-hw-07-phonebook | main | # Критерії приймання
- Створений репозиторій `goit-react-woolf-hw-07-phonebook`
- При здачі фiнального завдання є посилання: на вихідні файли та робочі сторінки
кожного завдання на `GitHub Pages`
- Використана бібліотека `Redux Toolkit`
## Книга контактів
Виконайте рефакторинг коду програми «Книга контактів». Видали код, що відповідає
за зберігання та читання контактів з локального сховища, та додай взаємодію з
бекендом для зберігання контактів.
### Бекенд
Створи свій персональний бекенд для розробки за допомогою UI-сервісу
[mockapi.io](https://mockapi.io). Зареєструйся, використовуючи свій обліковий
запис GitHub.
Створи ресурс `contacts`, щоб отримати ендпоінт `/contacts`. Використовуй
конструктор ресурсу та опиши об'єкт контакту як на ілюстрації.

### Форма стану
Додай у стан Redux обробку індикатора завантаження та помилки. Для цього зміни
форму стану.
```
{
contacts: {
items: [],
isLoading: false,
error: null
},
filter: ""
}
```
### Операції
Використовуй функцію
[createAsyncThunk](https://redux-toolkit.js.org/api/createAsyncThunk) або
[RTK Query](https://redux-toolkit.js.org/rtk-query/overview) для взаємодії з
бекендом та асинхронними запитами. Обробку екшенів та зміну даних у стані Redux
зроби за допомогою `createSlice`.
### Оголоси наступні операції:
- `fetchContacts` - одержання масиву контактів (метод GET) запитом. Базовий тип
екшену `"contacts/fetchAll"`.
- `addContact` - додавання контакту (метод POST). Базовий тип екшену
`"contacts/addContact"`.
- `deleteContact` - видалення контакту (метод DELETE). Базовий тип екшену
`"contacts/deleteContact"`.
### Фінальний результат

| Home task for React course📘 | goit,javascript,react,redux,teilwinds-css,goit-react-woolf-hw-07-phonebook | 2024-02-29T15:34:06Z | 2024-03-03T22:15:54Z | null | 1 | 0 | 15 | 0 | 0 | 5 | null | null | JavaScript |
LucasSlessa/Ecomp_TCC | main | # Project Alu
<img src="https://cdn.jsdelivr.net/gh/devicons/devicon/icons/php/php-original.svg" width="60" /> <img src="https://cdn.jsdelivr.net/gh/devicons/devicon@latest/icons/javascript/javascript-original.svg" width="50" /> <img src="https://cdn.jsdelivr.net/gh/devicons/devicon@latest/icons/html5/html5-original.svg" width="50" />
<img src="https://cdn.jsdelivr.net/gh/devicons/devicon@latest/icons/css3/css3-original.svg" width="50" /> <img src="https://cdn.jsdelivr.net/gh/devicons/devicon@latest/icons/cplusplus/cplusplus-original.svg" width="50" />
This is the official repository of Project XYZ, a project that combines hardware and software to create an intelligent robot with advanced functionalities. The project is developed using the following technologies:
- **C**: Arduino IDE for microcontroller programming.
- **Native C**: Native C programming for Raspberry Pi.
- **HTML, CSS, JavaScript, and PHP**: For the user interface and system integration.
## Features
- **Integration with Chat-GPT**: Integration with Chat-GPT for voice input and message output.
- **Responsive display structure**: Project structure with responsive display.
- **Sensors (optional)**: Possibility of integration with various sensors.
- **Linux Operating System (optional)**: Support for the Linux operating system, using the HDMI port of the Raspberry Pi.
- **ESP32-Cam (optional)**: Possibility of integration with ESP32-Cam for additional functionalities.
- **Display on the chest for time monitoring (I2C)**: Integrated display for displaying time information.
- **Turn on the robot with ultrasonic**: Functionality to turn on/off the robot using an ultrasonic sensor.
- **Temperature detection**: System capable of detecting ambient temperature.
- **Brightness detection**: System capable of detecting ambient brightness.
## Bill of Materials
- 2 ESP32.
- Temperature sensor.
- 6 infrared sensors.
- 3 servo motors.
- 1 Raspberry Pi.
- Head display- [Link](https://produto.mercadolivre.com.br/MLB-1490190629-tela-touch-35-polegadas-shield-p-arduino-uno-mega2560-_JM#position=7&search_layout=stack&type=item&tracking_id=d76382fc-bf29-490d-a890-cceca72a66a1) - R$139.00
- Power supply.
- Speaker.
- Microphone module (Omnidirectional I2S Interface Microphone Module Inmp441) - [Link](https://produto.mercadolivre.com.br/MLB-3538703159-modulo-de-microfone-omnidirecional-i2s-interface-inmp441-_JM?matt_tool=40343894&matt_word=&matt_source=google&matt_campaign_id=14303413655&matt_ad_group_id=133855953276&matt_match_type=&matt_network=g&matt_device=c&matt_creative=584156655519&matt_keyword=&matt_ad_position=&matt_ad_type=pla&matt_merchant_id=381000916&matt_product_id=MLB3538703159&matt_product_partition_id=2268053647590&matt_target_id=aud-1966009190540:pla-2268053647590&cq_src=google_ads&cq_cmp=14303413655&cq_net=g&cq_plt=gp&cq_med=pla&gad_source=1)
- Ultrasonic sensor.
- Light sensor.
## Alu Tecnology
<img src="Banco_de_Imagens/Alu-logo.png" width="300" />
## Note
The project has the possibility of 360-degree movement for arms and head.
| This is the official repository of Project XYZ, a project that combines hardware and software to create an intelligent robot with advanced functionalities. The project is developed using the following technologies: | arduino,c,css3,esp32,html5,java,javascript,php,raspberry-pi | 2024-03-02T23:30:16Z | 2024-03-06T22:43:40Z | null | 2 | 1 | 14 | 0 | 1 | 5 | null | null | null |
M-Valentino/sacredOS | main | # Sacred OS
Sacred OS is a simulated operating system that runs in your browser. It is a Windows 9x inspired OS, and every
HTML file is executable. Sacred OS is written in vanilla JavaScript. Sacred OS uses a bootloader so you can
use the OS with your saved settings, programs, files, etc.
<img src="https://i.imgur.com/79paNsU.png">
## How it works
Sacred OS runs off a JavaScript object which is essentially the "hard disk". The GUI, the kernal, programs,
and more are all stored here. The bootloader writes to this object either by uploading a disk backup or by
fetching all the necessary files and storing them (what happens when you boot from a fresh install). Sacred
OS and the bootloader uses a file table so that they can properly index files (like NTFS or ext4).
In Sacred OS, HTML files are executable. When you execute an HTML file, it is loaded into a window which
contains an iframe of the HTML file. These HTML files can communicate with the kernel, such as requesting
the system's main style sheet or writing to the disk.
## Current State
File creation is limited at the moment in Sacred OS. Right now you can only create txt files and create one new file per directory. You can delete files, but you can't delete folders. Eventually you will be able to edit HTML files. Right now clicking on HTML files in the file explorer just executes them in a window.
## Running Locally
In order for Sacred OS to function properly in a local environment, the files need to have an origin to them.
Otherwise, you will expirience CORS errors. One solution is to use Node.js to create an http server.
#### Starting the http Server
After cloning the repo, go into your terminal and change the current directory to `public` and run
`npx http-server --cors`.
## Developing in Sacred OS
Right now Sacred OS isn't stable and is in it's early phase of development, so things like syntax for messages
to the kernel may change.
### Sacred OS HTML Program Headers
If you want to assign a specific default window size to a program or disable resizing, you must put a comment
at the top of the HTML file that follows this structure:
`<!--width="160" height="144" noRS-->`.
- `width` and `height`: window size in CSS pixel units.
- `noRS`: stands for "no resize". This disables a maximize button from appearing on the program.
## Deploying
### Easy Deployment
Deploying Sacred OS to any site is really simple. All you have to do is copy all the files inside the `public`
folder.
### Automatic Deployment to Neocities
For my personal deployment on Neocities, I use a GitHub action to automatically upload changed files in
the `public` folder after every merge to the <b>main</b> branch. The reason why the `public` folder exists is
because Neocities only allows specific file types, and this repo has some files that aren't uploadable, so they
are stored in the root of this repo. To learn more about deploying to Neocities, read this guide:
https://liassica.codeberg.page/posts/0002-neocities-github/
| A Windows 9x inspired operating system written in Vanilla JS where every HTML file is executable. | 90s,css3,desktop,gui,html5,javascript,kernel,operating-system,os,retro | 2024-02-09T04:32:21Z | 2024-03-20T22:20:06Z | null | 2 | 1 | 229 | 5 | 0 | 5 | null | GPL-2.0 | HTML |
abdelrahman146/react-gmaps-utils | main | # react-gmaps-utils
[](https://www.npmjs.com/package/react-gmaps-utils)
[](https://www.npmjs.com/package/react-gmaps-utils)
[](https://www.npmjs.com/package/react-gmaps-utils)
react-gmaps-utils is a React library that provides components and hooks for integrating Google Maps functionality into your React applications.
## Installation
You can install react-gmaps-utils using npm:
```bash
npm install react-gmaps-utils
npm install --save-dev @types/google.maps
```
## Usage
### GoogleMapsProvider
The `GoogleMapsProvider` component is used to load the Google Maps script and provide a context for other components to access the Google Maps API.
```jsx
import { GoogleMapsProvider } from 'react-gmaps-utils'
function App() {
return (
<GoogleMapsProvider apiKey='YOUR_API_KEY'>
{/* Your application components */}
</GoogleMapsProvider>
)
}
```
### Map
The `Map` component renders a Google Map and provides various options for customization.
```jsx
import { Map } from 'react-gmaps-utils'
function MyMap() {
return (
<Map
options={{
center: { lat: 37.7749, lng: -122.4194 },
zoom: 10
}}
>
{/* Optional child components */}
</Map>
)
}
```
### Marker
The `Marker` component adds a marker to the map at a specified position.
```jsx
import { Map } from 'react-gmaps-utils'
function MyMapWithMarker() {
return (
<Map
options={{
center: { lat: 37.7749, lng: -122.4194 },
zoom: 10
}}
>
<Map.Marker position={{ lat: 37.7749, lng: -122.4194 }} />
</Map>
)
}
```
### Autocomplete
The `Autocomplete` component provides an input field with autocomplete functionality for places.
```jsx
import { Places, Autocomplete } from 'react-gmaps-utils'
import { useMemo, useRef, useState } from 'react'
function MyAutocomplete() {
const [query, setQuery] = useState('')
const autocompleteRef = useRef<{close: () => void}>(null)
const placesService = useRef<google.maps.places.PlacesService | null>(null)
const [placeId, setPlaceId] = useState<string | null>(null);
return (
<Places
onLoaded={(places) => {
placesService.current = places
}}
>
<Autocomplete
as={CustomInput}
ref={autocompleteRef}
value={query}
onChange={(e: React.ChangeEvent<HTMLInputElement>) =>
setQuery(e.target.value)
}
options={{ types: ['(cities)'] }}
className='input'
renderResult={(predictions) => {
return (
<div className='dropdown'>
{predictions.map((prediction) => (
<div
className='dropdown-item'
key={prediction.place_id}
onClick={() => {
setPlaceId(prediction.place_id)
autocompleteRef.current?.close()
}}
>
<span>{prediction.description}</span>
</div>
))}
</div>
)
}}
/>
<Places.FindPlaceByPlaceId placeId={placeId} onPlaceReceived={(place) => {console.log(place?.geometry?.location?.toJSON())}} />
</Places>
)
}
```
The component also has `shouldFetch` which is a boolean that you can pass to prevent the autocomplete from fetching suggestions. example usecase could be if you want to make the fetch occurs only if there was a user interaction.
### ReverseGeocodeByLocation
The `ReverseGeocodeByLocation` component performs reverse geocoding based on a specified location.
```jsx
import { ReverseGeocodeByLocation } from 'react-gmaps-utils'
function MyReverseGeocoder() {
return (
<ReverseGeocodeByLocation
position={{ lat: 37.7749, lng: -122.4194 }}
onAddressReceived={(result) => console.log(result)}
/>
)
}
```
### MapEvent
The `MapEvent` component listens for events on the map and executes a callback function when the event is triggered.
```jsx
import { MapEvent } from 'react-gmaps-utils'
function MyMapEvent() {
const handleMapClick = (map, event) => {
console.log('Map clicked at:', event.latLng.lat(), event.latLng.lng())
}
return (
<Map
options={{
center: { lat: 37.7749, lng: -122.4194 },
zoom: 10
}}
>
<Map.Event event='click' callback={handleMapClick} />
</Map>
)
}
```
## Custom Hooks
### useCurrentPosition
The `useCurrentPosition` hook retrieves the current position of the user.
```jsx
import { useCurrentPosition } from 'react-gmaps-utils'
function MyComponent() {
const { position, loading, error, getCurrentPosition, getIPBasedPosition } = useCurrentPosition({
onInit: {
getPosition: true,
ipBased: true,
}
})
if (loading) return <div>Loading...</div>
if (error) return <div>Error: {error}</div>
return (
<div>
Latitude: {position?.lat}
<br />
Longitude: {position?.lng}
<br />
<button onClick={getCurrentPosition}>Get Exact Location</button>
</div>
)
}
```
## Note
This library requires an API key from Google Maps. Make sure to replace `"YOUR_API_KEY"` with your actual API key in the `GoogleMapsProvider` component.
## License
MIT © [abdelrahman146](https://github.com/abdelrahman146)
| library that provides components and hooks for integrating with Google Maps | contributions-welcome,good-first-issue,google-maps,react,frontend,javascript,npm-package,typescript,web-development | 2024-02-20T13:15:26Z | 2024-03-26T05:55:07Z | 2024-03-26T05:55:07Z | 1 | 0 | 24 | 0 | 0 | 5 | null | null | TypeScript |
harshmangalam/threads.qwik | main | # threads.qwik
Qwik version of threads
## Video Demo
[](https://www.youtube.com/watch?v=LsDpXoozGI0)
## Tech stack
- Qwikcity
- Prisma
- Postgresql
- Tailwind
- Daisyui
- Auth.js
## Setup
Install dependencies
```
pnpm i
```
Copy `.env.example` to `.env`
```
cp .env.example .env
```
Sync with prisma schema and postgresql db
```
pnpx prisma db push
```
Generate schema for prisma client
```
pnpx prisma generate
```
Run dev server
```
pnpm dev
```
## Features
- Authentication
- Github
- Thread
- Create
- Like/Unlike
- Delete
- Save/Unsave
- Repost
- Replies
- Home
- Threads feed
- User suggestions
- Profile
- Follow/Unfollow
- Edit profile
- Threads feed
- Thread Replies
- Thread Reposts
- Followers
- Followings
- Saved threads
- Search Users
- Liked Threads
- Create Thread
- Text
- Thread reply privacy
- Mobile resposive
| Qwik version of Threads | authentication,authjs,daisyui,edge,github-authentication,javascript,neon,nodejs,postgresql,prisma | 2024-02-29T23:06:52Z | 2024-04-20T07:04:12Z | null | 1 | 0 | 145 | 0 | 0 | 5 | null | null | TypeScript |
najmiter/Heartfull | main | # Hearfull
Medicine for the racing hearts.
| Medicine for the racing hearts and souls | css,html,javascript,webdevelopment | 2024-02-10T16:45:16Z | 2024-04-19T09:53:37Z | 2024-02-15T09:09:45Z | 1 | 0 | 27 | 0 | 1 | 5 | null | null | JavaScript |
guilhermelinosp/pwa-modular-auction | main | null | https://guilhermelinosp.github.io/pwa-modular-auction/ | javascript,pwa,react,nginx | 2024-02-22T09:37:31Z | 2024-05-15T18:17:44Z | 2024-02-23T09:56:19Z | 2 | 35 | 69 | 0 | 4 | 5 | null | MIT | JavaScript |
Guihsp/sistema-de-vagas-tech-yks | main | # Funcionalidades do Sistema de Vagas Para Tecnologia
## Funcionalidades:
### Tela de Login:
- Email
- Senha
- Botão de Login
- Botão de Cadastro
- Botão de Esqueci minha senha
<img src="./img/PAgina-login-candidato.png" alt="Tela de Login">
### Tela de Cadastro:
- Nome
- Email
- Senha
- Confirmação de Senha
- Botão de Cadastro
<img src="./img/Pagina-cadastro-candidato.png" alt="Tela de Cadastro">
### Tela de Usuario Anônimo:
- Visualização de Vagas
- Botão de Cadastro
- Botão de Login
- Informações sobre o sistema
<img src="./img/Pagina-Usuario-Anonimo.png" alt="Tela de Usuario Anônimo">
### Tela de Editar dados do Usuario:
- Nome
- Email
- Senha
- Confirmação de Senha
- Botão de Editar
<img src="./img/Editar-Perfil-Usuario.png" alt="Tela de Editar dados do Usuario">
### Tela de Informações da Vaga:
- Nome da Vaga
- Descrição da Vaga
- Requisitos da Vaga
- Salário
- Localização
- Botão de Candidatar
<img src="./img/Página-vaga.png" alt="Tela de Informações da Vaga">
### Tela de Criação de Vaga:
- Nome da Vaga
- Descrição da Vaga
- Requisitos da Vaga
- Salário
- Localização
- Botão de Criação
<img src="./img/pagina-cria-vaga.png" alt="Tela de Criação de Vaga">
### Tela de Lista de Candidatos:
- Visualizar candidatos
<img src="./img/Pagina-lista-Candidatos.png" alt="Tela de Lista de Candidatos">
### Tela de Vagas Candidatadas:
- Visualizar Vagas Candidatadas
<img src="./img/Pagina lista Vagas Candidatas.png" alt="Tela de Vagas Candidatadas">
### Tela de Perfil da Empresa:
- Nome da Empresa
- Email da Empresa
- CNPJ
- Descrição da Empresa
<img src="./img/Pagina de Perfi Empresa.png" alt="Tela de Perfil da Empresa">
### Tela de Vaga da Empresa:
- Visualizar Vagas abertas da empresa
<img src="./img/Pagina Vagas Abertas.png" alt="Tela de Perfil da Empresa">
### BR Modelo
<img src="./img/Captura de tela 2024-03-08 203551.png" alt="Br Modelo">
## Grupo:
- Guilherme Henrique
- Vitor Cobeio
- Augusto Bitiano
- Leonardo Freitas
| Sistema de Vagas para Programadores desenvolvido para o P.I (Projeto Integrador) do 3º Semestre do curso de Análise e Desenvolvimento de Sistemas no Centro Universitário Senac. | css3,html5,java,javascript | 2024-02-28T17:45:34Z | 2024-05-21T11:28:48Z | null | 7 | 0 | 98 | 1 | 0 | 5 | null | null | Java |
SixHq/GPT4-AI-Realtime-code-scanner-Autocomplete-and-Highlighter-for-Javascript-Py-JS-Java-Php-Sixth-SAST | main | # [GPT4 AI Realtime code scanner](https://marketplace.visualstudio.com/items?itemName=Sixth.sixth)
[](https://marketplace.visualstudio.com/items?itemName=Sixth.sixth&ssr=false#overview) [.png?alt=media&token=3bf49a43-cdbb-40d8-854c-7e01eb82bcf2)](https://marketplace.visualstudio.com/items?itemName=Sixth.sixth&ssr=false#overview) [.png?alt=media&token=2c86221b-7d23-45e9-878d-6f2606738512)](https://github.com/SixHq/GPT4-AI-Realtime-code-scanner-Autocomplete-and-Highlighter-for-Javascript-Py-JS-Java-Php-Sixth-SAST) [.png?alt=media&token=8c7a06bd-f91e-46e9-a344-1a12a0b61797)](https://twitter.com/sixth_hq) [.png?alt=media&token=fe8a5363-1b1b-4756-bd27-539637dd3d38)](https://discord.gg/rHzzPXDDRd)

[](https://www.loom.com/embed/124587322c2544cab188a54ce2627b0e?sid=a0c79b99-4ef2-461e-97f0-241aaba11921)
A lightweight VS Code extension that helps you automates the boring or repetitive stuffs such as completing your code, scaning your code for vulnenrabilities, generating doc string and many more. It provides a beautiful GUI client experience, bringing [Convention over Configuration](https://en.wikipedia.org/wiki/Convention_over_configuration) into how developers perform the day to day boring and repetivite tasks.
Built with 💖 for developers.
## **Requirements**
- VS Code 1.43 or newer
- [Optional] Python3.9
## **Supported OSes/Platforms:**
- Linux (Linux-x64, Linux-arm64, Linux-arm, Alpine-x64)
- macOS (Darwin-x64, Darwin-arm64 Apple Silicon)
- Windows (Win32-x64)
## **Quick Start**
- In a VS Code project any file within the [supported langauges](#supported-langauges)
- GPT4 AI [auto detects your classes and functions](#chatgpt4-quick-start). You will see some options at the top of every function and classes.
.png?alt=media&token=3ddd3366-7452-4f53-a732-67117f61e0c3)
## **ChatGPT4 Quick Start**
- Immediately after opening a file or a project, a tab automatically opens on the right sidebar of your project with a ChatGPT interface, you can also open this tab manually by selecting the sixth view on the toolbar and selecting the "ChatGPT4" option

> [!NOTE]
> Additionally, Sixth provides you with some additional [tools](#language-and-framework-integrations) that gives you more control over tasks you want to have ChatGPT4 autuomate for you
## **Generate Code from Images, Audio and Documents**
Generate code from images, audio and txt documents, reducing the amount of boiler plate codes written, Frontend engineers, you'll definitely love this one!!!
## **Troubleshooting**
By default, all functions and classes are detected locally by a python server runninng on port ``` 5011```, and then are encrypted end to end and sent via https to our servers where chatGPT4 process. If you are not getting the codelens on top of every fuctions or class you might have to check if the port is still running you can visit ```http://127.0.0.1:5011``` of which you should see something like this
```json
{
"detail": "Not Found"
}
```
if you see otherwise it comes up make sure you have the python3.9 installed, you can download it [here](https://www.python.org/downloads/release/python-3919/). After which reopening vscode should fix it, if this issue persists, please send a mail [here](mailto:ope@trysixth.com), or drop a message on our [discord](https://discord.gg/rHzzPXDDRd) or create an issue on our [github](https://github.com/SixHq/GPT4-AI-Realtime-code-scanner-Autocomplete-and-Highlighter-for-Javascript-Py-JS-Java-Php-Sixth-SAST/issues)
> [!TIP]
> Before trouble shooting, try restarting vscode, it fixes the issue most of the times.
## Keybinding
Press `Ctrl+Q Ctrl+L` to bring up Sixth view
## Supported Langauges
The following databases are currently supported:
- Python
- Javascript
- PHP
- Typescript
- GO
> [!NOTE]
> For Other programming languages, these features will be added in a future upgrade, but
> for now, users using unsupported programming languages can still make use of the ChatGPT4 features
## Tools Integrations
To get started with these integrations click on the sixth icon on the toolbar, and then configurations
.png?alt=media&token=03e355d3-6e89-42bc-afd6-4812602503b9)
### JIRA Integration
You can sync ChatGPT4 with your JIRA sprints and have it auto complete or recommend soultions to your sprints without breaking a sweat
### Sentry Integrations
If you have sentry integrated in your project, ChatGPT4 can automatically pick up senntry logs, implement them in your project and raise a PR to your github repo, of which you can view from vscode and either accept or decline the request.
*NOTE:* You need to first connect to a ChatGPT4 to both sentry and Github accounts.
### Detecting bugs from Terminal
You can also configure ChatGPT4 to autodetect bugs, error and information logs on your terminal and provide code fixes, information logs and insights about them.
## Why Sixth?
Two words: Better DX.
Sixth aims to significantly cut down the time developers spend on doing the boring stuffs such as reading documentations, debugging, writing doc strings or postman docs, optimzing an function and many more, Sixth aims to optimize DX.
Specifically, these experiences:
1. For every bug you face or new doc string or documentation to be written or new JIRA task to be done, there is no way to resolve or manage these these very frequent tasks without switching tabs.
2. It is common to frequently tab-in and tab-out of project windows, switching between the IDE and ChatGPT or Stack overflow or JIRA board e.t.c. Sometimes, frequent enough to want to get the Solution data directly in the IDE.
Local DX should be better than this.
Also, most of the other GPTs extensions are clunky or simply overwhelming and require you to generate an openAI key and make a bunch of cryptic configurations, with bells and whistles that are not really easy to use as a beginner or advanced engineer. Usually, getting answers to your bugs or questions all you actually need is a textbox or a button to click.
Furthermore, who doesn't love beautiful UIs? GPTs have evolved to generally not have exciting UIs in my opinion, except just a few with excellent and intuitive UIs.
To address the above, there is a need for a GPT tool that can automate the boring and stuffs without having to worry about generating an OpenAI key or tweaking cryptic options. Getting these tasks done should be simple, fast, intuitive, and clean.
Hence, Sixth 🚀
# What people are saying about us?

| Easily spot, fix and detect badly written code in your project without breaking a sweat. Your GPT4 and LLM powered programming AI realtime code editor for python, javascript, typescript, java, php, c# and many more! | fastapi,ai,autocomplete,gpt4,python,javascript,java,chatgpt,vscode,llm | 2024-02-10T23:24:56Z | 2024-04-03T23:01:03Z | null | 1 | 0 | 15 | 0 | 0 | 5 | null | MIT | null |
Yakima-Teng/better-monitor | main | # better-monitor
<div align="center" style="display: flex;align-items: center;justify-content: center;gap:8px;">
<img style="width:200px;" src="https://github.com/Yakima-Teng/better-monitor/raw/main/attachments/logo.svg">
</div>
<p align="center" style="display: flex;align-items: center;justify-content: center;gap:8px;">
<a href="https://npmcharts.com/compare/better-monitor?minimal=true">
<img src="https://img.shields.io/npm/dm/better-monitor.svg" alt="Downloads">
</a>
<a href="https://www.npmjs.com/package/better-monitor">
<img src="https://img.shields.io/npm/v/better-monitor.svg" alt="Version">
</a>
<a href="https://www.npmjs.com/package/better-monitor">
<img src="https://img.shields.io/npm/l/better-monitor.svg" alt="License">
</a>
</p>
[Click here for English document](https://yakima-teng.github.io/better-monitor/index_en.html).
> 用于向网站监控服务上传数据的前端JS SDK(集成了后台服务,可以直接使用[官方管理面板](https://www.verybugs.com/admin/)),支持拦截AJAX请求,上报JS运行时错误等。
## 功能特性
- 🔥 上报 PV(page view) 数据。从而得知网站上哪些页面被访问得更频繁。
- 🔥 上报 UV(user view) 数据。从而得知有多少用户访问了你的项目。
- 🔥 上报 BV(browser view) 数据。从而得知用户使用哪些操作系统下的哪些浏览器来访问我们的项目。可以据此进一步确定网站的前端兼容性计划。
- 🔥 上报 AJAX 请求和响应数据。该 SDK 会自动拦截通过原生 XMLHttpRequest对象或者诸如 Axios 和 jQuery 等库触发的 AJAX 请求。可以据此查看哪些请求响应速度过慢。
- 🔥 上报 JavaScript 运行时报错数据。
- 🔥 上报用户行为数据(按时间顺序)。
- 🔥 上报页面性能数据(CLS、TTFB、LCP、INP、FCP、FID)。
## 如何使用
### 获取项目ID
首先,你需要注册并登录我们的[管理面板](https://www.verybugs.com/admin/)来获取项目ID。

### 集成SDK并进行配置
通过NPM将 better-monitor 作为项目依赖进行安装:
```bash
npm install -S better-monitor
```
然后按如下方式将我们刚刚获取到的项目ID配置进去即可:
```javascript
import BetterMonitor from 'better-monitor'
BetterMonitor.init({
// fill in your project ID here
projectId: 1,
})
```
**如果你的项目目前未使用NPM,也可以通过HTML Script标签来引入SDK,具体操作如下:**
说明:可以看到,项目ID是直接以data-project-id属性的方式配置到script元素上的。
```html
<!-- data-project-id 的值就是我们获取的项目ID -->
<script crossorigin="anonymous" data-project-id="1" src="https://cdn.orzzone.com/verybugs/better-monitor.min.js"></script>
```
### 特殊处理
如果你的项目使用了 `Vue3`,由于该框架会全局捕获框架内抛出的错误并最终通过 `console.error` 的方式打印,不会通过 `throw` 的方式抛出错误,为了捕获对应的错误日志,需要这样处理一下:
```typescript
import { createApp } from 'vue'
import BetterMonitor from 'better-monitor'
import App from './App.vue'
const app = createApp(App)
app.config.errorHandler = function (err, vm, info) { // [!code focus:14]
// eslint-disable-next-line no-console
console.error('errorHandler', err, vm, info)
BetterMonitor.addBug({
pageUrl: location.href,
// @ts-ignore
message: err?.message || 'unknown bug',
// @ts-ignore
stack: err?.stack || '',
// @ts-ignore
source: [`name=${vm?._?.type?.__name}`, `scopeId=${vm?._?.type?.__scopeId}`].join('&'),
type: info
})
}
// 其他代码...
```
## API
该 SDK 对外暴露了几个实用的 API:
### BetterMonitor.printLog
`BetterMonitor.printLog` 和 `console.log` 几乎是一样的,除了以下几点:
- 输出的日志会在最前面显示一个日期前缀。
- 这些日志会被上报到服务端(日志级别为 `log` ),你可以在管理面板上进行查看。
> 注意,通过 `BetterMonitor.printLog` 打印的日志并不会实时上报,而是在达到一定长度或者数量时才会上报,如果需要实时上报,请使用 `BetterMonitor.printLogDirectly` 方法。
```javascript
BetterMonitor.printLog('test')
BetterMonitor.printLog('test', { a: 1 }, 'hello')
```
输出如下:

### BetterMonitor.printWarn
与 `BetterMonitor.printLog` 类似,区别在于:
- 输出的文本颜色为棕黄色。
- 日志级别为 `warn`。
> 注意,通过 `BetterMonitor.printWarn` 打印的日志并不会实时上报,而是在达到一定长度或者数量时才会上报,如果需要实时上报,请使用 `BetterMonitor.printWarnDirectly` 方法。
### BetterMonitor.printError
与 `BetterMonitor.printLog` 类似,区别在于:
- 输出的文本颜色为红色。
- 日志级别为 `error`.
> 注意,通过 `BetterMonitor.printError` 打印的日志并不会实时上报,而是在达到一定长度或者数量时才会上报,如果需要实时上报,请使用 `BetterMonitor.printErrorDirectly` 方法。
### BetterMonitor.logTime, BetterMonitor.logTimeEnd
`BetterMonitor.logTime` 和 `BetterMonitor.logTimeEnd` 需要组合使用, 使用方法与 `console.time` 和 `console.timeEnd` 类似. 它们与 `console.time` 和 `console.timeEnd` 的区别在于:
- 如果开始和结束时间之间的间隔时长少于100ms,输出的日志会带有“耗时较快”文案。日志上报级别为 `log`。
- 如果开始和结束时间之间的间隔等于或大于100ms,输出的日志会带有“耗时较慢”文案。日志上报级别为 `error`。
从而可以方便地过滤出较慢的操作有哪些。
> 注意,通过 `BetterMonitor.logTimeEnd` 打印的日志并不会实时上报,而是在达到一定长度或者数量时才会上报,如果需要实时上报,请使用 `BetterMonitor.logTimeEndDirectly` 方法。
### BetterMonitor.init
初始化配置。一般进需要传入`projectId`参数。
```javascript
BetterMonitor.init({
projectId: 1,
})
```
如果你希望日志能区分不同用户,可以重写一个 `getUserId` 方法(支持 Promise),不重写该方法的话,默认的 `userId` 始终为 `0`。示意如下:
```javascript
BetterMonitor.init({
projectId: 1,
getUserId() {
return 123
},
})
```
> 注意,出于性能考虑,每次上报时使用的 `userId` 都是上一次执行 `getUserId` 时获取到的值。
### BetterMonitor.addView, BetterMonitor.addBug
这些API很少会被用到,如确有需要,可以自行查看源码。
## 部分截图预览
**统计面板:**

**接口日志:**

**JS Bug日志:**

**用户行为日志列表:**

**用户行为日志文件:**

**项目管理:**

## 开源协议
MIT协议。
开源地址:[https://github.com/Yakima-Teng/better-monitor](https://github.com/Yakima-Teng/better-monitor)。
| 😋 用于向网站监控服务上传数据的前端JS SDK(集成了后台服务,可以直接使用官方管理面板),支持拦截AJAX请求,上报JS运行时错误等。 | ajax,bug,javascript,monitor,report | 2024-02-13T15:08:05Z | 2024-05-20T02:15:33Z | null | 1 | 0 | 42 | 0 | 0 | 5 | null | MIT | TypeScript |
tobylai-toby/hexo-theme-mdsuper | main | # hexo-theme-mdsuper

[简体中文](https://github.com/tobylai-toby/hexo-theme-mdsuper/blob/main/README.zh-CN.md)
A [hexo](https://hexo.io) blog theme using [mdui-v2](https://mdui.org) with Material You (Material Design 3).
Supports some comment system and [Prismjs](https://prismjs.com/) highlight.
## Feature
- front-matter `photos` gallery (using fancybox & carousel)
- prismjs highlight
- comment systems support
- [twikoo](https://twikoo.js.org)
- [gitalk](https://github.com/gitalk/gitalk)
- [waline](https://waline.js.org)
- mdui v2
- fancybox for images
- local search for posts (requires [wzpan/hexo-generator-search](https://github.com/wzpan/hexo-generator-search))
## Install
```bash
cd your-hexo-site/
git clone https://github.com/tobylai-toby/hexo-theme-mdsuper.git themes/mdsuper
```
### Activation
go to `your-hexo-site/_config.yml` and change theme to mdsuper.
```yaml
theme: mdsuper
language: zh-CN # default is en
# set language to zh-CN if you are using Chinese
```
## Prismjs
mdsuper uses [prismjs](https://prismjs.com/) to highlight code.
`prism.js` and `prism.css` are included in the theme, but it's recommended to use a customized version because you can choose what languages and plugins to include.
Go to [prismjs download](https://prismjs.com/download.html) to download a customized download.
- Move `prism.js` to `your-hexo-site/themes/mdsuper/source/js/prism.js`.
- Move `prism.css` to `your-hexo-site/themes/mdsuper/source/css/prism.css`.
## Cover
```markdown
---
title:
date:
tags:
categories:
cover: cover image url
---
```
## Builtin Layouts
- `post`: post layout
- `onlycontent`: only content layout (comments are still enabled, disable it by using frontmatter `comments: false`)
## Configuration
go to `your-hexo-site/themes/mdsuper/_config.yml` and configure it.
```yaml
theme:
colorScheme: "#4fd8eb" # change color theme
layout: dark # dark | light | auto
favicon: "" # path( or url) of avatar such as /favicon.png
drawer:
always_open: false
menu:
Home:
icon: home
url: /
...
copyright: "" # text appear at the bottom of the page
comment:
system: none # none | twikoo | gitalk
twikoo: # see: https://twikoo.js.org/frontend.html
cdn:
js: /js/twikoo.all.min.js # or use cdn such as https://cdn.bootcdn.net/ajax/libs/twikoo/1.6.31/twikoo.all.min.js
# twikoo settings:
envId: ""
region: '' # region, see twikoo documentation
path: location.pathname # will eval this, be careful
lang: 'zh-CN'
gitalk: # see https://github.com/gitalk/gitalk
cdn:
css: /css/gitalk.css
js: /js/gitalk.min.js
# gitalk settings:
clientID: '' # GitHub Application Client ID
clientSecret: '' # GitHub Application Client Secret
repo: '' # GitHub repo
owner: '' # GitHub repo owner
admin: [] # GitHub repo owner and collaborators, only these guys can initialize github issues
id: decodeURIComponent(location.pathname)# will eval this, be careful
# this is like /2024/01/24/xxxxxxxxxx ,make sure the length < 50
# Ensure uniqueness and length less than 50
distractionFreeMode: false # Facebook-like distraction free mode
#proxy:
# you may need a reverse proxy to support cors, default url may not work in some places(such as cn)
waline:
#...
# supports twikoo comment system
# this way only supports v0.2.0-beta, move to "comment" instead
# see: https://twikoo.js.org/frontend.html
# twikoo:
# enable: false
# cdn: js/twikoo.all.min.js
# # twikoo settings:
# envId: ""
# region: ''
# path: location.pathname # will eval this, be careful
# lang: 'zh-CN'
# display in the card at the top of the page under the subtitle
display_index_top:
text: "dev-mdsuper"
avatar: "" # path( or url) of avatar such as /avatar.png
# assets
mdui:
css: https://unpkg.com/mdui@2.0.3/mdui.css
js: https://unpkg.com/mdui@2.0.3/mdui.global.js
# install https://github.com/wzpan/hexo-generator-search and configure it following the readme
search:
enable: true
xml: /search.xml # only supports xml
```
## Preview Site
[Tobylai.fun](https://tobylai.fun) | A hexo blog theme using mdui-v2 with Material You (Material Design 3). Supports comment systems (twikoo, gitalk). | hexo,hexo-theme,material-design,material-design-3,material-you,javascript,local-search,responsive,twikoo,mdui | 2024-01-25T08:38:42Z | 2024-02-05T07:22:23Z | null | 1 | 0 | 34 | 0 | 0 | 5 | null | MIT | CSS |
akashpawar43/Full-Stack-Task | master | <h1 align="center" id="title">Upload Image</h1>
<p id="description">Image app Build using MERN Stack. Allowing to Upload Image and Image preview within app.</p>
<h2>🧐 Features</h2>
Here're some of the project's best features:
* Add Image
* Image preview
* Uplaod Image
<h2>🛠️ Installation Steps:</h2>
<p>1. cd Server</p>
<p>2. Install dependencies for Server</p>
```
npm install
```
<p>3. Start Server</p>
```
npm start
```
<p>4. Open Separate terminal for Client</p>
<p>5. cd Client</p>
<p>6. Install dependencies for Client</p>
```
npm install
```
<p>7. Run Client</p>
```
npm run dev
```
<h2>💻 Built with</h2>
Technologies used in the project:
* ReactJs
* NodeJs
* Multer
* ExpressJS
* Tailwind CSS
<h2>Project Screenshots:</h2>
1. Upload Image
<img src="https://github.com/akashpawar43/Full-Stack-Task/blob/master/client/src/assets/localhost_5173.png" alt="project-screenshot" >
| Image app Build using MERN Stack. Allowing user to Upload Image, preview and save within app. | axios,backend,css3,dropzone,expressjs,frontend,html5,image-preview,javascript,jsx | 2024-02-05T10:30:05Z | 2024-02-05T17:43:13Z | null | 1 | 0 | 6 | 0 | 0 | 5 | null | null | JavaScript |
BrennonMeireles/sprint-consumo-api | main | ## SearchIP - Website
Este é um projeto desenvolvido como parte do curso no SENAI. O propósito deste projeto é compreender os conceitos fundamentais de APIs e sua implementação, utilizando ferramentas como JavaScript, HTML e CSS.

## 🕹️ Funcionalidades
- **Consulta de Informações de IP**: Os usuários podem inserir um endereço IP na interface do usuário e obter informações detalhadas sobre o IP consultado, como localização geográfica, provedor de internet, entre outros.
## 🌐 API de Informações de IP
Para este projeto, utilizamos a [API de Informações de IP](https://apiip.net/) para obter dados sobre endereços IP. A API fornece informações detalhadas sobre o IP fornecido, incluindo localização, provedor de internet e muito mais.
## 🎨 Design no Figma
O design do projeto foi elaborado utilizando o Figma, uma ferramenta de design colaborativo baseada na web. Você pode visualizar o design do projeto [aqui](https://www.figma.com/file/7ecxqoUxnPp6Xa8QCBJG1Z/sprint-api?type=design&node-id=0%3A1&mode=design&t=5P3eV8bBHI4oSihx-1).
## 💻 Tecnologias Utilizadas
- JavaScript
- HTML
- CSS
## 🛠 Instalação Local
1. Clone o repositório para o seu ambiente local: `git clone https://github.com/BrennonMeireles/sprint-consumo-api.git`
2. Navegue até o diretório do projeto.
3. Abra o arquivo `index.html` em seu navegador web.
## 🚀 Hospedagem no Vercel
O site foi hospedado utilizando o Vercel, uma plataforma de hospedagem e desenvolvimento para projetos web. Você pode acessar o site [aqui](https://searchip.vercel.app/).
## 🌐 Inspirado na Tecnologia dos IPs
O design do site foi inspirado no mundo da tecnologia dos IPs, buscando elementos visuais que remetessem a esse contexto.
## 🤝 Contribuição
Contribuições são bem-vindas! Se você deseja contribuir para este projeto, por favor, abra uma issue ou envie um pull request.
| Este é um projeto desenvolvido como parte do curso no SENAI. O propósito deste projeto é compreender os conceitos fundamentais de APIs e sua implementação, utilizando ferramentas como JavaScript, HTML e CSS. | css,css3,figma,front-end,front-end-development,frontend,git,html,html5,javascript | 2024-03-06T11:29:52Z | 2024-04-05T19:00:44Z | null | 2 | 2 | 95 | 0 | 0 | 5 | null | null | CSS |
imoken777/INIAD-API-Client | main | ## INIAD API Client


INIAD APIの非公式クライアントライブラリです。
本ライブラリは、INIADのアカウントを持つユーザーのみがアクセス可能な[INIAD開発者サイト](https://sites.google.com/iniad.org/developers?pli=1&authuser=0) に準拠しています。そこに記載されている教育用IoT APIとサイネージAPIの利用をサポートします。OpenAI APIには対応していません。
### 特徴
- 簡単アクセス: 専用のメソッドを使用して、APIに簡単かつ直接アクセスできます。
- 型安全なプログラミング: TypeScriptの型定義ファイルを提供しており、開発中に型安全を保証します。
- ダミーデータによる開発サポート: 学外からでも開発を進められるよう、ダミーデータを使用したテストが可能です。
### インストール
npmを使用して簡単にインストールできます。
```sh
npm install iniad-api-client
```
### 使い方
パッケージをインポートして、APIクライアントを初期化します。userIdとpasswordはINIADのアカウント情報です。
#### 設定の注意点
- EduIotApiClientの設定:
EduIotApiClientを初期化する際に指定するbaseUrlは、INIAD開発者サイト記載のドメイン(例:<https://api.example.org>)までとし、それ以下のパス(例:/api/v1)は含めないでください。これにより、正確なAPIエンドポイントへのアクセスが保証されます。
- SignageApiClientの設定:
SignageApiClientは、[CORSポリシー](https://developer.mozilla.org/ja/docs/Web/HTTP/CORS)を遵守するために、プロキシを経由してAPIへのリクエストを行う必要があります。プロキシのURLはbaseProxyUrlオプショナル引数を通じて設定可能です。もしbaseProxyUrlを指定しない場合は、開発者が用意したデフォルトのプロキシが使用されます。
ソースコードを共有する場合など、それらの情報を直接ソースコードに記述することは推奨されません。環境変数や設定ファイルなどを使用して、それらの情報を外部から取得するようにしてください。
以下はES Modulesを使用した例です。
```typescript
import { EduIotApiClient, SignageApiClient } from 'iniad-api-client';
const userId = process.env.USER_ID;
const password = process.env.PASSWORD;
//baseUrlはINIAD開発者サイト参照(~~.orgまで)
const baseUrl = process.env.BASE_URL;
const iotClient = new EduIotApiClient(userId, password, baseUrl);
// baseProxyUrlは省略可能。省略した場合、デフォルトのproxyが使用される
const baseProxyUrl = process.env.BASE_PROXY_URL;
const signageClient = new SignageApiClient(userId, password, baseProxyUrl);
async function main1() {
try {
const res = await iotClient.getLockerInfo();
console.log(res);
} catch (e) {
console.error(e);
}
}
async function main2() {
try {
const res = await signageClient.getAllCardIDmAndContentList();
console.log(res);
} catch (e) {
console.error(e);
}
}
main1();
main2();
```
### コントリビュート
INIAD API Clientはオープンソースプロジェクトです。バグの報告や機能の提案、プルリクエストなど、コミュニティの貢献を歓迎します。GitHubリポジトリをチェックしてください。
### ライセンス
INIAD API Clientは[MITライセンス](https://github.com/imoken777/INIAD-API-Client/blob/main/LICENSE)の下で公開されています。詳細については、LICENSEファイルを参照してください。
| INIAD APIのための非公式クライアントライブラリ | api-client,iniad,javascript,nodejs,typescript,npm | 2024-03-10T08:42:01Z | 2024-05-21T14:44:08Z | 2024-05-21T14:44:08Z | 2 | 3 | 118 | 5 | 0 | 5 | null | MIT | TypeScript |
gabrielalencs/Barber-House | main | <h1 align="center">
💈<br>Barber House
</h1>

<h4 align="center"><a href="https://alencar-barberhouse.vercel.app/">Clique para visitar o projeto</a></h4>
<h3>Barber House uma landing page de uma barbearia</h3>
<h2>Tecnologias Utilizadas 💻</h2>
- HTML
- CSS
- JavaScript
- Tailwind CSS
- Swiper JS
- AOS Scroll
| Uma landing page da barbearia Barber House 💈🪒 | css3,html5,javascript,tailwindcss,aos-scroll-revel,swiper-js | 2024-02-19T23:52:16Z | 2024-05-03T17:07:18Z | null | 1 | 0 | 67 | 0 | 0 | 4 | null | null | HTML |
Honzoraptor31415/Futuregram | main | # Futuregram
<br/>
A Social media webapp similar to Instagram. Made because I kinda enjoy making full-stack webapps 👍.
Btw, the last time I tried to make something more complicated with SvelteKit and a BaaS, it didn't end up well (that project is deleted tho).
But I think, that it was because I was a beginner and I used <span style="color:yellow">Firebase</span>. And I didn't even use it the right way - the file structure was basicly ~~f\*cked~~ **screwed** and I constantly had problems with user auth.
**However** I think, that this one will turn out to be good.
And also, I'm making all of my projects myself, with no tutorials whatsoever, because watching someone code for 5 hours **isn't the right way** to learn programming.
## Technologies/languages this project uses:
<br/>
[](/)
## Database schema
Btw I'm using supabase's database, which means it's Postgres.
#### users table
| Name | Type | Description |
| ------------------ | --------- | ------------------------------------------------------------- |
| id | `uuid` | User's ID |
| joined_at | `int8` | When the user joined |
| url_username | `text` | Username that can be used in a URL |
| displayed_username | `text` | A username that can ex. contain spaces and special characters |
| bio | `text` | User's bio |
| image_url | `int8` | User's profile pic URL |
| follows | `jsonb[]` | Array of IDs of users who the user follows |
| followers | `jsonb[]` | Array of IDs of users who follow this user |
| blocked | `jsonb[]` | Array of IDs of users who this user blocked |
| saved | `jsonb[]` | Array of IDs of posts that the user saved |
#### posts table
| Name | Type | Description |
| ----------- | --------- | ------------------------------------- |
| id | `uuid` | Post's ID |
| created_at | `int8` | Post creation time (milliseconds) |
| likes | `jsonb[]` | An array of IDs of users who liked it |
| image_urls | `text[]` | The post's image URL |
| user_id | `uuid` | ID of the user who made the post |
| description | `text` | Post description |
| title | `text` | Post title |
#### comments table
| Name | Type | Description |
| ---------- | --------- | ------------------------------------ |
| id | `uuid` | Comment ID |
| created_at | `int8` | Comment creation time (milliseconds) |
| likes | `jsonb[]` | Array of IDs of users who liked it |
| post_id | `uuid` | ID of the post where the comment is |
| user_id | `uuid` | ID of the user who made it |
| text | `text` | Text of the comment |
| edited | `bool` | If the comment was ever edited |
#### replies table
| Name | Type | Description |
| ---------- | --------- | ------------------------------------ |
| id | `uuid` | Comment ID |
| created_at | `int8` | Comment creation time (milliseconds) |
| likes | `jsonb[]` | Array of IDs of users who liked it |
| comment_id | `uuid` | ID of the post where the comment is |
| user_id | `uuid` | ID of the user who made it |
| text | `text` | Text of the reply |
| post_id | `uuid` | ID of the post where the reply is |
| edited | `bool` | If the reply was ever edited |
| A social media app similar to instagram. Still being made, but looking very good so far! | social-media-app,supabase,sveltekit,typescript,javascript,ssr,supabase-auth,supabase-db,supabase-realtime,supabase-ssr | 2024-03-06T16:49:33Z | 2024-05-21T19:35:40Z | null | 1 | 0 | 146 | 0 | 0 | 4 | null | null | Svelte |
ChinmayKaitade/Milestone-Project-iNeuron | main | # MileStone Exam 📂
As Part of this assessment, we are tasked with creative five unique projects using Mentioned Technologies.
These are the Project for Web Development 2.0 Course - iNeuron
Technologies Used In Projects `HTML`, `CSS` and `Tailwind CSS`
### This Project Milestone Repository Contains Following Projects :
#### Project 1 : E-Guru | HTML & CSS Only - [Live Demo](https://e-guru-learning-site.netlify.app/)
#### Project 2 : Hospital Website | HTML & CSS Only - [Live Demo](https://hospital-landing-page-site.netlify.app/)
#### Project 3 : Bike Landing Page | HTML & Tailwind CSS Only - [Live Demo](https://bike-landing-page-site.netlify.app/)
#### Project 4 : NFT Landing Page | HTML & Tailwind CSS Only - [Live Demo](https://nft-landing-page-site.netlify.app/)
#### Project 5 : Pixlab | HTML & Tailwind CSS Only - [Live Demo](https://pixlab-site.netlify.app/)
## Find Repository Order As Follows in Project Repository Folders :

:heart: Follow Me For More Projects [GitHub](https://github.com/ChinmayKaitade) | [LinkedIn](https://www.linkedin.com/in/chinmay-sharad-kaitade) | [Email](<chinmaykaitade123@gmail.com>)
>>>>>>> 1088c03 (README.md File For Milestone Project Added Successfully)
| This Project Milestone Repository for Web Development 2.0 - iNeuron Contains Projects that are Created During Milestone Exam . | css3,figma,frontenddevelopment,html5,javascript,tailwindcss,ui-ux-design,webdevelopment | 2024-02-16T05:49:34Z | 2024-02-16T05:58:26Z | null | 1 | 0 | 6 | 0 | 0 | 4 | null | null | HTML |
No-Country/c16-17-t-node-react | main | # PetPal

### Sector: Cuidado de mascotas
## Objetivo:
PetPal es una aplicación web diseñada para proporcionar a los dueños de mascotas una
herramienta integral para el cuidado, seguimiento y localización de sus compañeros peludos.
Con el aumento de la preocupación por el bienestar de las mascotas y la necesidad de
mantenerlas seguras, PetPal se presenta como una solución eficiente y fácil de usar.
La pérdida de mascotas es un problema importante a nivel mundial. Se estima que cada
año millones de mascotas se pierden. Los códigos QR pueden ser una herramienta eficaz
para ayudar a encontrar a las mascotas perdidas. PetPal aprovecha esta tecnología al
proporcionar a cada mascota un código QR único que permite acceder a su perfil en la
web y contactar al dueño en caso de extravío.
## Tecnologías:
_Font-End:_ JavaScrypt, React, Zustand, TailwindCSS
_Back-End:_ JavaScrypt, Express, MongoDB, Mocha y Supertest
## Enlaces del Proyecto:
_Repositorio:_ [GitHub](https://github.com/No-Country/c16-17-t-node-react)
_Deploy:_ [Deploy](https://c16-17-t-node-react.web.app/)
_Front-End README:_ [README.md-Front](/client/README.md)
_Back-End README:_ [README.md-Back](/server/README.md)
## Características Principales:
1. **Perfil de Usuario**:
- Los usuarios pueden crear una cuenta con información básica y detalles de sus mascotas.
2. **Perfil de Mascotas**:
- Permite a los usuarios agregar perfiles individuales para cada una de sus mascotas,
incluyendo características, datos de salud y cuidado.
- Generación de un código QR único para cada mascota, facilitando el acceso a su perfil
en la web y la comunicación con el dueño en caso de pérdida.
3. **Mascotas Encontradas**:
- Facilita la comunicación entre los dueños de mascotas perdidas y aquellos que las han
encontrado, ayudando a reunir a las mascotas con sus dueños lo más rápido posible.
Con un enfoque centrado en la experiencia del usuario y la seguridad de las mascotas,
PetPal se posiciona como una herramienta imprescindible para cualquier amante de los
animales que desee brindar el mejor cuidado a sus compañeros peludos.
## Colaboradores:
| | | | | |
| :-------------------------------------------------------------------------------------------------------------------------------------------------------: | :--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :---------------------------------------------------------------------------------------------------------------------------------------------------------: | :------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :-------------------------------------------------------------------------------------------------------------------------------------------------------------------: |
| <img src="https://avatars.githubusercontent.com/u/99148932" width=90> | <img src="https://avatars.githubusercontent.com/u/25778667" width=90> | <img src="https://avatars.githubusercontent.com/u/84166139" width=90> | <img src="https://avatars.githubusercontent.com/u/118027004" width=90> | <img src="https://avatars.githubusercontent.com/u/84880622" width=90> |
| **Gared Lyon** | **Rolando Castañon** | **Matias Saade** | **Maximiliano Van_Megroot** | **Lucas Cabral** |
| Product Manager | Front-End | Front-End | Back-End | QA Analyst |
| [](https://github.com/GaredLyon) | [](https://github.com/rolando22) | [](https://github.com/Gadd88) | [](https://github.com/MaxiV95) | [](https://github.com/LUCASCABRL) |
| [](https://www.linkedin.com/in/gared-lyon/) | [](https://www.linkedin.com/in/rolando-rafael-casta%C3%B1on-fern%C3%A1ndez-973917252/) | [](https://www.linkedin.com/in/matias-saade/) | [](https://www.linkedin.com/in/maximilianovanmegroot/) | [](https://www.linkedin.com/in/lucas-cabral-b7aba12a5/) |
| Repositorio dedicado a la creación de aplicación para cuidado de mascotas | cloudinary,express,javascript,mongodb,nodejs,react,vite,zustand | 2024-02-09T19:18:52Z | 2024-03-08T19:00:12Z | null | 9 | 80 | 19 | 0 | 0 | 4 | null | null | JavaScript |
ankit071105/Ankit_Profile | main | # Ankit_Profile | MY PORTOFOLIO FOR ANY JOB | boxicons,css,font-awesome,html,javascript | 2024-03-13T07:17:21Z | 2024-05-18T07:00:57Z | null | 1 | 0 | 10 | 0 | 0 | 4 | null | null | HTML |
anurag87204/VIEW-MY-PORTFOLIO | main | # VIEW MY PORTFOLIO
This project is a simple portfolio website template designed to showcase my skills, projects, and experience in a visually appealing manner. With clean and modern design elements, it provides an ideal platform for professionals, freelancers, or students to present their work to potential clients or employers.
## Features
- Responsive Design: Ensures optimal viewing experience across a wide range of devices, from desktops to mobile phones.
- Easy Customization: Customize the content, colors, and layout to fit your personal branding and preferences.
- Project Showcase: Highlight your projects with descriptions, images, and links to demonstrate your skills and accomplishments.
- About Me Section: Introduce yourself to visitors with a brief bio, skills, and experience.
- Contact Form: Allow visitors to get in touch with you easily through a simple contact form.
## Technologies Used
- HTML5
- CSS3
- JavaScript
## Credits
This portfolio template was created by [Anurag](https://github.com/anurag87204). Feel free to fork the repository and contribute to its improvement.
## License
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
---
Feel free to adjust the description and sections according to the specific features and details of the project.
| PORTFOLIO WEBSITE | css3,html5,javascript,portfolio-website | 2024-01-30T11:42:15Z | 2024-03-08T06:56:06Z | null | 1 | 0 | 16 | 0 | 0 | 4 | null | null | HTML |
danangfir/Pengaduan-UTY | main | # Pengaduan-UTY
techstack
MongoDb
expres.js
node.js
vue.js
fe2 zalfyn | null | css,javascript,mevn,mongodb,nodejs,vuejs | 2024-02-29T10:42:03Z | 2024-03-16T07:45:55Z | null | 3 | 8 | 31 | 0 | 0 | 4 | null | null | Vue |
RahulShelke2812/Car-rental-website | main |
<h2>About the project</h2>
<p>A <b>car rental</b> website is an online platform that allows users to rent cars for personal or business use. The website provides an easy-to-use interface for searching, comparing, and reserving cars from a wide selection of vehicles that vary in make, model, size, and price.</p>
👉 Live Demo: <a href='https://mycar-rental-website.netlify.app/'>Live Demo</a>
<h3>Build with:</h3>
» Css / Scss <br>
» React JS
| A car rental website is an online platform that allows users to rent cars for personal or business use. | car-rental-website,css,html,javascript,netlify,reactjs | 2024-02-20T10:09:54Z | 2024-02-20T16:42:56Z | null | 1 | 0 | 6 | 0 | 1 | 4 | null | null | JavaScript |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.