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
sho1374k/Toys-No.029_WebGLSchool-Task07-PlaneGeometryAnimation
main
# Toys.029 | WebGL School Task.07 ~ Plane geometry animation using pure WebGL. ## 🪬 ~ 要件 - テクスチャを複数同時に利用する実装に挑戦してみましょう。 ※ 生 WebGL で実装すること ## 👾 ~ Demo - https://dev.shoya-kajita.com/029/ <img src="public/assets/img/head/screenshot.webp"> <img src="screenshot1.webp"> <img src="screenshot2.webp"> <img src="screenshot3.webp"> ## 🎮 ~ Getting Started ``` // install npm i // development npm run dev // production npm run build // build preview npm run preview ``` ## 📝 ~ Note ### matcap - https://github.com/hughsk/matcap ```glsl // vec3 eye: the camera's current position. // vec3 normal: the surface's normal vector. vec2 matcap(vec3 eye, vec3 normal) { vec3 reflected = reflect(eye, normal); float m = 2.8284271247461903 * sqrt( reflected.z+1.0 ); return reflected.xy / m + 0.5; } ```
WebGLスクール課題07
glsl,javascript,webgl
2023-08-18T21:06:53Z
2023-08-20T05:21:48Z
null
1
0
5
0
4
15
null
null
JavaScript
zstenger93/Transcendence
master
<img align=center src="https://github.com/zstenger93/Transcendence/blob/master/images/transcendence.webp"> <h1 align="center">📖 TRANSCENDENCE</h1> <h2 align="center">A group project to create a fully functional website with front and backend.</br>It will be a single-page application</h2> --- ## Menu [MindMap](#mindmap) [Setup](#setup) [CI/CD Pipeline](#pipeline) [DataBase](#database) [Frontend](#frontend) [Backend](#backend) [Game](#game) [Chat](#chat) [Resources](#resources) [TODO](#todo) [Modules Used](#modules_used) --- ## [Github Project](https://github.com/users/zstenger93/projects/2) ## MindMap <img align=center src="https://github.com/zstenger93/Transcendence/blob/master/images/sudo_transcEND.png"> ## Git Flow Master <--- :white_check_mark: --- Dev <--- :white_check_mark: --- Microservices <br/> .....|............................................................| <br/> .....|_______________ :x: ______________| ## [Microservices](https://www.youtube.com/watch?v=y8OnoxKotPQ) ## General Explanation - Base of the project - PostgreSQL - Django backend - Rest API to connect back and frontend - Frontend with React - Nginx proxy - Backend - Django - Frontend - React app --- ## Setup - docker-compose.dev.yaml (later) - docker-compose.yaml - backend - each microservice is an app - PostgreSQL database - frontend - nginx proxy - images (not customized yet for front and back) - Installs python and other required packages - Installs and sets venv - Installs django - Echoes the venv activation to bashrc - Copies the starting script to the image - Exposes the port - Entrypoint (not always, depends because some things wont work directly from dockerfile) - CMD to run ## Pipeline - .github folder - workflows - workflow_name.yaml - workflow jobs - testing - need to upload artifacts - building - need to download the uploaded artifacts - ceraful with the correct path - deploying - in case of react project, in github settings directory should be changed to /doc instead of root --- ## DataBase postgreSQL --- ## Frontend React Tailwind ThreeJS - Multi language support - Extra browser support - Multiple device support - Fullscreen mode for games except on IOS - root / Login - Register with username email and password to the site - Login with your username and password - Login via 42 auth - Home - Readme styled (kinda) - Game & Watch - Pong - Original - AI Opponent - Multiplayer - 3D Pong - Future game - Chat - Channels - Online ppl - Image Sharing - Profile - Basic details - Friends - Match history - About Us - Logout --- ## Backend - Microservices (kind of) - Authentication service - Game - Normal mode - Balanced matchmaking - Optimized responsiveness - Gamplay statistics - Secure data storing - Extra game - AI opponent - Acessibility features - More browser support - Multiple language support - Security tools - Chat - Direct messages - Access to profiles - Sending invite to play - Let players know who is next in line - Statistics - Win rate - Score - Match amount against players - etc --- ## Original Game PONG - Extra Pong versions implemented: - AI Pong - 3D Pong --- ## Chat --- ## Resources our braincells --- ## TODO Done: :white_check_mark: Not done: :x: Plan everything as a microservice :x: Basic structure :white_check_mark: Backend structure setup :white_check_mark: First mindmap :white_check_mark: Docker files for services :white_check_mark: Hashed passwords :white_check_mark: Using OAuth system from 42 :white_check_mark: CI/CD pipeline setup :white_check_mark: Deploying to github pages :white_check_mark: Setting unique username :white_check_mark: Uploading an avatar for user :white_check_mark: Option to enable 2FA auth :white_check_mark: Friend list and their status :white_check_mark: User stats of wins, losses etc.. :x: Match history from games :x: User being able to create private channels :white_check_mark: Be able to block and unblock other users :white_check_mark: Able to invite other users to play a game :x: Accessing other users profile :white_check_mark: Playing live games on the site :x: Matchmaking system :x: Faithful to the original pong game :white_check_mark: Custom options for the game :white_check_mark: The game must be responsive :white_check_mark: ## Modules Used 16 Major module 11 Minor module - **Web** - *Major module*: Use a framework as backend :white_check_mark: - *Minor module*: Use a front-end framework or toolkit :white_check_mark: :question: - *Minor module*: Use a database for the backend :white_check_mark: - *Major module*: Store the score of a tournament in the Blockchain :x: - **User Management** - *Major module*: Standard user management, authentication, users across tournaments :x: - *Major module*: Implementing a remote authentication :white_check_mark: - **Gameplay and User Experience** - *Major module*: Remote players :white_check_mark: - *Major module*: Multiplayer (more than 2) :white_check_mark: - *Major module*: Add Another Game with User History and Matchmaking :x: - *Minor module*: Game customization options :white_check_mark: - *Major module*: Live chat :white_check_mark: - **AI-Algo** - *Major module*: Introduce an AI opponent :white_check_mark: - *Minor module*: User and game stats dashboard :x: - **Cybersecurity** - *Major module*: Implement WAF/ModSecurity with Hardened Configuration and HashiCorp Vault for Secrets Management :x: - *Minor module*: GDPR Compliance Options with User Anonymization, Local Data Management, and Account Deletion :x: - *Major module*: Implement Two-Factor Authentication (2FA) and JWT :white_check_mark: - **Devops** - *Major module*: Infrastructure Setup for Log Management :x: - *Minor module*: Monitoring system :white_check_mark: - *Major module*: Designing the Backend as Microservices :x: - **Graphics** - *Major module*: Use advanced 3D techniques :white_check_mark: - **Accessibility** - *Minor module*: Support more devices :x: :white_check_mark: - *Minor module*: Expanding browser compatibility :white_check_mark: - *Minor module*: Multiple language support :white_check_mark: - *Minor module*: Add accessibility for visually impaired users :x: - *Minor module*: Server-side rendering (SSR) integration :x: - **Object Oriented** - *Major module*: Replacing Basic Pong with Server-Side Pong and Implementing an API :x: - *Major module*: Enabling Pong Gameplay via CLI against Web Users with API Integration :x:
This project is about creating a SPA with a playable multiplayer pong game, chat, profiles, leaderboard etc.
42,42born2code,42heilbronn,docker,postgresql,transcendence,django,javascript,docker-compose,docker-container
2023-08-17T09:19:26Z
2024-04-28T05:56:13Z
null
5
265
1,086
0
4
14
null
null
JavaScript
inicontent/inibase
master
[![Inibase banner](./.github/assets/banner.jpg)](https://github.com/inicontent/inibase) # Inibase :pencil: [![npmjs](https://img.shields.io/npm/dm/inibase.svg?style=flat)](https://www.npmjs.org/package/inibase) [![License](https://img.shields.io/github/license/inicontent/inibase.svg?style=flat&colorA=18181B&colorB=28CF8D)](./LICENSE) [![Activity](https://img.shields.io/github/commit-activity/m/inicontent/inibase)](https://github.com/inicontent/inibase/pulse) [![GitHub stars](https://img.shields.io/github/stars/inicontent/inibase?style=social)](https://github.com/inicontent/inibase) > A file-based & memory-efficient, serverless, ACID compliant, relational database management system :fire: ## Features - **Lightweight** 🪶 - **Minimalist** :white_circle: (but powerful) - **100% TypeScript** :large_blue_diamond: - **Super-Fast** :zap: (built-in caching system) - **ATOMIC** :lock: File lock for writing - **Built-in form-validation** included :sunglasses: - **Suitable for large data** :page_with_curl: (tested with 4M records) - **Support Compression** :eight_spoked_asterisk: (using built-in nodejs zlib) - **Support Table Joins** :link: - **Low memory-usage** :chart_with_downwards_trend: (3-5mb) - **Safe** :lock: (no sql or javascript injections) - **Easy to use** :bread: - **...** and much more :rocket: ## Usage ```js import Inibase from "inibase"; const db = new Inibase("databaseName"); // Get all items from "user" table const users = await db.get("user"); // Read page 2 content const users = await db.get("user", undefined, { page: 2, per_page: 15 }); // Get only required columns to improve speed const users = await db.get("user", undefined, { columns: ["username", "address.street", "hobbies.name"], }); // Get items from "user" table where "favoriteFoods" does not includes "Pizza" or "Burger" const users = await db.get("user", { favoriteFoods: "![]Pizza,Burger" }); ``` > [!NOTE] > Enjoy using Inibase? Consider sponsoring us via [PayPal](https://paypal.me/KarimAmahtil) <br> > Your support helps us maintain and improve our services. <br> > Thank you! 🫰 ## Install ```js <npm|pnpm|yarn> install inibase ``` ## How it works? `Inibase` organizes data into databases, tables, and columns, each stored in separate files. - **POST**: New data is appended to column files efficiently. - **GET**: Data retrieval is optimized by reading files line-by-line. - **PUT**: Updates are streamlined, with only the relevant file being modified. - **DELETE**: Removes lines from column files for swift deletion. This structure ensures efficient storage, retrieval, and updates, making our system scalable and high-performing for diverse datasets and applications. ## Inibase CLI ```shell npx inibase -p <databaseFolderPath> ``` <blockquote> <details> <summary>GET</summary> ```shell get <tableName> -w <ID|LineNumber|Criteria> -p <pageNumber> -l <perPage> -c <columnName1> -c <columnName2> ``` </details> <details> <summary>POST</summary> ```shell post <tableName> -d <InisonStrigifedData> ``` </details> <details> <summary>PUT</summary> ```shell put <tableName> -d <InisonStrigifedData> -w <ID|LineNumber|Criteria> ``` </details> <details> <summary>DELETE</summary> ```shell delete <tableName> -w <ID|LineNumber|Criteria> ``` </details> </blockquote> ## Examples <details> <summary>Tables</summary> <blockquote> <details> <summary>Config</summary> <blockquote> ```ts interface { compression: boolean; cache: boolean; prepend: boolean; } ``` </blockquote> </details> <details> <summary>Schema</summary> <blockquote> ```ts interface { id: number; // stored as a Number but displayed as a hashed ID key: string; required?: boolean; unique?: boolean; type: "string" | "number" | "boolean" | "date" | "email" | "url" | "password" | "html" | "ip" | "json" | "id"; } interface Table { id: number; key: string; required?: boolean; type: "table"; table: string; } interface Array { id: number; key: string; required?: boolean; type: "array"; children: string|string[]; } interface ObjectOrArrayOfObjects { id: number; key: string; required?: boolean; type: "object" | "array"; children: Schema; } ``` </blockquote> </details> <details> <summary>Create Table</summary> <blockquote> ```js import Inibase from "inibase"; const db = new Inibase("/databaseName"); const userTableConfig = { compression: true, cache: true, prepend: false } const userTableSchema = [ { key: "username", type: "string", required: true, }, { key: "email", type: "string", required: true, }, { key: "age", type: "number", required: true, }, { key: "isActive", type: "boolean", // required: false }, { key: "hobbies", type: "array", children: [ { key: "name", type: "string", // required: false }, { key: "level", type: "string", // required: false }, ], }, { key: "favoriteFoods", type: "array", children: "string", // required: false }, { key: "address", type: "object", children: [ { key: "street", type: "string", // required: false }, { key: "city", type: "string", // required: false }, { key: "country", type: "string", // required: false }, ], }, ]; await db.createTable("user", userTableSchema, userTableConfig); ``` </blockquote> </details> <details> <summary>Update Table</summary> <blockquote> <details> <summary>Add field</summary> <blockquote> ```js import Inibase from "inibase"; const db = new Inibase("/databaseName"); const userTableSchema = (await db.getTable("user")).schema; const newUserTableSchema = [...userTableSchema, {key: "phone2", type: "number", required: false}]; await db.updateTable("user", newUserTableSchema); ``` </blockquote> </details> <details> <summary>Update field</summary> <blockquote> ```js import Inibase from "inibase"; import { setField } from "inibase/utils"; const db = new Inibase("/databaseName"); const userTableSchema = (await db.getTable("user")).schema; setField("username", userTableSchema, {key: "fullName"}); await db.updateTable("user", newUserTableSchema); ``` </blockquote> </details> <details> <summary>Remove field</summary> <blockquote> ```js import Inibase from "inibase"; import { unsetField } from "inibase/utils"; const db = new Inibase("/databaseName"); const userTableSchema = (await db.getTable("user")).schema; unsetField("fullName", userTableSchema); await db.updateTable("user", newUserTableSchema); ``` </blockquote> </details> </blockquote> </details> <details> <summary>Join Tables</summary> <blockquote> ```js import Inibase from "inibase"; const db = new Inibase("/databaseName"); const productTableSchema = [ { key: "title", type: "string", required: true, }, { key: "price", type: "number", }, { key: "createdBy", type: "table", table: "user", required: true, }, ]; await db.createTable("product", productTableSchema); const productTableData = [ { title: "Product 1", price: 16, createdBy: "1d88385d4b1581f8fb059334dec30f4c", }, { title: "Product 2", price: 10, createdBy: "5011c230aa44481bf7e8dcfe0710474f", }, ]; const product = await db.post("product", productTableData); // [ // { // "id": "1d88385d4b1581f8fb059334dec30f4c", // "title": "Product 1", // "price": 16, // "createdBy": { // "id": "1d88385d4b1581f8fb059334dec30f4c", // "username": "user1", // "email": "user1@example.com", // ... // } // }, // { // "id": "5011c230aa44481bf7e8dcfe0710474f", // "title": "Product 2", // "price": 10, // "createdBy": { // "id": "5011c230aa44481bf7e8dcfe0710474f", // "username": "user2", // ... // } // } // ] ``` </blockquote> </details> </blockquote> </details> <details> <summary>POST</summary> <blockquote> ```js import Inibase from "inibase"; const db = new Inibase("/databaseName"); const userTableData = [ { username: "user1", email: "user1@example.com", age: 25, isActive: true, hobbies: [ { name: "Reading", level: "Intermediate" }, { name: "Cooking", level: "Beginner" }, ], favoriteFoods: ["Pizza", "Sushi", "Chocolate"], address: { street: "123 Main St", city: "Exampleville", country: "Sampleland", }, }, { username: "user2", email: "user2@example.com", age: 30, isActive: false, hobbies: [ { name: "Gardening", level: "Advanced" }, { name: "Photography", level: "Intermediate" }, ], favoriteFoods: ["Burgers", null, "Salad"], address: { street: "456 Elm Rd", city: "Testington", country: "Demo Country", }, }, ]; const users = await db.post("user", userTableData); // [ // { // "id": "1d88385d4b1581f8fb059334dec30f4c", // "username": "user1", // "email": "user1@example.com", // "age": 25, // "isActive": true, // "hobbies": { // "name": [ // "Reading", // "Cooking" // ], // "level": [ // "Intermediate", // "Beginner" // ] // }, // "favoriteFoods": [ // "Pizza", // "Sushi", // "Chocolate" // ], // "address": { // "street": "123 Main St", // "city": "Exampleville", // "country": "Sampleland" // } // }, // { // "id": "5011c230aa44481bf7e8dcfe0710474f", // "username": "user2", // ... // }, // ... // ] ``` </blockquote> </details> <details> <summary>GET</summary> <blockquote> <details> <summary>GET by ID</summary> <blockquote> ```js import Inibase from "inibase"; const db = new Inibase("/databaseName"); const user = await db.get("user", "1d88385d4b1581f8fb059334dec30f4c"); // { // "id": "1d88385d4b1581f8fb059334dec30f4c", // "username": "user1", // "email": "user1@example.com", // "age": 25, // "isActive": true, // "hobbies": { // "name": [ // "Reading", // "Cooking" // ], // "level": [ // "Intermediate", // "Beginner" // ] // }, // "favoriteFoods": [ // "Pizza", // "Sushi", // "Chocolate" // ], // "address": { // "street": "123 Main St", // "city": "Exampleville", // "country": "Sampleland" // } // } ``` </blockquote> </details> <details> <summary>GET by criteria</summary> <blockquote> ```js import Inibase from "inibase"; const db = new Inibase("/databaseName"); const users = await db.get("user", { favoriteFoods: "[]Pizza" }); // [ // { // "id": "1d88385d4b1581f8fb059334dec30f4c", // "username": "user1", // "email": "user1@example.com", // "age": 25, // "isActive": true, // "hobbies": { // "name": [ // "Reading", // "Cooking" // ], // "level": [ // "Intermediate", // "Beginner" // ] // }, // "favoriteFoods": [ // "Pizza", // "Sushi", // "Chocolate" // ], // "address": { // "street": "123 Main St", // "city": "Exampleville", // "country": "Sampleland" // } // }, // ... // ] ``` </blockquote> </details> <details> <summary>GET with columns</summary> <blockquote> ```js import Inibase from "inibase"; const db = new Inibase("/databaseName"); // Get all "user" columns except "username" & "address.street" const users = await db.get("user", undefined, { columns: ["!username", "!address.street"], }); ``` </blockquote> </details> </blockquote> </details> <details> <summary>PUT</summary> <blockquote> ```js import Inibase from "inibase"; const db = new Inibase("/databaseName"); // set "isActive" to "false" for all items in table "user" await db.put("user", { isActive: false }); // set "isActive" to "true" for specific "user" by id await db.put("user", { isActive: false }, "1d88385d4b1581f8fb059334dec30f4c"); // set "isActive" to "true" in table "user" by criteria (where "isActive" is equal to "true") await db.put("user", { isActive: false }, { isActive: true }); ``` </blockquote> </details> <details> <summary>DELETE</summary> <blockquote> ```js import Inibase from "inibase"; const db = new Inibase("/databaseName"); // delete all items in "user" table await db.delete("user"); // delete a specific "user" by id await db.put("user", "1d88385d4b1581f8fb059334dec30f4c"); // delete "user" by criteria (where "isActive" is equal to "false") await db.put("user", { isActive: false }); ``` </blockquote> </details> <details> <summary>SUM</summary> <blockquote> ```js import Inibase from "inibase"; const db = new Inibase("/databaseName"); // get the sum of column "age" in "user" table await db.sum("user", "age"); // get the sum of column "age" by criteria (where "isActive" is equal to "false") in "user" table await db.sum("user", ["age", ...], { isActive: false }); ``` </blockquote> </details> <details> <summary>MAX</summary> <blockquote> ```js import Inibase from "inibase"; const db = new Inibase("/databaseName"); // get the biggest number of column "age" in "user" table await db.max("user", "age"); // get the biggest number of column "age" by criteria (where "isActive" is equal to "false") in "user" table await db.max("user", ["age", ...], { isActive: false }); ``` </blockquote> </details> <details> <summary>MIN</summary> <blockquote> ```js import Inibase from "inibase"; const db = new Inibase("/databaseName"); // get the smallest number of column "age" in "user" table await db.min("user", "age"); // get the smallest number of column "age" by criteria (where "isActive" is equal to "false") in "user" table await db.min("user", ["age", ...], { isActive: false }); ``` </blockquote> </details> <details> <summary>SORT</summary> <blockquote> ```js import Inibase from "inibase"; const db = new Inibase("/databaseName"); // order users by the age column await db.sort("user", "age"); // order users by the age and username columns await db.sort("user", ["age","username"]); await db.sort("user", {age: -1, username: "asc"}); ``` </blockquote> </details> ## Benchmark ### Bulk | | 10 | 100 | 1000 | |--------|-----------------|-----------------|-----------------| | POST | 11 ms (0.65 mb) | 19 ms (1.00 mb) | 85 ms (4.58 mb) | | GET | 14 ms (2.77 mb) | 12 ms (3.16 mb) | 34 ms (1.38 mb) | | PUT | 6 ms (1.11 mb) | 5 ms (1.37 mb) | 10 ms (1.12 mb) | | DELETE | 17 ms (1.68 mb) | 14 ms (5.45 mb) | 25 ms (5.94 mb) | ### Single | | 10 | 100 | 1000 | |--------|-------------------|--------------------|--------------------| | POST | 43 ms (4.70 mb) | 387 ms (6.36 mb) | 5341 ms (24.73 mb) | | GET | 99 ms (12.51 mb) | 846 ms (30.68 mb) | 7103 ms (30.86 mb) | | PUT | 33 ms (10.29 mb) | 312 ms (11.06 mb) | 3539 ms (14.87 mb) | | DELETE | 134 ms (13.50 mb) | 1224 ms (16.57 mb) | 7339 ms (11.46 mb) | > Testing by default with `user` table, with username, email, password fields _so results include password encryption process_ <br> > To run benchmarks, install *typescript* & *[tsx](https://github.com/privatenumber/tsx)* globally and run `benchmark` `benchmark:bulk` `benchmark:single` ## Roadmap - [x] Actions: - [x] GET: - [x] Pagination - [x] Criteria - [x] Columns - [x] Sort - [x] POST - [x] PUT - [x] DELETE - [x] SUM - [x] MAX - [x] MIN - [ ] Schema supported types: - [x] String - [x] Number - [x] Boolean - [x] Date - [x] Email - [x] Url - [x] Table - [x] Object - [x] Array - [x] Password - [x] IP - [x] HTML - [x] Id - [x] JSON - [ ] TO-DO: - [x] Improve caching - [ ] Commenting the code - [x] Add property "unique" for schema fields - [ ] Add Backup feature (generate a tar.gz) - [ ] Add Custom field validation property to schema (using RegEx?) - [ ] Features: - [ ] Encryption - [x] Data Compression - [x] Caching System - [ ] Suggest [new feature +](https://github.com/inicontent/inibase/discussions/new?category=ideas) ## License [MIT](./LICENSE)
A file-based & memory-efficient, serverless, ACID compliant, relational database management system
database,db,firebase,mongodb,mongoose,nodejs,nosql,sql,supabase,typescript
2023-09-11T17:52:52Z
2024-05-19T14:24:55Z
null
2
1
343
0
3
14
null
MIT
TypeScript
nfoert/circles
main
<p align="center"> <!-- <img src="repo/images/hacktoberfest_banner.png" style="width: 800px; border-radius:20px;"> --> <img src="repo/images/circles.png" style="width: 400px; border-radius:20px;"> </p> <hr> <br> <p align="center"> <a href="https://discord.com/invite/QBDw4UrGXX">Discord</a> | <a href="https://twitch.tv/nfoert">Twitch</a> | <a href="https://youtube.com/@nfoert">YouTube</a> </p> <hr> <p align="center"><strong>The production server has now been shut down, I haven't worked on this project in a while and the scope of it is a lot larger than I was anticipating. If interest in this project comes back I will consider working on it again, but for now development is no longer continuing. Thank you to all the contributors who's helped develop this project.</strong></p> <hr> <br> <p align="center">Circles is an open source, decentralized social network where people can move within a physical space and interact with each other.</p> <p align="center">Every User's Account lives within a Server. These Users can create Circles within these Servers, and sub Circles within those. Any other User can move in and out of Public Circles. Users can send messages in the Circle they're in, or in the entire Server. Users can also create Conversations with specific Users.</p> <hr> <br> <img src="repo/images/circles_main.png"> <br> # Why I created Circles for a few reasons: - I care a lot about open source and I feel that we need more options for FOSS social media - Right now, people on social media just feel like users who post stuff. I want Circles to feel like an actual space where people can move and interact, and allow people to have their own ways of expressing themselves. # What needs done I'd love to work with other programmers, artists, designers, and even you. I'd love to see pepole collaborating and contributing to Circles. Here's a rough list of the things that needs done. This list will change and evolve as the project grows. - What's the best way to make Circles decentralized? There's more that I have planned, I need to figure out a good way to show my To-Do list :D # Installation for Development All the self-hosting infrastructure is not fully setup yet. These instructions are not final and will be adjusted as new features and infrastructure are set up. If you're having any problems with any of this please create an Issue. This is a brief guide. Clone this repo by running ```bash git clone https://github.com/nfoert/circles ``` Navigate to it using and create a virtual enviroment ```bash cd circles python -m venv <name of venv> ``` Activate the venv using the command for your system and install the necessary packages (for Windows): ```bash source ./<name of venv>/Scripts/activate pip install -r requirements.txt ``` (for Mac OS): ```bash source ./<name of venv>/bin/activate pip install -r requirements.txt ``` (for Linux): ```bash source ./<name of venv>/bin/activate pip install -r requirements.txt ``` <br> Next, make and migrate your migrations, then create a superuser. Before doing this, delete the `migrations` folders from the `main` and `authentication` folders. Then run the following commands: ```bash cd circles python manage.py makemigrations main authentication python manage.py migrate python manage.py createsuperuser ``` **Note**: If you get an error when creating your superuser (`Superuser creation skipped due to not running in a TTY`) use this command instead: ```bash winpty python manage.py createsuperuser ``` Now, run the server so you can do some initial setup ```bash python manage.py runserver ``` Navigate to `http://127.0.0.1:8000/admin` in your browser. Log in using the credentials for your new super user and find the server info section. Configure the ip to be `http://127.0.0.1:8000` and the server name to be whatever you like. I recommend making the name what you're planning on your domain to be. Ensure you set the checkbox for Production to `False`. Everything *should* be working. Locally at least. If you're doing this on a production server you should either follow the steps as above again, or if you're wanting to customize your own server fork this repo and repeat the steps above with your own GitHub repo url. **Note: Set the `DJANGO_SETTINGS_MODULE` enviroment variable to `circles.production_settings` on your production server.** **Warning: The `SECRET_KEY` in `settings.py` is insecure! Ensure to change this and do any steps in `python manage.py check --deploy` when using this in production.** Additional setup may be required on specific hosting providers to be able to find things like static or media files. On my production server I also have to run `python manage.py collectstatic` to get updated static files to be served to the client correctly. # Contributing Check [CONTRIBUTING.md](CONTRIBUTING.md) for instructions on how to contribute to Circles. <!-- # Hacktoberfest Circles is proud to be a part of hacktoberfest 2023! I'd love to see some people contributing to Circles, and I'll also be contributing to other open source projects during Hacktoberfest. If you're not sure what Hacktoberfest is, It's an celebration of open source software. It teaches users the power of open source, how to use source control and how to contribute to open source projects. The internet is powered by open source, and contributing and celebrating that and the people behind it is what Hacktoberfest is all about. Circles is a very new project, and there's lots of things to be done. If you have any skills to help get some of the things on the above list finished, or just want to help clean up some code, I'd appreciate it. You can learn more about Hacktoberfest [here](https://hacktoberfest.com/). -->
Circles is an open source, decentralized social network that allows users to move and interact within physical spaces.
css,django,hacktoberfest,html,javascript,open-source,python,social-network
2023-08-20T14:48:17Z
2024-03-14T18:04:33Z
null
6
17
202
16
6
14
null
GPL-3.0
JavaScript
ClaudiaRojasSoto/React_Redux_Calculator
develop
<a name="readme-top"></a> <div align="center"> <br/> <h1><b>React_Redux_Calculator</b></h1> </div> # 📗 Table of Contents - [📗 Table of Contents](#-table-of-contents) - [📖 Markdown\_Previewer ](#-markdown_previewer-) - [🛠 Built With ](#-built-with-) - [Tech Stack ](#tech-stack-) - [Key Features ](#key-features-) - [🚀 Live Demo ](#-live-demo-) - [💻 Getting Started ](#-getting-started-) - [Project Structure](#project-structure) - [Setup](#setup) - [Install](#install) - [Usage](#usage) - [Run tests](#run-tests) - [👥 Authors ](#-authors-) - [🔭 Future Features ](#-future-features-) - [🤝 Contributing ](#-contributing-) - [⭐️ Show your support ](#️-show-your-support-) - [🙏 Acknowledgments ](#-acknowledgments-) - [📝 License ](#-license-) # 📖 React_Redux_Calculator <a name="about-project"></a> >This application is a web calculator developed in JavaScript with the use of React and Redux technologies. It allows you to perform basic mathematical operations easily and efficiently. Inspired by the JavaScript Calculator provided by FreeCodeCamp, this app gives you the chance to put your web development skills to use while creating a working calculator. ## 🛠 Built With <a name="built-with"></a> ### Tech Stack <a name="tech-stack"></a> <details> <summary>React-redux</summary> <ul> <li>This project use <a href="https://react-redux.js.org/">React</a></li> </ul> </details> <details> <summary>HTML</summary> <ul> <li>This project use <a href="https://github.com/microverseinc/curriculum-html-css/blob/main/html5.md">HTML.</a></li> </ul> </details> <details> <summary>CSS</summary> <ul> <li>The <a href="https://github.com/microverseinc/curriculum-html-css/blob/main/html5.md">CSS</a> is used to provide the design in the whole page.</li> </ul> </details> <details> <summary>Linters</summary> <ul> <li>The <a href="https://github.com/microverseinc/linters-config">Linters</a> are tools that help us to check and solve the errors in the code</li> This project count with two linters: <ul> <li>CSS</li> <li>JavaScript</li> </ul> </ul> </details> ### Key Features <a name="key-features"></a> - **SPA** - **CRA** - **Styles** - **Router** - **Logged** - **Toolkit** - **React-Redux** - **Jest & React Test Library** - **Deployment** <p align="right">(<a href="#readme-top">back to top</a>)</p> ## 🚀 Live Demo <a name="live-demo"></a> > You can see a Demo [here](https://react-redux-calculator.onrender.com). <p align="right">(<a href="#readme-top">back to top</a>)</p> ## 💻 Getting Started <a name="getting-started"></a> > To get a local copy up and running, follow these steps. > This project requires Node.js and npm installed on your machine. > -Node.js > -npm > -Clone this repository to your local machine using: > git clone https://github.com/ClaudiaRojasSoto/React_Redux_Calculator.git > -Navigate to the project folder: > cd math_magicians > -Install the project dependencies: > npm install > To start the development server, run the following command: > npm start ### Project Structure > The project follows the following folder and file structure: - `/src`: Contains the source files of the application. - `/src/index.js`: Main entry point of the JavaScript application. - `/src/App.js`: Top-level component of the application where components are rendered. - `/src/components`: Directory for React components. - `/src/components/Calculator.js`: Component for the Calculator - `/src/redux`: Directory for Redux management. - `/src/redux/store.js`: Redux store configuration. - `/src/redux/actions`: Folder for Redux actions. - `/src/redux/actions/calculatorActions.js`: Actions for Calculator management. - `/src/redux/reducers`: Folder for Redux reducers. - `/src/redux/reducers/calculatorReducer.js`: Reducer for Calculator management. - `/public`: Contains the public files and assets of the application. - `/public/index.html`: Base HTML file of the application. - `/build`: Contains the generated production files. ### Setup > Clone this repository to your desired folder: https://github.com/ClaudiaRojasSoto/React_Redux_Calculator.git ### Install > Install this project with: install Stylelint and ESLint ### Usage > To run the project, execute the following command: just need a web Browser ### Run tests > To run tests, run the following command: npm start > you just need a simple web browser to run this project for a test ## 👥 Authors <a name="authors"></a> 👤 **Claudia Rojas** - GitHub: [@githubhandle](https://github.com/ClaudiaRojasSoto) - LinkedIn: [LinkedIn](inkedin.com/in/claudia-rojas-soto) - AngelList: [AngelList](https://wellfound.com/u/claudia-rojas-2) <p align="right">(<a href="#readme-top">back to top</a>)</p> ## 🔭 Future Features <a name="future-features"></a> - **User keys - login** <p align="right">(<a href="#readme-top">back to top</a>)</p> ## 🤝 Contributing <a name="contributing"></a> > Contributions, issues, and feature requests are welcome! > Feel free to check the [issues page](https://github.com/ClaudiaRojasSoto/React_Redux_Calculator/issues). <p align="right">(<a href="#readme-top">back to top</a>)</p> ## ⭐️ Show your support <a name="support"></a> > If you like this project show support by following this account <p align="right">(<a href="#readme-top">back to top</a>)</p> <!-- ACKNOWLEDGEMENTS --> ## 🙏 Acknowledgments <a name="acknowledgements"></a> > - Microverse for providing the opportunity to learn Git and GitHub in a collaborative environment. > - GitHub Docs for providing a wealth of information on Git and GitHub. <p align="right">(<a href="#readme-top">back to top</a>)</p> <!-- LICENSE --> ## 📝 License <a name="license"></a> > This project is [MIT](MIT.md). <p align="right">(<a href="#readme-top">back to top</a>)</p>
This web calculator, built with JavaScript, React, and Redux, simplifies basic math tasks. 🧮
actions,components,hooks,javascript,provider,react,reducers,redux,state,store
2023-08-10T02:51:07Z
2023-12-29T01:17:04Z
null
1
2
20
0
0
14
null
MIT
JavaScript
jacobmarks/ten-weeks-of-plugins
main
# <img src="https://gist.githubusercontent.com/jacobmarks/eb18cc90596f7310e4dad1be2526c070/raw/e05e51be697a9501f64fe8d1b7008fc5ebe56369/fiftyone_icon.svg" width="30" height="30" alt="twilio icon"> 10 Weeks of Plugins <img src="https://gist.githubusercontent.com/jacobmarks/eb18cc90596f7310e4dad1be2526c070/raw/e05e51be697a9501f64fe8d1b7008fc5ebe56369/fiftyone_icon.svg" width="30" height="30" alt="twilio icon"> 🚀🚀🚀 Welcome to my journey of building FiftyOne Plugins for 10 weeks! 🚀🚀🚀 This repo contains a week-by-week breakdown of the FiftyOne Plugins I built from August to October 2023 ## Week 0 This section consists of plugins that I built before the 10-weeks-of-plugins journey began. Consider it an added bonus! - 🌩️ [Image Quality Issues](https://github.com/jacobmarks/image-quality-issues) [![Image Quality Issues](https://img.shields.io/github/stars/jacobmarks/image-quality-issues?style=social)](https://github.com/jacobmarks/image-quality-issues) - 📈 [Concept Interpolation](https://github.com/jacobmarks/concept-interpolation) [![Concept Interpolation](https://img.shields.io/github/stars/jacobmarks/concept-interpolation?style=social)](https://github.com/jacobmarks/concept-interpolation) ## Week 1 August 21, 2023 - 🎨 [Text-to-Image](https://github.com/jacobmarks/text-to-image) [![AI Art Gallery](https://img.shields.io/github/stars/jacobmarks/ai-art-gallery?style=social)](https://github.com/jacobmarks/ai-art-gallery) - <img src="https://gist.githubusercontent.com/jacobmarks/7f5cb43ede35691f11975ab22c03e7f1/raw/05d40289773629d465a4656db4e1d610971d2a0e/twilio_icon.svg" width="14" height="14" alt="twilio icon"> [Twilio Automation](https://github.com/jacobmarks/twilio-automation-plugin) [![Twilio Automation](https://img.shields.io/github/stars/jacobmarks/twilio-automation-plugin?style=social)](https://github.com/jacobmarks/twilio-automation-plugin) ## Week 2 August 28, 2023 - ❓[Visual Question Answering](https://github.com/jacobmarks/vqa-plugin) [![Visual Question Answering](https://img.shields.io/github/stars/jacobmarks/vqa-plugin?style=social)](https://github.com/jacobmarks/vqa-plugin) ## Week 3 September 04, 2023 - 🎥 [YouTube Video Player](https://github.com/jacobmarks/fiftyone-youtube-panel-plugin/) [![YouTube Video Player](https://img.shields.io/github/stars/jacobmarks/fiftyone-youtube-panel-plugin?style=social)](https://github.com/jacobmarks/fiftyone-youtube-panel-plugin) ## Week 4 September 11, 2023 - 🪞 [Image deduplication](https://github.com/jacobmarks/image-deduplication-plugin) [![Image deduplication](https://img.shields.io/github/stars/jacobmarks/image-deduplication-plugin?style=social)](https://github.com/jacobmarks/image-deduplication-plugin) ## Week 5 September 18, 2023 - 🔑 [Keyword Search](https://github.com/jacobmarks/keyword-search-plugin) [![Keyword Search](https://img.shields.io/github/stars/jacobmarks/keyword-search-plugin?style=social)](https://github.com/jacobmarks/keyword-search-plugin) - 👓 [Optical Character Recognition](https://github.com/jacobmarks/pytesseract-ocr-plugin) [![Optical Character Recognition](https://img.shields.io/github/stars/jacobmarks/pytesseract-ocr-plugin?style=social)](https://github.com/jacobmarks/pytesseract-ocr-plugin) ## Week 6 September 25, 2023 - 🎭 [Zero-shot prediction](https://github.com/jacobmarks/zero-shot-prediction-plugin) [![Zero-shot prediction](https://img.shields.io/github/stars/jacobmarks/zero-shot-prediction-plugin?style=social)](https://github.com/jacobmarks/zero-shot-prediction-plugin) ## Week 7 October 02, 2023 - 🏃 [Active Learning](https://github.com/jacobmarks/active-learning-plugin) [![Active Learning](https://img.shields.io/github/stars/jacobmarks/active-learning-plugin?style=social)](https://github.com/jacobmarks/active-learning-plugin) ## Week 8 October 09, 2023 - ⏪ [Reverse Image Search](https://github.com/jacobmarks/reverse-image-search-plugin) [![Reverse Image Search](https://img.shields.io/github/stars/jacobmarks/reverse-image-search-plugin?style=social)](https://github.com/jacobmarks/reverse-image-search-plugin) ## Week 9 October 16, 2023 - 🌌 [Traversing Concept Space](https://github.com/jacobmarks/concept-space-traversal-plugin) [![Traversing Concept Space](https://img.shields.io/github/stars/jacobmarks/concept-space-traversal-plugin?style=social)](https://github.com/jacobmarks/concept-space-traversal-plugin) [*Joint effort with Ibrahim Manjra*] ## Week 10 October 23, 2023 - 🔧 [Plugin Management and Creation](https://github.com/voxel51/fiftyone-plugins/tree/main/plugins/plugins) [![Plugin Management and Creation](https://img.shields.io/github/stars/voxel51/fiftyone-plugins?style=social)](https://github.com/voxel51/fiftyone-plugins/tree/main/plugins/plugins) [*Joint effort with Brian Moore*] ## ✨ Bonus Plugins - 🔊 [Audio-to-image Retrieval](https://github.com/jacobmarks/audio-retrieval-plugin) [![Audio-to-image Retrieval](https://img.shields.io/github/stars/jacobmarks/audio-retrieval-plugin?style=social)](https://github.com/jacobmarks/audio-retrieval-plugin) - 🔍 [Semantic Document Search](https://github.com/jacobmarks/semantic-document-search-plugin) [![Semantic Document Search](https://img.shields.io/github/stars/jacobmarks/semantic-document-search-plugin?style=social)](https://github.com/jacobmarks/semantic-document-search-plugin) - <img src="https://raw.githubusercontent.com/voxel51/voxelgpt/main/assets/icon-dark.svg" width="14" height="14" alt="gpt icon"> [GPT-4 Vision](https://github.com/jacobmarks/gpt4-vision-plugin) [![GPT-4 Vision](https://img.shields.io/github/stars/jacobmarks/gpt4-vision-plugin?style=social)](https://github.com/jacobmarks/gpt4-vision-plugin) - <img src="https://raw.githubusercontent.com/jacobmarks/double-band-filter-plugin/main/assets/icon.svg" width="14" height="14" alt="gpt icon"> [Double Band Filter](https://github.com/jacobmarks/double-band-filter-plugin) [![Double Band Filter](https://img.shields.io/github/stars/jacobmarks/double-band-filter-plugin?style=social)](https://github.com/jacobmarks/double-band-filter-plugin) ## 🔌💡 Additional Plugin Ideas - 🌊 Drift Detection - ❗ Outlier Detection - 🤿 Mask smoothing routines - 🎥 Semantic Video Search (Twelve Labs Integration) - 😵‍💫 Facial Blurring Thumbnails - 🗺️ GIS Integration (Pull in data from Open Street Maps) - 👤 Image Matting (with [ViTMatte](https://huggingface.co/docs/transformers/main/model_doc/vitmatte#vitmatte)) - 🚀 Getting Started Workflow - 📥 Plugin Installer - 🏷️ Label Importer - 🕸️ Directed Acyclic Graph for Data Lineage Management - 🔍 Hybrid (semantic + keyword) search **Contribute 💡 Ideas** : Feel free to submit a PR or Issue, or message me directly if you have more ideas for plugins! ## 📚 Resources - [FiftyOne Plugins Documentation](https://docs.voxel51.com/plugins/index.html) - [Python Operators API Docs](https://docs.voxel51.com/api/fiftyone.operators.types.html#module-fiftyone.operators.types) - [Typescript Operators API Docs](https://docs.voxel51.com/plugins/api/fiftyone.operators.html#fiftyone.operators) - [FiftyOne Plugins Repo](https://github.com/voxel51/fiftyone-plugins) - [Plugins Channel](https://fiftyone-users.slack.com/archives/plugins) in [![FiftyOne Community Slack](https://img.shields.io/badge/FiftyOne%20Community%20Slack-4A154B?logo=slack&logoColor=white)](https://slack.voxel51.com)
My journey during 10 weeks of building FiftyOne plugins
awesome,fiftyone,javascript,plugin,python
2023-08-16T04:09:47Z
2023-11-12T01:54:48Z
null
1
0
38
0
3
14
null
MIT
null
kylebarron/arrow-wasm
main
# arrow-wasm Building block library for using Apache Arrow in Rust WebAssembly modules.
Building block library for using Apache Arrow in Rust WebAssembly modules.
apache-arrow,javascript,rust,wasm-bindgen,webassembly
2023-08-17T22:59:58Z
2024-04-29T14:50:44Z
null
1
62
45
4
1
14
null
Apache-2.0
Rust
AndiSyarif/login-register-crud-laravel-10
main
# Andis Dev ## _Turorial Login Register CRUD Laravel 10_ ## Features - Login User - Logout User - Register User - Validate email - CRUD Laravel 10 - Validation - Sweat Alert - Datatable - Javascript Validation - FontAwesome 6 ## Required - Laravel 10 - PHP newer version - Composer - Datatable - Sweetalert - Javascript - FontAwesome 6 - Server Xampp/Laragon ## Installation Download or clone source code <br> create database laravel Install the dependencies and start the server. run composer update <br> run php artisan migrate:fresh <br> run php artisan serve <br> open link at your browser http://127.0.0.1:8000 ## Demo Link https://login-register-crud-laravel.andisdev.tech/ ## Screenshoot ![logo](https://github.com/AndiSyarif/login-register-crud-laravel-10/blob/main/public/assets/img/ss7.png) ![logo](https://github.com/AndiSyarif/login-register-crud-laravel-10/blob/main/public/assets/img/ss8.png) ![logo](https://github.com/AndiSyarif/login-register-crud-laravel-10/blob/main/public/assets/img/ss9.png) ![logo](https://github.com/AndiSyarif/login-register-crud-laravel-10/blob/main/public/assets/img/ss10.png) ![logo](https://github.com/AndiSyarif/login-register-crud-laravel-10/blob/main/public/assets/img/ss11.png) ![logo](https://github.com/AndiSyarif/login-register-crud-laravel-10/blob/main/public/assets/img/ss12.png) ![logo](https://github.com/AndiSyarif/login-register-crud-laravel-10/blob/main/public/assets/img/ss1.png) ![logo](https://github.com/AndiSyarif/login-register-crud-laravel-10/blob/main/public/assets/img/ss2.png) ![logo](https://github.com/AndiSyarif/login-register-crud-laravel-10/blob/main/public/assets/img/ss3.png) ![logo](https://github.com/AndiSyarif/login-register-crud-laravel-10/blob/main/public/assets/img/ss4.png) ![logo](https://github.com/AndiSyarif/login-register-crud-laravel-10/blob/main/public/assets/img/ss5.png) ![logo](https://github.com/AndiSyarif/login-register-crud-laravel-10/blob/main/public/assets/img/ss6.png) ## License Andis Dev **Free for learn !**
Tutorial Login Register CRUD Laravel 10
alert,crud,email,laravel,login,logout,register,tutorial,validation,php8
2023-08-25T09:04:38Z
2023-08-26T05:24:59Z
null
2
0
3
0
5
13
null
null
JavaScript
pradeeptosarkar/dotPackages
main
<!-- ## Special Instructions regarding contribution and HacktoberFest - Ensure to read the [Contribution Guide](https://github.com/pradeeptosarkar/dotPackages/blob/main/CONTRIBUTING.md) first - Contribute only when you have new feature to add or a major update to existing features. In any case raise an issue first with suitable ideas *** --> ![Banner](./public/dotPackages%20banner.png) This project is a submission to MLH Fellowship Fall Batch Orientation Hackathon by Pradeepto Sarkar (POD FALL 23.10.A member). *Do consider giving a :star: to the repository if you like the concept.!* ## Introduction 😄 Numerous developers utilize the abundant packages available within the third-party package ecosystem for their respective projects. Nevertheless, the task of handling these packages can become burdensome, exhausting, and, at its worst, expose one's project to potential attacks. I created this project with the intention of assisting developers in more effectively managing their packages, thereby facilitating smooth and secure development devoid of malware. --- ## What it does 😦 The main and fundamental objective of dotPackages is to assist you in monitoring and overseeing the NPM packages and dependencies of your Node project. dotPackages provides information about Github statistics, the most recent update date, and the connections to the Github repository and issues related to each package. Its purpose is to aid you in recognizing possible inconsistencies and security vulnerabilities that may arise from outdated packages. This will prove advantageous for not only the project's creator and maintainers but also for contributors and users involved. --- ## How I built it 😍 This application was built with: - React Js - Tailwind css - Node Js - Javascript - NPM API - GitHub API --- ## Challenges I ran into 😖 Numerous obstacles were encountered throughout the journey, with the central difficulty residing in the integration of the project's diverse endpoints, ensuring their harmonious collaboration. Apart from this the public APIs used have issues of thier own which hampered the development and debugging process multiple times. --- ## What I learnt 🤓 Regarding the technical aspects, I acquired the skill of executing chained API calls using JavaScript, which involves the intricacies of working with its renowned Promises feature. Additionally, I gained knowledge about date formatting and the conversion of date values from milliseconds after Jan 1, 1970, 0:00 UTC, to human-readable formats such as "25, Sep, 2022." Furthermore, I encountered challenges during the integration of the front-end and backend components. Striving for a minimalist and functional UI/UX, I put forth significant effort. It's worth noting the valuable assistance I found in documentation and resources from Google, related to the technologies I employed. --- ## Scope for further development 😛 The current version is able to fetch and display the most important details about the NPM packages. In the future I wish to include more functionalities such as viewing the source code in a built-in editor right in your own browser, improving aesthetics and incorporating more data analytics of the used packages. This project is open to any improvements or contributions from the community. To do so, one may raise an issue or drop an email at pradeeptosarkarmail@gmail.com. --- ## Getting Started ### Prerequisites The project needs npm installed. If you don't have it already, install it using below comamnd: ```sh npm install npm@latest -g ``` ### Installation 1. Clone the repo ```sh git clone https://github.com/pradeeptosarkar/dotpackages.git ``` 2. Install the required NPM packages ```sh npm install ``` 3. Run the project ```sh npm start ``` ### Public API endpoints I have used: * https://raw.githubusercontent.com/:username/:repo/:branch/package.json * https://api.npms.io/v2/:package/
null
github,github-api,npm,package-manager,javascript,react,tailwind-css
2023-08-30T08:21:19Z
2023-11-02T15:09:42Z
null
1
0
79
0
0
13
null
MIT
JavaScript
Freedom-Explorers/fdm-cli
main
# ☃️fdm-cli <p align="left"> <a href="https://www.npmjs.com/package/fdm-cli"> <img src="https://img.shields.io/npm/v/fdm-cli?color=f03e3e" alt="npm" /> </a> <a href="https://github.com/wangenze267/fdm-cli"> <img src="https://img.shields.io/github/stars/wangenze267/fdm-cli?color=1c7ed6" alt="star" /> </a> <a href="https://github.com/wangenze267/fdm-cli"> <img src="https://img.shields.io/npm/l/fdm-cli?color=37b24d" alt="license" /> </a> <a href="https://npm-stat.com/charts.html?package=fdm-cli"> <img src="https://img.shields.io/badge/dynamic/json?label=downloads&color=f76707&query=$.downloads&url=https://api.npmjs.org/downloads/point/last-week/fdm-cli" alt="npm-stats"> </a> </p> A freedom-cli ( 一个向往自由的脚手架 ) ## 📜 目的 提高脚手架的自由度,可以灵活的搭建自己想要的初始化项目 ## 🛻 安装 ``` npm install fdm-cli -g ``` ## 📣 如何使用 1. `fdm create` 根据模板库创建项目 2. `fdm list` 查看模板清单 3. `fdm switch <packageManager>` 切换使用的包管理器,不填则默认使用 npm 4. `fdm install <package>` 下载依赖 同 npm 5. `fdm uninstall <package>` 卸载依赖 同 npm 6. `fdm save <path>` 根据路径保存所选项目至模板库,下次可直接从模板库获取 > `fdm save -l <path>` 根据路径保存路径下所有子目录(一个子目录视为一个模板) 7. `fdm delete <templateName>` 删除模板 ## 🤝 参与贡献 欢迎你参与到 fdm-cli 项目的建设中来!🎉 通过参与 fdm-cli 项目,我们可以一起: 🔥 学习最新的 TypeScript 技术 🎁 学习如何设计和开发一款自己的脚手架 ⭐ 磨练编程技能,学习优秀的编程实践 🎊 结识一群热爱学习、热爱开源的朋友 如果你不知道从哪儿开始,可以阅读我们的 [贡献指南](https://github.com/wangenze267/fdm-cli/blob/main/Contributor.md) ## 🌠 维护者 - [Ned](https://github.com/wangenze267) - [Conard](https://github.com/Conard-Ferenc)
fdm-cli,一个致力于管理项目初始化模板的工具脚手架,让你可以灵活的搭建你的项目模板
cli,javascript,nodejs,shell,typescript
2023-08-11T05:02:47Z
2023-08-24T09:17:28Z
2023-08-24T09:17:28Z
5
16
55
1
2
13
null
MIT
JavaScript
vilgacx/aki
main
# aki ***welp, htmx is bloat***<br> **(minified ~270 B)**<br> a little hypermedia framework that is super tiny and very simple to use no bs. ## installation just copy the contents from `https://raw.githubusercontent.com/vilgacx/aki/main/index.min.js` and then use it as `aki.js` #### simplest way to install (using curl): ``` curl https://raw.githubusercontent.com/vilgacx/aki/main/index.min.js > aki.js ``` ## setup ```html <script src="<path>/aki.js"></script> ``` *(that's it)* ## how to use ? pick any element that you wanna make **aki-ed** and add two attributes: `url` (the GET url) and `fn` (the type of function on which things will implemented [for e.g.: onclick, onfocus]). ```html <h1>hello world</h1> <button url="http://.../<get-method-url>" fn="onclick">click</button> ``` ##### to response to a action, on server side the response structure should look like this: ```json { "element-selector-1": { "property-1-1": "value-1-1", "property-1-m": "value-1-m" }, "element-selector-n": { "property-n-1": "value-n-1", "property-n-i": "value-n-i" } } ``` ##### for e.g.: ```json { "h1": { "style": "color:navy;", "innerText": "you have been aki-ed" }, } ``` ![akitest.gif](./static/akitest.gif) ## LICENSE aki is released under the BSD-2-Clause License. See the [LICENSE](LICENSE) file for more information.
welp, htmx is bloat.
html,hyperscript,javascript,rest,htmx,aki
2023-09-09T22:10:18Z
2023-12-11T17:55:56Z
null
1
0
18
0
0
13
null
BSD-2-Clause
JavaScript
mehmetkahya0/rss
main
# Personal RSS Feed [![Hits](https://hits.seeyoufarm.com/api/count/incr/badge.svg?url=https%3A%2F%2Fgithub.com%2Fmehmetkahya0%2Frss&count_bg=%23D16C0E&title_bg=%23272727&icon=rss.svg&icon_color=%23E7E7E7&title=views&edge_flat=false)](https://hits.seeyoufarm.com) This project aims to create a modern news website that fetches RSS feeds from different sources and displays news articles to the users. **TRY HERE: https://mehmetkahya0.github.io/rss/** ## Project Description In this project, a dynamic news website has been built using JavaScript, HTML, and CSS. Various technologies have been used to fetch RSS feeds and display images in customized sizes. ## Features - Fetches RSS feeds from different sources (Webtekno, New York Times, OpenAI Blog, etc.). - Makes news article titles clickable, allowing users to access articles quickly. - Offers an option to not display news images when accessing the site from mobile devices. - Users can provide feedback using the integrated "Feedback" button to send emails. ## How to Use 1. Clone the project to your computer or download it as a ZIP file. 2. Open the `index.html` file in your web browser to view the news website. 3. Click on the article titles to access the corresponding news details. 4. If you access the site from a mobile device, you'll see a warning not to display news images. 5. Click on the "Feedback" button to send feedback via email. ## Technologies Used - HTML - CSS - JavaScript - [Font Awesome](https://fontawesome.com/) - Used for icons. ## Screenshots ![1](https://github.com/mehmetkahya0/rss/assets/84154488/565d8e08-0f55-433a-903f-8b4c3883e3dd) *Home Page - Desktop View" ![2](https://github.com/mehmetkahya0/rss/assets/84154488/33863c70-bb01-489e-a271-9465750a336d) *Home Page - Mobile View* ## Contribution If you would like to contribute to the project, please open a "Pull Request." For significant changes, remember to discuss them in the "Discussions" section first. ## License This project is licensed under the MIT License. For more information, please refer to the [LICENSE](LICENSE) file.
RSS News Aggregator using JavaScript, HTML, and CSS. Explore news from various sources like The Verge, New York Times, and more. Responsive design, dynamic images, and user feedback.
ai,breaking-news,chatgpt,css,html,javascript,js,news,open-source,openai
2023-08-15T20:35:01Z
2024-04-28T23:23:47Z
null
1
0
34
0
1
13
null
MIT
CSS
hashinami46/sakamichi-app-ts-cli
main
# Sakamichi App TS <div align="center"> <img src="https://img.shields.io/badge/typescript-%23007ACC.svg?style=for-the-badge&logo=typescript&logoColor=white" alt="TypeScript"> <img src="https://img.shields.io/badge/javascript-%23323330.svg?style=for-the-badge&logo=javascript&logoColor=%23F7DF1E" alt="JavaScript"> <img src="https://img.shields.io/badge/python-3670A0?style=for-the-badge&logo=python&logoColor=ffdd54" alt="Python"> <img src="https://img.shields.io/badge/shell_script-%23121011.svg?style=for-the-badge&logo=gnu-bash&logoColor=white" alt="Shell Script"> </div> ## 🌸 Support Me <div align="center"> <a href="https://www.buymeacoffee.com/hashinami"><img src="https://img.shields.io/badge/Buy%20Me%20a%20Coffee-ffdd00?style=for-the-badge&logo=buy-me-a-coffee&logoColor=black" alt="BuyMeACoffe"></a> </div> ## 🚀 Description Typescript based cli tools to download Sakamichi Series App assets such as photo, video, audio, and text. Each assets need different requirements. You will facing error if you haven't install or provide the requirements needed. ## ⚠️ Warning! Please read till the end for common usage and knowledge. \ ~~This app is only supported linux for now! I don't have any idea why it won't work on windows.~~ \ I found the bug that caused errors on windows. So, I created a separated python script to extract the assets. \ If you encounter any errors, maybe you haven't installed the requirements. \ **But I warn you, if you use WSL (Windows Subsystem for Linux), you'll facing some errors that I still don't know how to fix that.** \ Please make sure that you already successfully installed the requirements before using this app! \ This is the app bundle version. I don't wanna put the source code here. It still lacks of bugs and if you wanna help me to fix the bugs, just contact me [here](hashinami46@gmail.com). ## 📝 Requirements ### **Runtime** - Nodejs >= 18 (Suggested: 20.5.1) - Python3 >= 3.10 (Suggested: 3.10.12) ### **External Dependencies** - wget - ffmpeg - git ### **Libs** - All python3 libs in requirements.txt - PyCriCodecs ## 🛠️ Installation and Setup ### 🐇 Quick Installation **For linux user**, you can easily run `bash install.sh` for quick setup. Try install the libs manually if you facing an error.\ For downloading mobame assets, you need to setup your credentials in `.config/secrets.credentials.json`. Just fill the `refresh_token` and this app will autogenerate the `access_token`. ### 🐢 Manual Installation 1. Install Node with npm, Python3 with pip, and external dependencies such as wget, ffmpeg, and git - [git](https://git-scm.com/downloads) - [wget](https://www.gnu.org/software/wget/) - [ffmpeg](https://ffmpeg.org/download.html) - [Nodejs](https://nodejs.org/en/download) - [npm](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm) - [Python](https://www.python.org/downloads/) - [pip](https://pip.pypa.io/en/stable/installation/) 2. Install Libs - **Try executing this command to check the runtime is already installed or not.** ``` node --version npm --version # python3 for linux, python for windows python3 --version pip --version ``` - **If you don't get any errors, continue to the next step. Download the PyCriCodecs.** ``` pip install -r requirements.txt git clone https://github.com/Youjose/PyCriCodecs.git ``` - **For linux user, you should edit the setup.py in PyCriCodecs because linux doesn't support \\ to declare path. You can skip this if you using windows.** ``` # in the part "CriCodecs\\CriCodecs.cpp" # change to "CriCodecs/CriCodecs.cpp" ``` - **The last step is go to PyCriCodecs dir and execute this command in the terminal.** ``` pip install . -v ``` - **Finally you can remove PyCriCodecs dir since it's already installed in your system.** 3. Setup Credentials - **Fill the `refresh_token` for each group and the guide is finished.** ``` ... "nogitalk": { "name": "nogizaka46-talk", "email": "", "refresh_token": "", "access_token": "", "type": "mobame", "appname": "nogizaka46-mobame" }, ... ``` ## 🆕 Updating Guide **Always use the latest package update because there might be some bugs fix.** - **Using git clone** \ If you use git clone to download these assets just simply execute this command in the project root directory. It will automatically download the latest update. Just copy the code "git config --global --add blablabla" to your terminal and retry the pull command if you get error message "dubious ownership in repository". ``` git pull origin main ``` - **Download from zip** \ If you already mastering git and download the app from zip, you should download the update and extract the contents inside the zip to your old project root dir. If you got replace confirmation message, just say yes. It won't delete your catalog or downloads dir. ## 🔫 Supported Apps and Usage ### 🎮 Nogifes - **Photo Common & Movie Card Thumbnail** ``` Arguments -A Appname -S Server (1 or 2) try server 2 if server 1 maintenance -T Asset Type -f & -t 5 digit assets range index node cli.js -A nogifes -S 1 -T photo_common -f 00001 -t 00002 node cli.js -A nogifes -S 1 -T movie_card_th -f 00001 -t 00002 ``` - **Movie Card, Reward Movie, Focus Data High & Low** ``` Arguments -A Appname -S Server (1 or 2) try server 2 if server 1 maintenance -T Asset Type -f & -t 5 digit assets range index node cli.js -A nogifes -S 1 -T movie_card -f 00001 -t 00002 node cli.js -A nogifes -S 1 -T reward_movie -f 00001 -t 00002 node cli.js -A nogifes -S 1 -T focus_data_hi -f 00001 -t 00002 node cli.js -A nogifes -S 1 -T focus_data_lo -f 00001 -t 00002 ``` - **Card** ``` Arguments -A Appname -S Server (1 or 2) try server 2 if server 1 maintenance -T Asset Type -f & -t 6 digit assets range index ( latest event asset index is 008000 ) node cli.js -A nogifes -S 1 -T card -f 008000 -t 008001 ``` ### 🎮 Itsunogi - **Sprites** ``` Arguments -A Appname -T Asset Type -mid Member id. Check this using command node cli.js --cheatsheet n46 -sid Series id. I use this argument to define the event id -f & -t 3 digit assets range index node cli.js -A itsunogi -T sprites -mid 37 -sid 10 -f 001 -t 017 ``` - **Photo & Card** ``` Arguments -A Appname -T Asset Type -mid Member id. Check this using command node cli.js --cheatsheet n46 -f & -t 3 digit assets range index node cli.js -A itsunogi -T photo -mid 56 -f 001 -t 002 node cli.js -A itsunogi -T card -mid 56 -f 001 -t 002 ``` ### 🎮 Nogikoi - **Sprites** ``` Arguments -A appname -S Server (1 or 2) 1 is nogikoi mobile server and 2 is nogikoi gree server -T Asset Type -mid Member id. Check this using command node cli.js --cheatsheet n46 -f & -t 2 digit assets range index node cli.js -A nogikoi -S 1 -T sprites -mid 46 -f 07 -t 08 ``` - **Card PNG, Card JPG (with frames) & Card Background** ``` Arguments -A appname -S Server (1 or 2) 1 is nogikoi mobile server and 2 is nogikoi gree server -T Asset Type. P for pink, B for blue, G for green. -s Card Star. Should between 1-8 -f & -t 4-5 digit assets range index node cli.js -A nogikoi -S 1 -T card_p_png -s 7 -f 9999 -t 10000 node cli.js -A nogikoi -S 1 -T card_p_png_bg -s 7 -f 9999 -t 10000 node cli.js -A nogikoi -S 1 -T card_p_jpg -s 8 -f 9999 -t 10000 ``` ### 🎮 Sakukoi & Hinakoi If you wanna convert the assets directly from local, just simply copy the data from app folder in `android/data/<sakukoi or hinakoi folder>` to `.temp/<Sakukoi or Hinakoi>/<card or movie>`. \ Because of the difficult of obtaining the catalog, I decided to put the latest catalog in gdrive folder. Please download the latest only! \ [SAKUHINA_CATALOG](https://drive.google.com/drive/folders/1xR8N2A5x4vryXah5VSZAADaRf8nXVpF2) - **Card & Movie** ``` Arguments -A Appname -T Asset Type -S Asset from catalog or local. Should be local or catalog -f & -t I'm not sure how many digits since it depends on the catalog you provided. node cli.js -A sakukoi -S local -T card node cli.js -A sakukoi -S catalog -T card -f 03000 -t 04000 node cli.js -A sakukoi -S catalog -T movie -f 09470 -t 10000 node cli.js -A hinakoi -S local -T movie node cli.js -A hinakoi -S catalog -T card -f 40000 -t 56000 ``` ### 🎮 Nogifra - **Images, Movies, and Sounds** \ You should copy the assets from the games data folder to .temp. \ For example, just simply copy the `/Android/data/jp.co.gu3.delta/files/DlcAssets/android-ja/raws/movies` to `.temp/Nogifra/movies`.\ Please check the directory tree sample below. Don't perform command to download nogifes assets, because it will delete the .temp folder! ``` Arguments -A Appname -T Asset Type node cli.js -A nogifra -T images node cli.js -A nogifra -T movies node cli.js -A nogifra -T sounds ``` ### 🎮 Unison - **Images, Movies, and Sounds** \ You should prepare the catalog like Sakukoi and Hinakoi to download the assets. \ If wonder where to get the catalog, I already put it in the same folder as Sakukoi/Hinakoi. \ Some assets that you can download from this game is `scene_card`, `stamp`, `appeal_movie`, `fav_rank_cheer`, `fav_rank_movie`, `exf_member_movie`, `gacha_effect_chara`, `gacha_effect_pickup`, `gacha_movie`, `live_movie`, `profile_movie`, `chara_movie`, `chara_profile`, `smart_movie`, `movie_photo`, `bgm`, `voice`. \ [UNISON_CATALOG](https://drive.google.com/drive/folders/1xR8N2A5x4vryXah5VSZAADaRf8nXVpF2) ``` Arguments -A Appname -T Asset Type -f & -t I'm not sure how many digits since it depends on the asset type that you input. If you not sure how many digit, you can use -f 0 -t 0 to grab them all. node cli.js -A unison -T scene_card -f 0 -t 0 node cli.js -A unison -T smart_movie -f 0 -t 0 ``` ### 💌 Sakamichi Mobile Messages - **All Daily Text, Images, Videos, and Call** ``` Arguments -A Appname (nogitalk or sakutalk or hinatalk) -T Asset Type. Should be timeline or past_messages -M Membername. You can provide single membername or more -D yyyy-mm-dd formatted date. You can provide single date or two (from date and to date) --text Include text assets downloading. If you just want to extract photo, audio, and video, ignore this arguments node cli.js -A nogitalk -T timeline -M 柴田柚菜 -D 2022-06-28 node cli.js -A nogitalk -T timeline -M 柴田柚菜 -D 2022-06-28 2022-06-30 node cli.js -A sakutalk -T timeline -M 大園玲 -D 2022-06-28 2022-06-30 --text node cli.js -A hinatalk -T timeline -M 加藤史帆 潮紗理菜 -D 2022-06-28 2022-06-30 --text ``` ### 💌 Saito Asuka Mobile Messages - **All Daily Text, Images, Videos, and Call** ``` Arguments -A Appname. Should be asukatalk -T Asset Type. Should be timeline or past_messages -M Membername. Should be 齋藤飛鳥 -D yyyy-mm-dd formatted date. You can provide single date or two (from date and to date) --text Include text assets downloading. If you just want to extract photo, audio, and video, ignore this arguments node cli.js -A asukatalk -T timeline -M 齋藤飛鳥 -D 2022-06-28 node cli.js -A asukatalk -T timeline -M 齋藤飛鳥 -D 2022-06-28 2022-06-30 --text ``` ### ⚙️ Other Arguments ``` Arguments --cheatsheet Display member id table. Should be n46, s46, h46, or asuka -v, --version Show app build version node cli.js --cheatsheet n46 node cli.js -v ``` ## 🌲 Directory Structure ``` . ├── .catalog │ ├── hinakoi_catalog_223121101 │ ├── sakukoi_catalog_223120501 │ └── unison_catalog_20231116141026 ├── .config │ ├── .secrets.credentials.json │ └── member.data.json ├── .deps │ └── Downloader.py ├── .temp │ ├── Hinakoi │ │ ├── card │ │ └── movie │ └── Nogifra │ ├── images │ ├── movies │ └── sounds ├── .env └── cli.js ``` ## 📋 To do List - [ ] Create blogs downloader. ## 🪵 Changelog - 2024-01-10_2.4.1 ``` • Minor bug fix. ``` - 2023-12-22_2.4.0 ``` • Minor bug fix. • Fix Unison assets download logic. ``` - 2023-12-22_2.3.0 ``` • Minor bug fix. • Fix logic to download and extract assets from Hinakoi/Sakukoi and Unison game. ``` - 2023-12-12_2.0.0 ``` • Minor bug fix. • Separate member database to make it editable. • You can now download Uni's On Air assets as long as you have the catalog. ``` - 2023-10-05_1.5.2 ``` • Minor bug fix. • You can now download Sakukoi or Hinakoi assets manually from local or catalog. ``` - 2023-09-20_1.4.2 ``` • Mobame API minor update. • Change requirements so that Pillow can be installed on Python 3.11 ``` - 2023-09-16_1.3.2 ``` • Fix bug in windows. • Fix project root path. • Add support for decrypting Nogifra assets. Copy the game data folder to .temp folder and run the script! The images placed in bundles, sounds in sounds, and movies in movies. ``` - 2023-09-10_1.0.2 ``` • Fix Sakukoi and Hinakoi movie download logic. The app will skip downloaded movies and make it faster. • You can set custom download dir. Declare SAKAMICHI_SAVE_DIR="" in .env and fill with the custom path you want. ``` - 2023-09-07_1.0.1 ``` • Minor bug fix. ``` - 2023-09-06_1.0.0 ``` • Now working on Windows. • Separate python extraction script. • Remove ffpb. • Generate new requirements.txt. ``` ## 🐞 Known Bugs - Failed install Pillow > Please rerun the requirements installation or search Pillow version that compatible on your python version. - Node syntax missmatch > Make sure that you already installed Node v18 or above. - Python syntax missmatch > It's weird. If you already updated this app, you won't facing this errors. - Suddenly error when downloading nogifes card > It's normal. Try to rerun the command again. This error usually occurs because of your network. - Error occurred when extracting Hinakoi and Sakukoi assets. > 2 reason. You placed the wrong catalog or you have the newest catalog and you give the catalog name with the old one. For example, latest sakukoi catalog is sakukoi_catalog_223090101, but you naming it like this sakukoi_catalog_223080201 this will make you get an error because latest assets doesn't found in the old server path. - Error in Windows > Please report at issue section. ## 📑 Note * How to get `refresh_token`? > Nah. I won't tell you. Please search by yourself 🙏 * How to get hinakoi and sakukoi catalog? > Go to `android/data/<sakukoi or hinakoi game folder>/` and search here. * I already add `refresh_token` in the secrets.credentials.json file, but I still can't download the mobame assets. > Well, just create `.env` file and put this variable on it ``` CREDS_PATH=".config/.secrets.credentials.json" ``` * How to download movie in nogikoi? > Nah. Idk since the movies is securely encrypted. * Can't downloads hinakoi and sakukoi assets even if catalog already provided. > It's a bit tricky. Try to extract the catalog using zip extractor like winrar or ZArchiver, then rename the extracted catalog to something like the directory tree above. If you lucky, you won't get any errors. * How to obtain catalog? > Sorry, but that's a secret. The way is same as how to obtain the mobame credentials. Don't worry, I will try to provide the newest catalog on my drive. ## ⭐ Credits - [Colmsg](https://github.com/proshunsuke/colmsg) - [UnityPy](https://pypi.org/project/UnityPy/) - [PyCriCodecs](https://github.com/Youjose/PyCriCodecs) - And all my friends that helps me to maintain and find the issues. ## ©️ License This application is provided as open source and is offered as-is. The author is not responsible for any damages caused by this application. By using this application, users agree to assume any risks associated with its use.\ This application is provided under the MIT License. Please be aware of the following items in Article 8 (Prohibited Activities) of the App's Terms of Use: - (16) Acts of accessing or attempting to access this service by means other than those specified by the company - (17) Acts of accessing or attempting to access this service using automated methods (including crawlers and similar technologies)
Typescript based cli tools to download Sakamichi Series Apps and Games assets such as photo, video, audio, and text.
hinatazaka46,nogizaka46,sakurazaka46,hinakoi,itsunogi,nogifes,nogikoi,sakukoi,asukasaito,cli
2023-08-28T08:49:40Z
2024-01-10T13:54:51Z
null
1
0
33
4
1
13
null
null
Python
AdityaKonda6/CodSoft-WebDevelopment-Internship
main
# CodSoft-Internship I have completed tasks given for my internship as a Web Developer in CodSoft. I hope it will be helpfull for you. (Level 1) Task 1:- LANDING PAGE A landing page is an ideal web development project for beginners. It requires basic knowledge of HTML and CSS. Through this project, you'll learn to create columns, divide sections, arrange items, and add headers and footers. The most important aspect is unleashing your creativity to design an impressive page. Pay attention to alignments, padding, color palette, boxes, and other elements. Be mindful of CSS to avoid overlapping elements. In short, a landing page project allows you to apply HTML and CSS skills, encouraging your creativity while ensuring a visually appealing and user-friendly design. Task 2:- PORTFOLIO PAGE Creating a personal portfolio using CSS and HTML is a popular beginner web development project. Header Section: Add your name or a logo at the top. Optionally, include a brief introduction or tagline. About Section: Insert an image of yourself. Write a short bio highlighting your skills and experience. Skills Section: List your key skills or areas of expertise. Projects Section: Showcase samples of your work or projects. Include project titles, descriptions, and images. Resume Section: Provide a link to download your resume in PDF format. Contact Section: Include your contact information, such as email address and phone number. Footer: Add a copyright notice and any additional links or information. Task 3:- CALCULATOR To create a basic calculator using CSS, HTML, and JavaScript, you'll need to implement an interactive interface with buttons for addition, subtraction, multiplication, and division operations. The calculator should have a display screen to show user input and results. Utilize CSS grid system for button alignments. Use event listeners, if-else statements, operators, and loops to handle user input and perform calculations. This project requires some skill but can be done with basic knowledge of these technologies..
I have completed tasks given for my internship as a Web Developer in CodSoft. I hope it will be helpfull for you.
calculator,css,html,internship-task,javascript,landing-page,portfolio,portfolio-page,webdevelopment,html-css-javascript
2023-08-10T14:30:33Z
2023-08-10T15:17:52Z
null
1
1
16
0
9
13
null
null
null
sameerkali/Sameers_Portfolio
main
# Personal [Portfolio](https://indie-gems-portal.vercel.app/) <- Click Me --- ## Introduction Welcome to my cutting-edge Personal Portfolio Project! 🚀 In this project, I've harnessed the power of modern technologies to create a unique and immersive experience for showcasing my artistic endeavors. # loock's like ![screenshot of sameer's portfolio](src/assets/screenshots_for_github/desktop/showPick1L.png) --- ![screenshot of sameer's portfolio](src/assets/screenshots_for_github/desktop/showPick2L.png) --- ![screenshot of sameer's portfolio](src/assets/screenshots_for_github/desktop/showPick3L.png) --- ![screenshot of sameer's portfolio](src/assets/screenshots_for_github/desktop/showPick4L.png) ## Technologies Used - React 18 🌟: I've utilized the latest version of React to ensure a seamless and lightning-fast user experience. React's Concurrent Mode ensures smooth interactions, making navigation through my portfolio a breeze. - JavaScript API 📜: Leveraging JavaScript's capabilities, I've crafted dynamic and interactive features that engage visitors and provide a memorable browsing experience. - Open Source Contributions 🌐: I'm a strong believer in the open-source community, and I've integrated open-source libraries and tools to enhance the functionality and aesthetics of my portfolio. - Modern Email Sender ✉️: Communication is key! I've integrated a state-of-the-art email sending system that enables visitors to connect with me directly through the portfolio. It's all about making connections in the digital age. - Stylish 3D Imagery 🌌: Prepare to be amazed by my artistic pieces presented in stunning 3D imagery. Through the use of WebGL and modern CSS techniques, I've brought my artwork to life, allowing you to explore every detail with depth and realism. ## Design Philosophy My portfolio's design revolves around simplicity and elegance. The intuitive design ensures that the focus remains on my creative work. The color palette, typography, and layout are carefully chosen to reflect my unique artistic style and personality. ## Experience the Unveiling! Step into a world where art and technology unite seamlessly. Witness the extraordinary blend of dynamic emailing, stylish 3D imagery, and intuitive design, all powered by React 18. Explore my portfolio and get inspired by the possibilities that emerge when creativity meets innovation. Feel free to reach out to me via email, and let's embark on a journey of creativity and connection! 🌟✉️ --- ## Installation 1. Clone the repository: `git clone https://github.com/sameerkali/Sameers_Rsume.git` 2. Navigate to the project directory: `cd Sameers_resume` 3. Install dependencies: `npm install` ## Usage 1. Start the development server: `npm run dev` 2. Open your web browser and go to `http://localhost:5172/` 3. Use the search and sorting features to discover your favorite games. ## Contributing Contributions are welcome! If you'd like to contribute: 1. Fork the repository 2. Create a new branch: `git checkout -b feature-name` 3. Make your changes and commit them: `git commit -m 'Add new feature'` 4. Push to the branch: `git push origin feature-name` 5. Create a pull request ## License This project is licensed under the [MIT License](LICENSE). --- make with ~~lust~~ love 💖 by @sameerkali
🚀 Explore a cutting-edge Personal Portfolio Project! 🎨 Powered by React 18, it blends dynamic emailing ✉️, stylish 3D imagery 🌌, and intuitive design. Witness art and technology unite seamlessly. Unveil the extraordinary! 🌟
api,developer,email-sender,happy-hacking,happycoding,javascript,modern,opensource,react,react18
2023-08-13T15:38:27Z
2024-03-21T07:13:40Z
null
1
0
30
0
2
12
null
MPL-2.0
JavaScript
AlejandroGomezE/portfolio
main
## Getting Started First, run the development server: ```bash npm install ``` ```bash npm run dev ``` Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
My personal portfolio.
portfolio,javascript,mdx,nextjs13,typescript
2023-08-26T08:43:15Z
2023-12-22T00:10:19Z
null
1
1
53
0
2
12
null
null
TypeScript
OfekiAlm/WhatsApp-AI-Chatbot
master
null
WhatsApp AI Chatbot: Node.js-powered, AI-driven chatbot for WhatsApp interactions.
gpt,gpt-3,nodejs,whatsapp,whatsapp-bot,javascript
2023-09-08T00:46:38Z
2024-05-01T23:22:33Z
null
3
8
26
0
6
12
null
Apache-2.0
JavaScript
ClaudiaRojasSoto/Pomodoro_Clock
develop
<a name="readme-top"></a> <div align="center"> <br/> <h1><b>Pomodoro_Clock</b></h1> </div> # 📗 Table of Contents - [📗 Table of Contents](#-table-of-contents) - [📖 Pomodoro\_Clock ](#-pomodoro_clock-) - [🛠 Built With ](#-built-with-) - [Tech Stack ](#tech-stack-) - [Key Features ](#key-features-) - [🚀 Live Demo ](#-live-demo-) - [💻 Getting Started ](#-getting-started-) - [Project Structure](#project-structure) - [Setup](#setup) - [Install](#install) - [Usage](#usage) - [Run tests](#run-tests) - [👥 Authors ](#-authors-) - [🔭 Future Features ](#-future-features-) - [🤝 Contributing ](#-contributing-) - [⭐️ Show your support ](#️-show-your-support-) - [🙏 Acknowledgments ](#-acknowledgments-) - [📝 License ](#-license-) # 📖 Pomodoro_Clock <a name="about-project"></a> Pomodoro_Clock its a versatile application. Experience a highly functional clock app. Easily set session and break durations, watch an interactive countdown, and receive audio alerts. Build a unique experience using HTML, JavaScript, CSS, and React. Explore time management efficiently and effectively! ## 🛠 Built With <a name="built-with"></a> ### Tech Stack <a name="tech-stack"></a> <details> <summary>React-redux</summary> <ul> <li>This project use <a href="https://react-redux.js.org/">React</a></li> </ul> </details> <details> <summary>HTML</summary> <ul> <li>This project use <a href="https://github.com/microverseinc/curriculum-html-css/blob/main/html5.md">HTML.</a></li> </ul> </details> <details> <summary>CSS</summary> <ul> <li>The <a href="https://github.com/microverseinc/curriculum-html-css/blob/main/html5.md">CSS</a> is used to provide the design in the whole page.</li> </ul> </details> <details> <summary>Linters</summary> <ul> <li>The <a href="https://github.com/microverseinc/linters-config">Linters</a> are tools that help us to check and solve the errors in the code</li> This project count with two linters: <ul> <li>CSS</li> <li>JavaScript</li> </ul> </ul> </details> ### Key Features <a name="key-features"></a> - **SPA** - **CRA** - **Styles** - **Router** - **Logged** - **Toolkit** - **React-Redux** - **Jest & React Test Library** - **Deployment** <p align="right">(<a href="#readme-top">back to top</a>)</p> ## 🚀 Live Demo <a name="live-demo"></a> > You can see a Demo [here](https://pomodoro-clock-cnpt.onrender.com). <p align="right">(<a href="#readme-top">back to top</a>)</p> ## 💻 Getting Started <a name="getting-started"></a> > To get a local copy up and running, follow these steps. > This project requires Node.js and npm installed on your machine. > -Node.js > -npm > -Clone this repository to your local machine using: > git clone https://github.com/ClaudiaRojasSoto/Pomodoro_Clock.git > -Navigate to the project folder: > cd math_magicians > -Install the project dependencies: > npm install > To start the development server, run the following command: > npm start ### Project Structure > The project follows the following folder and file structure: - `/src`: Contains the source files of the application. - `/src/index.js`: Main entry point of the JavaScript application. - `/src/App.js`: Top-level component of the application where components are rendered. - `/src/components`: Directory for React components. - `/src/components/BreakControl.js`: Component for the Break Control. - `/src/components/Timer.css`: Styles for the app. - `/src/components/Timer.js`: Folder for the Timer. - `/src/components/SessionControl.js`: Folder for the Session Control - `/src/components/TimerControls.js`: Folder for the Timer Controls - `/src/redux`: Directory for Redux management. - `/src/redux/store.js`: Redux store configuration. - `/src/redux/actions`: Folder for Redux actions. - `/src/redux/actions/actionType.js`: Actions for action Type management. - `/src/redux/actions/breakActions.js`: Actions for break Actions management. - `/src/redux/actions/sessionActions.js`: Actions for session Actions management. - `/src/redux/actions/timerActions.js`: Actions for timerActions management. - `/src/redux/reducers`: Folder for Redux reducers. - `/src/redux/reducers/breakReducer.js`: Reducer for break management. - `/src/redux/reducers/sessionReducer.js`: Reducer for session management. - `/src/redux/reducers/timerReducer.js`: Reducer for timer management. - `/src/redux/reducers/rootReducer.js`: Reducer for root management. - `/public`: Contains the public files and assets of the application. - `/public/index.html`: Base HTML file of the application. - `/build`: Contains the generated production files. ### Setup > Clone this repository to your desired folder: https://github.com/ClaudiaRojasSoto/Pomodoro_Clock .git ### Install > Install this project with: install Stylelint and ESLint ### Usage > To run the project, execute the following command: just need a web Browser ### Run tests > To run tests, run the following command: npm start > you just need a simple web browser to run this project for a test ## 👥 Authors <a name="authors"></a> 👤 **Claudia Rojas** - GitHub: [@githubhandle](https://github.com/ClaudiaRojasSoto) - LinkedIn: [LinkedIn](inkedin.com/in/claudia-rojas-soto) - AngelList: [AngelList](https://wellfound.com/u/claudia-rojas-2) <p align="right">(<a href="#readme-top">back to top</a>)</p> ## 🔭 Future Features <a name="future-features"></a> - **User keys - login** <p align="right">(<a href="#readme-top">back to top</a>)</p> ## 🤝 Contributing <a name="contributing"></a> > Contributions, issues, and feature requests are welcome! > Feel free to check the [issues page](https://github.com/ClaudiaRojasSoto/Pomodoro_Clock/issues). <p align="right">(<a href="#readme-top">back to top</a>)</p> ## ⭐️ Show your support <a name="support"></a> > If you like this project show support by following this account <p align="right">(<a href="#readme-top">back to top</a>)</p> <!-- ACKNOWLEDGEMENTS --> ## 🙏 Acknowledgments <a name="acknowledgements"></a> > - Microverse for providing the opportunity to learn Git and GitHub in a collaborative environment. > - GitHub Docs for providing a wealth of information on Git and GitHub. <p align="right">(<a href="#readme-top">back to top</a>)</p> <!-- LICENSE --> ## 📝 License <a name="license"></a> > This project is [MIT](MIT.md). <p align="right">(<a href="#readme-top">back to top</a>)</p>
Boost productivity with timed sessions. Set customizable breaks, sessions & timer controls. Stay focused and efficient. 🍅⏰
actions,components,javascript,reactjs,reducers,redux,store
2023-08-15T21:28:42Z
2023-12-27T22:03:22Z
null
1
3
17
0
0
12
null
MIT
JavaScript
devhasibulislam/travello-template
master
Full Video on YouTube [CodeCraftMERN](https://youtu.be/lUIinWktJW8?si=LWi3QSpC0f-r-FAX) # Travello > Perfect for all kinds of travel agency. Including tours, hotel booking, activity/event, travel experiences, online booking, room bnb, villa rental, holiday rental, resort rental, cruises, car rentals, real estate, flight ticket, and more. ## Overview With its modern design and intuitive layout, the Home Page welcomes users to an exciting world of personalized booking and rental. ![Overview](./overview.jpg) ## Features ### Pages - Total **18** Pages - Home `x1` - Rent Detail `x1` - Rent Filter `x1` - Auth `x3` - Dashboard `x12` - Dashboard Main `x1` - Profile Page `x1` - Rent CRUD Page `x3` - Users CRUD Page `x3` - Review CRUD Page `x1` - Purchases page `x1` - Cart page `x1` - Favorites page `x1` ### Modals - Total `x7` Modals - Custom Checkout `x1` - Delete Rent `x1` - Delete User `x1` - All Reviews `x1` - User Cart `x1` - User Favorites `x1` - Advance Search Filter `x1` ### Core - Real-Time Interaction on `Cart`, `Favorites`, `Create`, `Read`, `Update` & `Delete` - Authentication & Role Authorization `Admin` & `User` - Advance search filter `highlight matched words & letters` - Admin & User dashboard separate panel - `Stripe` payment gateway integration - Secure Channel Bypass role base - Avatar & Gallery Preview - Fully Responsive for `Mobile`, `Tablet`, `Laptop` & `Desktop` - Intuitive and user-friendly design ## Tech Stack - Framework: `Next.Js` - State Container: `Redux Toolkit` - Styling: `Tailwind CSS` - Icons: `React Icons` - Database: `MongoDB` - ORM: `Mongoose` - Linting: `ESLint` - Formatter: `Prettier` - Backend Directory: `Serverless Server` ## Technologies | Client | Server | | ----------------------- | ------------------------- | | @reduxjs/toolkit | bcryptjs | | autoprefixer | cloudinary | | eslint | jsonwebtoken | | eslint-config-next | mongoose | | keen-slider | multer | | leaflet | multer-storage-cloudinary | | next | | postcss | | react | | react-dom | | react-hook-form | | react-icons | | react-leaflet | | react-redux | | tailwind-scrollbar-hide | | tailwindcss | # Development ## Clone Repository ```bash git clone https://github.com/devhasibulislam/travello-template.git cd travello-template yarn ``` ## Environment Setup ```bash # Base URL Path NEXT_PUBLIC_BASE_URL="NEXT_PUBLIC_BASE_URL" # JWT Credentials TOKEN_SECRET="TOKEN_SECRET" # MongoDB Credentials DB_NAME="DB_NAME" ATLAS_URI="ATLAS_URI" # Cludinary Credentials CLOUD_NAME="CLOUD_NAME" API_KEY="API_KEY" API_SECRET="API_SECRET" # Stripe Payment Credentials STRIPE_SECRET_KEY="YOUR_STRIPE_PUBLISHABLE_KEY" NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY="YOUR_STRIPE_SECRET_KEY" ``` # Access - User `stan@gmail.com` & `Stan@123` - Admin `admin@gmail.com` & `Admin@123` => `don't create any occurrence :(` # Important Links - [x] Live Link - [Click Here](https://travello-template.vercel.app) - [x] Design Link - [Click Here](https://www.figma.com/file/U0BQwI1VapmtMMTXAFgabB/Travel?node-id=151%3A91&mode=dev) # Author - Developer - [Hasibul Islam](https://www.linkedin.com/in/devhasibulislam/) - Designer - [MD Saiful Islam ](https://www.linkedin.com/in/md-saiful-islam-361959220/) `dedicate to` # `find it useful` then `buy me a coffee` 😜😜😜 <a href="https://www.buymeacoffee.com/devhasibulislam" target="_blank"> <img src="./buy-me-a-coffee.png" alt="devhasibulislam - buy me a coffee" alt="linkedin logo" style="max-widh: 100%; border-radius: 10px;" /> </a>
Perfect for all kinds of travel agency. Including tours, hotel booking, activity/event, travel experiences, online booking, room bnb, villa rental, holiday rental, resort rental, cruises, car rentals, real estate, flight ticket, and more.
javascript,nextjs,nextjs13,redux-toolkit,deploy,mvc-pattern,vercel,vercel-serverless
2023-08-15T12:37:21Z
2024-02-16T03:43:21Z
null
2
2
121
0
3
12
null
null
JavaScript
Kanav-Arora/tripzip
development
<div align="center"> <img src="documentation/Logo.png" alt="Logo" style="height: 6em;"> #### The open-source platform for those who like to travel [API Documentation](https://documenter.getpostman.com/view/16660574/2s9YR57axm) | [Guide](./SETUP_GUIDE.md) </div> <!-- <iframe width="560" height="315" src='https://dbdiagram.io/embed/650882a802bd1c4a5ecc62da'> </iframe> --> ![Trip Page](documentation/tripPage.png) ## System Architecture <div align="center"> <img src="documentation/SystemArchitecture.png" alt="System Arch" style="height: 34em;"> </div> </br> The frontend and backend are deployed on render and you can deploy the same. There are two seperate deployments with a monorepo structure with root folders as `frontend` and `backend`. ## Setup Install dependencies ```bash npm run init-setup ``` To concurrently run from the root dir, use below command ```bash npm run start ``` In the backend folder, use below command to run server ```bash npm run dev ``` In the frontend folder, use below command to run server ```bash npm run start ``` ## Server ### Request Status Codes | Status Code | Type | Description | |--------------------------|---------------|-------------------------| | `200 OK` | Success | Contains Data | | `201 Created` | Success | Data Created | | `204 No Content` | Success | No Data Sent | | `400 Invalid Inputs` | Error | Invalid Inputs | | `401 Unauthorized` | Error | Unauthorized | | `404 Not Found` | Error | Data Not Found | | `500 Internal Server Error` | Error | Internal Server Error | ### Using Postman We provide Postman collections to help you interact with our API. To get started: 1. [Download Postman](https://www.getpostman.com/downloads/) if you haven't already. 2. Visit the [Documentation](https://documenter.getpostman.com/view/16660574/2s9YR57axm) to run APIs locally or import json file from [Collection.json](/documentation/postman/postman-collection.json). 3. Configure the necessary environment variables (if applicable). 4. Start making requests! <!-- 2. Import the relevant collection JSON file from the `documentation/postman` folder. --> <!-- - [Collection 1](documentation/postman/Collection1.json) - [Collection 2](documentation/postman/Collection2.json) --> Please refer to the documentation for detailed usage instructions. ## License This project is licensed under the [GNU AFFERO GENERAL PUBLIC LICENSE Version 3](LICENSE). ## Contributing Please read [Contribution Guide](CONTRIBUTING.md) for details on our code of conduct, and the process for submitting pull requests to us.
Zip your bags and plan a trip with TripZip.
mern-stack,javascript,aws,webdevelopment
2023-08-26T17:28:28Z
2024-05-11T17:42:19Z
null
5
56
60
8
8
11
null
AGPL-3.0
JavaScript
victorpreston/alx-higher_level_programming
master
![img](https://assets.imaginablefutures.com/media/images/ALX_Logo.max-200x150.png) # Python >Not sure if C has taught me to think like a programmer or python is just really easy. <details> <summary>The Zen of Python, by Tim Peters</summary> <br> Beautiful is better than ugly.<br> Explicit is better than implicit.<br> Simple is better than complex.<br> Complex is better than complicated.<br> Flat is better than nested.<br> Sparse is better than dense.<br> Readability counts.<br> Special cases aren't special enough to break the rules.<br> Although practicality beats purity.<br> Errors should never pass silently.<br> Unless explicitly silenced.<br> In the face of ambiguity, refuse the temptation to guess.<br> There should be one-- and preferably only one --obvious way to do it.<br> Although that way may not be obvious at first unless you're Dutch.<br> Now is better than never.<br> Although never is often better than *right* now.<br> If the implementation is hard to explain, it's a bad idea.<br> If the implementation is easy to explain, it may be a good idea.<br> Namespaces are one honking great idea -- let's do more of those! </details> >I thought I had escaped [betty](https://github.com/holbertonschool/Betty), but here we have [PEP8](https://www.python.org/dev/peps/pep-0008/) <details> <summary> Install Python3, pip3 and pycodestyle</summary> - Pycodestyle is now the new standard of Python style code. <pre>$ sudo apt-get install python3 python3-pip<br>$ pip install pycodestyle</pre> - Confirm you have the right version. <pre>$ pycodestyle --version<br>$</pre> </details> ## About - This repository consists of all the .Subject projects done with [ALX Africa](https://www.alxafrica.com/) Software Engineering course in partnership with [Holberton School](https://www.holbertonschool.com/) by [Victor Preston](https://github.com/victorpreston). ## Resource - [The Python Tutorial](https://docs.python.org/3/tutorial/index.html) - [Learn to Program](https://www.youtube.com/playlist?list=PLGLfVvz_LVvTn3cK5e6LjhgGiSeVlIRwt) - [The Python Handbook](https://www.freecodecamp.org/news/the-python-handbook/) - [pycodestyle](https://pypi.org/project/pycodestyle/) --- - [0x00](./0x00-python-hello_world) : Hello, World. - [0x01](./0x01-python-if_else_loops_functions) : if/else, loops, functions. - [0x02](./0x02-python-import_modules) : import & modules. - [0x03](./0x03-python-data_structures) : Data Structures: Lists, Tuples. - [0x04](./0x04-python-more_data_structures) : More Data Structures. - [0x05](./0x05-python-exceptions) : Exceptions. - [0x06](./0x06-python-classes) : Python Classes. - [0x07](./0x07-python-test_driven_development) : Test Driven Development. - [0x08](./0x08-python-more_classes) : Python More Classes. - [0x09](./0x09-python-everything_is_object) : Python Objects. - [0x0A](./0x0A-python-inheritance) : Python Inheritance. - [0x0B](./0x0B-python-input_output) : Python Input/Output. - [0x0C](./0x0C-python-almost_a_circle) : Almost a Circle. - [0x0D](./0x0D-SQL_introduction) : SQL - Introduction. - [0x0E](./0x0E-SQL_more_queries) : SQL - More queries. - [0x0F](./0x0F-python-object_relational_mapping) : Object Relational Mapping. - [0x10](./0x10-python-network_0) : Python - Network #0. - [0x11](./0x11-python-network_1) : Python - Network #1. - [0x12](./0x12-javascript-warm_up) : JavaScript WarmUp. - [0x13](./0x13-javascript_objects_scopes_closures) : JavaScript Objects Scopes. - [0x14](./0x14-javascript-web_scraping) : Web Scrapping. - [0x15](./0x15-javascript-web_jquery) : JavaScript Web jquery.
higher level programming with C
alx,alx-africa,high-level-programming,javascript,pycodestyle,python,python3
2023-09-04T10:06:47Z
2024-04-23T19:43:13Z
null
1
0
359
0
1
11
null
null
Python
mykeTheArchAngel/MECHALABS
main
null
Mechalaboratories website
css,html,html-css-javascript,javascript,json
2023-08-15T07:59:58Z
2024-04-15T06:32:43Z
null
1
2
5
0
2
11
null
null
HTML
hareesh-r/fullstack-seminar
master
# Fullstack Seminar Project Live This project includes a React frontend client and a Node.js backend. Presentation Link: [Canva](https://www.canva.com/design/DAFsDBxWCfw/sDAytX54lp88zVoD1DrLRA/view?utm_content=DAFsDBxWCfw&utm_campaign=designshare&utm_medium=link&utm_source=publishsharelink) ## Getting Started ### 1. Clone the repository and Navigate to the Repository, Run this in a new Folder: ```bash git clone https://github.com/hareesh-r/fullstack-seminar.git cd fullstack-seminar ``` ### 2. Install frontend dependencies (You're in fullstack-seminar folder): ```bash cd client npm install ``` ### 3. Run the frontend: ```bash npm start ``` ### 4. Install backend dependencies (You're in fullstack-seminar folder): ```bash cd backend npm install ``` ### 5. Run the backend: ```bash npm start ``` ### 6. Access the app at: - Frontend: http://localhost:3000 - Backend (API): http://localhost:8800 - Postman API Collection: [Link](https://api.postman.com/collections/15702353-f2f54e22-1b3f-4ab5-aa9a-840dc74c812e?access_key=PMAT-01H891552PFWT4T7N40NNDFAQF) ### 7. Reference Links: - Open API Specification: [Link](https://swagger.io/specification/) - Error Handling best practices : [Link](https://www.baeldung.com/rest-api-error-handling-best-practices#handling) - Response Codes and Meaning: [Link](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status) ### 8. Happy coding!
Fullstack Crud Application
css,html,javascript,mysql,nodejs,react
2023-08-19T13:10:07Z
2023-08-20T11:41:59Z
null
1
0
26
0
1
11
null
null
JavaScript
bitwisegaurav/ChatWebApp
main
null
This is realtime chat web application built on html, css, js, nodejs, express and socket
css3,expressjs,html-css-javascript,html5,javascript,nodejs,socket-io
2023-08-16T20:55:58Z
2023-08-17T10:51:03Z
null
1
0
2
0
0
11
null
null
JavaScript
ovh/pulumi-ovh
main
# OVH Resource Provider The OVH Resource Provider lets you manage [OVHcloud](https://www.ovhcloud.com/en/) resources. <a href="https://github.com/ovh/pulumi-ovh/releases/latest"><img alt="GitHub release" src="https://img.shields.io/github/v/release/ovh/pulumi-ovh?logo=github&style=flat-square"></a> [![GoDoc](https://godoc.org/github.com/ovh/pulumi-ovh?status.svg)](https://pkg.go.dev/github.com/ovh/pulumi-ovh/sdk) [![NPM version](https://badge.fury.io/js/@ovhcloud%2Fpulumi-ovh.svg)](https://badge.fury.io/js/@ovhcloud%2Fpulumi-ovh) [![PyPI version](https://badge.fury.io/py/pulumi-ovh.svg)](https://badge.fury.io/py/pulumi-ovh) [![NuGet version](https://badge.fury.io/nu/Pulumi.Ovh.svg)](https://badge.fury.io/nu/Pulumi.Ovh) <a href="https://gitpod.io/#https://github.com/ovh/pulumi-ovh"><img src="https://img.shields.io/badge/Contribute%20with-Gitpod-908a85?logo=gitpod" alt="Contribute with Gitpod"/></a> ## Usage This package is available for several languages/platforms: ### Node.js (JavaScript/TypeScript) To use from JavaScript or TypeScript in Node.js, install using either `npm`: ```bash npm install @ovhcloud/pulumi-ovh ``` or `yarn`: ```bash yarn add @ovhcloud/pulumi-ovh ``` ### Python To use from Python, install using `pip`: ```bash pip install pulumi-ovh ``` ### Go To use from Go, use `go get` to grab the latest version of the library: ```bash go get github.com/ovh/pulumi-ovh/sdk/go/... ``` ### .NET To use from .NET, install using `dotnet add package`: ```bash dotnet add package Pulumi.Ovh ``` ## Configuration The following configuration points are available for the `Ovh` provider: - `ovh:endpoint` (environment: `OVH_ENDPOINT`) - the Ovh endpoint, such `ovh-eu` - `ovh:applicationKey` (environment: `OVH_APPLICATION_KEY`) - the Ovh application key - `ovh:applicationSecret` (environment: `OVH_APPLICATION_SECRET`) - the Ovh application secret - `ovh:consumerKey` (environment: `OVH_CONSUMER_KEY`) - the Ovh consumer key ## Reference For detailed reference documentation, please visit [the Pulumi registry](https://www.pulumi.com/registry/packages/ovh/api-docs/).
Pulumi provider for OVHcloud
ovh,pulumi,cloud-computing,csharp,dotnet,go,golang,iac,infrastructure-as-code,javascript
2023-08-09T14:42:09Z
2024-05-15T11:40:03Z
2024-05-15T11:40:03Z
24
149
87
14
7
11
null
NOASSERTION
Python
Ashish-simpleCoder/classic-react-hooks
main
# 🚀 classic-react-hooks #### A simple and awesome collection of `custom react hooks`. <br /> <br /> <p align="left"> <a href="https://badge.fury.io/Ashish-simpleCoder/classic-react-hooks"> <img src="https://badge.fury.io/js/classic-react-hooks.svg" alt="npm version"> </a> <img src="https://img.shields.io/badge/Licence-MIT-success" alt="MIT license." /> <a href="https://github.com/Ashish-simpleCoder/classic-react-hooks/actions/workflows/test.yml"> <img src="https://img.shields.io/github/actions/workflow/status/Ashish-simpleCoder/classic-react-hooks/test.yml?label=Test&logo=GitHub" alt="Test" /> </a> <a href="https://github.com/Ashish-simplecoder/classic-react-hooks/actions/workflows/main.yml"> <img src="https://img.shields.io/github/actions/workflow/status/Ashish-simpleCoder/classic-react-hooks/main.yml?label=CI&logo=GitHub" alt="classic-react-hooks is released under the MIT license." /> </a> </p> ## Read the Documentation https://classic-react-hooks.vercel.app/ ## Features - Comes with treeshaking - Typescript support - Small bundle size - Minimal and Easy to use ## Installation For npm users ```bash $ npm install classic-react-hooks ``` For pnpm users ```bash $ pnpm install classic-react-hooks ``` For yarn users ```bash $ yarn add classic-react-hooks ``` For bun users ```bash $ bun add classic-react-hooks ``` ## Hooks - use-event-listener - use-copy-to-clipboard - use-local-storage - use-outside-click - use-debounced-fn - use-is-online - use-timeout-effect - use-interval-effect - use-synced-ref - use-synced-effect - use-on-mount-effect - use-counter ## Contribution See [Contributing Guide](https://github.com/Ashish-simpleCoder/classic-react-hooks/blob/main/CONTRIBUTING.md).
A simple and minimalistic React-hooks collection
hacktoberfest,typescript,vitepress,open-source,react-hooks,tailwind-css,javascript,reactjs
2023-08-10T06:14:51Z
2024-05-10T12:56:45Z
null
4
34
134
0
3
11
null
MIT
TypeScript
masud-pervez/portfolio-website
master
# Masud Pervez - Protfolio This website displays my portfolio, showcasing samples of my work, projects, and achievements. It serves as a platform for potential clients and employers to learn more about my skills and experience. ## 🚀 About Me My name is Masud Pervez. I am a web developer and currently working for a software-based company called Semicolon IT Solutions. Hello! My name is Masud Pervez, and I would like to tell you a little bit about myself. I am a highly skilled web developer with several years of experience under my belt. I have always had a passion for creating and designing websites, and I feel lucky to have found a career that allows me to do what I love every day. Currently, I am working for an innovative software-based company called Semicolon IT Solutions. Here, I can use my skills to create cutting-edge websites and software applications that help to make people's lives easier and more enjoyable. I am proud to be a part of such a talented team, and I look forward to continuing to grow and develop as a web developer in the years to come. ## Installation First, install development packages: ```bash npm install ``` Then, 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. ## Authors - [@masud-perver](https://www.github.com/masud-pervez) - [@gowtamkumar](https://www.github.com/gowtamkumar)
This website showcases my portfolio, which includes samples of my work.
javascript,reactjs,aos,nextjs14,tailwindcss
2023-09-01T17:50:31Z
2024-03-30T05:11:16Z
null
2
4
57
0
1
11
null
null
JavaScript
arefimenko/dart_ffi
main
## Supported by Surf 🔥 [Здесь](https://t.me/surf_flutter) собрана вся информация о Flutter в Surf: делимся полезными материалами, анонсами мероприятий и рассказываем об актуальных вакансиях. Подписывайся на нас, чтобы ничего не упустить! ## Dart FFI examples 1. [C/C++](https://github.com/arefimenko/dart_ffi/tree/c_cpp) 2. [Java/Kotlin](https://github.com/arefimenko/dart_ffi/tree/java_kotlin) 3. [Objective-C/Swift](https://github.com/arefimenko/dart_ffi/tree/obj-c_swift) 4. [JavaScript](https://github.com/arefimenko/dart_ffi/tree/js) 5. [Flutter Plugin](https://github.com/arefimenko/dart_ffi/tree/flutter_plugin_ffi)
Dart Foreign Function Interface. Contains the following examples of FFI: JavaScript, Java, Kotlin (WIP), Objective-C, Swift, C, C++. Also with Flutter FFI Plugin
c,cpp,dart,ffi,ffi-bindings,flutter,java,javascript,kotlin,objective-c
2023-08-11T13:53:05Z
2023-09-14T13:32:03Z
null
2
0
4
0
0
11
null
null
null
qwerqy/scan-imports
main
# Import Scanner 🕵️‍♀️ The **Import Scanner** is a Node.js package designed to extract and analyze import statements from TypeScript and TypeScript JSX files. It provides a simple and efficient way to scan your codebase for import declarations, making it useful for various code analysis and refactoring tasks. ## Installation `scan-imports` does not require you to install locally to your node modules. Just run ```bash npx scan-imports@latest scan -d <directory> -i <importModule> -ext <fileExtension> ``` ## Usage | Argument | Description | Default Value | Required | | ----------------------- | ----------------------------------------------------------------------------------------------------------------------- | ------------- | -------- | | `-d` or `--directory` | The directory to scan for import statements. | - | Yes | | `-i` or `--import` | The import module to search for. | - | Yes | | `-ext` or `--extension` | The file extension to scan for. Separate by commas for multiple extensions | `.ts` | No | | `-det` or `--details` | Whether to show details of the import statements. | `false` | No | | `-a` or `--alpha` | By default results are **sorted by count**. But if you want it to sort alphabetically, add a `--alpha` flag statements. | `false` | No | | `-f` or `--format` | The format of the output. Currently only supports `json` and `csv`. Using this flag will automatically export to a file | - | No | ## Example If I run this command in the root directory of this project: ```bash npx scan-imports@latest scan -d src -i fs -ext .tsx,.ts ``` I will get the following output: ```bash Found 2 files with "fs" imports across directory /Users/aminroslan/Projects/scan-imports/src: { "default": { "fs": 2 }, "named": {} } ``` I can see that there are 2 files that import `fs` from the `src` directory. If I need more information about each import statement, I can add the `-det` or `--details` flag to the command: ```bash scan -d src -i fs -ext .tsx,.ts -det ``` This will give me the following output: ```bash Found 2 files with "fs" imports across directory /Users/aminroslan/Projects/scan-imports/src: { "default": { "fs": 2 }, "named": {} } [ { "path": "/Users/aminroslan/Projects/scan-imports/src/utils/file-contains-import.ts", "statement": "import fs from 'fs'", "hasDefault": true, "hasNamed": false, "defaultImport": "fs", "namedImports": [] }, { "path": "/Users/aminroslan/Projects/scan-imports/src/utils/scan-directories.ts", "statement": "import fs from 'fs'", "hasDefault": true, "hasNamed": false, "defaultImport": "fs", "namedImports": [] } ] ``` Now, I can see that both files import the default export from `fs`. ### Exporting to a file If `-f` or `--format` is specified, the output will be exported to a file. The output will look like this: #### CSV ```csv name, usage fs, 4 appendFileSync, 1 ``` #### JSON ```json { "fs": 4, "appendFileSync": 1 } ``` You can set `-det` or `--details` to `true` to get more details about the import statements, but the output will only be in JSON format. ## Development To execute the script locally, run: ```bash # Install dependencies yarn # Run dev script to compile TypeScript and watch for changes yarn dev # Execute the script node dist/index.js scan -d src -i fs -ext .tsx,.ts ``` ## Contributing If you have any ideas for improvements or find any bugs, please feel free to open an issue or submit a pull request. 😀 ## License This project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details. ## Todo TBD.
Node.js package designed to extract and analyze import statements from TypeScript and TypeScript JSX files. It provides a simple and efficient way to scan your codebase for import declarations, making it useful for various code analysis and refactoring tasks.
cli,imports,javascript,node,typescript
2023-08-26T15:54:01Z
2023-11-10T15:20:33Z
2023-11-10T15:20:07Z
1
9
34
1
2
11
null
MIT
TypeScript
formysister/chainlink-vrf-example
main
# Chainlink VRF Sample Hardhat Project This project demonstrates a basic chainlink vrf use case with Hardhat framework. It comes with a sample contract, a test for that contract, and a script that deploys that contract. Try running some of the following tasks: ```shell npx hardhat test REPORT_GAS=true npx hardhat test npx hardhat node npx hardhat run scripts/deploy.ts ```
Chainlink VRF Sample Hardhat Project
blockchain,chainlink,cryptocurrency,ethereum,hardhat,javascript,smart-contract,smart-contracts,solidity,typescript
2023-09-09T22:04:39Z
2023-09-25T15:59:10Z
null
2
0
2
0
2
11
null
null
TypeScript
glenncai/open-bi-platform-frontend
main
<h3 align="center">This project is ongoing🔥🔥🔥</h3> <a href="https://glenncai.com"> <picture> <source media="(prefers-color-scheme: dark)" srcset="public/assets/images/introduction-white.png"> <source media="(prefers-color-scheme: light)" srcset="public/assets/images/introduction-dark.png"> <img src="public/assets/images/introduction-white.png" alt="An open-source business intelligence platform based on microservice architecture." /> </picture> <h1 align="center">Open BI Platform</h1> </a> <p align="center"> An open-source business intelligence platform based on microservice architecture. </p> <p align="center"> <a href="#introduction"><strong>Introduction</strong></a> · <a href="#architecture"><strong>Architecture</strong></a> · <a href="#ai-analysis-workflow"><strong>AI Analysis Workflow</strong></a> · <a href="#rabbitmq-workflow"><strong>RabbitMQ Workflow</strong></a> · <a href="#open-ai"><strong>Open AI</strong></a> · <a href="#tech-stack"><strong>Tech Stack</strong></a> · <a href="#setting-up-locally"><strong>Setting Up Locally</strong></a> · <a href="#project-overview"><strong>Project Overview</strong></a> · <a href="#license"><strong>License</strong></a> </p> <br/> Check [Backend Source Code](https://github.com/glenncai/open-bi-platform-backend-microservices) 👀 Check [Python Poe Service Source Code](https://github.com/glenncai/open-bi-platform-poe-service) 👀 ## Introduction An open-source business intelligence platform based on microservice architecture. By leveraging ChatGPT technology, users only need to import raw Excel data and enter their analysis requirements. The system will then automatically generate visual charts and draw analytical conclusions, significantly reducing the cost of manual data analysis. <br /> ## Architecture <picture> <source media="(prefers-color-scheme: dark)" srcset="public/assets/images/open-bi-platform-architecture-white.png"> <source media="(prefers-color-scheme: light)" srcset="public/assets/images/open-bi-platform-architecture-dark.png"> <img src="public/assets/images/open-bi-platform-architecture-white.png" alt="Architecture" /> </picture> <br /> <br /> ## AI Analysis Workflow <picture> <source media="(prefers-color-scheme: dark)" srcset="public/assets/images/ai-analytics-workflow-white.png"> <source media="(prefers-color-scheme: light)" srcset="public/assets/images/ai-analytics-workflow-dark.png"> <img src="public/assets/images/ai-analytics-workflow-white.png" alt="AI Analysis Workflow" /> </picture> <br /> <br /> ## RabbitMQ Workflow <picture> <source media="(prefers-color-scheme: dark)" srcset="public/assets/images/rabbitmq-white.png"> <source media="(prefers-color-scheme: light)" srcset="public/assets/images/rabbitmq-dark.png"> <img src="public/assets/images/rabbitmq-white.png" alt="RabbitMQ Workflow" /> </picture> <br /> <br /> ## Open AI This project uses the ChatGPT service provided by [Poe](https://poe.com/). I created an [Open BI Platform Bot](https://poe.com/open-bi-platform) based on ChatGPT 3.5 in Poe. The user's input will be processed by the backend into `custom prompt` requirements for the Open BI Platform Bot, and the returned results include [Apache ECharts](https://echarts.apache.org/zh/index.html) `chart code` and `data conclusion`. Incredibly, with the support of custom prompts, the Open BI Platform Bot can generate result formats with up to 100% accuracy🔥. This means the chart code can be directly used by the front end, **solving the problem that different data requires different charts and backends cannot handle the pain points of all cases**. Besides, thanks to [snowby666](https://github.com/snowby666) for the open source Poe reverse engineering tool [poe-api-wrapper](https://github.com/snowby666/poe-api-wrapper). Based on this tool, I built a RESTful API for calling the Open BI Platform Bot. The API is written using Python and the Flask framework and handles multiple requests in a multi-threaded manner. If you are interested, you can check out the [open-bi-platform-poe-service](https://github.com/glenncai/open-bi-platform-poe-service) project. <br /> Open BI Platform Bot Preview: <picture> <source media="(prefers-color-scheme: dark)" srcset="public/assets/images/open-bi-platform-bot-white.png"> <source media="(prefers-color-scheme: light)" srcset="public/assets/images/open-bi-platform-bot-dark.png"> <img src="public/assets/images/open-bi-platform-bot-white.png" alt="Open BI Platform Bot Preview" /> </picture> <br /> <br /> Code snippet calling the Open BI Platform Bot service: ```java package com.glenncai.openbiplatform.aianalytics.manager; import cn.hutool.core.lang.TypeReference; import cn.hutool.json.JSONUtil; import com.glenncai.openbiplatform.aianalytics.exception.enums.AiExceptionEnum; import com.glenncai.openbiplatform.aianalytics.model.dto.ChatRequest; import com.glenncai.openbiplatform.aianalytics.model.dto.ChatResponse; import com.glenncai.openbiplatform.aianalytics.utils.HttpUtils; import com.glenncai.openbiplatform.common.common.BaseResponse; import com.glenncai.openbiplatform.common.constant.AiConstant; import com.glenncai.openbiplatform.common.exception.BusinessException; import lombok.extern.slf4j.Slf4j; import org.springframework.stereotype.Service; /** * Communicate with AI service (e.g. OpenAI, Google Bard, POE, etc.) * * @author Glenn Cai * @version 1.0 07/26/2023 */ @Service @Slf4j public class AiManager { /** * Process AI chat * * @param chatRequest chat request body, including 'message' and 'key' * @return AI response */ public String doAiChat(ChatRequest chatRequest) { String jsonStr = JSONUtil.toJsonStr(chatRequest); String result = HttpUtils.post(AiConstant.AI_API_URL, jsonStr); TypeReference<BaseResponse<ChatResponse>> typeRef = new TypeReference<>() { }; BaseResponse<ChatResponse> response = JSONUtil.toBean(result, typeRef, false); if (response == null) { throw new BusinessException(AiExceptionEnum.AI_RESPONSE_ERROR.getCode(), AiExceptionEnum.AI_RESPONSE_ERROR.getMessage()); } if (response.getCode() != 0) { throw new BusinessException(AiExceptionEnum.AI_RESPONSE_ERROR.getCode(), AiExceptionEnum.AI_RESPONSE_ERROR.getMessage()); } return response.getData().getContent(); } } ``` In the future, I will integrate this AiManager into an SDK to facilitate the use of other projects. <br /> Example of results returned by Open BI Platform Bot: <img src="public/assets/images/open-bi-platform-bot-return-result.png" alt="Example of results returned by Open BI Platform Bot" /> <br /> <br /> ## Tech Stack #### Backend * Java * Spring Boot * Spring Cloud Gateway * Spring Cloud Config * Spring Cloud Circuit Breaker * Spring Cloud Load Balancer * Spring Cloud Sleuth * Spring AOP * Spring Cache * Eureka * OpenFeign * RabbitMQ * Redis * MySQL * MyBatis-Plus * Zipkin * Docker #### Frontend * Next.js * React * TypeScript * Tailwind CSS * Apache ECharts #### Python AI service * Python * Flask * poe-api-wrapper <br /> <br /> ## Setting Up Locally #### For Microservices Backend: 1. Java 17 2. MySQL 8.0+ 3. Redis 4. RabbitMQ 5. Zipkin #### For Frontend: 1. Node.js 18.0+ 2. npm 9.0+ #### For Python AI service: 1. Python 3.9 <br /> **Zipkin** is used for distributed tracing. You can download the latest version of Zipkin from the [official website](https://zipkin.io/pages/quickstart.html). I recommend using Docker to run Zipkin. ```shell docker run -d -p 9411:9411 --name zipkin openzipkin/zipkin ``` <br /> <br /> ## Project Overview Many APIs have been implemented on the backend, while the frontend still does not call these APIs. The project is still in progress. Authentication: <img src="public/assets/images/project-overview-login.png" alt="authentication" /> <img src="public/assets/images/project-overview-register.png" alt="authentication" /> Dashboard: <img src="public/assets/images/project-overview-dashboard.png" alt="dashboard" /> <img src="public/assets/images/project-overview-dashboard-dark.png" alt="dashboard" /> AI Analytics: <img src="public/assets/images/project-overview-analytics.png" alt="AI Analytics" /> User Management: <img src="public/assets/images/project-overview-user-management.png" alt="User management" /> My Account: <img src="public/assets/images/project-overview-myaccount.png" alt="My account" /> Feedback: <img src="public/assets/images/project-overview-feedback.png" alt="Feedback" /> Showing Responsive Design: <img src="public/assets/images/project-overview-responsive.png" alt="Responsive design" /> <br /> <br /> ## License Licensed under the [Apache-2.0 license](https://github.com/glenncai/open-bi-platform-backend-microservices/blob/main/LICENSE).
An open-source business intelligence platform frontend.
apache-echarts,javascript,nextjs,react,tailwindcss,typescript
2023-09-09T05:41:19Z
2023-09-10T18:17:28Z
null
1
0
7
0
1
10
null
Apache-2.0
TypeScript
radames/tinystories-candle-wasm
main
--- title: TinyStories Candle Wasm Magic emoji: 🕯️📖 colorFrom: yellow colorTo: purple sdk: static pinned: false --- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
null
llm,machine-learning,rust,javascript,webml
2023-09-06T07:35:49Z
2023-09-27T03:54:43Z
null
1
0
15
0
2
10
null
null
JavaScript
sid-talesara/mindmelo
master
<p align="center"> <a href="https://mindmelo.com/" target="_blank"> <img src="https://i.imgur.com/9PGYJNk.png" height="250"> </a> </p> <h2 align="center">MindMelo</h3> <h3 align="center">Relaxation and Productivity Enhancement App</h3> <p align="center"> <img src="https://i.imgur.com/DNI0HDO.png" alt="MindMelo Homepage"> </p> <p align="center"> <a href="https://github.com/sid-talesara/mindmelo/issues"><img alt="GitHub issues" src="https://img.shields.io/github/issues/sid-talesara/mindmelo"></a> <a href="https://github.com/sid-talesara/mindmelo/forks"><img alt="GitHub forks" src="https://img.shields.io/github/forks/sid-talesara/mindmelo"></a> <a href="https://github.com/sid-talesara/mindmelo/stargazers"><img alt="GitHub stars" src="https://img.shields.io/github/stars/sid-talesara/mindmelo"></a> <a href="https://github.com/sid-talesara/mindmelo/blob/main/LICENSE"><img alt="GitHub license" src="https://img.shields.io/github/license/sid-talesara/mindmelo"></a> </p> ## About Us MindMelo is a web application designed to amplify relaxation and productivity. By seamlessly integrating soothing music, real-time weather updates, timers, the Pomodoro technique, and a to-do list, MindMelo cultivates an environment conducive to improved concentration and overall well-being. <p align="center"> <img src="https://i.imgur.com/JTUTorT.png" alt="MindMelo Web App"> </p> ## Features - **Relaxing Music 🎵**: Immerse yourself in a handpicked collection of open-source, calming music tracks curated to enhance relaxation and focus. - **Weather Updates ☁️**: Stay informed about current weather conditions using data from the OpenWeather API, aiding effective daily planning. - **Timer ⏱️**: Customize and set timers to effectively manage work and relaxation intervals, bolstering productivity and mental clarity. - **Pomodoro Technique ⌛**: Apply the Pomodoro technique, a time management approach, to boost work efficiency through focused work and timed breaks. - **Quotes 👻**: Stay motivated every day with inspirational quotes. - **To-Do List ✅**: Maintain task organization and stay on top of your responsibilities using the user-friendly to-do list feature. <p align="center"> <img src="https://i.imgur.com/mWZmxHX.png" alt="MindMelo To-Do List"> </p> ## Technologies Used [![Next JS](https://img.shields.io/badge/Next-black?style=for-the-badge&logo=next.js&logoColor=white)](https://nextjs.org) [![SASS](https://img.shields.io/badge/SASS-hotpink.svg?style=for-the-badge&logo=SASS&logoColor=white)](https://sass-lang.com/) [![HTML5](https://img.shields.io/badge/html5-%23E34F26.svg?style=for-the-badge&logo=html5&logoColor=white)](https://developer.mozilla.org/en-US/docs/Glossary/HTML5) [![React](https://img.shields.io/badge/react-%2320232a.svg?style=for-the-badge&logo=react&logoColor=%2361DAFB)](https://reactjs.org/) [![JavaScript](https://img.shields.io/badge/javascript-%23323330.svg?style=for-the-badge&logo=javascript&logoColor=%23F7DF1E)](https://developer.mozilla.org/en-US/docs/Web/JavaScript) ## Getting Started Follow these steps to set up and run the project on your local machine for development and testing. ### Prerequisites Make sure you have the following installed on your computer: [![NodeJS](https://img.shields.io/badge/node.js-6DA55F?style=for-the-badge&logo=node.js&logoColor=white)](https://nodejs.org/en/download/) [![Git](https://img.shields.io/badge/git-%23F05033.svg?style=for-the-badge&logo=git&logoColor=white)](https://git-scm.com/downloads) [![NPM](https://img.shields.io/badge/NPM-%23000000.svg?style=for-the-badge&logo=npm&logoColor=white)](https://www.npmjs.com/) ### Installation 1. Fork the repository. 2. Clone the repository: `git clone https://github.com/sid-talesara/mindmelo.git` 3. Navigate to the project directory: `cd mindmelo` 4. Install dependencies: `npm ci` or `npm clean-install` 5. Replace placeholder API keys in the code with your actual API keys. 6. Start the application: `npm run dev` 7. Visit [http://localhost:3000](http://localhost:3000/) in your browser to view the application. ## Contribute We welcome contributions to MindMelo. Before making a contribution, please review the [Contribution Guide](https://github.com/sid-talesara/mindmelo/blob/master/CONTRIBUTING.md). ## Issues Encountering issues with MindMelo? Check out our [GitHub Issues](https://github.com/sid-talesara/MindMelo/issues) page for known problems or to report new issues. We greatly appreciate your feedback. ## License MindMelo is released under the [MIT License](LICENSE). --- MindMelo - Relaxation and Productivity Enhancement App | Copyright © 2023 | [Sid-talesara](https://github.com/sid-talesara) </p>
MindMelo is an web application designed to enhance relaxation and productivity. With a focus on combining soothing music, weather updates, timers, a Pomodoro technique, and a to-do list, MindMelo creates a conducive environment for improved concentration and well-being.
html,javascript,music,nextjs,productivity,react,sass,webapp
2023-08-30T10:47:18Z
2023-09-06T17:30:47Z
null
1
3
8
0
1
10
null
MIT
JavaScript
Alexandrbig1/business-product
main
# Business "Product" Website <img align="right" src="https://media.giphy.com/media/du3J3cXyzhj75IOgvA/giphy.gif" width="100"/> [![GitHub last commit](https://img.shields.io/github/last-commit/Alexandrbig1/business-product)](https://github.com/Alexandrbig1/business-product/commits/main) [![GitHub license](https://img.shields.io/github/license/Alexandrbig1/business-product)](https://github.com/Alexandrbig1/business-product/blob/main/LICENSE) [![JavaScript](https://img.shields.io/badge/JavaScript-Latest-yellow.svg)](https://developer.mozilla.org/en-US/docs/Web/JavaScript) [![HTML](https://img.shields.io/badge/HTML5-<!DOCTYPE%20html>-orange)](https://developer.mozilla.org/en-US/docs/Web/HTML) [![CSS](https://img.shields.io/badge/CSS3-styles-blue)](https://developer.mozilla.org/en-US/docs/Web/CSS) [![Vite](https://img.shields.io/badge/Vite-5.0.10-green)](https://vitejs.dev/) ## Project Overview This project involves building a responsive and animated web design for the business "Product." It is a freelance project that includes HTML/CSS for responsive web design across desktops, tablets, and mobile devices, JavaScript for added functionality, and smooth scrolling to enhance user experience. The project also incorporates a sticky header, a modal window for detailed news, a hidden menu for tablets and mobiles, and a scroll-up button for convenience. ## Table of Contents - [Features](#features) - [Technologies Used](#technologies-used) - [Screenshots](#screenshots) - [Issues](#issues) - [License](#license) - [Contact](#connect-with-me) ## Features 1. **Responsive Design:** - Optimized for desktop, tablets, and mobile devices. 2. **JavaScript Functionality:** - Enhanced user experience through interactive features. 3. **Sticky Header:** - The header remains fixed when scrolling through the main page. 4. **Smooth Scrolling:** - Seamless navigation between pages and sections. 5. **Modal Window:** - Detailed news can be viewed in a modal window. 6. **Hidden Menu-Burger:** - The main menu is hidden and accessible through a menu-burger for tablets and mobiles. 7. **Figma Wireframe:** - The project wireframe was created using Figma. 8. **Scroll Up Button:** - Convenient button for scrolling back to the top of the page. ## Technologies Used - ![JavaScript](https://img.shields.io/badge/JavaScript-F7DF1E.svg?style=for-the-badge&logo=JavaScript&logoColor=black) - ![HTML](https://img.shields.io/badge/HTML5-E34F26.svg?style=for-the-badge&logo=HTML5&logoColor=white) - ![CSS](https://img.shields.io/badge/CSS3-1572B6.svg?style=for-the-badge&logo=CSS3&logoColor=white) - ![Vite](https://img.shields.io/badge/Vite-646CFF.svg?style=for-the-badge&logo=Vite&logoColor=white) ## Screenshots ![Product Page](./src/public/img/product.jpg) _Caption for Screenshot 1 (Product Home Page)_ ![Product Page](./src/public/img/product3.jpg) _Caption for Screenshot 2 (Product Home Page)_ ![Pricing Page](./src/public/img/pricing-page.jpg) _Caption for Screenshot 3 (Pricing Page)_ ![Customers Page](./src/public/img/customers-page.jpg) _Caption for Screenshot 4 (Customers Page)_ ## Issues If you encounter any issues or have suggestions, please [open an issue](https://github.com/Alexandrbig1/business-product/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. ## 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://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> </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/uzM3UNQU" 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>
Build an engaging and responsive website for the business "Product" with animated elements using HTML, CSS, and JavaScript. This freelance project includes a sticky header, smooth scrolling, a modal window for detailed news, and a hidden menu for tablets/mobiles. The design is optimized for desktop, tablets, and mobile devices
css3,frontend,html-css-javascript,html5,javascript,responsive-web-design,webdesign,webdevelopment,computerscience,freelance
2023-08-27T20:54:21Z
2023-12-30T17:40:38Z
null
1
0
23
0
0
10
null
MIT
HTML
ankitjha2603/3d-city-tour
main
null
Welcome to the 3D City with Autonomous Cars project! This project showcases an immersive virtual cityscape built using Three.js, complete with interactive camera controls and autonomous moving cars. The scene features different time modes and atmospheric lighting effects to enhance the realism.
3d-website,autonomous-vehicles,car,css3,dat-gui,gltf-loader,html5,javascript,threejs,visualization
2023-08-09T20:10:52Z
2023-11-17T17:28:58Z
null
1
0
3
0
3
10
null
null
JavaScript
bitwisegaurav/sudoku
main
null
A website to play sudoku where you can check your mistakes and see the remaining numbers to be filled with a timer.
css3,design,frontend,game,html5,javascript
2023-08-10T18:48:06Z
2023-08-11T13:13:24Z
null
1
0
2
0
1
10
null
null
JavaScript
Sidnioulz/vue-sfcmod
main
# vue-sfcmod ![Status: Experimental](https://img.shields.io/badge/status-experimental-thistle) ![GitHub last commit](https://img.shields.io/github/last-commit/Sidnioulz/vue-sfcmod/main) ![GitHub commit activity](https://img.shields.io/github/commit-activity/m/Sidnioulz/vue-sfcmod) [![Continuous Integration](https://github.com/Sidnioulz/vue-sfcmod/actions/workflows/continuous-integration.yml/badge.svg)](https://github.com/Sidnioulz/vue-sfcmod/actions/workflows/continuous-integration.yml) [![codecov](https://codecov.io/gh/Sidnioulz/vue-sfcmod/graph/badge.svg?token=4SX3N57XH3)](https://codecov.io/gh/Sidnioulz/vue-sfcmod) ![npm](https://img.shields.io/npm/v/vue-sfcmod) `vue-sfcmod` is a framework for codemodding Vue 3 Single-File Components. It aims to support `<script>` codemods for both JavaScript and TypeScript with [JSCodeshift](https://github.com/facebook/jscodeshift), `<template>` codemods with the [Vue compiler](https://github.com/vuejs/core/tree/main/packages/compiler-sfc) and `<style>` codemods with tools to be determined. This project couldn't exist without the prior work done by [vue-codemod](https://github.com/vuejs/vue-codemod). This repository started as a fork of `vue-codemod`. The decision to fork was made because: - `vue-codemod` appears to be unmaintained since 2021 - `vue-codemod` supports both Vue 2 and Vue 3 whereas this project wants a smaller maintenance surface and only supports Vue 3 - This project targets the whole of SFC files, not just JavaScript - `vue-codemod` ships and maintains transform scripts, whereas this project aims to provide a raw codemodding framework rather than pre-built codemods This project also takes inspiration from [vue-template-ast-to-template](https://github.com/CommanderXL/vue-template-ast-to-template), a Vue 2 template stringifier. `vue-sfcmod` was rewritten from scratch to target Vue 3 ASTs, however. ## Call for maintainers 🛟📣 **I'm looking for co-maintainers with expertise on the Vue.js compiler.** The lack of documentation on the compiler prevents me from fully implementing an API and stringifier for Vue codemodding. I have to reverse engineer the AST and figure out what's expected, and I run into occasional limitations that I believe are due to the compiler not being written with codemodding in mind. **I need help from someone with expertise in Vue.js internals** and with the ability to push for change within the Vue compiler ecosystem if needed. There are limitations to what vue-sfcmod can do (described below in this README) that I can't work around without changes to the compiler to directly support rewriting an AST into source code. I am also stuck with codegen nodes, as part of their execution context is handled implicitly and they can't be passed to a JS codemodding engine as is without reconstructing the context (which I don't know how to do since the context isn't documented). I can't justify the time it takes me to reverse engineer the AST to improve coverage, so I'm unlikely to keep improving the Vue API on my own. However, **I remain committed to improving the CLI to support both codemodding and static analysis** needs. ## Install ```bash yarn add -D vue-sfcmod ``` ## Command Line Usage To transform files, type the following command: ```sh yarn vue-sfcmod <path> -t <transformation> ``` - `path` (required) - files or directory to transform - `transformation` - path to a module exporting a transformation function (JS/TS only) or an object with transformation functions: - `script` key for `<script>`, `<script setup>` and JS/TS files - `template` for HTML `<template>` - `style` for CSS and `<style>` (not yet implemented) ### With preset transformation ```sh yarn vue-sfcmod <path> ``` The `-t transformation` parameter is optional. If unset, `vue-sfcmod` will launch an interactive prompt to let users select a preset transformation to run. To configure presets, create a configuration file as explained in the next section. ### With multiple files or paths ```sh yarn vue-sfcmod <path 1> <path 2> <path 3> -t <transformation> ``` You may pass as many paths as you like. Each is resolved using [globby](https://github.com/sindresorhus/globby). ### With transformation options ```sh yarn vue-sfcmod <path> -t <transformation> --custom-flag --foo=value --bar value ``` You may pass custom CLI parameters that will be passed to transformation functions. Three syntaxes are supported: - `--custom-flag` without a value is mapped to `{ customFlag: true }` - `--foo=value` is mapped to `{ foo: value }` - `--bar value` is mapped to `{ bar: value }` Custom parameter names are converted to Pascal case in the object received by transformation functions. Check out [the `params` example](https://github.com/Sidnioulz/vue-sfcmod/blob/main/examples/params) for a fully working example. ### Other flags - `vue-sfcmod --version` prints the current version - `vue-sfcmod --help` prints usage documentation --custom-opt [custom value, else customOpt will be true] [...add as many custom opts as wanted]` Any CLI option you pass apart from `--version`, `--help` and `-t` will be passed to the script, style and template transformation functions in an object. For instance, if you pass `--classes-to-add="foo bar"`, you'll receive `{ classesToAdd: 'foo bar' }` as a third argument to your transformation functions. ## Config File To pass configuration options to `vue-sfcmod`, create a `sfcmod.config.ts` file at the root of your project. Below is a sample configuration file. You can also check out the [full sample file](https://github.com/Sidnioulz/vue-sfcmod/blob/main/sfcmod.config.example.ts). ```ts import type { SfcmodConfig } from 'vue-sfcmod' const config: SfcmodConfig = { // ... } export default config ``` This project uses [cosmiconfig](https://github.com/cosmiconfig/cosmiconfig#cosmiconfig) to read configuration files. Check the documentation for a full list of supported syntaxes and file names. TypeScript usage is recommended to get IDE autocompletion and type checking. ### `presets` Array of paths to preset transformation files, that are proposed to end users in an interactive prompt when they don't pass a `-t` flag to the CLI. ```ts string | { glob: string, name: (string) => string } ``` Each item in the array can either be a glob (resolved with [globby](https://github.com/sindresorhus/globby)), or an object with a `glob` property and a `name` property. The `name` property is a function called for each file matched by the glob. It receives the path as an input, and outputs a name used in the interactive prompt. ```ts presets: [ { // In this example, we use folder names as a name in the CLI. glob: './examples/**/transformation.cjs', name: (filePath: string) => filePath .replace(/\/transformation.cjs$/, '') .split('/') .slice(-1)[0], }, ], ``` ## Programmatic API To use `vue-sfcmod` programmatically, you may import the `runTransformation` function. It runs a transformation on a single file. ```ts function runTransformation( fileInfo: { path: string source: string }, transformationModule: TransformationModule, options?: { [key: string]: unknown }, ): string ``` - `fileInfo` is the file to transform - `fileInfo.path` is used to distinguish Vue files from JS/TS files - `fileInfo.source` is the content of the file - `transformationModule` is the file containing the transformation to apply (matching the signature of the `-t` CLI option) - `options` is an arbitrary object of options passed to the transformation functions; it is optional The function returns a `string`, containing the transformed content. ## Known Limitations ### Cannot combine v-text and children Elements using the [`v-text` directive](https://vuejs.org/api/built-in-directives.html#v-text) _and_ children are not supported. The Vue compiler does not compile children of elements that use the [`v-text` directive](https://vuejs.org/api/built-in-directives.html#v-text), so we cannot provide the content of children. ### Cannot transform v-html content Content inside [`v-html` directives](https://vuejs.org/api/built-in-directives.html#v-html) is printed as is and cannot be transformed. ### Cannot preserve comments inside `transition` The built-in Vue [`transition` component](https://vuejs.org/guide/built-ins/transition.html) is returned by the Vue compiler without HTML comment children. Because the children are missing from the compiler AST, they cannot be recovered by vue-sfcmod. [Upstream issue](https://github.com/vuejs/core/issues/9047). ### String style attributes are converted to JSON When strings are passed to [`style` attributes](https://vuejs.org/guide/essentials/class-and-style.html#binding-inline-styles), it is converted to JSON (and deduplicated in the process). This is done by the Vue compiler, and attempting to undo that conversion could result in bugs in the template codemod engine. ## Roadmap ### Script - [x] Support applying `jscodeshift` codemods to `.vue` files - [x] Support for TypeScript - [x] Support `<script setup>` ### Template - [x] Support `<template>` [#15](https://github.com/Sidnioulz/vue-sfcmod/issues/15) - [x] Support passing parameters to template transformations - [ ] _ongoing_ - Add an API to search for, edit, remove and inject nodes in template ASTs - [ ] Allow interpreting and modding JS expressions inside `<template>` ### Style - [ ] Support `<style>` [#16](https://github.com/Sidnioulz/vue-sfcmod/issues/16) - [ ] Support passing parameters to style transformations - [ ] Support :global, :slotted, etc - [ ] Support PostCSS and SCSS style tags ### Project upkeep - [x] Basic testing setup and a dummy CLI - [ ] Branch test coverage above 80% - [ ] Add working examples - [ ] Add semantic-release ## Javascript/Typescript transformation See https://github.com/facebook/jscodeshift#transform-module ## Template transformation No API yet. You may manually modify the AST provided by the Vue SFC compiler. ## Post Transformation Running transformations will generally ruin the formatting of your files. A recommended way to solve that problem is by using [Prettier](https://prettier.io/) or `eslint --fix`.
Vue 3 codemod framework for SFC scripts, templates and styles
ast,codemod,html,javascript,typescript,vue,vue3
2023-08-14T18:55:27Z
2024-01-29T11:50:35Z
2023-09-12T19:29:23Z
7
85
219
12
0
10
null
MIT
TypeScript
untalbry/Devathon
main
<div align="right"> <img src="https://img.shields.io/github/stars/xVrzBx/100Days100Proyects?style=for-the-badge&logo=Github&labelColor=%23131321&color=%23f69a05"> <img src="https://img.shields.io/github/watchers/xVrzBx/100Days100Proyects?style=for-the-badge&logo=Github&labelColor=%23131321&color=%231185ff"> <img src="https://img.shields.io/badge/Contributions-Welcome-green?style=for-the-badge&logo=Github&labelColor=%23131321&color=%233db80f"> </div> <h1 align="center">💻Devathon </h1> <br> <p align="center" >En este desafío harémos un proyecto de software todos los días para mejorar nuestras habilidades técnicas como desarrolladores <strong>BACKEND</strong> y <strong>FRONTEND</strong>, lograrémos estos objetivos practicando todos los días porque la práctica hace al maestro.</p> <br> > [!IMPORTANT] > Si quieres añadir un reto a los proyectos abre un issue con el titulo del proyecto y las especificaciones del mismo > Es importante que coloques bien los requisitos para saber en que número lo colocamos > <hr> <br> ### Usaremos estas tecnologías 👇 <p > <img src="https://skillicons.dev/icons?i=java,maven,hibernate,spring,mysql,html,css,js,ts" /> </p> ## Binary Brains Club? <img align="left" width="300" src="https://github.com/xVrzBx/100Days100Proyects/assets/91161604/4a45945d-5357-4e4f-80b7-0fb4ef25dfd0" /> <p align="left"> <strong><a href="https://www.instagram.com/bbupiicsa/">Binary Brains</a> </strong>es un club de desarrollo de software que se dedica a proporcionar un entorno propicio para el crecimiento profesional de los entusiastas del desarrollo de software. Su misión abarca la creación de un ambiente seguro y respetuoso que valore a todos los miembros en su viaje de aprendizaje, ofreciendo recursos de alta calidad, capacitación y tutoría para mejorar habilidades técnicas, fomentar la innovación y promover la participación activa en eventos colaborativos. </p> <br> <p align="left"> Además, el club busca inculcar valores de integridad, ética y responsabilidad en la tecnología, inspirando a sus miembros a alcanzar metas sobresalientes en sus carreras y contribuir al avance de la tecnología, destacando el compromiso con la excelencia y el constante deseo de superar desafíos en busca de nuevos horizontes tecnológicos. </p><br> <br> <p> Usaremos este repositorio para enseñar desarrollo de software en el club <strong><a href="https://www.instagram.com/bbupiicsa/">Binary Brains</a> </strong>, se seguirá esta ruta y para practicar realizarán los proyectos. </p> <br> # Tablas de contenidos > [!TIP] > Te recomiendo que revises los <a href="https://github.com/xVrzBx/100Days100Proyects/tree/main/RESOURCES">recursos adicionales</a> para complementar los temas vistos de cada bloque <br> > También revisa nuestra <a href= "https://github.com/xVrzBx/100Days100Proyects/blob/main/MisionVisionValores.md" >misión y visión </a>, junto con nuestro <a href="https://github.com/xVrzBx/100Days100Proyects/blob/main/C%C3%B3digo%20de%20conducta%20de%20la%20comunidad%20Binary%20Brains.md">código de conducta </a> <details align="left"> <summary> <h2 id="#Fundamentos" >Fundamentos</h2></summary> <br> ### 1. Internet 🌐 ##### Objetivos: - [x] Identificar los elementos clave que constituyen la infraestructura de Internet. - [x] Explorar cómo los datos se transmiten a través de la red global. - [x] Familiarizarse con el protocolo HTTP y su importancia en la comunicación web. - [x] Explorar la diversidad de servidores web y sus características distintivas. ##### Temario: ``` 1.1 ¿Como funciona el internet? 1.2 Protocolos HTTP 1.3 Servidores 1.4 Browser 1.5 Host ``` ### 2. Git ⬆ ##### Objetivos: - [x] Comprender la importancia de un gestor de versiones: Reconocer las ventajas de utilizar un sistema de control de versiones como Git. - [x] Instalación de GIT: El alumno deberá de saber instalar git y configurarlo correctamente para su funcionamiento. - [x] Comandos básicos: El alumno debe de conocer los comandos básicos para el manejo correcto de un gestor de versiones. - [x] Trabajando en equipo: Saber trabajar en equipo con uso de ramas y PR's para poder realizar diferentes funcionalidades a la vez. ##### Temario: ``` 2.1 Gestor de versiones 2.2 Instalango GIT 2.2.1 Configuración de GIT 2.2.2 Claves SSH 2.2.3 Conectando con Github 2.2.3.1 Personalizando tu perfil de Github 2.3 Comandos básicos 2.3.1 git init 2.3.2 git status 2.3.3 git add 2.3.4 git commit 2.3.5 git log 2.3.6 git checkout 2.4 Fichero .gitignore 2.5 Trabajando con ramas 2.5.1 git checkout -b 2.5.2 git branch 2.5.3 git checkout 2.5.4 git rebase 2.5.5 git merge 2.5.6 2.6 Pull Request 2.6.1 git push 2.6.2 git pull 2.6.3 Creando una pull request ``` - 🔓 Día 0 : <a href="https://github.com/xVrzBx">Crea tu Github Readme</a> 👋 <p align="right"><a href="#top">Back to top 🔼</a></p> </details> <details> <summary><h2>Empezando con web</h2></summary><br> ### 3. HTML Básico 🏗️ ##### Objetivos: - [x] Identificar y aplicar la sintaxis básica de HTML, incluyendo etiquetas de apertura y cierre. - [x] Diferenciar entre elementos, atributos y valores en el contexto de HTML. - [x] Comprender el propósito y la aplicación de estas etiquetas en la estructura de una página web. - [x] Definir qué es el doctype y su papel en la declaración del tipo de documento. - [x] Conocer los principios fundamentales de la accesibilidad web. - [x] Comprender los conceptos básicos de SEO y su relevancia para la visibilidad en los motores de búsqueda. - [x] Organizar el contenido de la página de manera clara y efectiva para facilitar la navegación. ##### Temario: ``` 3.1 Básicos de HTML 3.1.1 ¿Qué es HTML? 3.1.2 Etiquetas básicas 3.1.3 Elementos, atributos y valores 3.1.4 ¿Qué es el DOCTYPE? 3.2 Accesibilidad 3.2.1 Importancia de la accesibilidad web 3.2.2 Atributos de accesibilidad 3.2.3 Voice browser para la accesibilidad 3.3 Encontrabilidad 3.3.1 ¿Qué es UX/UI? 3.3.2 Principios del UX/UI 3.3.3 ¿Qué es la encontrabilidad? 3.3.4 Ejemplo práctico de encontrabilidad 3.4 SEO 3.4.1 ¿Qué es el SEO? 3.4.2 ¿Cómo funciona el SEO? 3.4.3 Implementando el SEO en el HTML ``` ### 4. CSS3 Básico 🎨 ##### Objetivos: - [x] Identificar y aplicar la sintaxis básica de CSS, incluyendo reglas, propiedades y valores. - [x] Comprender cómo enlazar hojas de estilo externas e internas. - [x] Aplicar el selector universal y selectores básicos como elemento, clase e ID. - [x] Comprender cómo afectan estos selectores a los elementos en una página. - [x] Comprender el concepto del box model y sus componentes: margen, borde, relleno y contenido. - [x] Comprender los conceptos básicos de Flexbox y Grid. - [x] Utilizar Flexbox para crear diseños flexibles y alinear elementos en un contenedor. - [x] Entender las propiedades de position, como static, relative, absolute y fixed. ##### Temario: ``` 4.1 Básicos de CSS 4.1.1 ¿Qué es CSS? 4.1.2 Agregando una hoja de estilos a tu web 4.1.3 Sintaxis básica 4.2 Selectores 4.2.1 Para que sirven los selectores 4.2.2 El selector universal 4.2.3 Tipos de selectores 4.3 Box model 4.3.1 ¿Qué es el box model? 4.3.2 Elementos del box model 4.3.3 Posicionando elementos 4.4 Flex y Grid 4.4.1 ¿Qué es flex? 4.4.2 ¿Qué es Grid? 4.4.3 ¿Cuándo utilizar flex y cuando grid? 4.4.4 Centrando un div 4.5 Position 4.5.1 Propiedades 4.5.2 Absolute vs Relative 4.5.3 Centrando un div ``` ### Proyectos 💻 - 🔓 Día 1: <a href="https://github.com/xVrzBx/100Days100Proyects/tree/main/DAY1">Hola mundo!</a> 👋 - 🔓 Día 2: <a href="https://github.com/xVrzBx/100Days100Proyects/tree/main/DAY2">Tarjeta de presentación</a> 💳 ### 5. Java SE 11 ☕ #### Bloque 1 ##### Objetivos de clase: - [x] Comprender el concepto de Java y su posición en el entorno de desarrollo; Maquina virtual, compilador y lenguaje - [x] Versiones de Java: Identificar las ediciones de java, centrandoce en las diferencias entre Java SE y Java EE - [x] Conocer las versiones de JDK: Diferencias entre las versiones LTS y no LTS y comprender su impacto en el desarrollo - [x] Comprender los paquetes de Java: Familiarizarse con el concepto de paquetes en Java y su papel en la organización de código - [x] Entender como ejecutar correctamente una aplicación de Java - [x] Comprender el concepto de variables: Saber identificar que es una variable y su función en el almacenamiento de datos, saber con que tipo de datos trabaja Java por defecto y como aplicar técnicas de casting - [x] Manejar operaciones de Java: Conocer los diferentes operadores de Java y como aplicarlos a diferentes tipos de datos. ##### Temario: ``` 5.1 Java como entorno de desarrollo 5.1.1 ¿Qué es Java? 5.1.2 Java como lenguaje interpretado y compilado 5.1.3 Qué es la máquina virtual de Java 5.1.4 Ediciones de Java: Java SE y Java EE 5.1.5 versiones de JDK LTS y no LTS 5.2 Básicos de Java 5.2.1 Paquetes 5.2.2 Método Main 5.2.3 Comentarios y documentación con Javadoc 5.2.4 Variables 5.2.4.1 Tipos de datos 5.2.4.2 Constantes 5.2.4.3 Literales 5.2.4.4 Sistemas numéricos 5.2.4.5 Casting 5.2.5 Operadores 5.2.5.1 Aritméticos 5.2.5.2 Asignación 5.2.5.3 Incremento y decremento 5.2.5.4 Relacionales 5.2.5.5 Booleanos 5.2.5.6 Booleanos con valores no booleanos ``` #### Bloque 2 ##### Objetivos: - [x] Comprender que es la Programación Orientada a Objetos: Conocer los principios fundamentales de la Programación Orientada a Objetos: Clases, Objetos, Encapsulamiento, Polimorfismo. - [x] Diferenciar entre instancia y clase: Que es lo que ocurre cuando creas un objeto - [x] Saber que es el encapsulamiento: Saber como aplicar encapsulamiento y comprender su importancia del mismo. - [x] Saber como aplicar Polimorfismo: Comprender la herencia como mecanismo de POO, distinguir entre `this` y `super` y explirar la sobreescritura y sobrecarga de métodos como método de polimorfismo. ``` 5.3 Introducción a Programación orientada a objetoss 5.3.1 Que es la programación orientada a objetos 5.3.2 Clases y Objetos 5.3.3 Métodos y Atributos 5.3.4 Referencias a objetos (Instancias) 5.3.5 `this`y estándares de construcción de clases 5.3.6 Encapsulamiento 5.3.6.1 ¿Qué es encapsulamiento? 5.3.6.2 Como lograrlo 5.3.6.3 Modificadores de acceso 5.3.6.4 Métodos get 5.3.6.5 Métodos set 5.2.7 Polimorfismo 5.2.7.1 Herencia 5.2.7.2 Diferencias entre this y super 5.2.7.3 Sobre escritura de métodos 5.2.7.4 Sobre carga de métodos 5.2.7.5 Polimorfismo 5.2.7.6 Simplicidad de código gracias al polimorfismo 5.4 Interfaces gráficas básicas con JavaFX ``` #### Bloque 3 ##### Objetivos: - [x] Comprender el uso de modificadores Final y Static - [x] Saber utilizar Wrapper clases para convertir tipos primitivos en objetos y aprovechar sus métodos. - [x] Entender el concepto de excepciones y su clasificación. Sabiendo como manejar excepciones mediante bloques try, catch y finally, además de utilizar throw y throws para gestionar y lanzar excepciones. ``` 5.5 Uso de Final 5.6 Uso de Static 5.7 Wrapper Classes 5.7.1 Métodos de las Wrapper Classes 5.8 Exceptions 5.8.1 Stack Tree 5.8.2 ¿Qué es una exception? 5.8.2.1 Tipos de exception 5.8.2.2 RuntimeException 5.8.2.3 IOException 5.8.3 Como manejar exceptions 5.8.3.1 try y catch 5.8.3.2 finally 5.8.4 Como arrojar exceptions 5.8.4.1 throw 5.8.4.2 throws 5.8.5 Como crear una exception personalizada 5.8.5.1 Herencia de Throwable 5.8.6 ¿Qué es un Error? ``` #### Bloque 4 ##### Objetivos: - [x] Objetivo 1 ``` 5.9 Más sobre polimorfismo 5.9.1 Clases abstractas 5.9.2 Sobre escritura de métodos abstractos 5.9.3 Herencia múltiple 5.9.4 Interfaces 5.9.5 Interfaces vs Clases abstractas 5.9.6 Polimorfismo con interfaces y herencia ``` #### Bloque 5 ##### Objetivos: - [x] Comprender la Jerarquía de Colecciones: Familiarizarse con la jerarquía de interfaces y clases en la API Collection. Esto incluye entender la relación entre interfaces como `List` , `Set` y `Map`, y las clases que las implementan, como `ArrayList`, `HashSet` y `HashMap`. - [x] Uso de `Generics` y `WildCards`: Comprender la importancia de la utilización de `Generics` y `WildCards`. - [x] Dominar Operaciones Básicas: Aprender a realizar operaciones fundamentales en colecciones, como agregar, eliminar y buscar elementos. Se hará énfasis en la eficiencia y complejidad de estas operaciones en diferentes implementaciones. - [x] Manejar Iteradores: Adquirir habilidades para trabajar con iteradores, lo que facilitará la navegación a través de los elementos de una colección de manera segura y eficiente. - [x] Seleccionar la Implementación Adecuada: Entender las diferencias entre las implementaciones de la interfaz `Collection` y aprender a seleccionar la estructura de datos adecuada para escenarios específicos. Se pondrá especial énfasis en conocer cuándo utilizar `List`, `Set` o `Map`, dependiendo de las necesidades del problema. ``` 5.10 Collections 5.10.1 Introducción a Collections y Generics 5.10.1.1 Generics 5.10.1.1.1 Clases parametrizadas 5.10.1.1.2 Métodos parametrizados 5.10.1.1.3 Convenciones 5.10.1.2 Wildcards 5.10.2 API Collection 5.10.2.1 Métodos 5.10.2.2 List 5.10.2.2.1 ArrayList 5.10.2.2.2 Vector 5.10.2.2.2.1 Stack 5.10.2.3 Queue 5.10.2.3.1 LinkedList 5.10.2.4 Set 5.10.2.4.1 HashSet 5.10.2.4.2 TreeSet 5.10.2.4.3 LinkedHashMap 5.10.2.4.4 EnumSet 5.10.3 Lugares donde utiliza Collection 5.10.3.1 Map 5.10.3.2 HashMap 5.10.3.3 LinkedHashMap 5.10.3.4 TreeMap 5.10.3.5 EnumMap 6. Programación Funcional 6.1 Lamdas 6.2 Stream 6.2.1 Operaciones de filtrado 6.2.1.1 Mapeo 6.2.1.2 Reducción 5.2.1.3 Recolección 6.3 Metodos de Referencia ``` ### Proyectos 💻 - 🔓 Día 3: <a href="https://github.com/xVrzBx/100Days100Proyects/tree/main/DAY3/Currencyconvertor">Conversor de divisas</a> 💵 - 🔓Día 4: <a href="https://github.com/xVrzBx/100Days100Proyects/tree/main/DAY4">Conversor de Binario a Decimal</a> 📟 <p align="right"><a href="#top">Back to top 🔼</a></p> </details> <details align="left"> <summary> <h2>Sentando Bases</h2></summary> ### 7 Introducción a Java EE #### Bloque 1 ##### Objetivos: - [x] Dominar la creación y validación de formularios HTML, junto con la comprensión de los métodos de peticiones HTTP asociados (POST y GET). - [x] Entender los conceptos básicos de la arquitectura cliente-servidor. - [x] El alumno se familiarizará con un gestor de dependencias, comprendiendo su utilidad y el como trabajar correctamente con el - [x] Desarrollar habilidades integrales en el manejo de Servlets en Java, abarcando la configuración de proyectos web con Apache Tomcat, la implementación de Java Server Pages (JSP), y la gestión avanzada de sesiones, cookies, parámetros, y configuraciones de servlets, asegurando un dominio completo del ciclo de vida de un Servlet ``` 7.1 Repaso de protocolos HTTP 7.2 Formularios HTML 7.2.1 Métodos de peticiones HTTP 7.2.1.1 POST 7.2.1.2 GET 7.2.2 Etiquetas HTML 7.3 Arquitectura Cliente Servidor 7.4 Gestor de dependencias 7.4.1 Maven 7.4.1.1 Archivo pom.xml 7.4.1.2 Ciclo de vida y fases de Maven 7.4.1.3 Comandos Maven 7.4.1.4 Plugins, artefactos, dependencias, versiones y repositorios 7.5 Servlets 7.5.1 Java Server Pages 7.5.1.1 Etiquetas JSP 7.5.1.2 Etiquetas Personalizadas 7.5.2 Apache Tomcat 7.5.3 Sesiones y Cookies 7.5.4 Ciclo de vida de un Servlet 7.5.5 Configurar un proyecto web con Servlets 7.5.6 WEB.xml 7.5.6.1 Notaciones HttpServlet, HttpServletRequest y HttpServletResponse 7.5.6.1 Mapeo de Servlets 7.5.6.2 Páginas por defecto y error 7.5.6.3 Seguridad 7.5.7 Manejo de parámetros en Servlets 7.5.8 Manejo de sesiones 7.5.8.1 Crear y obtener una sesión en un Servlet. 7.5.8.2 Almacenar y recuperar datos en la sesión. 7.5.8.3 Invalidar una sesión. 7.5.9 Trabajo con cookies en Servlets: 7.5.9.1 Crear y enviar cookies desde un Servlet. 7.5.9.2 Recuperar y utilizar cookies en un Servlet. 7.5.9.3 Eliminar cookies en un Servlet. ``` - 🔓 Día 5 : <a href="https://github.com/xVrzBx/100Days100Proyects/tree/main/DAY5">Calcuadora de propinas</a> 💸 <p align="right"><a href="#top">Back to top 🔼</a></p> ### 8 CSS Avanzado #### Bloque 1 ##### Objetivos: - [x] Comprender los principios fundamentales del diseño responsivo y su importancia en la experiencia del usuario. - [x] Implementar media queries para adaptar la presentación de la interfaz de usuario a diferentes dispositivos y tamaños de pantalla. - [x] Estudiar la propiedad @keyframes para crear animaciones fluidas y personalizadas. - [x] Entender cómo optimizar el rendimiento de las animaciones y utilizar las propiedades de aceleración y desaceleración. - [x] Estudiar la importancia del rendimiento y las mejores prácticas, como la minimización y combinación de archivos CSS para reducir la carga de la página. ``` 8.1 Responsive 8.1.1 Principios del diseño responsive 8.1.2 Importancia del diseño adaptativo en la UX/UI 8.1.3 Implementación de media queries para diferentes dispositivos 8.2 Flexbox y Grid para diseños avanzados 8.2.1 Repaso de flex y grid 8.2.2 Flexbox avanzado 8.2.3 Grid Avanzado 8.2.4 Layouts avanzados 8.3 Animaciones 8.3.1 Conceptos de animaciones en CSS 8.3.2 Creación de animaciones personalizadas con @keyframes 8.3.3 Mejora de rendimiento en animaciones 8.3.4 Propiedades de aceleración y desaceleración 8.4 Temas avanzados 8.4.1 Especificidad 8.4.2 Selectores y pseudo-elementos avanzados 8.4.3 Implementación de variables en CSS 8.4.4 Temas personalizados con variables 8.4.5 Minimización de combinaciones para mayor rendimiento ``` ### 9 Javascript #### Bloque 1 ##### Objetivos: - [x] Comprender la importancia de JavaScript en el desarrollo web. - [x] Entender los conceptos de declaración de variables y su scope. - [x] Dominar la creación de llamadas de funciones. - [x] Comprender el concepto de hoisting. - [x] Comprender y explorar el concepto de ciudadanos de primera clase. - [x] Entender la creación y manipulación de objetos en JavaScript. - [x] Aplicar el operador spead operator para simplificar la manipulación de objetos. - [x] Repasar los principios básicos de la programación funcional - [x] Implementar el manejo de errores mediante try-catch. - [x] Comprender la programación asíncrona. - [x] Entender el concepto de generadores e iteradores. - [x] Comprender el manejo de eventos en el navegador. - [x] Explorar las capacidades del almacenamiento local y de sesión. - [x] Utilizar fetch y axios para realizar peticiones web. ``` 6. Javascript 6.1 ... ``` <p align="right"><a href="#top">Back to top 🔼</a></p> </details> ## Vamos allá! 💻 OK pero no voy a hacer 100 carpetas para guardar los proyectos a mano, para eso mejor hice este pequeño bash scritp: ```bash #!/bin/bash for i in {1..100} do mkdir "DAY$i" done ``` <p align="right"><a href="#top">Back to top 🔼</a></p> ## To do list ✅ <div style="text-align: center"> | # | Challenge | Status | Para portafolio | |----|-----------------------------------------------------------------|--------|-----------------| | 1 | <a href = "https://github.com/xVrzBx/HelloWord">Hello World</a>| ✅ | | | 2 | Business Card | ✅ | | | 3 | Currency Calculator | ✅ | | | 4 | Binary and Decimal Converter | ✅ | | | 5 | Tips calculator | ✅ | | | 6 | Calculator | | | | 7 | Color visualizer | | | | 8 | Password Generator | | | | 9 | Pomodoro Timer | | | | 10 | Encryptor | | | | 11 | Digital Clock | | | | 12 | Landing page | | | | 13 | Crush web <3 | | | | 14 | Catalogue | | | | 15 | To-Do List | | | | 16 | Quiz | | | | 17 | Personality test | | | | 18 | Dice simulator | | | | 19 | Rulet | | | | 20 | Tick tack toe | | | | 21 | Paper scissors rock | | | | 22 | Snake | | | | 23 | Memory | | | | 24 | Puzze | | | | 25 | Sudoku | | | | 26 | Tetris | | | | 27 | Minesweeper | | | | 28 | Battleship game | | | | 29 | Pacman | | | | 30 | Paint | | | | 31 | Chess | | | | 32 | ORM architecture | | | | 33 | API REST | | | | 34 | Notion widget | | | | 35 | Discord bot | | | | 36 | Telegram bot | | | | 37 | Guess the word | | | | 38 | Programming languages Dashboard | | | | 39 | Notes App | | | | 40 | Login system | | | | 41 | Voting System | | | | 42 | ATM System | | | | 43 | Personal Blog | | | | 44 | Browser | | | | 45 | Charity Finder | | | | 46 | Library System | | | | 47 | News web | | | | 48 | Racking movies app | | | | 49 | Real-time chat | | | | 50 | Twitter clone | | | | 51 | Pinterest Clone | | | | 52 | Kahoot | | | | 53 | Speed typing test | | | | 54 | Habit tracker | | | | 55 | Trello clone | | | | 56 | Calendar App | | | | 57 | E-commerce | | | | 58 | Travels reservations app | | | | 59 | E-learning | | | | 60 | Pokemon battle | | | | 61 | Coding Battle | | | | 62 | Portfolio | | | <div> <p align="right"><a href="#top">Back to top 🔼</a></p> ### Extra | # | Challenge | Status | Para portafolio | |----|------------------------------------------------|--------|------------------| | | Snippet | | | | | Sistema de Automatización de Mensajes | | | | | Filtro para TikTok | | | | | Minecraft Mod | | | | | Wiki "Recetas de Crafteo Minecraft" | | | | | Endless Runner | | | | | Among Us para Programadores | | | | | Extensión de Google Chrome | | | <p align="right"><a href="#top">Back to top 🔼</a></p> ### Socialmedia <p align="center"> <a href="https://www.instagram.com/bbupiicsa/"><img src="https://skillicons.dev/icons?i=instagram" /> </a> <a href="https://discord.gg/cyXd37NTbq"><img src="https://skillicons.dev/icons?i=discord" /> </a> </p>
100 days of challenge coding and doing proyects
backned,frontend,css3,html5,java11,javascript,maven,react
2023-09-11T18:27:07Z
2024-02-14T01:44:59Z
null
3
8
195
0
7
10
null
null
CSS
vsmidhun21/portfolio
master
<img alt="portfolio" width="100%" src="https://miro.medium.com/v2/resize:fit:1400/0*s7-847-cMWNrfnyH.gif"> <h1 align="center">Hi 👋, I'm MIDHUN V S</h1> <h3 align="center">A passionate Web developer from India</h3> <img align="right" alt="Coding" width="400" src="https://camo.githubusercontent.com/61491d59e71fec5c794945fed916a4a682b6c0404fc31f30b08a0d919c558404/68747470733a2f2f696d616765732e73717561726573706163652d63646e2e636f6d2f636f6e74656e742f76312f3537363966633430316236333162616231616464623261622f313534313538303631313632342d5445363451474b524a4738535741495553374e532f6b6531375a77644742546f6464493870446d34386b506f73776c7a6a53564d4d2d53784f703743563539425a772d7a505067646e346a557756634a45315a7657515578776b6d794578676c4e714770304976544a5a616d574c49327a76595748384b332d735f3479737a63703272795449304871544f6161556f68724938504936465879386339505774426c7141566c555335697a7064634958445a71445976707252715a32395077306f2f636f64696e672d667265616b2e676966"> - 🔭 I’m currently pursuing **Final Year Engineering** - 🌱 I’m currently learning **Full Stack Development** - 👨‍💻 My portfolio website [https://vsmidhun21.github.io/portfolio/](https://vsmidhun21.github.io/portfolio/) - 💬 Ask me about **Python, HTML, CSS, SQL** - 📫 How to reach me **midhun890390@gmail.com** <h3 align="left">Connect with me:</h3> <p align="left"> <a href="https://linkedin.com/in/midhun-v-s" target="blank"><img align="center" src="https://raw.githubusercontent.com/rahuldkjain/github-profile-readme-generator/master/src/images/icons/Social/linked-in-alt.svg" alt="midhun-v-s" height="30" width="40" /></a> <a href="https://instagram.com/midhun_021" target="blank"><img align="center" src="https://raw.githubusercontent.com/rahuldkjain/github-profile-readme-generator/master/src/images/icons/Social/instagram.svg" alt="midhun_021" height="30" width="40" /></a> </p> <h3 align="left">Languages and Tools:</h3> <p align="left"> <a href="https://developer.android.com" target="_blank" rel="noreferrer"> <img src="https://raw.githubusercontent.com/devicons/devicon/master/icons/android/android-original-wordmark.svg" alt="android" width="40" height="40"/> </a> <a href="https://www.arduino.cc/" target="_blank" rel="noreferrer"> <img src="https://cdn.worldvectorlogo.com/logos/arduino-1.svg" alt="arduino" width="40" height="40"/> </a> <a href="https://www.blender.org/" target="_blank" rel="noreferrer"> <img src="https://download.blender.org/branding/community/blender_community_badge_white.svg" alt="blender" width="40" height="40"/> </a> <a href="https://www.cprogramming.com/" target="_blank" rel="noreferrer"> <img src="https://raw.githubusercontent.com/devicons/devicon/master/icons/c/c-original.svg" alt="c" width="40" height="40"/> </a> <a href="https://www.w3schools.com/css/" target="_blank" rel="noreferrer"> <img src="https://raw.githubusercontent.com/devicons/devicon/master/icons/css3/css3-original-wordmark.svg" alt="css3" width="40" height="40"/> </a> <a href="https://expressjs.com" target="_blank" rel="noreferrer"> <img src="https://raw.githubusercontent.com/devicons/devicon/master/icons/express/express-original-wordmark.svg" alt="express" width="40" height="40"/> </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://firebase.google.com/" target="_blank" rel="noreferrer"> <img src="https://www.vectorlogo.zone/logos/firebase/firebase-icon.svg" alt="firebase" width="40" height="40"/> </a> <a href="https://flutter.dev" target="_blank" rel="noreferrer"> <img src="https://www.vectorlogo.zone/logos/flutterio/flutterio-icon.svg" alt="flutter" width="40" height="40"/> </a> <a href="https://www.framer.com/" target="_blank" rel="noreferrer"> <img src="https://www.vectorlogo.zone/logos/framer/framer-icon.svg" alt="framer" 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://www.w3.org/html/" target="_blank" rel="noreferrer"> <img src="https://raw.githubusercontent.com/devicons/devicon/master/icons/html5/html5-original-wordmark.svg" alt="html5" width="40" height="40"/> </a> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript" target="_blank" rel="noreferrer"> <img src="https://raw.githubusercontent.com/devicons/devicon/master/icons/javascript/javascript-original.svg" alt="javascript" width="40" height="40"/> </a> <a href="https://www.linux.org/" target="_blank" rel="noreferrer"> <img src="https://raw.githubusercontent.com/devicons/devicon/master/icons/linux/linux-original.svg" alt="linux" width="40" height="40"/> </a> <a href="https://www.mathworks.com/" target="_blank" rel="noreferrer"> <img src="https://upload.wikimedia.org/wikipedia/commons/2/21/Matlab_Logo.png" alt="matlab" width="40" height="40"/> </a> <a href="https://www.mongodb.com/" target="_blank" rel="noreferrer"> <img src="https://raw.githubusercontent.com/devicons/devicon/master/icons/mongodb/mongodb-original-wordmark.svg" alt="mongodb" width="40" height="40"/> </a> <a href="https://nodejs.org" target="_blank" rel="noreferrer"> <img src="https://raw.githubusercontent.com/devicons/devicon/master/icons/nodejs/nodejs-original-wordmark.svg" alt="nodejs" width="40" height="40"/> </a> <a href="https://opencv.org/" target="_blank" rel="noreferrer"> <img src="https://www.vectorlogo.zone/logos/opencv/opencv-icon.svg" alt="opencv" width="40" height="40"/> </a> <a href="https://www.postgresql.org" target="_blank" rel="noreferrer"> <img src="https://raw.githubusercontent.com/devicons/devicon/master/icons/postgresql/postgresql-original-wordmark.svg" alt="postgresql" width="40" height="40"/> </a> <a href="https://www.python.org" target="_blank" rel="noreferrer"> <img src="https://raw.githubusercontent.com/devicons/devicon/master/icons/python/python-original.svg" alt="python" width="40" height="40"/> </a> <a href="https://www.qt.io/" target="_blank" rel="noreferrer"> <img src="https://upload.wikimedia.org/wikipedia/commons/0/0b/Qt_logo_2016.svg" alt="qt" width="40" height="40"/> </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.tensorflow.org" target="_blank" rel="noreferrer"> <img src="https://www.vectorlogo.zone/logos/tensorflow/tensorflow-icon.svg" alt="tensorflow" width="40" height="40"/> </a> </p> <p><img align="center" src="https://github-readme-stats.vercel.app/api/top-langs?username=vsmidhun21&show_icons=true&locale=en&layout=compact" alt="vsmidhun21" /></p>
Welcome to my portfolio website, where I invite you to explore a curated collection of my work and learn more about my skills, experiences, and creative journey. This digital showcase serves as a window into my world, highlighting my professional accomplishments and personal projects.
css3,github-pages,html5,javascript
2023-08-20T10:19:10Z
2024-02-05T13:30:21Z
null
1
0
51
0
5
10
null
GPL-3.0
CSS
sameerkali/Forecastify
main
# Forecastify Forecastify is your ultimate weather companion built with React and TypeScript. It provides precise forecasts, interactive maps, and real-time updates to keep you informed about the weather conditions that matter most to you. ![App_screenshot](public/images/app.png) ## Features - Accurate weather forecasts - Interactive maps - Real-time updates ## Technologies Used - React - TypeScript ## Topics - React - JavaScript - Open-source development - TypeScript - UI design - Weather API - Weather forecasting - Weather app - Happy coding - React 18 Feel free to explore the repository and contribute to make weather tracking a seamless experience! ## Contributing Contributions are welcome! If you'd like to contribute: 1. Fork the repository 2. Create a new branch: `git checkout -b feature-name` 3. Make your changes and commit them: `git commit -m 'Add new feature'` 4. Push to the branch: `git push origin feature-name` 5. Create a pull request ## License This project is licensed under the [MIT License](LICENSE). --- make with ~~lust~~ love 💖 by @sameerkali
Forecastify: React with TypeScript is your ultimate weather companion. Stay ahead of the elements with precise forecasts, interactive maps, and real-time updates. Seamlessly crafted using React and TypeScript, it offers a smooth user experience that keeps you informed about the weather conditions that matter most to you.
development,happycoding,javascript,open-source,react,react18,typescript,ui,weather-api,weather-app
2023-08-09T15:47:18Z
2023-08-10T16:11:41Z
null
1
0
6
0
0
10
null
null
TypeScript
Raboro/Obsidian-Birthday-Tracker-Plugin
master
# Obsidian-Birthday-Tracker-Plugin [![Latest Release](https://img.shields.io/github/v/release/Raboro/Obsidian-Birthday-Tracker-Plugin?include_prereleases&sort=semver&style=for-the-badge)](https://github.com/Raboro/Obsidian-Birthday-Tracker-Plugin/releases/latest) [![Total Downloads](https://img.shields.io/github/downloads/Raboro/Obsidian-Birthday-Tracker-Plugin/total?style=for-the-badge)](https://github.com/Raboro/Obsidian-Birthday-Tracker-Plugin/releases/latest) [![Linter Workflow Status](https://img.shields.io/github/actions/workflow/status/Raboro/Obsidian-Birthday-Tracker-Plugin/linter.yml?branch=master&logo=github&style=for-the-badge)](https://github.com/Raboro/Obsidian-Birthday-Tracker-Plugin/actions/workflows/linter.yml) [![Release Workflow Status](https://img.shields.io/github/actions/workflow/status/Raboro/Obsidian-Birthday-Tracker-Plugin/release.yml?branch=master&logo=github&style=for-the-badge)](https://github.com/Raboro/Obsidian-Birthday-Tracker-Plugin/actions/workflows/release.yml) This plugin allows you to keep track of all birthdays of your family and friends. ![Demo image](assets/demoPlugin.png) ## Using You need a file containing all the birthday data. To find this file you need to add the location in the settings. After that you can add your persons with: ``name=<name of the person>; birthday=<date of their birth>`` \ For example: ``name=Peter Rudolf; birthday=17/08/2033``. You need the add all those persons line after line: ``` name=Peter Rudolf; birthday=17/08/2033 name=Hans Ap; birthday=01/05/2004 name=Mats Mattis; birthday=21/03/1999 ``` After that you can click on the ribbon icon or use the command to trigger the plugin. \ You will receive a notice for all persons who have birthday today and get in a separate view an overview over all persons sorted by their next birthday. ### Year View You can also use the **Year View** to get an overview over all birthdays. You can also click on the names to get more infomation of this person. ![image](https://github.com/Raboro/Obsidian-Birthday-Tracker-Plugin/assets/88288557/9b2a1915-3e2a-42e7-ba94-e6140b484ff4) ## Settings You can set a date formatting. The default is: ``DD/MM/YYYY``. This is needed to collect your dates and display them. Also you can set the location of the file containing the birthday data. This must include `.md` as postfix. The default value is: `birthdayNode.md` ![Demo settings](assets/demoSettings.png)
Obsidian plugin to keep track of all birthdays of your family and friends.
ci,css,javascript,linter,obsidian-md,obsidian-plugin,typescript
2023-08-18T18:33:38Z
2024-04-03T08:56:38Z
2024-04-03T08:57:07Z
1
2
126
5
0
10
null
MIT
TypeScript
najibullahjafari/My-crypto
dev
<a name="readme-top"></a> <div align="center"> <br/> My Crypto </div> # 📗 Table of Contents - [📖 About the Project](#about-project) - [🛠 Built With](#built-with) - [Tech Stack](#tech-stack) - [Key Features](#key-features) - [🚀 Live Demo](#live-demo) - [💻 Getting Started](#getting-started) - [Setup](#setup) - [Prerequisites](#prerequisites) - [Install](#install) - [Usage](#usage) - [Run tests](#run-tests) - [Deployment](#deployment) - [👥 Authors](#authors) - [🔭 Future Features](#future-features) - [🤝 Contributing](#contributing) - [⭐️ Show your support](#support) - [🙏 Acknowledgements](#acknowledgements) - [📝 License](#license) # 📖 My Crypto <a name="about-project"></a> My Crypto is a responsive web app that show the current price of most popular crypto currencies, I used React & Redux, CSS3 and API to build this Web App. HERE THE DESKTOP VERSION: ![image](https://github.com/najibullahjafari/My-crypto/assets/121656832/71b27625-9c14-4261-aa33-4c216d412df8) HERE THE MOBILE VERSION: ![image](https://github.com/najibullahjafari/My-crypto/assets/121656832/fceda17c-b2f1-4bb0-aa61-7236e2a46b31) ## 🛠 Built With <a name="built-with"></a> - HTML, - CSS, - Java Script - GIT, - GITHUB - LINTERS - React and Redux - Testing ### Tech Stack <a name="tech-stack"></a> <details> <summary>Client</summary> <ul> <li><a href="https://www.microverse.org/">HTML5</a></li> <li><a href="https://www.microverse.org/">CSS3</a></li> <li><a href="https://www.microverse.org/">JavaScript</a></li> <li><a href="https://www.microverse.org/">React and Redux</a></li> </ul> </details> <details> <summary>Server</summary> <ul> <li><a href="https://marketplace.visualstudio.com/items?itemName=ritwickdey.LiveServer">VS CODE Live Server Extension</a></li> </ul> </details> ## 🚀 Live Demo <a name="live-demo"></a> Check out the live demo of this project [here](https://tiny-sfogliatella-1f3791.netlify.app/) and the [video](https://youtu.be/OnQLJ998MrI). ### Key Features <a name="key-features"></a> - Linters for code quality - Responsive design for different screen sizes - In this project best coding practices is used. <!-- ## 🚀 Live Demo <a name="live-demo"></a> --> ## 💻 Getting Started <a name="getting-started"></a> To get a local copy up and running, follow these steps. 1. Go to this URL link: https://github.com/najibullahjafari/My-crypto 2. clone the repo and start working on it. ### Prerequisites In order to run this project you need: Google Chrome or other browser ```sh https://www.google.com/chrome/?brand=JJTC&gclid=CjwKCAjw9J2iBhBPEiwAErwpeSDcMFWiIQWj2u5GY6owZ7OaOHw7dYYCHW7uTR4kvYosNJYd4wt4VxoCiywQAvD_BwE&gclsrc=aw.ds ``` Github Account: ```sh https://github.com/ ``` Npm installed: ```sh https://nodejs.org/en/download ``` Git installed: ```sh https://git-scm.com/downloads/ ``` ### Setup Clone this repository to your desired folder: ```sh cd my-folder git clone https://github.com/najibullahjafari/My-crypto ``` ### Install Please do the following **steps in this order**: 1. Use `npm install` to instal all dependencies. 2. Then you can run project by `npm start` command Linters: If you had any issues with linters for `react` you can install as bellow: ### ESLint 1. Run ``` npm install --save-dev eslint@7.x eslint-config-airbnb@18.x eslint-plugin-import@2.x eslint-plugin-jsx-a11y@6.x eslint-plugin-react@7.x eslint-plugin-react-hooks@4.x @babel/eslint-parser@7.x @babel/core@7.x @babel/plugin-syntax-jsx@7.x @babel/preset-react@7.x @babel/preset-react@7.x ``` _not sure how to use npm? Read [this](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm)._ 2. Copy [.eslintrc.json](./.eslintrc.json) and [.babelrc](./.babelrc) to the root directory of your project. 3. **Do not make any changes in config files - they represent style guidelines that you share with your team - which is a group of all Microverse students.** 4. Run `npx eslint "**/*.{js,jsx}"` on the root of your directory of your project. 5. Fix linter errors. 6. **IMPORTANT NOTE**: feel free to research [auto-correct options for Eslint](https://eslint.org/docs/latest/user-guide/command-line-interface#fixing-problems) if you get a flood of errors but keep in mind that correcting style errors manually will help you to make a habit of writing a clean code! ### Stylelint 1. Run ``` npm install --save-dev stylelint@13.x stylelint-scss@3.x stylelint-config-standard@21.x stylelint-csstree-validator@1.x ``` _not sure how to use npm? Read [this](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm)._ 2. Copy [.stylelintrc.json](./.stylelintrc.json) to the root directory of your project. 3. **Do not make any changes in config files - they represent style guidelines that you share with your team - which is a group of all Microverse students.** 4. Run `npx stylelint "**/*.{css,scss}"` on the root of your directory of your project. 5. Fix linter errors. 6. **IMPORTANT NOTE**: feel free to research [auto-correct options for Stylelint](https://stylelint.io/user-guide/usage/options) if you get a flood of errors but keep in mind that correcting style errors manually will help you to make a habit of writing a clean code! ### Run tests To run tests, run the following command: - `npm test`. to check for styling errors: ```sh npx stylelint "**/*.{css,scss}" ``` ### Deployment You can deploy this project using: Your working browser. ## 👥 Authors <a name="authors"></a> 👤 **Najibullah Jafari** - GitHub: [Najibullah_jafari](https://github.com/najibullahjafari) - Twitter: [Najibullah_jafari](https://twitter.com/Najib_Jafari_) - LinkedIn: [Najibullah_jafari](https://www.linkedin.com/in/najibullahjafari/) <p align="right">(<a href="#readme-top">back to top</a>)</p> ## 🔭 Future Features <a name="future-features"></a> - **[Responsive Version]** ## 🤝 Contributing <a name="contributing"></a> Contributions, issues, and feature requests are welcome! Feel free to check the [issues page](https://github.com/najibullahjafari/My-crypto/issues). <p align="right">(<a href="#readme-top">back to top</a>)</p> ## ⭐️ Show your support <a name="support"></a> Do you like this project? So don't wait to give one star! <p align="right">(<a href="#readme-top">back to top</a>)</p> <!-- ACKNOWLEDGEMENTS --> ## 🙏 Acknowledgments <a name="acknowledgements"></a> I would like to express my deepest gratitude Nelson Sakwa for this project. The invaluable learning experience and support provided have been instrumental in my growth as a developer. <p align="right">(<a href="#readme-top">back to top</a>)</p> ## 📝 License <a name="license"></a> This project is [MIT](./LICENSE) licensed. <p align="right">(<a href="#readme-top">back to top</a>)</p>
My Crypto is a responsive web app that show the current price of most popular crypto currencies, I used React & Redux, CSS3 and API to build this Web App.
cryptocurrency,css3,javascript,react,redux
2023-08-14T16:46:39Z
2024-03-17T16:13:58Z
null
1
4
33
0
0
10
null
MIT
JavaScript
dipiash/eslint-plugin-nimbus-clean
main
![GitHub CI](https://github.com/dipiash/eslint-plugin-nimbus-clean/actions/workflows/ci.yml/badge.svg) [![npm version](https://badge.fury.io/js/eslint-plugin-nimbus-clean.svg?v=0.2.4)](https://badge.fury.io/js/eslint-plugin-nimbus-clean) [![HitCount](https://hits.dwyl.com/dipiash/eslint-plugin-nimbus-clean.svg?style=flat-square)](http://hits.dwyl.com/dipiash/eslint-plugin-nimbus-clean) `README.md`: [EN](/README.md) | [日本語](/docs/ja/README.md) | [繁體中文](/docs/zh-tw/README.md) | [हिंदी](/docs/hi/README.md) # eslint-plugin-nimbus-clean A comprehensive linting solution that sweeps your code clean. Fly through your codebase with ease and precision! ## Table of Contents <!-- toc --> - [Installation](#installation) - [Usage](#usage) * [Full config](#full-config) * [Incrementally improvements](#incrementally-improvements) * [Prettier settings (optional)](#prettier-settings-optional) - [License](#license) - [Contributions](#contributions) - [Show your support](#show-your-support) - [Contributors](#contributors) <!-- tocstop --> ### Installation Here you can find instructions how to install it via: `npm`, `yarn`, `pnpm`. You'll first need to install [ESLint](https://eslint.org/) and TypeScript: ```sh npm i eslint --save-dev npm i typescript # Or run this to use yarn yarn add eslint --dev yarn add typescript # Or run this to use pnpm pnpm add eslint --save-dev pnpm add typescript ``` Next, install `eslint-plugin-nimbus-clean`: ```sh npm install eslint-plugin-nimbus-clean --save-dev # Or run this to use yarn yarn add eslint-plugin-nimbus-clean --dev # Or run this to use pnpm pnpm add eslint-plugin-nimbus-clean --save-dev ``` Next, install all peerDependencies for this plugin: ```sh npx install-peerdeps eslint-plugin-nimbus-clean # Or run this to use yarn npx install-peerdeps eslint-plugin-nimbus-clean --yarn # Or run this to use pnpm npx install-peerdeps eslint-plugin-nimbus-clean --pnpm ``` ### Usage #### Full config It's recommended for new projects or if you want to see all ESLint errors and warnings for existing projects. Add `nimbus-clean` to the extends or plugins section of your `.eslintrc` configuration file. You can omit the `eslint-plugin-` prefix: ```json { "parser": "@typescript-eslint/parser", "parserOptions": { "ecmaVersion": 13, "sourceType": "module", "ecmaFeatures": { "jsx": true, "modules": true, "experimentalObjectRestSpread": true } }, "ignorePatterns": [ "**/*", "node_modules" ], "settings": { "react": { "pragma": "React", "fragment": "Fragment", "version": "detect" }, "import/resolver": { "typescript": { "alwaysTryTypes": true } } }, "extends": [ "plugin:nimbus-clean/recommended" ], "plugins": [ "nimbus-clean" ] } ``` #### Incrementally improvements If you have existing project big/old/etc. you can apply `nimbus-clean` config setting incrementally: - `plugin:nimbus-clean/common` - `plugin:nimbus-clean/prettier` - `plugin:nimbus-clean/import` - `plugin:nimbus-clean/simpleImportSort` - `plugin:nimbus-clean/react` - `plugin:nimbus-clean/promise` - `plugin:nimbus-clean/unicorn` - `plugin:nimbus-clean/sonarjs` - `plugin:nimbus-clean/typescript` - `plugin:nimbus-clean/perfectionist` ```json { ... "extends": [ "plugin:nimbus-clean/common", "plugin:nimbus-clean/prettier", ... ], "plugins": [ "nimbus-clean" ] } ``` #### Prettier settings (optional) If you don't have a `.prettierrc` config, please add it (for example): ```prettier { "singleQuote": true, "printWidth": 150, "useTabs": false, "tabWidth": 2, "trailingComma": "all", "semi": false } ``` ### License This code is licensed under the [MIT](/LICENSE) License. ### Contributions Before making any contributions, refer to [here](/CONTRIBUTING.md). ### Show your support Star (⭐️) this repository if it helped you! ### Contributors Thanks go to these wonderful people: <a href="https://github.com/dipiash/eslint-plugin-nimbus-clean/graphs/contributors"> <img src="https://contrib.rocks/image?repo=dipiash/eslint-plugin-nimbus-clean" /> </a>
A comprehensive linting solution that sweeps your code clean. Fly through your codebase with ease and precision!
eslint,eslint-config,eslint-plugin,eslint-rules,eslintconfig,eslintrc,hacktoberfest,javascript,nodejs,react
2023-09-03T13:52:25Z
2024-05-15T08:17:25Z
2024-05-15T08:19:05Z
10
47
153
7
9
9
null
MIT
JavaScript
Starklord17/threejs-t-shirt
main
# Customizable T-Shirt Design with three.js Welcome to the Customizable T-Shirt Design project! This interactive web application allows users to create their own unique t-shirt designs by selecting different colors and uploading logo files. The project is built using the powerful three.js library for 3D rendering. ## Features - Choose from a variety of t-shirt colors. - Upload your own logo or design to be displayed on the t-shirt. - Preview your custom design in a 3D interactive environment. - Realistic lighting and shading effects powered by three.js. ## Demo <!-- ![T-Shirt.js example](./public/demo.png) --> Check out the live demo of the Customizable T-Shirt Design application: [Demo](https://threejs-t-shirt.vercel.app/). ## Technologies Used - [React](https://reactjs.org/) - [Vite](https://vitejs.dev/) - [@react-three/drei](https://github.com/pmndrs/drei) - [@react-three/fiber](https://github.com/pmndrs/react-three-fiber) - [Framer Motion](https://www.framer.com/motion/) - [maath](https://github.com/gre/gl-matrix) - [react-color](https://casesandberg.github.io/react-color/) - [three.js](https://threejs.org/) - [valtio](https://github.com/pmndrs/valtio) ## Getting Started To run this project locally: 1. Clone this repository: `git clone https://github.com/your-username/customizable-tshirt.git` 2. Navigate to the project directory: `cd customizable-tshirt` 3. Install dependencies: `npm install` 4. Run development server: `npm run dev` 5. Open your web browser and visit `http://localhost:5173/`. ## Scripts - `dev`: Start the development server. - `build`: Build the production-ready bundle. - `lint`: Run ESLint with specific rules for code quality. - `preview`: Preview the production build locally. ## Contributing Contributions are welcome! If you have any ideas, suggestions, or improvements, feel free to open an issue or submit a pull request. ## Credits - This project was developed using the three.js library (https://threejs.org/). - Design by Anderson Mancini, Paul Henschel. ## License This project is licensed under the [MIT License](LICENSE). --- Have fun customizing your t-shirt designs and exploring the world of three.js, React, and Vite! If you have any questions or need assistance, feel free to contact us or open an issue.
Three.js 3D website. T-Shirt customizer.
javascript,react,threejs,vercel-deployment,vite,tailwindcss
2023-08-24T19:27:30Z
2024-01-23T02:18:16Z
null
1
2
21
0
6
9
null
MIT
JavaScript
nagoev-alim/JAVASCRIPT-PATH
main
## 👋 Коллекция пет-проектов на `JavaScript` Репозиторий представляет собой обширный ресурс для изучения и практики языка программирования `JavaScript`. ### 🚀 **Цель репозитория:** Этот репозиторий создан как централизованный и структурированный путь для изучения `JavaScript`. Он предназначен для начинающих программистов, которые хотят освоить `JavaScript` с нуля. ### 🚀 **Основные особенности:** **Структурированный подход к обучению:** Репозиторий предлагает список пет-проектов для тренировки своих навыков. ### 🚀 **Как использовать данный репозиторий:** 1. Клонируйте или загрузите репозиторий на свой компьютер. 2. Изучайте проекты по порядку или выберите интересующую вас тему из списка. ![Image](https://lh3.googleusercontent.com/drive-viewer/AITFw-y_cHl8HZvmy3eb0E8BnodCnhELaJ_nx_3sgkBY4lUhhCYV7rdv1mGHgYTIF9HA0Sjvs2v0jmpgyFy7O1D4CA8jin8TqQ=s2560)
👋 Коллекция пет-проектов на JavaScript
css,html,javascript,pet-project,scss,tailwindcss
2023-09-08T11:59:06Z
2023-09-30T14:08:05Z
null
1
0
185
0
1
9
null
null
TypeScript
LyubomirT/c.ai-addons
main
# c.ai-addons Enhance your Character.ai experience with a set of useful features and tools to make your interactions smoother and more personalized. This extension is a collection of handy add-ons designed to empower your conversations and improve the user interface. > [!CAUTION] > The extension is discontinued due to recent updates in Character.AI. > [!WARNING] > This extension may become deprecated soon due to the Redesign update of Character.AI. Maybe it will be updated to support the new UI, but it's not guaranteed. At the moment we're still waiting for the outcome of the update. Huge thanks to everyone who supported this project, and I'm sorry for the inconvenience. ## Installation 1. Download the latest Manifest3-based release from the [releases page](https://github.com/LyubomirT/c.ai-addons/releases). 2. Extract the archive. 3. Open your preferred web browser and navigate to the extension manager. 4. Enable developer mode (if not already enabled or if needed). 5. Click on "Load unpacked" and select the extracted folder. ## Installation (Firefox) For Firefox, installation steps differ a bit. Here's how to install the extension on Firefox: 1. Download the latest release for Firefox from the [releases page](https://github.com/LyubomirT/c.ai-addons/releases). 2. Open Firefox and go to `about:extensions`, basically the extensions page. 3. Click on the gear icon in the top right corner, and select "Install Add-on From File". 4. Select the downloaded `.xpi` file, and click "Open". 5. Click "Add" in the prompt that appears. # Usage ## Settings In the bottom left corner of the webpage (it's a bottom toolbar on mobile), there is a button, with a gear icon. Clicking on it will open the extension settings. ![Settings Button](resources/markdown/settings.png) ## Memory Manager The memory manager is a tool that allows you to manually create "Memory Strings", that prevent the chatbot from forgetting things when inserted into your message. This is useful for things like names, locations, etc. that you want to be remembered throughout the conversation. The Memory Manager requires the "Enable Memory Manager" option to be enabled in the extension settings. **Preview** ![Memory Manager Preview](resources/markdown/mmanager.png) ### Creating a Memory String A memory string consists of "AI memories" and "User facts". To add a new AI memory, click on the "Add memory" button in the "Character Memory" section. To add a new user fact, click on the "Add fact" button in the "User Memory" section. You can preview your memory string in the box above: ![Memory String Preview](resources/markdown/preview.png) There are also other Memory String controls, like the ones shown below: ![Memory String Controls](resources/markdown/mcontrols.png) ### Inserting a Memory String Below the Memory String controls, there is a button, saying "Insert Memory String". Clicking on it will insert the memory string into the message box. If you don't want to use the button, simply copy-paste the memory string from the previewer into the message box. ### Importing an Existing Memory String If you already have a memory string, you can import it by clicking on the "Import Memory String" button. This will open a prompt, where you can paste your memory string. After pasting it, click on "Confirm" and it will be imported, if it matches the standard memory string format. ### Automatically Generating a Memory String with AI If you don't want to manually create a memory string, you can use the "Generate Automatically" button. This will automatically generate a memory string based on the current chat state. The process can sometimes be a bit slow, and it's not 100% accurate. You can also switch between the "Fast", "Small Nightly", and "Normal" models. Fast can save you some time, but it's not as accurate as the normal model, while the normal model is more accurate, but slower. Small Nigthly is currently the fastest model and relatively accurate, but it's not recommended to use it, as it's still in development by Cohere. ### Suggest a Chat Continuation This new feature utilizes the "Generate" feature of the Cohere API to suggest a chat continuation. It's not 100% accurate, but sometimes it can actually provide creative and interesting suggestions. You can use it by clicking on the "Continue Chat" button. The process can sometimes be a bit slow, but it can be worth it. The configuration for this mode is the same as the one for the "Generate Automatically" mode, as it uses the same model and platform. However, you still need to have the Cohere API Key set up in the Memory Manager. ### Opening or Closing the Memory Manager In the top right corner of the webpage, there is a button, with an arrow. Clicking on it will open the memory manager, and clicking on it again will close it. ![Memory Manager Button](resources/markdown/oc.png) ### Note In order to use the memory manager Auto-Generator, you are required to have a Cohere API key. You can get one by signing up [here](https://cohere.com/). After that, you'll be redirected to the dashboard, where you can find your API key in the API keys section. Copy it, and paste it in the "Cohere API Key" input in the Memory Manager. The API Key is totally **FREE**, and will **not** exposed to anyone, except you. We highly recommend you to not share your API key with anyone, as it can be used to use Cohere on your behalf. ## Legacy Chats In a recent update, Character.AI changed the way you chat, as well as removing a few neat features. This addon brings back the old chat, as well as the features that were removed. ### Enabling Legacy Chats First of all, you need to enable the "Enable Legacy Chats" option in the extension settings. After that, you need to refresh the page, and then you need to click the "Spin" button in the toolbar, while being on a chatting page. ![Spin Button](resources/markdown/spin.png) ## Non-Rounded Avatars This addon removes the rounded corners from the avatars. It can be enabled by enabling the "Disable Rounded Avatars" option in the extension settings. ## Hiding / Showing the Toolbar (Mobile) The toolbar covers a lot of space in the bottom part of the screen on mobile devices. You can easily hide it by clicking the three-dot button in the top right corner of the page. This will hide the toolbar, and you can show it again by clicking the same button. ![Toolbar Button](resources/markdown/ocstuff.png) ## New Message Style This addon changes the style of the messages (sent by both the AI and the user). It can be enabled by enabling the "Enable New Message Style" option in the extension settings. Basically, it makes the messages look more visually appealing and easier to read. ![New Message Style](resources/markdown/newstyletoggle.PNG) ![New Message Style Preview](resources/markdown/nmsp.png) ## Font Override If you don't like the default font, you can change it by enabling the "Enable Different Font" option in the extension settings. After that, you can select a font from the dropdown menu. The currently available fonts are: - Arial - Roboto - Open Sans - Lato - Montserrat - Raleway - Ubuntu - Noto Sans - Source Sans Pro - Times New Roman - Georgia - Palatino Linotype - Bookman Old Style - Book Antiqua - Lucida Bright - Cambria - Garamond - Big Caslon You will need to refresh the page after changing the font. Also, please notice that the font might have a different width, and might slightly break the UI (but it's not that bad). ![Font Override](resources/markdown/selectfonts.png) ![Font Override Preview](resources/markdown/fontpreview.PNG) ## Chat Exporting This addon allows you to export your chat history. It can be enabled by enabling the "Enable Chat Exporting" option in the extension settings. After that, you can click on the "download" button in the toolbar, and it will download a .txt file with your chat history, using the same format as the one used by the chat scanner. First of all, you need to enable the "Enable Chat Exporting" option in the extension settings. ![Chat Exporting Toggle](resources/markdown/enablece.png) After that, you need to refresh the page, and then you will see a new button in the toolbar, with a download icon. Clicking on it will download a .txt file with your chat history. The file will be named "messages.txt". ![Chat Exporting Button](resources/markdown/ce.png) ## Markdown Toolbar Character.ai supports markdown, but some users may not be proficient in it or know it at all. This addon adds a small toolbar for basic Markdown formatting. It can be enabled by enabling the "Enable Markdown Toolbar" option in the extension settings. After reloading the page, you'll notice that there is a new toolbar above your message box. It looks like this: ![Markdown Toolbar](resources/markdown/mtb.png) The toolbar currently has buttons for making the text **Bold**, *Italic*, `Code`, [Link](https://character.ai/), and wrapped in a blockquote. Soon I'm planning to add more buttons, but I want to note that not all markdown features are supported by Character.ai. You can use each of the buttons in 3 ways: 1. If you click the button with some text selected in the message box, it will wrap the selected text in the markdown tag. For example, if you select some text and click the "Bold" button, it will wrap the selected text in `**` tags. However, the blockquote only adds the `>` symbol at the beginning of the selected line. 2. If you click the button without selecting any text, it will insert the markdown tag at the cursor position. For example, if you click the "Bold" button without selecting any text, it will insert `** **` at the cursor position. 3. If you click the button while the cursor is inside a markdown tag, it will remove the markdown tag. For example, if you click the "Bold" button while the cursor is inside `** **`, it will remove the `** **` tags. Unfortunately, this setting has a side effect. With it, you can't resize the messagebox by dragging its corner. This is because of the way Character.ai handles box resizing and "smoothing". I'm planning to fix this in the future. ## Delete the "Get C.AI+" Button Free users may find the "Get C.AI+" button annoying, as it's always there, and the only thing you can do to get rid of it is to buy C.AI+. This addon removes the button, and it can be enabled by enabling the "Remove Get C.AI+ Button" option in the extension settings. After reloading the page, you'll notice that the button is gone. Doesn't work if you already have C.AI+. ![Get C.AI+ Button](resources/markdown/deletecaiplus.png) ![Get C.AI+ Button Gone](resources/markdown/caiplusgone.png) # Contributing Contributions are welcome! If you want to contribute, you can either open an issue, or create a pull request. If you want to create a pull request, please make sure to follow the [contribution guidelines](CONTRIBUTING.md). # License This project is licensed under the [GNU General Public License v3.0](LICENSE).
Enhance your Character.ai experience with a set of useful features and tools to make your interactions smoother and more personalized. This extension is a collection of handy add-ons designed to empower your conversations and improve the user interface.
addons,ai,browser-extension,character-ai,extension,html5,javascript,collaborate
2023-08-18T13:22:26Z
2024-04-27T19:17:38Z
2024-02-23T10:17:17Z
1
0
76
2
1
9
null
GPL-3.0
JavaScript
SomSingh23/BTP-Minor-Project
main
![BTP-Minor-Project](https://socialify.git.ci/SomSingh23/BTP-Minor-Project/image?description=1&descriptionEditable=Streamlining%20Student%20Enrollment%20with%20an%20Automated%20System%C2%A0for%C2%A0IIIT%C2%A0Pune.&font=Raleway&forks=1&name=1&owner=1&pattern=Floating%20Cogs&stargazers=1&theme=Dark) [Deployment Link](https://somsinghlodhi-btp.vercel.app) ## Overview This repository houses the B.Tech minor project aimed at automating the registration process within our college. The existing registration system has been traditional and time-consuming, prompting the development of a streamlined portal accessible to both administrators and students. ## Features - **User Authentication:** Students log in using their IIIT Pune college Gmail IDs, gaining access to their user profile and a comprehensive registration guide upon successful Google sign-up. - **Registration Form Submission:** Students are required to fill out a registration form, and the project incorporates multiple levels of verification (v1, v2, and v3). The process advances through each level sequentially. - **Admin Portal:** Administrators have access to various features, including student verification, statistical data visualization (overall statistics, charts comparing verified vs. pending, and rejected vs. verified cases). - **Email Notification:** Upon successful registration, students receive a welcome email. ## Security and Robustness The project prioritizes security and robustness by implementing isolation for each independent portal. To bypass protective measures, users must undergo verification and pass through multiple middlewares. ## V1Admin Password username: `admin1` password: `admin1` - Please utilize the provided username and password to access the features of V1Admin. ## Technology Stack The technology stack for this project includes: - Redis - MongoDB - Express - Node.js - Nodemailer - Passport.js - D3.js - Chart.js - EJS ## Motivation The primary motivation behind this project is to streamline and modernize the registration process for students at IIIT Pune, replacing the traditional and time-consuming methods with an efficient and user-friendly portal. Feel free to explore the project and provide feedback or contribute to its development! # Student Portal <br> ![image](https://github.com/SomSingh23/BTP-Minor-Project/assets/91485305/ad8f69a6-01ae-4cf2-9f88-d1578b787e40) <br> ![image](https://github.com/SomSingh23/BTP-Minor-Project/assets/91485305/d48c624f-1fc1-492c-8f97-d4c0894ab939) <br> ![image](https://github.com/SomSingh23/BTP-Minor-Project/assets/91485305/77e12c9d-43ed-4fb6-b11f-539c2e279264) <br> ![image](https://github.com/SomSingh23/BTP-Minor-Project/assets/91485305/1b8b6f6a-899a-4e5a-8ee5-b05e803a0ebb) <br> ![image](https://github.com/SomSingh23/BTP-Minor-Project/assets/91485305/8cfb7526-144b-4087-9f24-5edef219085f) <br> ![image](https://github.com/SomSingh23/BTP-Minor-Project/assets/91485305/662844f5-06d5-4c1c-89db-bdd0550267a8) <br> ![image](https://github.com/SomSingh23/BTP-Minor-Project/assets/91485305/c26a3b81-271b-494f-84c1-7848d5b01b54) <br> # V1 Admin Portal <br> ![image](https://github.com/SomSingh23/BTP-Minor-Project/assets/91485305/25b23df4-6593-4a06-b23b-1d1ae900a2a8) <br> ![image](https://github.com/SomSingh23/BTP-Minor-Project/assets/91485305/c6e503d6-7e86-4408-922a-8a86dc97dc12) <br> ![image](https://github.com/SomSingh23/BTP-Minor-Project/assets/91485305/c7f49a49-a2ff-4753-9fad-258879ede555) <br> ![image](https://github.com/SomSingh23/BTP-Minor-Project/assets/91485305/a3560c7e-b93c-4e0a-85db-a6041aa3dca8) <br> ![image](https://github.com/SomSingh23/BTP-Minor-Project/assets/91485305/82d7e3cf-fde3-4e81-88de-b77a6e933880) <br> ![image](https://github.com/SomSingh23/BTP-Minor-Project/assets/91485305/2929cf4d-dd84-4c28-be96-42479dd348a5) <br> ![image](https://github.com/SomSingh23/BTP-Minor-Project/assets/91485305/68c0306e-39b1-4230-8ca5-e2e7994eef07) <br> ![image](https://github.com/SomSingh23/BTP-Minor-Project/assets/91485305/93297fd6-700a-4315-9484-9c0f7cfd135a) <br> ![image](https://github.com/SomSingh23/BTP-Minor-Project/assets/91485305/d0cb8cc6-4ab9-4191-a95d-9d327575bf36)
Digital Transformation of the Registration Process: Streamlining Student Enrollment with an Automated System for IIIT Pune.
css,ejs,googleauthenticaion,html,javascript,registration-system,nodejs,nodejs-server,connect-redis,ioredis
2023-08-24T06:04:23Z
2024-04-27T20:34:48Z
null
1
1
135
0
4
9
null
MIT
EJS
ftr9/react-native-barista
main
null
Animated Coffee ordering with react native
expo,javascript,react-native,react-native-safe-area-context,react-native-vector-icons,typescript,expo-route
2023-09-10T08:34:54Z
2023-09-10T09:29:52Z
null
1
0
13
0
0
9
null
null
TypeScript
sameer1612/tiers-of-joy
main
# Tiers of Joy A tier list maker written in React. ## Figma Design: ![App](public/figma_app.png) ![Edit Items](public/figma_edit_items.png) ![Edit Tiers](public/figma_edit_tiers.png) ## How to use? 1. Enter a bunch of image URLs using `Edit Items` button. 2. Add some categories/tiers using `Edit Tiers` button. 3. Drag and drop image tiles from sidebar to appropriate tier row. ## Demo (Click image to play) > Some web frameworks and ranking tiers are added as default for demo. Clear them using the `Clear` button. [![Tiers of Joy - Demo](https://github.com/sameer1612/tiers-of-joy/blob/main/public/home.png)](https://www.youtube.com/watch?v=RL8CT78SHWk)
A tier list maker written in React.
bootstrap,javascript,react,tier-list,typescript,hacktoberfest
2023-09-01T16:12:48Z
2023-10-20T04:22:22Z
null
2
3
19
4
9
9
null
null
TypeScript
onhate/inbatches
main
# @InBatches(📦,📦,📦,...) InBatches is a zero-dependency generic TypeScript library that provides a convenient way to batch executions that runs asynchronous. It is designed to be used as part of your application's data fetching layer to provide a consistent API over various backends and reduce requests to those backends via batching. This library is especially useful for scenarios where you need to perform multiple asynchronous operations efficiently, such as when making network requests or performing database queries. Heavily inspired by [graphql/dataloader](https://github.com/graphql/dataloader) but simpler using decorators (😜 really decoupled). Because of that the rest of your application doesn't event need to know about the batching/dataloader, it just works! ## Table of Contents - [Installation](#installation) - [Usage](#usage) - [Basic usage with `@InBatches` Decorator](#basic-usage-with-inbatches-decorator) - [Advanced usage with custom `Batcher` class](#advanced-usage-with-custom-batcher-class) - [API](#api) - [`BatcherOptions`](#batcheroptions) - [Contributing](#contributing) - [License](#license) ## Installation ```bash npm install inbatches ``` or ```bash yarn add inbatches ``` ## Usage ### Basic usage with `@InBatches` Decorator The simplest way to get the grown running is to use the `@InBatches` decorator. This decorator will wrap your method and will batch-enable it, like magic! 🧙‍♂️ ```typescript import { InBatches } from 'inbatches'; class MyService { // (optional) overloaded method, where you define the keys as `number` and the return type as `User` for typings async fetch(key: number): Promise<User>; // This method is now batch-enabled @InBatches() async fetch(keys: number | number[]): Promise<User | User[]> { if (Array.isArray(keys)) return await this.db.getMany(keys); // in reality the Decorator will wrap this method and it will never be called with a single key :) throw new Error('It will never be called with a single key 😉'); } } ``` Profit! 🤑 ```typescript const service = new MyService(); const result = [1, 2, 3, 4, 5].map(async id => { return await service.fetch(id); }); // The result will be an array of results in the same order as the keys result.then(results => { console.log(results); // Output: [{ id: 1, name: 'Result for key 1' }, ...] }); ``` ### Advanced usage with custom `Batcher` class Another way to use the library is to create a class that extends the `Batcher` class and implement the `run` method. This class will provide a `enqueue` method that you can use to enqueue keys for batched execution. ```typescript import { Batcher } from 'inbatches'; // The `run` method will be called with an array of keys collected from the `enqueue` method class MyBatcher extends Batcher<number, string> { async run(ids: number[]): Promise<string[]> { // Perform asynchronous operations using the keys // you must return an array of results in the same order as the keys return this.db.getMany(ids); } } ``` then ```typescript // Create an instance of your batcher const batcher = new MyBatcher(); // Enqueue keys for batched execution const result = [1, 2, 3, 4, 5].map(async id => { return await batcher.enqueue(id); }); // The result will be an array of results in the same order as the keys result.then(results => { console.log(results); // Output: [{ id: 1, name: 'Result for key 1' }, ...] }); ``` ## API ### `BatcherOptions` An interface to specify options for the batcher. - `maxBatchSize`: The maximum number of keys to batch together. Default is `25`. - `delayWindowInMs`: (not recommended) The delay window in milliseconds before dispatching the batch. Default is `undefined` and will use `process.nextTick` to dispatch the batch, which is highly efficient and fast. Only use this if you really want to accumulate promises calls in a window of time before dispatching the batch. ## Contributing Contributions are welcome! Feel free to open issues or submit pull requests on the [GitHub repository](https://github.com/onhate/inbatches). ## License This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
@InBatches(): A developer-friendly zero-dependency TypeScript library for efficient batching the execution of asynchronous parallel operations.
batch,dataloader,graphql,performance,async,asynchronous-programming,batches,decorators,event-loop,javascript
2023-08-13T19:34:54Z
2023-10-13T20:12:03Z
2023-09-07T15:59:11Z
1
5
22
0
0
9
null
MIT
TypeScript
ManzDev/gallinerica
main
![Gallinérica](sources/logo-gallinerica-x2.png) ## ¿Qué es Gallinérica? Gallinérica es un juego para Twitch, donde los streamers podrán colocar su canal y permitir que los espectadores jueguen. En este documento se habla más de la parte técnica, orientada para desarrolladores. > Si quieres saber más sobre el juego (como jugador), visita la página de [Gallinérica en Itch.io](https://manzdev.itch.io/gallinerica). ## ¿Con qué está desarrollado Gallinérica? Gallinérica no está desarrollado con ningún motor de videojuegos ni framework. Si te interesa alguno te recomendaría [Phaser](https://phaser.io/) o [Godot](https://godotengine.org/). Se realizó como reto en Javascript vanilla, utilizando exclusivamente HTML, CSS y Javascript. Para aislar las funcionalidades, utilizamos WebComponents, que es una tecnología Javascript nativa. Esta desarrollado por [Manz](https://links.manz.dev/), gráficos diseñados por [BlurSoul_](https://twitter.com/blursoul_) y ayuda de maxi83c en diseño y código. Tienes más información aquí: - HTML: https://lenguajehtml.com/html/ - CSS: https://lenguajecss.com/css/ - Javascript: https://lenguajejs.com/javascript/ - WebComponents: https://lenguajejs.com/webcomponents/ ## ¿Dónde fue desarrollado Gallinérica? Gallinérica es un juego que participa en la [JAM de Numérica](https://itch.io/jam/numerica-twitch-jam) de @RothioTome, donde hay que realizar un juego para Twitch similar a [Numérica](https://rothiotome.itch.io/numerica). El juego se desarrolló durante 4 streams de Twitch, que de momento, puedes ver en mi canal de Youtube: ### Día 1: Base del juego - Layout principal del juego (CSS) - Mecanismo de cintas transportadoras (Javascript) - Pollos moviendose en las cintas (Javascript/CSS) - Mecanismo de comunicación con Twitch (Javascript) ![Gallinérica: Día 1 de Desarrollo](sources/screenshot-day-1.png) - Youtube: https://youtu.be/B7NIXdiA35g ### Día 2: Mecánica principal - Implementación de tipos de pollos (CSS) - Mecanismo de comunicación con Twitch (Javascript) - Tabla de líderes del juego (Javascript) ![Gallinérica: Día 2 de Desarrollo](sources/screenshot-day-2.png) - Youtube: https://youtu.be/CabQJ3sYkMQ ### Día 3: Perfeccionamiento del juego - Niveles de dificultad (Javascript) - Rachas de pollos seguidos (Javascript/CSS) ![Gallinérica: Día 3 de Desarrollo](sources/screenshot-day-3.png) - Youtube: https://youtu.be/k6i65SCt838 ### Día 4: Corrección de problemas y últimos detalles - Atardecer y amanecer: fondos mejorados (CSS/Javascript) - Estadísticas de pollos gallinificados/condenados - Añadido "altar" central de pollos - Niveles de dificultad perfeccionados (puedes puntuar negativo) - Modificación aleatoria de números en niveles altos ![Gallinérica: Día 4 de Desarrollo](sources/screenshot-day-4.png) - Youtube: https://youtu.be/zWS61oeBVBM ## Estructura del juego El juego es open source, con licencia GPL y puedes modificarlo, ampliarlo o utilizarlo para aprender, sólo te pido que cites y menciones el original en el juego. Si quieres modificar el código, aquí va una ayudita de lo que utilizamos: - [Vite](https://lenguajejs.com/automatizadores/vite/guia-tutorial-inicial-de-vite/), como automatizador para gestionar el desarrollo, concretamente usamos [mkweb](https://manz.dev/software/mkweb/). - [gh-pages](https://www.npmjs.com/package/gh-pages) para el despliegue en GitHub Pages. - [ESLint](https://www.npmjs.com/package/eslint-config-manzdev) y [StyleLint](https://www.npmjs.com/package/stylelint-config-manzdev) para indicar errores de código. - [Aseprite](https://www.aseprite.org/) para el diseño del pixel art. La estructura del juego es la siguiente: ``` En src/components/: - BeltMachine.js # Cintas transportadoras - ChickenBackground.js # Fondo de transcurso del día - ChickenBoard.js # Tabla de récords - ChickenCounter.js # Estadísticas de pollos - ChickenNPC.js # Pollos NPC de la cinta - ChickenPodium.js # Pollos NPC de rachas - ChickenPool.js # Contenido de la cinta transportadora - FlagSystem.js # Sistema de rachas de pollos - GameScreen.js # Pantalla principal del juego - HomeCabin.js # Cabinas laterales del juego - NumberList.js # Panel inferior de números - StopPlatform.js # Altar central de pollo En src/modules/: - difficulty.js # Módulo que gestiona la dificultad del juego - icons.js # Módulo que gestiona el panel de números - shuffle.js # Módulo con el algoritmo Fisher-Yates En src/sources/: Aquí tienes todos los gráficos (originales incluidos) por cortesía de [BlurSoul_](https://twitter.com/blursoul_) ```
Gallinérica: ¡Gallinifica tus pollos!
css,html,jam,javascript,numerica
2023-08-09T16:22:04Z
2023-10-23T23:26:56Z
null
1
0
15
0
1
9
null
null
JavaScript
TropicolX/space-explorer-scroll
master
# Infinite Scrolling in React: A Practical Guide 🚀 Explore the magic of infinite scroll in React by embarking on a cosmic journey through a card-based planet explorer. Harness the power of React and Intersection Observer API to create an interactive experience. <p align="center"> <a href="https://tropicolx.hashnode.dev/infinite-scrolling-in-react-a-practical-guide" style="display: block;" align="center"> <img src="./public/thumbnail.png" alt="Infinite Scrolling in React: A Practical Guide" width="60%" /> <p>Click to Read!</p> </a> </p> --- **Table of Contents**: - [Introduction ✊](#introduction) - [Getting Started ⚡](#getting-started) - [License 🪪](#license) - [Contributing 📥](#contributing) --- ## Introduction This repository is part of the [Infinite Scrolling in React: A Practical Guide](https://tropicolx.hashnode.dev/infinite-scrolling-in-react-a-practical-guide) article and illustrates the following. - Implementing Infinite Scroll using the Intersection Observer API by building a planet explorer - Discuss potential pitfalls and optimizations for infinite scrolling in React ## Getting Started - Fork or clone this repository. ```bash git clone https://github.com/TropicolX/space-explorer-scroll.git ``` - Using `npm` or `yarn` install the dependencies. ```bash # Using npm npm install # Using yarn yarn install ``` - Start the application ```bash # Using npm npm run dev # Using yarn yarn run dev ``` ## License This project is licensed under the [MIT License](./LICENSE). ## Contributing You're free to contribute and make changes required to this project. Make sure to follow the [Getting Started](#getting-started) before making any changes.
Explore the magic of infinite scroll in React by embarking on a cosmic journey through a card-based planet explorer. Harness the power of React and Intersection Observer API to create an interactive experience
intersection-observer,javascript,react,tutorial,vite
2023-08-13T13:26:40Z
2023-09-02T12:23:09Z
null
1
0
10
0
2
9
null
null
JavaScript
mshajid/CodeCraft
main
![Code Craft Logo](./Assets/README/CodeCraft%20Logo.jpg) Welcome to Code Craft, your ultimate hub for embarking on your programming journey, whether you're a novice or a seasoned pro 📚. It's never too late to delve into the fundamentals and embrace the core concepts of coding. In this repository, you'll find a rich collection crafted by subject matter experts, spanning a variety of programming languages 🌐. ![How to get started](./Assets/README/How%20to%20get%20started.jpg) <div style="text-align: center;"> <h3>For Beginners</h3> </div> If you're just beginning your programming journey or looking to refresh your foundational knowledge, we highly recommend starting with the 📂 "Before You Start" section. Inside, you'll discover valuable resources and guides to help you set up your coding environment and grasp the essential basics. Once you're comfortable, feel free to progress to the 📂 "CodeCrafting Corner" to start learning programming languages. <div style="text-align: center;"> <h3>For Experts</h3> </div> For seasoned developers eager to delve into specific languages, explore advanced concepts, or master the essentials of a new programming language, head directly to the 📂 "CodeCrafting Corner." There, you'll find comprehensive guides and resources covering various programming languages, frameworks, and tools, all meticulously curated by experts in the field. <div style="text-align: center;"> <h3>Guests</h3> </div> In our "Quick Reference 📂" section, you can access concise explanations of various topics, making it easy to grasp essential concepts quickly. Whether you're looking to refresh your memory or gain a quick understanding of specific subjects, this section is your go-to resource. ![Contributing](./Assets/README/Contributing.jpg) We firmly believe in the strength of community-driven learning 🌟. If you're interested in contributing, here's your path: <table> <tr> <td><strong>Step 1:</strong></td> <td><strong>Fork the Repository</strong></td> </tr> <tr> <td><strong>Step 2:</strong></td> <td><strong>Share Your Programming Insights</strong></td> </tr> <tr> <td><strong>Step 3:</strong></td> <td><strong>Create a New Branch</strong></td> </tr> <tr> <td><strong>Step 4:</strong></td> <td><strong>Submit a Pull Request</strong></td> </tr> <tr> <td><strong>Step 5:</strong></td> <td><strong>Connect with Us</strong></td> </tr> </table> See [CONTRIBUTING.md](./CONTRIBUTING.md) for ways to get started. Please adhere to this project's [code of conduct](./CODE_OF_CONDUCT.md). ![Support / Authors](./Assets/README/Support%20and%20Authors.jpg) #### For support, Contact us via our [Discord Server](https://discord.gg/WSHYZkEgTX). #### To connect with us - [@SomeOrdinaryBro](https://github.com/SomeOrdinaryBro) - [LinkedIn](https://www.linkedin.com/in/sajidsabreen/) <img src="./Assets/README/Discord-SOB.png" width="300px"> - [@mshajid](https://github.com/mshajid) - [LinkedIn](https://www.linkedin.com/in/shajidshafee/) <img src="./Assets/README/Discord-SSh.png" width="300px"> <!-- ![License](./Assets/README/License.jpg) --> ## License This repository is licensed under the [MIT License](LICENSE). The MIT License is a permissive open-source license that allows you to use, modify, and distribute this repository for both commercial and non-commercial purposes. You are free to do so as long as you include the original license text and disclaimers. For more details, please read the [MIT License](LICENSE). **TL;DR:** You can use, modify, and distribute this repository freely, but you must include the original license text.
Welcome to CodeCraft - Your gateway learning programming. Our Motto is Coding with Unicorns: Where Logic and Creativity Spark Magic! 🚀🚀🚀
css,html,javascript,reactjs
2023-08-30T16:21:35Z
2023-10-28T11:46:32Z
null
2
46
164
1
1
9
null
MIT
null
AndrewMosh/javascript_interview_cheatsheet
main
### Содержание | No. | Вопросы | | --- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | 1 | [Способы создания объекта](#способы-создания-объекта) | | 2 | [Цепочка прототипов](#цепочка-прототипов) | | 3 | [Разница между call, apply и bind](#разница-между-call-apply-и-bind) | | 4 | [Json и основные операции с ним](#json-и-основные-операции-с-ним) | | 5 | [Для чего нужен метод slice](#для-чего-нужен-метод-slice) | | 6 | [Для чего нужен метод splice](#для-чего-нужен-метод-splice) | | 7 | [Разница между slice() и splice()](#разница-между-slice-и-splice) | | 8 | [Как сравнить Object и Map](#как-сравнить-object-и-map) | | 9 | [Разница между == и === операторами ](#разница-между--и--операторами) | | 10 | [Лямбда функции и стрелочные функции](#лямбда-функции-и-стрелочные-функции) | | 11 | [Что такое функция первого класса в JavaScript?](#что-такое-функция-первого-класса-в-javascript) | | 12 | [Функции первого порядка](#функции-первого-порядка) | | 13 | [Что такое функция высшего порядка в JavaScript?](#что-такое-функция-высшего-порядка-в-javascript) | | 14 | [Унарная функция](#унарная-функция) | | 15 | [Что такое каррирование в JavaScript?](#что-такое-каррирование-в-javascript) | | 16 | [Что такое чистая функция в JavaScript?](#что-такое-чистая-функция-в-javascript) | | 17 | [Какова цель ключевого слова "let" в JavaScript?](#какова-цель-ключевого-слова-let-в-javascript) | | 18 | [В чем разница между let и var в JavaScript?](#в-чем-разница-между-let-и-var-в-javascript) | | 19 | [Как переопределить переменные в блоке switch без ошибки в JavaScript?](#как-переопределить-переменные-в-блоке-switch-без-ошибки-в-javascript) | | 20 | [Что такое "Temporal Dead Zone" в JavaScript?](#что-такое-temporal-dead-zone-в-javascript) | | 21 | [Что такое IIFE (Immediately Invoked Function Expression) в JavaScript?](#что-такое-iife-immediately-invoked-function-expression-в-javascript) | | 22 | [Как декодировать или закодировать URL в JavaScript?](#как-декодировать-или-закодировать-url-в-javascript) | | 23 | [Что такое мемоизация (memoization) в JavaScript?](#что-такое-мемоизация-memoization-в-javascript) | | 24 | [Что такое хойстинг (hoisting) в JavaScript?](#что-такое-хойстинг-hoisting-в-javascript) | | 25 | [Что такое классы в ES6 (ECMAScript 2015)?](#что-такое-классы-в-es6-ecmascript-2015) | | 26 | [Что такое замыкания (closures) в JavaScript?](#что-такое-замыкания-closures-в-javascript) | | 27 | [Что такое модули (modules) в JavaScript?](#что-такое-модули-modules-в-javascript) | | 28 | [Что такое область видимости (scope) в JavaScript?](#что-такое-область-видимости-scope-в-javascript) | | 29 | [Что такое сервисный работник (service worker) в JavaScript?](#что-такое-сервисный-работник-service-worker-в-javascript) | | 30 | [Как осуществлять изменение DOM с использованием сервисного работника?](#как-осуществлять-изменение-dom-с-использованием-сервисного-работника) | | 31 | [Как переиспользовать информацию между перезапусками сервисного работника?](#как-переиспользовать-информацию-между-перезапусками-сервисного-работника) | | 32 | [Что такое IndexedDB в JavaScript?](#что-такое-indexeddb-в-javascript) | | 33 | [Что такое веб-хранилище (web storage) в JavaScript?](#что-такое-веб-хранилище-web-storage-в-javascript) | | 34 | [Что такое сообщение postMessage в JavaScript?](#что-такое-сообщение-postmessage-в-javascript) | | 35 | [Что такое cookie (куки)?](#что-такое-cookie-куки) | | 36 | [Зачем нужны куки (Cookies)?](#зачем-нужны-куки-cookies) | | 37 | [Какие параметры можно задать в куки (Cookie)?](#какие-параметры-можно-задать-в-куки-cookie) | | 38 | [Как удалить куки (Cookie)?](#как-удалить-куки-cookie) | | 39 | [В чем разница между куками, локальным хранилищем и сессионным хранилищем?](#в-чем-разница-между-куками-локальным-хранилищем-и-сессионным-хранилищем) | | 40 | [В чем основное различие между локальным хранилищем и сессионным хранилищем?](#в-чем-основное-различие-между-локальным-хранилищем--и-сессионным-хранилищем) | | 41 | [Как получить доступ к веб-хранилищу (web storage)?](#как-получить-доступ-к-веб-хранилищу-web-storage) | | 42 | [Какие методы доступны в сессионном хранилище (sessionStorage)?](#какие-методы-доступны-в-сессионном-хранилище-sessionstorage) | | 43 | [Что такое событие хранилища (storage event) и его обработчик событий в JavaScript?](#что-такое-событие-хранилища-storage-event-и-его-обработчик-событий-в-javascript) | | 44 | [Зачем нужно веб-хранилище (web storage)?](#зачем-нужно-веб-хранилище-web-storage) | | 45 | [Как проверить поддержку веб-хранилища браузером?](#как-проверить-поддержку-веб-хранилища-браузером) | | 46 | [Как проверить поддержку веб-воркеров (web workers) в браузере?](#как-проверить-поддержку-веб-воркеров-web-workers-в-браузере) | | 47 | [Приведите пример использования веб-воркера (web worker) в JavaScript](#приведите-пример-использования-веб-воркера-web-worker-в-javascript) | | 48 | [Какие ограничения существуют у веб-воркеров по работе с DOM?](#какие-ограничения-существуют-у-веб-воркеров-по-работе-с-dom) | | 49 | [Что такое промис (Promise)?](#что-такое-промис-promise) | | 50 | [Зачем нужен промис (Promise)?](#зачем-нужен-промис-promise) | | 51 | [Каковы три состояния промиса (Promise)?](#каковы-три-состояния-промиса-promise) | | 51 | [Что такое функция обратного вызова (callback function)?](#что-такое-функция-обратного-вызова-callback-function) | | 53 | [Зачем нужны функции обратного вызова (callback)?](#зачем-нужны-функции-обратного-вызова-callback) | | 54 | [Что такое "callback hell"?](#что-такое-callback-hell) | | 55 | [Что такое события, отправляемые с сервера (Server-Sent Events)?](#что-такое-события-отправляемые-с-сервера-server-sent-events) | | 56 | [Как получать уведомления событий, отправляемых с сервера (Server-Sent Events)?](#как-получать-уведомления-событий-отправляемых-с-сервера-server-sent-events) | | 57 | [Как проверить поддержку браузером событий, отправляемых с сервера (Server-Sent Events)?](#как-проверить-поддержку-браузером-событий-отправляемых-с-сервера-server-sent-events) | | 58 | [Какие события доступны для событий, отправляемых с сервера (Server-Sent Events)?](#какие-события-доступны-для-событий-отправляемых-с-сервера-server-sent-events) | | 59 | [Каковы основные правила работы с промисами (Promise)?](#каковы-основные-правила-работы-с-промисами-promise) | | 60 | [то такое "callback внутри callbackа" (callback in callback)?](#что-такое-callback-внутри-callbackа-callback-in-callback) | | 61 | [Что такое цепочка промисов (Promise Chaining)?](#что-такое-цепочка-промисов-promise-chaining) | | 62 | [Что такое Promise.all?](#что-такое-promiseall) | | 63 | [Какова цель метода race в промисах?](#какова-цель-метода-race-в-промисах) | | 64 | [Что такое строгий режим (strict mode) в JavaScript?](#что-такое-строгий-режим-strict-mode-в-javascript) | | 65 | [Зачем нужен строгий режим (strict mode)?](#зачем-нужен-строгий-режим-strict-mode) | | 66 | [Как объявить строгий режим (strict mode)?](#как-объявить-строгий-режим-strict-mode) | | 67 | [Какова цель двойного восклицательного знака в JavaScript?](#какова-цель-двойного-восклицательного-знака-в-javascript) | | 68 | [Какова цель оператора delete в JavaScript?](#какова-цель-оператора-delete-в-javascript) | | 69 | [Что такое оператор typeof?](#что-такое-оператор-typeof) | | 70 | [Что такое свойство со значением undefined?](#что-такое-свойство-со-значением-undefined) | | 71 | [Что такое значение null?](#что-такое-значение-null) | | 72 | [В чем разница между значениями null и undefined?](#в-чем-разница-между-значениями-null-и-undefined) | | 73 | [Что такое eval?](#что-такое-eval) | | 74 | [В чем разница между window и document?](#в-чем-разница-между-window-и-document) | | 75 | [Как получить доступ к истории браузера в JavaScript?](#как-получить-доступ-к-истории-браузера-в-javascript) | | 76 | [Как определить, включена ли клавиша Caps Lock?](#как-определить-включена-ли-клавиша-caps-lock) | | 77 | [Что такое isNaN?](#что-такое-isnan) | | 78 | [Каковы различия между необъявленными и неопределенными переменными?](#каковы-различия-между-необъявленными-и-неопределенными-переменными) | | 79 | [Что такое глобальные переменные?](#что-такое-глобальные-переменные) | | 80 | [Какие проблемы связаны с использованием глобальных переменных?](#какие-проблемы-связаны-с-использованием-глобальных-переменных) | | 81 | [Что такое свойство NaN?](#что-такое-свойство-nan) | | 82 | [Каково назначение функции isFinite?](#каково-назначение-функции-isfinite) | | 83 | [Что такое поток событий (Event Flow)?](#что-такое-поток-событий-event-flow) | | 84 | [Что такое всплытие событий (Event Bubbling)?](#что-такое-всплытие-событий-event-bubbling) | | 85 | [Что такое захват событий (Event Capturing)?](#что-такое-захват-событий-event-capturing) | | 86 | [Как отправить форму с помощью JavaScript?](#как-отправить-форму-с-помощью-javascript) | | 87 | [Как получить информацию о операционной системе?](#как-получить-информацию-о-операционной-системе) | | 88 | [В чем разница между событиями загрузки документа и DOMContentLoaded?](#в-чем-разница-между-событиями-загрузки-документа-и-domcontentloaded) | | 89 | [В чем разница между встроенными, хост объектами и объектами пользовательского кода?](#в-чем-разница-между-встроенными-хост-объектами-и-объектами-пользовательского-кода) | | 90 | [Какие инструменты или методы используются для отладки кода на JavaScript?](#какие-инструменты-или-методы-используются-для-отладки-кода-на-javascript) | | 91 | [Каковы плюсы и минусы промисов по сравнению с обратными вызовами?](#каковы-плюсы-и-минусы-промисов-по-сравнению-с-обратными-вызовами) | | 92 | [В чем разница между атрибутом и свойством?](#в-чем-разница-между-атрибутом-и-свойством) | | 93 | [Что такое политика одного источника (Same Origin Policy)?](#что-такое-политика-одного-источника-same-origin-policy) | | 94 | [Какова цель использования void 0 в JavaScript?](#какова-цель-использования-void-0-в-javascript?) | | 95 | [Является ли JavaScript компилируемым или интерпретируемым языком?](#является-ли-javascript-компилируемым-или-интерпретируемым-языком) | | 96 | [Является ли JavaScript языком, чувствительным к регистру символов?](#является-ли-javascript-языком-чувствительным-к-регистру-символов) | | 97 | [Что такое события (events)?](#что-такое-события-events) | ## Способы создания объекта 1. Литеральная нотация: ``` var obj = {}; // пустой объект var person = { name: "John", age: 30, location: "New York" }; ``` 2. Функция-конструктор: ``` function Person(name, age, location) { this.name = name; this.age = age; this.location = location; } var john = new Person("John", 30, "New York"); ``` 3. Object.create(): ``` var personProto = { sayHello: function() { console.log("Hello!"); } }; var john = Object.create(personProto); john.name = "John"; john.age = 30; john.location = "New York"; ``` 4. Class (введена в ECMAScript 2015): ``` class Person { constructor(name, age, location) { this.name = name; this.age = age; this.location = location; } } var john = new Person("John", 30, "New York"); ``` **[⬆ Наверх](#содержание)** ## Цепочка прототипов Прототипное наследование в JavaScript основано на концепции цепочки прототипов, или прототипной цепочки. Каждый объект в JavaScript имеет свойство прототипа (**proto**), которое ссылается на другой объект, называемый прототипом. Если свойство не найдено в самом объекте, JavaScript будет искать его в прототипе, а затем в прототипе прототипа, и так далее, пока не будет найдено свойство или прототип станет равным null. Эта последовательность поиска свойств называется прототипной цепочкой. Прототипное наследование позволяет объекту наследовать свойства своего прототипа. Если свойство не найдено в самом объекте, оно будет искаться в его прототипе и так далее. Это позволяет создавать иерархии объектов, где более специфичные объекты наследуют свойства от более общих объектов. Например, если у объекта `obj` нет свойства `x`, JavaScript будет искать его в `obj.__proto__`, затем в `obj.__proto__.__proto__` и так далее, пока не будет найдено либо встретится null. **[⬆ Наверх](#содержание)** ## Разница между `call`, `apply` и `bind` В JavaScript, методы `call`, `apply` и `bind` используются для установки контекста выполнения функции и передачи аргументов. Метод `call` вызывает функцию с заданным контекстом и передает аргументы в виде отдельных значений. Синтаксис: `function.call(context, arg1, arg2, ...)`. Метод `apply` также вызывает функцию с заданным контекстом, но передает аргументы в виде массива. Синтаксис: `function.apply(context, [arg1, arg2, ...])`. Метод `bind` создает новую функцию, привязывая ее к определенному контексту выполнения и, при необходимости, предоставляя некоторые аргументы. Этот метод не вызывает функцию немедленно, а возвращает новую функцию, которую можно вызвать позже. Синтаксис: `function.bind(context, arg1, arg2, ...)`. Вызов новой функции `bind` с переданными аргументами вызовет исходную функцию с указанным контекстом. Основное отличие между `call`, `apply` и `bind` заключается в способе передачи аргументов. `call` передает аргументы в виде отдельных значений, `apply` передает аргументы в виде массива, а `bind` создает новую функцию с предустановленными аргументами. **[⬆ Наверх](#содержание)** ## Json и основные операции с ним JSON (JavaScript Object Notation) - это формат обмена данными, основанный на языке JavaScript. Он используется для передачи структурированных данных между клиентским и серверным приложениями. JSON представляет данные в удобном для чтения и записи формате и легко интерпретируется как людьми, так и компьютерами. Основные операции, которые можно выполнять с JSON, включают следующее: 1. Создание JSON-объекта: Можно создавать JSON-объекты, используя фигурные скобки {}. Внутри объекта можно определить пары "ключ-значение". 2. Запись данных в JSON: Значения могут быть строками, числами, логическими значениями (true/false), null или другими JSON-объектами или массивами. 3. Чтение данных из JSON: Можно обратиться к значениям в JSON с помощью их ключей и получить доступ к содержимому. 4. Обновление данных в JSON: Можно обновлять значения, присваивая новые значения ключам. 5. Удаление данных из JSON: Ключи и их значения могут быть удалены из JSON-объекта. 6. Парсинг и сериализация: JSON может быть преобразован из строки в формате JSON в структуру данных и обратно с помощью парсинга и сериализации. JSON является широко распространенным форматом данных, который часто используется в веб-разработке и API. Он легко читается компьютерами и людьми, и может быть использован практически на любом языке программирования. **[⬆ Наверх](#содержание)** ## Для чего нужен метод slice Метод `slice()` в JavaScript используется для создания нового массива, содержащего копию части исходного массива. Он позволяет выбирать элементы из исходного массива, начиная с указанного индекса и до определенного индекса (не включая его). Синтаксис метода `slice()` выглядит следующим образом: ```javascript array.slice(start, end); ``` **[⬆ Наверх](#содержание)** Где: - `start` - необязательный параметр, определяющий индекс, с которого начинается выбор элементов. Если `start` не указан, метод начинает выбор с индекса 0. - `end` - необязательный параметр, указывающий индекс, до которого выбираются элементы. Метод выбирает элементы до этого индекса, но не включая его. Если `end` не указан, метод выбирает все элементы от `start` до конца массива. Метод `slice()` возвращает новый массив, содержащий выбранные элементы. Исходный массив при этом не изменяется. Пример использования метода `slice()`: ```javascript let fruits = ["apple", "banana", "orange", "grapefruit", "kiwi"]; let citrus = fruits.slice(2, 4); console.log(citrus); // ['orange', 'grapefruit'] let lastTwo = fruits.slice(-2); console.log(lastTwo); // ['grapefruit', 'kiwi'] let copy = fruits.slice(); console.log(copy); // ['apple', 'banana', 'orange', 'grapefruit', 'kiwi'] ``` В первом примере метод `slice(2, 4)` выбирает элементы с индексами 2 и 3 из массива `fruits` и возвращает новый массив `['orange', 'grapefruit']`. Во втором примере метод `slice(-2)` выбирает последние два элемента из массива `fruits` и возвращает новый массив `['grapefruit', 'kiwi']`. В последнем примере метод `slice()` без аргументов создает копию исходного массива `fruits` и возвращает новый массив `['apple', 'banana', 'orange', 'grapefruit', 'kiwi']`. **[⬆ Наверх](#содержание)** ## Для чего нужен метод splice Метод `splice()` в JavaScript используется для изменения содержимого массива путем удаления, замены или добавления элементов. Он может принимать несколько аргументов, включая индекс начала изменения, количество элементов для удаления и элементы, которые нужно добавить. Например, если мы хотим удалить элементы из массива, мы можем использовать `splice()` следующим образом: ```javascript const fruits = ["яблоко", "груша", "банан", "апельсин"]; // Удаляем один элемент начиная с индекса 1 fruits.splice(1, 1); // Результат: ['яблоко', 'банан', 'апельсин'] // Удаляем два элемента начиная с индекса 0 и заменяем их другими элементами fruits.splice(0, 2, "манго", "киви"); // Результат: ['манго', 'киви', 'банан', 'апельсин'] ``` Таким образом, метод `splice()` позволяет нам гибко изменять содержимое массива, добавлять новые элементы и удалять существующие. **[⬆ Наверх](#содержание)** ## Разница между `slice()` и `splice()` Методы `slice()` и `splice()` в JavaScript имеют разные цели и функциональность. Метод `slice()` используется для создания нового массива, который будет содержать выбранные элементы из исходного массива. Он принимает два аргумента: начальный индекс и конечный индекс (не включая сам элемент с указанным конечным индексом). `slice()` возвращает новый массив, содержащий выбранные элементы, исходный массив остается неизменным. Пример использования `slice()`: ```javascript const fruits = ["яблоко", "груша", "банан", "апельсин"]; const selectedFruits = fruits.slice(1, 3); // Результат: ['груша', 'банан'] ``` Метод `splice()`, напротив, изменяет исходный массив, позволяя удалять, заменять или добавлять элементы. Он принимает несколько аргументов, включая индекс начала изменений, количество элементов для удаления, а также элементы, которые нужно добавить в массив. `splice()` возвращает массив удаленных элементов или пустой массив (если ничего не было удалено). Пример использования `splice()`: ```javascript const fruits = ["яблоко", "груша", "банан", "апельсин"]; fruits.splice(1, 2); // Результат: ['яблоко', 'апельсин'] fruits.splice(1, 0, "манго", "киви"); // Результат: ['яблоко', 'манго', 'киви', 'апельсин'] ``` Таким образом, основное отличие между `slice()` и `splice()` заключается в том, что `slice()` создает новый массив, содержащий выбранные элементы, не изменяя исходный массив, а `splice()` изменяет исходный массив путем удаления, замены или добавления элементов. **[⬆ Наверх](#содержание)** ## Как сравнить Object и Map Объекты (Objects) и карты (Maps) являются структурами данных в JavaScript и используются для хранения пар ключ-значение. Однако у них есть некоторые различия в функциональности и использовании. Объекты в JavaScript являются коллекциями свойств, где каждое свойство имеет имя (ключ) и соответствующее значение. Ключи в объектах являются строками или символами. Объекты поддерживают доступ к значениям по ключу, добавление и удаление свойств, итерацию по свойствам и прочие операции. Однако у объектов также есть прототипы и методы, которые позволяют наследовать и расширять свойства и функциональность объектов. Map, с другой стороны, является коллекцией, где значения хранятся в виде пар ключ-значение. Ключи в Map могут быть любого типа данных, включая объекты и функции. Map поддерживает операции добавления, удаления и обновления пар ключ-значение, а также получение значения по ключу. Он также предоставляет методы для итерации по парам ключ-значение и общую информацию о размере коллекции. Основная разница между объектами и картами заключается в том, что объекты лучше подходят для создания и управления свойствами с определенной структурой, тогда как карты обеспечивают более гибкую структуру данных и позволяют использовать любой тип данных в качестве ключа. Кроме того, карты имеют лучшую производительность в случаях, когда требуется частое добавление и удаление пар ключ-значение. **[⬆ Наверх](#содержание)** ### Разница между == и === операторами Оператор "==" используется для сравнения значений двух операндов и возвращает true, если значения равны. Однако, при использовании оператора "==" не происходит проверка на тип данных операндов. Оператор "===" (тройное равенство) используется для строгого сравнения значений и типов данных двух операндов. Он возвращает true, только если значения и типы данных операндов полностью совпадают. Например: 1 == "1" возвращает true, так как значения равны, несмотря на разные типы данных (число и строка). 1 === "1" возвращает false, так как значения отличаются и типы данных тоже отличны (число и строка). **[⬆ Наверх](#содержание)** ## Лямбда функции и стрелочные функции Лямбда-функции или стрелочные функции в JavaScript представляют собой сокращенный синтаксис для создания функций. Они были добавлены в стандарт ECMAScript 6 (ES6) и позволяют определить функции более компактно и кратко. Синтаксис лямбда-функции выглядит следующим образом: (parameter1, parameter2, ..., parameterN) => { // код функции } Этот синтаксис позволяет передавать параметры функции в скобках и описывать тело функции после стрелки (=>). Если тело функции состоит из единственного выражения, то оно может быть написано без фигурных скобок. В этом случае значение этого выражения автоматически станет возвращаемым значением функции. Примеры использования лямбда-функций: // Обычная функция function multiply(a, b) { return a \* b; } // Лямбда-функция const multiply = (a, b) => a \* b; // Вызов функции console.log(multiply(2, 3)); // Выведет 6 Лямбда-функции очень удобны в тех случаях, когда требуется использовать функции как аргументы в других функциях (например, методы массивов, такие как map, filter, reduce и т.д.), либо для определения кратких, однострочных функций. **[⬆ Наверх](#содержание)** ## Что такое функция первого класса в JavaScript? Функция первого класса в JavaScript - это функция, которая может быть присвоена переменной, передана как аргумент в другую функцию и возвращена из функции в качестве результата. В JavaScript функции являются объектами и могут быть использованы также, как и другие типы данных, такие как строки или числа. Это означает, что функции могут быть сохранены в переменных, использованы в качестве аргументов других функций и возвращены из функций. Функции первого класса играют важную роль в функциональном программировании и позволяют использовать функции в качестве модулей, создавать замыкания и применять другие функциональные парадигмы программирования. **[⬆ Наверх](#содержание)** ## Функции первого порядка функция, которая может быть присвоена переменной, передана как аргумент в другую функцию или возвращена как результат другой функции. Такие функции могут быть использованы как любые другие значения в языке программирования. Вот пример первоклассной функции в JavaScript: ```javascript function sayHello(name) { console.log("Привет, " + name + "!"); } var greeting = sayHello; // присвоение функции переменной greeting("Максим"); // вызов функции через переменную ``` В данном примере функция `sayHello` присваивается переменной `greeting` и далее вызывается через эту переменную. Это один из примеров использования первоклассных функций в JavaScript. **[⬆ Наверх](#содержание)** ## Что такое функция высшего порядка в JavaScript? Функция высшего порядка (higher order function) в JavaScript - это функция, которая принимает другую функцию в качестве аргумента или возвращает функцию в качестве результата. Это особое свойство языка, которое позволяет работать с функциями как с данными и использовать их в различных сценариях. Пример функции высшего порядка в JavaScript: ```javascript function multiplyBy(factor) { return function (number) { return number * factor; }; } var multiplyByTwo = multiplyBy(2); var multiplyByThree = multiplyBy(3); console.log(multiplyByTwo(4)); // Вывод: 8 console.log(multiplyByThree(4)); // Вывод: 12 ``` В этом примере функция `multiplyBy` принимает фактор и возвращает анонимную функцию, которая умножает число на данный фактор. Затем функции `multiplyByTwo` и `multiplyByThree` используются для умножения чисел на 2 и 3 соответственно. Функции высшего порядка являются мощным инструментом в JavaScript и могут быть использованы для создания более гибкого и абстрактного кода. **[⬆ Наверх](#содержание)** ## Унарная функция Унарная функция (unary function) в JavaScript - это функция, которая принимает только один аргумент. Она обрабатывает этот аргумент и возвращает результат. Вот пример унарной функции на русском языке: ```javascript // Унарная функция, преобразующая число в его квадрат function квадрат(число) { return число * число; } // Вызов унарной функции let число = 5; let квадратЧисла = квадрат(число); console.log(квадратЧисла); // Выведет 25 ``` **[⬆ Наверх](#содержание)** ## Что такое каррирование в JavaScript? Каррирование (currying) - это техника функционального программирования, которая позволяет превратить функцию с несколькими аргументами в последовательность функций, каждая из которых принимает только один аргумент. Вот пример каррированной функции на русском языке, которая складывает два числа: ```javascript // Каррированная функция, складывающая два числа function сложить(a) { return function (b) { return a + b; }; } // Вызов каррированной функции let результат = сложить(2)(3); console.log(результат); // Выведет 5 ``` В этом примере `сложить(2)` возвращает функцию, которая принимает один аргумент `b` и возвращает сумму `a + b`. Затем `сложить(2)(3)` принимает второй аргумент `3` и возвращает результат сложения `2 + 3`. **[⬆ Наверх](#содержание)** ## Что такое чистая функция в JavaScript? Чистая функция (pure function) - это функция, которая всегда возвращает одинаковый результат при одинаковых входных данных и не имеет побочных эффектов. Она не изменяет состояние программы или какие-либо внешние переменные. Вот пример чистой функции на русском языке, которая складывает два числа: ```javascript // Чистая функция, складывающая два числа function сложить(a, b) { return a + b; } // Вызов чистой функции let результат = сложить(2, 3); console.log(результат); // Выведет 5 ``` В этом примере функция `сложить` всегда возвращает одинаковый результат для одних и тех же входных данных `a` и `b`, и она не влияет на состояние программы или внешние переменные. **[⬆ Наверх](#содержание)** ## Какова цель ключевого слова "let" в JavaScript? В JavaScript ключевое слово "let" используется для объявления блочной переменной, которая имеет область видимости ограниченную блоком кода, в котором она объявлена. Это отличается от ключевого слова "var", которое имеет функциональную область видимости. Вот пример использования ключевого слова "let" на русском языке: ```javascript function примерФункции() { if (условие) { let переменная = "Значение переменной"; console.log(переменная); // Выведет "Значение переменной" } console.log(переменная); // Вызовет ошибку ReferenceError: переменная is not defined } примерФункции(); ``` В этом примере переменная "переменная" объявлена с помощью ключевого слова "let" внутри блока кода условия. Она доступна только внутри этого блока, и обращение к ней за пределами блока вызовет ошибку. **[⬆ Наверх](#содержание)** ## В чем разница между let и var в JavaScript? В JavaScript существуют два ключевых слова для объявления переменных: `let` и `var`. Вот основные различия между ними: 1. Область видимости (scope): - Переменные, объявленные с помощью `var`, имеют функциональную область видимости. Это означает, что они доступны внутри функции, в которой они объявлены, независимо от блока кода. - Переменные, объявленные с помощью `let`, имеют блочную область видимости. Они доступны только в пределах блока кода, в котором они объявлены. 2. Поднятие (hoisting): - Переменные, объявленные с помощью `var`, поднимаются (hoisting) вверх области видимости. Это означает, что их можно использовать до того, как они были объявлены в коде. - Переменные, объявленные с помощью `let`, не поднимаются. Они существуют только после того, как они были объявлены в коде. 3. Повторное объявление: - Переменные, объявленные с помощью `var`, могут быть повторно объявлены в той же области видимости без вызова ошибки. Новое значение будет присвоено переменной. - Переменные, объявленные с помощью `let`, не могут быть повторно объявлены в той же области видимости. Попытка повторного объявления вызовет ошибку. Вот пример, демонстрирующий разницу между `let` и `var` на русском языке: ```javascript function примерФункции() { if (true) { var переменнаяVar = "Значение var"; let переменнаяLet = "Значение let"; } console.log(переменнаяVar); // Выведет "Значение var" console.log(переменнаяLet); // Вызовет ошибку ReferenceError: переменнаяLet is not defined } примерФункции(); ``` В этом примере переменная `переменнаяVar`, объявленная с помощью `var`, доступна за пределами блока кода условия. Однако переменная `переменнаяLet`, объявленная с помощью `let`, не доступна за пределами блока и вызовет ошибку. **[⬆ Наверх](#содержание)** ## Как переопределить переменные в блоке switch без ошибки в JavaScript? В JavaScript, переменные внутри блока switch могут быть переопределены без ошибки, так как блок switch создает свою собственную область видимости для каждого случая (case). Это позволяет использовать одно и то же имя переменной в разных случаях без конфликтов. Пример: ```javascript let option = 2; switch (option) { case 1: let message = "Первый вариант"; console.log(message); break; case 2: let message = "Второй вариант"; // Нет ошибки, так как это отдельная область видимости console.log(message); break; default: let message = "Другой вариант"; console.log(message); } ``` В этом примере каждый блок case имеет свою собственную область видимости для переменной `message`, поэтому нет ошибок при переопределении переменной внутри блока switch. **[⬆ Наверх](#содержание)** ## Что такое "Temporal Dead Zone" в JavaScript? "Temporal Dead Zone" (временная мертвая зона) в JavaScript - это период существования переменной, когда она уже была объявлена с использованием ключевых слов `let` или `const`, но еще не может быть использована до тех пор, пока не будет до нее достигнут код выполнения. В этот период попытка доступа к переменной приведет к ошибке. Это связано с тем, что переменные, объявленные с использованием `let` и `const`, имеют блочную область видимости и не подвергаются "всплытию" (hoisting) в начало своего блока. Они существуют только после объявления и до того момента, как выполнение программы достигнет строки, на которой они были объявлены. Пример: ```javascript console.log(name); // Будет ошибка временной мертвой зоны let name = "Alice"; ``` В этом примере будет ошибка "ReferenceError", потому что переменная `name` уже объявлена, но на момент вывода она все еще находится во временной мертвой зоне, и к ней нельзя обратиться до фактического объявления. **[⬆ Наверх](#содержание)** ## Что такое IIFE (Immediately Invoked Function Expression) в JavaScript? IIFE (Immediately Invoked Function Expression) в JavaScript - это паттерн, при котором функция определяется и немедленно вызывается (выполняется) в том же месте, где она была объявлена. Этот подход позволяет создать локальную область видимости для изолирования переменных и кода, исключая возможные конфликты имён с другими частями программы. Пример: ```javascript (function () { var message = "Привет из IIFE!"; console.log(message); })(); // Функция вызывается сразу после объявления // Нельзя обратиться к переменной message вне IIFE, так как она находится в её области видимости console.log(message); // Это вызовет ошибку ``` Здесь анонимная функция определена внутри круглых скобок `(function() {...})` и сразу же вызывается, заключив `()` в конце. Это создает свою область видимости, в которой можно безопасно определять переменные, не затрагивая глобальное пространство имён. **[⬆ Наверх](#содержание)** ## Как декодировать или закодировать URL в JavaScript? В JavaScript для декодирования (преобразования из закодированного вида в читаемый) или кодирования (преобразования из читаемого вида в закодированный) URL используются методы `decodeURI()`, `encodeURI()`, `decodeURIComponent()` и `encodeURIComponent()`. ### Декодирование: - `decodeURI()` используется для декодирования всего URL. - `decodeURIComponent()` применяется для декодирования компонентов URL, таких как параметры. Пример декодирования: ```javascript let encodedURL = "https%3A%2F%2Fexample.com%2F%3Fq%3D%D0%BF%D1%80%D0%B8%D0%BC%D0%B5%D1%80"; let decodedURL = decodeURIComponent(encodedURL); console.log(decodedURL); ``` **[⬆ Наверх](#содержание)** ### Кодирование: - `encodeURI()` используется для кодирования всего URL. - `encodeURIComponent()` применяется для кодирования компонентов URL, чтобы делать их безопасными для передачи. Пример кодирования: ```javascript let url = "https://example.com/?q=пример"; let encodedURL = encodeURI(url); console.log(encodedURL); ``` При использовании `encodeURIComponent()`: ```javascript let query = "пример запроса"; let encodedQuery = encodeURIComponent(query); console.log(encodedQuery); ``` Важно понимать разницу между этими методами и выбирать правильный в зависимости от контекста. ## Что такое мемоизация (memoization) в JavaScript? Мемоизация (memoization) в JavaScript - это оптимизационная техника, которая заключается в сохранении результатов выполнения дорогостоящих функций, чтобы избежать повторных вычислений при одних и тех же входных данных. Суть мемоизации заключается в кешировании результатов функции на основе аргументов, что позволяет сократить время выполнения, особенно для функций с большими вычислительными затратами. ### Пример мемоизации: ```javascript function expensiveCalculation(n) { console.log("Вычисление для", n); return n * 2; } function memoizedCalculation() { let cache = {}; // Кеш для результатов return function (n) { if (n in cache) { console.log("Используется кеш для", n); return cache[n]; } else { cache[n] = expensiveCalculation(n); return cache[n]; } }; } const memoized = memoizedCalculation(); console.log(memoized(5)); // Первый вызов, вычисление для 5 console.log(memoized(5)); // Используется кеш для 5 console.log(memoized(8)); // Первый вызов, вычисление для 8 console.log(memoized(8)); // Используется кеш для 8 ``` В этом примере `memoizedCalculation()` возвращает функцию, которая использует кеш для хранения результатов `expensiveCalculation()`. При первом вызове функции с определенным аргументом результат вычисления сохраняется в кеше, а при последующих вызовах для того же аргумента результат берется из кеша, что сэкономит время и вычислительные ресурсы. **[⬆ Наверх](#содержание)** ## Что такое хойстинг (hoisting) в JavaScript? Хостинг (hoisting) в JavaScript - это поведение, при котором объявления переменных и функций перемещаются в начало своей области видимости во время компиляции (до выполнения кода). Это может привести к тому, что вы можете обращаться к переменным или функциям до их фактического объявления. ### Пример хойстинга переменных: ```javascript console.log(message); // undefined, но не будет ошибки var message = "Привет, хойстинг!"; console.log(message); // "Привет, хостинг!" ``` Первый вызов `console.log()` покажет `undefined`, потому что переменная `message` уже поднята (hoisted) в начало области видимости, но ей еще не присвоено значение. Второй вызов покажет фактическое значение переменной. ### Пример хойстинга функций: ```javascript greet(); // "Привет, хойстинг функций!" function greet() { console.log("Привет, хойстинг функций!"); } ``` В этом примере функция `greet()` также поднимается в начало области видимости, поэтому её можно вызвать до фактического объявления. Хойстинг может быть запутанным и привести к неожиданным результатам, поэтому рекомендуется всегда объявлять переменные и функции перед их использованием. **[⬆ Наверх](#содержание)** ## Что такое классы в ES6 (ECMAScript 2015)? Классы в ES6 представляют собой синтаксический сахар для создания объектно-ориентированных шаблонов. Они предоставляют более удобный способ создания конструкторов и прототипов, с помощью которых можно создавать объекты с общими свойствами и методами. ### Пример класса в ES6: ```javascript class Person { constructor(name, age) { this.name = name; this.age = age; } sayHello() { console.log(`Привет, меня зовут ${this.name} и мне ${this.age} лет.`); } } const person1 = new Person("Алиса", 25); person1.sayHello(); // "Привет, меня зовут Алиса и мне 25 лет." ``` В этом примере `Person` - это класс, который имеет конструктор и метод `sayHello()`. Конструктор используется для инициализации свойств объекта, а метод `sayHello()` выводит информацию о человеке. Классы также могут иметь методы `get` и `set` для работы с свойствами объекта, а также наследоваться с помощью ключевого слова `extends`. **[⬆ Наверх](#содержание)** ### Пример использования наследования: ```javascript class Student extends Person { constructor(name, age, course) { super(name, age); this.course = course; } study() { console.log(`${this.name} изучает курс ${this.course}.`); } } const student1 = new Student("Боб", 21, "Информатика"); student1.sayHello(); // "Привет, меня зовут Боб и мне 21 год." student1.study(); // "Боб изучает курс Информатика." ``` В этом примере `Student` наследует свойства и методы от класса `Person` и добавляет свои собственные. **[⬆ Наверх](#содержание)** ## Что такое замыкания (closures) в JavaScript? Замыкания (closures) в JavaScript - это феномен, при котором функция сохраняет доступ к переменным из внешней области видимости, даже после завершения выполнения этой функции. Это позволяет функции "запомнить" значения переменных, существующих в том контексте, в котором она была создана. ### Пример замыкания: ```javascript function createCounter() { let count = 0; return function () { count++; return count; }; } const counter = createCounter(); console.log(counter()); // 1 console.log(counter()); // 2 console.log(counter()); // 3 ``` В этом примере `createCounter()` возвращает функцию, которая имеет доступ к переменной `count`, хотя `createCounter()` уже выполнена. Это происходит из-за замыкания: функция "запоминает" контекст, в котором она была создана, и сохраняет доступ к переменным этого контекста. Замыкания часто используются для создания частных переменных и данных, скрытых от глобальной области видимости, и для создания функций обратного вызова. **[⬆ Наверх](#содержание)** ### Пример использования замыкания в функции обратного вызова: ```javascript function doSomething(callback) { let result = 42; callback(result); } doSomething(function (data) { console.log("Получено:", data); // "Получено: 42" }); ``` Функция обратного вызова сохраняет доступ к переменной `result` благодаря замыканию. **[⬆ Наверх](#содержание)** ## Что такое модули (modules) в JavaScript? Модули (modules) в JavaScript - это механизм организации кода, который позволяет разбивать программу на небольшие независимые части, называемые модулями. Каждый модуль содержит свои функции, переменные, классы и другие сущности, и предоставляет интерфейс для работы с ними. Модули помогают управлять сложностью кода, обеспечивая изоляцию и переиспользуемость. ### Пример модуля в ES6: ```javascript // Модуль в файле math.js export function add(a, b) { return a + b; } export function subtract(a, b) { return a - b; } // Другой файл import { add, subtract } from "./math.js"; console.log(add(5, 3)); // 8 console.log(subtract(10, 4)); // 6 ``` В этом примере модуль `math.js` экспортирует функции `add` и `subtract`, которые могут быть импортированы и использованы в другом файле. Модули также могут экспортировать и импортировать по умолчанию, а также содержать частные (недоступные извне) и публичные (доступные извне) члены. ### Пример экспорта и импорта по умолчанию: ```javascript // Модуль в файле greetings.js export default function greet(name) { return `Привет, ${name}!`; } // Другой файл import greet from "./greetings.js"; console.log(greet("Алиса")); // "Привет, Алиса!" ``` В этом примере функция `greet` экспортируется по умолчанию и импортируется в другом файле без фигурных скобок. **[⬆ Наверх](#содержание)** ## Зачем нужны модули? Модули в программировании используются для структурирования кода, обеспечения изоляции, повторного использования и поддержки масштабируемости. Они позволяют разбивать сложные программы на более мелкие и логически связанные части, что упрощает их разработку, сопровождение и понимание. Преимущества использования модулей: 1. **Изоляция**: Модули создают свою собственную область видимости, что предотвращает конфликты имён и позволяет объявлять частные члены, недоступные извне модуля. 2. **Переиспользование**: Модули могут быть повторно использованы в разных частях программы или даже в разных проектах. Это способствует снижению дублирования кода и упрощает обновление. 3. **Разделение ответственности**: Модули позволяют разделить функциональность программы на логические блоки, каждый из которых отвечает за свою часть задачи. 4. **Улучшение читаемости**: Модули делают код более читаемым, так как позволяют сконцентрироваться на отдельных аспектах приложения. 5. **Масштабируемость**: Разбиение программы на модули делает проект более масштабируемым. Вы можете добавлять и изменять функциональность в одном модуле, не затрагивая другие части кода. ### Пример использования модулей: Предположим, у вас есть проект веб-приложения, и вы хотите отделить логику работы с базой данных от логики отображения. Вы можете создать два модуля: один для работы с базой данных и другой для управления пользовательским интерфейсом. Это упростит разработку, позволит разработчикам концентрироваться на своей области ответственности и улучшит общую структуру проекта. ## Что такое область видимости (scope) в JavaScript? Область видимости (scope) в JavaScript определяет, где и какие переменные и функции будут видимы и доступны в определенной части кода. Область видимости контролирует, какие имена переменных можно использовать в данной части программы и какие не мешают друг другу. **[⬆ Наверх](#содержание)** ### Пример области видимости: ```javascript function outer() { let outerVar = "Я виден только внутри outer()"; function inner() { let innerVar = "Я виден только внутри inner()"; console.log(innerVar); // "Я виден только внутри inner()" console.log(outerVar); // "Я виден только внутри outer()" } inner(); // Нельзя обратиться к innerVar здесь } // Нельзя обратиться к outerVar здесь ``` В этом примере функция `inner()` имеет доступ как к переменной `innerVar`, так и к переменной `outerVar`, потому что она находится внутри области видимости функции `outer()`. Однако переменная `innerVar` недоступна за пределами функции `inner()`, и переменная `outerVar` недоступна за пределами функции `outer()`. Область видимости может быть глобальной или локальной. Глобальная область видимости означает, что переменная или функция доступны во всем коде, а локальная область видимости ограничивает доступ только внутри определенной функции или блока кода. **[⬆ Наверх](#содержание)** ## Что такое сервисный работник (service worker) в JavaScript? Сервисный работник (service worker) в JavaScript - это скрипт, который выполняется в фоновом режиме, независимо от веб-страницы, которая его зарегистрировала. Сервисные работники широко используются для реализации различных задач, таких как кэширование ресурсов, работа в офлайн-режиме, пуш-уведомления и другие. Сервисные работники позволяют веб-приложениям быть более отзывчивыми и надежными, предоставляя возможность контролировать сетевые запросы и взаимодействовать с браузером даже в офлайн-режиме. ### Пример использования сервисного работника: ```javascript // Регистрация сервисного работника if ("serviceWorker" in navigator) { navigator.serviceWorker .register("/service-worker.js") .then((registration) => { console.log("Сервисный работник зарегистрирован:", registration); }) .catch((error) => { console.error("Ошибка при регистрации сервисного работника:", error); }); } ``` Создайте файл `service-worker.js` и добавьте в него логику работы сервисного работника: ```javascript // service-worker.js self.addEventListener("install", (event) => { event.waitUntil( caches.open("my-cache").then((cache) => { return cache.addAll(["/", "/index.html", "/styles.css", "/script.js"]); }) ); }); self.addEventListener("fetch", (event) => { event.respondWith( caches.match(event.request).then((response) => { return response || fetch(event.request); }) ); }); ``` В этом примере сервисный работник регистрируется и управляет кэшированием ресурсов. В момент установки работника, он добавляет некоторые ресурсы в кеш, и затем при запросе ресурсов, сервисный работник проверяет, есть ли ресурс в кеше, и возвращает его из кеша, если возможно. **[⬆ Наверх](#содержание)** ## Как осуществлять изменение DOM с использованием сервисного работника? Сервисные работники (service workers) не имеют прямого доступа к DOM (Document Object Model) из-за своей асинхронной природы и независимости от конкретных веб-страниц. Однако, вы можете использовать сервисные работники для перехвата сетевых запросов, кеширования ресурсов и динамической загрузки контента в DOM. ### Пример динамической загрузки контента с использованием сервисного работника: Предположим, у вас есть элемент с идентификатором `dynamic-content`, и вы хотите динамически загрузить контент в него с использованием сервисного работника. ```javascript // В файле service-worker.js self.addEventListener("fetch", (event) => { if (event.request.url.endsWith("/dynamic-content")) { event.respondWith( fetch("https://api.example.com/data") // Пример запроса к серверу для получения данных .then((response) => response.text()) .then( (data) => new Response(data, { headers: { "Content-Type": "text/html" } }) ) ); } }); ``` В этом примере, при запросе к URL, оканчивающемуся на `/dynamic-content`, сервисный работник перехватывает запрос, отправляет запрос на сервер для получения данных и затем создает и возвращает новый `Response` с этими данными. ```html <!-- В вашей веб-странице --> <div id="dynamic-content"></div> <script> // В этом примере JavaScript на вашей веб-странице if ("serviceWorker" in navigator) { navigator.serviceWorker .register("/service-worker.js") .then((registration) => { console.log("Сервисный работник зарегистрирован:", registration); }) .catch((error) => { console.error("Ошибка при регистрации сервисного работника:", error); }); } </script> ``` В данном примере, при наличии активированного сервисного работника, он будет перехватывать запросы к `/dynamic-content` и вставлять полученный контент в соответствующий элемент DOM на веб-странице. **Обратите внимание**, что манипуляции DOM непосредственно из сервисного работника невозможны из-за их асинхронной природы и того, что они могут работать вне контекста конкретной страницы. **[⬆ Наверх](#содержание)** ## Как переиспользовать информацию между перезапусками сервисного работника? Для переиспользования информации между перезапусками сервисного работника можно использовать браузерное хранилище, такое как `localStorage`, `IndexedDB` или кэш сервисного работника. ### Пример использования кэша сервисного работника для сохранения информации: ```javascript // В файле service-worker.js self.addEventListener("install", (event) => { event.waitUntil( caches.open("my-cache").then((cache) => { return cache.addAll(["/static-resource"]); // Пример статического ресурса для кэширования }) ); }); self.addEventListener("fetch", (event) => { event.respondWith( caches.match(event.request).then((response) => { if (response) { return response; } return fetch(event.request); }) ); }); self.addEventListener("message", (event) => { if (event.data.action === "saveInfo") { caches.open("my-cache").then((cache) => { cache.put("saved-info", new Response(JSON.stringify(event.data.info))); }); } }); ``` ```javascript // На веб-странице if ("serviceWorker" in navigator) { navigator.serviceWorker .register("/service-worker.js") .then((registration) => { console.log("Сервисный работник зарегистрирован:", registration); }) .catch((error) => { console.error("Ошибка при регистрации сервисного работника:", error); }); } navigator.serviceWorker.ready.then((registration) => { const savedInfo = { data: "Это сохраненная информация" }; // Отправляем сообщение сервисному работнику для сохранения информации в кэше registration.active.postMessage({ action: "saveInfo", info: savedInfo }); }); ``` В этом примере, при установке сервисного работника, статический ресурс (`'/static-resource'`) кэшируется. При перезапуске сервисного работника, сохраненная информация (`savedInfo`) отправляется сервисному работнику через сообщение (`postMessage`), и он сохраняет эту информацию в кэше. Таким образом, информация переиспользуется между перезапусками. **[⬆ Наверх](#содержание)** ## Что такое IndexedDB в JavaScript? IndexedDB - это встроенная база данных в браузерах, предназначенная для хранения и управления большими объемами структурированных данных. Она предоставляет возможность веб-приложениям хранить данные на стороне клиента, даже при отсутствии подключения к интернету. Это специальная форма хранилища ключ-значение, где значения могут быть сложными объектами или структурами данных. ### Пример использования IndexedDB: ```javascript // Открываем или создаем базу данных "my-database" с версией 1 var request = indexedDB.open("my-database", 1); // Обработчик успешного открытия базы данных request.onsuccess = function (event) { var db = event.target.result; // Создаем транзакцию для доступа к объектному хранилищу "my-store" var transaction = db.transaction(["my-store"], "readwrite"); // Получаем объектное хранилище var store = transaction.objectStore("my-store"); // Добавляем данные в хранилище store.add({ id: 1, name: "Алиса" }); }; // Обработчик создания или обновления базы данных request.onupgradeneeded = function (event) { var db = event.target.result; // Создаем объектное хранилище "my-store" с индексом "name" var store = db.createObjectStore("my-store", { keyPath: "id" }); store.createIndex("name", "name", { unique: false }); }; ``` В этом примере создается база данных "my-database" с объектным хранилищем "my-store". Данные добавляются в хранилище с использованием транзакции. Также создается индекс "name" для поиска по имени. IndexedDB предоставляет более сложные функции по сравнению с простыми хранилищами, такими как `localStorage`, и позволяет производить запросы, индексировать данные и выполнять сложные операции с базой данных на стороне клиента. **[⬆ Наверх](#содержание)** ## Что такое веб-хранилище (web storage) в JavaScript? Веб-хранилище (web storage) - это механизм для хранения данных на стороне клиента в браузере. Он предоставляет два объекта, `localStorage` и `sessionStorage`, которые позволяют сохранять данные в формате ключ-значение. Данные хранятся в браузере и доступны даже после перезагрузки страницы. ### Пример использования `localStorage`: ```javascript // Сохраняем данные в localStorage localStorage.setItem("username", "Alice"); localStorage.setItem("age", "25"); // Получаем данные из localStorage const username = localStorage.getItem("username"); const age = localStorage.getItem("age"); console.log(username); // "Alice" console.log(age); // "25" // Удаляем данные из localStorage localStorage.removeItem("username"); localStorage.clear(); // Очищаем все данные ``` ### Пример использования `sessionStorage`: ```javascript // Сохраняем данные в sessionStorage sessionStorage.setItem("city", "New York"); // Получаем данные из sessionStorage const city = sessionStorage.getItem("city"); console.log(city); // "New York" // Удаляем данные из sessionStorage sessionStorage.removeItem("city"); ``` `localStorage` сохраняет данные на неограниченный срок или до тех пор, пока они не будут удалены вручную. `sessionStorage` хранит данные только в течение сессии браузера, и они будут удалены при закрытии вкладки или браузера. Веб-хранилище обычно используется для сохранения небольших объемов данных, таких как настройки пользователя, состояния приложения или кэширования данных. **[⬆ Наверх](#содержание)** ## Что такое сообщение postMessage в JavaScript? Сообщение `postMessage` в JavaScript - это механизм коммуникации между окнами/вкладками браузера, работающими на одном и том же домене. Он позволяет отправлять данные и сообщения от одного окна к другому в безопасной среде. ### Пример использования `postMessage`: Предположим, у вас есть две веб-страницы, `parent.html` и `child.html`, открытые в разных вкладках браузера. ```html <!-- parent.html --> <!DOCTYPE html> <html> <head> <title>Родитель</title> </head> <body> <iframe src="child.html" id="childFrame"></iframe> <script> const childFrame = document.getElementById("childFrame").contentWindow; function sendMessage() { childFrame.postMessage("Привет, дочка!", "http://localhost:8000"); // Замените на свой домен } </script> </body> </html> ``` ```html <!-- child.html --> <!DOCTYPE html> <html> <head> <title>Дочь</title> </head> <body> <script> window.addEventListener("message", (event) => { if (event.origin === "http://localhost:8000") { // Замените на свой домен console.log("Получено сообщение от родителя:", event.data); } }); </script> </body> </html> ``` В этом примере, при вызове функции `sendMessage` на странице `parent.html`, сообщение "Привет, дочка!" будет отправлено во фрейм `child.html`. Фрейм прослушивает событие `message` и выводит полученное сообщение в консоль. Важно обратить внимание, что `postMessage` безопасен, только если вы явно проверяете источник (поле `event.origin`) при обработке сообщений, чтобы избежать возможных атак через сообщения. **[⬆ Наверх](#содержание)** ## Что такое cookie (куки)? Cookie (куки) - это небольшие фрагменты данных, которые веб-сайты отправляют и хранят на компьютере пользователя через веб-браузер. Куки используются для хранения информации о состоянии, настройках пользователя, а также для отслеживания и аутентификации. ### Пример использования cookie: Предположим, у вас есть веб-сайт, который сохраняет язык, выбранный пользователем. ```javascript // Записываем значение в cookie document.cookie = "language=english; expires=Fri, 31 Dec 2023 23:59:59 GMT; path=/"; // Чтение значения из cookie const cookies = document.cookie; console.log(cookies); // "language=english; ..." ``` В этом примере значение "language=english" записывается в cookie. Это значение будет доступно на всех страницах сайта, которые находятся в той же директории (путь `/`), до указанной даты и времени (здесь до конца 2023 года). Cookie могут иметь различные параметры, такие как срок годности (`expires`), путь (`path`), домен (`domain`), безопасность (`secure`), и т. д. Куки могут быть использованы для сохранения сессионной информации, аутентификации пользователя, отслеживания действий пользователя на сайте и других задач. Однако, стоит помнить, что куки имеют ограниченный объем хранения (обычно до 4 килобайт) и могут вызывать проблемы с конфиденциальностью, если не используются правильно. ## Зачем нужны куки (Cookies)? Куки (Cookies) в веб-разработке используются для хранения информации о состоянии и настройках пользователя на веб-сайте. Они имеют ряд важных применений, включая сессионное управление, аутентификацию, сохранение предпочтений пользователя и отслеживание активности. **[⬆ Наверх](#содержание)** ### Примеры применения куки: 1. **Сессионное управление**: Куки могут использоваться для отслеживания сессии пользователя. После аутентификации, сервер может установить уникальный идентификатор сессии в куки, что позволяет серверу идентифицировать пользователя между запросами. 2. **Аутентификация**: Куки позволяют сохранить данные аутентификации пользователя. Например, при успешной аутентификации, сервер может установить куки с токеном, который подтверждает аутентичность пользователя. 3. **Сохранение настроек**: Веб-сайты могут использовать куки для сохранения предпочтений пользователя, таких как язык, тема оформления и другие настройки. 4. **Отслеживание активности**: Куки могут использоваться для анализа поведения пользователей на сайте, что помогает в понимании, какие страницы чаще посещаются и какие действия выполняются. 5. **Подготовка корзины покупок**: В интернет-магазинах куки могут использоваться для отслеживания добавленных товаров в корзину, даже если пользователь переходит между страницами. ### Пример использования куки: Предположим, у вас есть сайт, и вы хотите, чтобы пользователи могли выбрать свою предпочитаемую тему оформления. ```javascript // При выборе пользователем темы "dark" document.cookie = "theme=dark; expires=Fri, 31 Dec 2023 23:59:59 GMT; path=/"; // При загрузке страницы const cookies = document.cookie; const themeCookie = cookies .split("; ") .find((cookie) => cookie.startsWith("theme=")); if (themeCookie) { const theme = themeCookie.split("=")[1]; applyTheme(theme); } ``` В этом примере, при выборе пользователем темы "dark", куки сохраняется, и при следующем посещении сайта применяется выбранная тема. **[⬆ Наверх](#содержание)** ## Какие параметры можно задать в куки (Cookie)? Куки (Cookies) имеют различные параметры, которые можно установить для контроля их поведения. Ниже приведены некоторые из наиболее часто используемых параметров. ### Примеры параметров в куки: 1. **`expires` (срок действия)**: Определяет, когда куки истекает и становится недействительным. Значение может быть указано в виде строки с датой и временем в формате GMT. ```javascript document.cookie = "username=John; expires=Fri, 31 Dec 2023 23:59:59 GMT; path=/"; ``` 2. **`path` (путь)**: Определяет путь, для которого куки действительно. Куки будут доступны только для страниц, которые находятся в этом пути. ```javascript document.cookie = "username=John; expires=Fri, 31 Dec 2023 23:59:59 GMT; path=/admin"; ``` 3. **`domain` (домен)**: Определяет домен, для которого куки действительно. По умолчанию, куки доступны только для текущего домена. ```javascript document.cookie = "username=John; expires=Fri, 31 Dec 2023 23:59:59 GMT; domain=example.com"; ``` 4. **`secure` (безопасность)**: Если этот параметр установлен, куки будет передаваться только через защищенное (HTTPS) соединение. ```javascript document.cookie = "username=John; expires=Fri, 31 Dec 2023 23:59:59 GMT; secure"; ``` 5. **`samesite`**: Определяет, как куки будут отправляться на сервер при запросах с других сайтов. Значения могут быть "strict", "lax" или "none". ```javascript document.cookie = "username=John; expires=Fri, 31 Dec 2023 23:59:59 GMT; samesite=lax"; ``` Эти параметры позволяют более точно управлять поведением куки, определяя, когда и для каких страниц они действительны, а также обеспечивая безопасность и контроль над обменом данными. **[⬆ Наверх](#содержание)** ## Как удалить куки (Cookie)? Для удаления куки (Cookie) необходимо установить его срок действия в прошедшее время или использовать опцию "Max-Age" с отрицательным значением. Это приведет к тому, что браузер считает куки недействительным и удалит его. ### Пример удаления куки: ```javascript // Удаление куки по имени function deleteCookie(cookieName) { document.cookie = `${cookieName}=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/`; } // Пример вызова функции для удаления куки "username" deleteCookie("username"); ``` В этом примере, функция `deleteCookie` устанавливает срок действия куки "username" в прошедшее время, что приводит к его удалению. Удаление происходит путем установки даты и времени истечения куки (`expires`) на дату в прошлом. Важно указать путь (`path`), который соответствует пути, для которого куки было установлено. Пожалуйста, обратите внимание, что куки можно удалить только на том же домене и пути, где они были установлены. **[⬆ Наверх](#содержание)** ## В чем разница между куками, локальным хранилищем и сессионным хранилищем? Куки (cookie), локальное хранилище (localStorage) и сессионное хранилище (sessionStorage) - это три разных механизма хранения данных на стороне клиента в браузере, и у них есть существенные различия. ### Куки (Cookie): - Куки являются небольшими фрагментами данных, которые хранятся на стороне клиента. - Используются для хранения небольших объемов данных и обычно имеют ограничение в размере до 4 килобайт. - Отправляются в заголовке HTTP-запроса при каждом запросе к серверу, что может замедлить загрузку страницы. - Имеют параметры срока действия, пути, домена, безопасности и другие. - Могут быть доступны как на текущей странице, так и на других страницах или доменах в зависимости от настроек параметров. ### Локальное хранилище (localStorage): - Предоставляет механизм хранения ключ-значение без срока действия (данные остаются даже после перезагрузки браузера). - Позволяет хранить более объемные данные (обычно до 5-10 мегабайт). - Данные в локальном хранилище доступны на всех страницах с одинаковым протоколом (http/https) и доменом. - Доступ к данным возможен через JavaScript из любой вкладки или окна с одним и тем же доменом. ### Сессионное хранилище (sessionStorage): - Похоже на локальное хранилище, но данные в нем существуют только в рамках текущей сессии браузера. - Данные сохраняются даже после перезагрузки страницы, но удаляются при закрытии вкладки или браузера. - Данные из сессионного хранилища доступны только в рамках одной вкладки или окна браузера. - Подходит для временного хранения данных, которые нужны только в течение текущей сессии. ### Пример сравнения: Предположим, у вас есть задача сохранить предпочтения пользователя на сайте. - Используйте куки, если нужно сохранить предпочтения на долгий срок и сделать их доступными на разных устройствах. - Используйте локальное хранилище, если предпочтения должны оставаться даже после перезагрузки браузера, но не требуется общение между разными вкладками. - Используйте сессионное хранилище, если предпочтения должны сохраняться в рамках одной вкладки или сессии, и не имеет значения после закрытия браузера. ## В чем основное различие между локальным хранилищем и сессионным хранилищем? Основное различие между локальным хранилищем (localStorage) и сессионным хранилищем (sessionStorage) заключается в продолжительности хранения данных и доступности данных между вкладками браузера. ### Локальное хранилище (localStorage): - Данные в локальном хранилище сохраняются даже после перезагрузки браузера. - Данные доступны на всех страницах с одинаковым протоколом (http/https) и доменом. - Данные могут быть доступны через JavaScript из любой вкладки или окна браузера с тем же доменом. ### Сессионное хранилище (sessionStorage): - Данные в сессионном хранилище существуют только в рамках текущей сессии браузера. - Данные сохраняются даже после перезагрузки страницы, но удаляются при закрытии вкладки или браузера. - Данные из сессионного хранилища доступны только в рамках одной вкладки или окна браузера. ### Пример сравнения: Допустим, вы разрабатываете веб-приложение для заметок. - Используйте локальное хранилище (localStorage), если хотите, чтобы заметки оставались доступными даже после закрытия браузера и перезагрузки страницы. Пользователь сможет получить доступ к своим заметкам на разных устройствах и в разных вкладках. - Используйте сессионное хранилище (sessionStorage), если хотите, чтобы заметки сохранялись только в рамках одной сессии браузера. Например, пользователь может создавать временные заметки, которые автоматически удаляются после закрытия вкладки. Выбор между `localStorage` и `sessionStorage` зависит от требований к продолжительности хранения данных и ожидаемого поведения на разных устройствах и вкладках. **[⬆ Наверх](#содержание)** ## Как получить доступ к веб-хранилищу (web storage)? Для доступа к веб-хранилищу (web storage) в JavaScript используются объекты `localStorage` и `sessionStorage`. Эти объекты позволяют сохранять и извлекать данные на стороне клиента в браузере. ### Пример доступа к веб-хранилищу: #### Доступ к локальному хранилищу (localStorage): ```javascript // Сохраняем данные в localStorage localStorage.setItem("username", "Alice"); localStorage.setItem("age", "25"); // Получаем данные из localStorage const username = localStorage.getItem("username"); const age = localStorage.getItem("age"); console.log(username); // "Alice" console.log(age); // "25" // Удаляем данные из localStorage localStorage.removeItem("username"); ``` #### Доступ к сессионному хранилищу (sessionStorage): ```javascript // Сохраняем данные в sessionStorage sessionStorage.setItem("city", "New York"); // Получаем данные из sessionStorage const city = sessionStorage.getItem("city"); console.log(city); // "New York" // Удаляем данные из sessionStorage sessionStorage.removeItem("city"); ``` Для доступа к данным в веб-хранилище используется метод `getItem` для извлечения данных по ключу, метод `setItem` для сохранения данных, и метод `removeItem` для удаления данных. Данные сохраняются в виде пары ключ-значение. Обратите внимание, что веб-хранилище доступно только на стороне клиента и может использоваться для хранения небольших объемов данных, таких как настройки пользователя, состояние приложения и другие важные данные. **[⬆ Наверх](#содержание)** ## Какие методы доступны в сессионном хранилище (sessionStorage)? В сессионном хранилище (sessionStorage) доступны следующие методы для работы с данными: 1. **`setItem(key, value)`**: Сохраняет пару ключ-значение в сессионном хранилище. ```javascript sessionStorage.setItem("username", "Alice"); ``` 2. **`getItem(key)`**: Извлекает значение по ключу из сессионного хранилища. ```javascript const username = sessionStorage.getItem("username"); console.log(username); // "Alice" ``` 3. **`removeItem(key)`**: Удаляет данные по указанному ключу из сессионного хранилища. ```javascript sessionStorage.removeItem("username"); ``` 4. **`clear()`**: Удаляет все данные из сессионного хранилища. ```javascript sessionStorage.clear(); ``` Эти методы позволяют управлять данными в сессионном хранилище, добавлять новые данные, извлекать существующие значения, удалять данные и очищать всё хранилище. Обратите внимание, что данные, сохраненные в сессионном хранилище, будут доступны только в рамках текущей сессии браузера и будут удалены после закрытия вкладки или браузера. **[⬆ Наверх](#содержание)** ## Что такое событие хранилища (storage event) и его обработчик событий в JavaScript? Событие хранилища (storage event) - это событие, которое возникает, когда данные в веб-хранилище (`localStorage` или `sessionStorage`) изменяются в другой вкладке или окне браузера. С помощью этого события вы можете отслеживать изменения данных между разными сессиями в рамках одного домена. ### Пример использования события хранилища: #### В первой вкладке: ```javascript // Сохраняем данные в localStorage localStorage.setItem("username", "Alice"); ``` #### Во второй вкладке (или другом окне): ```javascript // Слушаем событие хранилища window.addEventListener("storage", (event) => { if (event.key === "username") { console.log(`Изменено имя пользователя на: ${event.newValue}`); } }); ``` В этом примере, при изменении имени пользователя в первой вкладке, событие хранилища срабатывает во второй вкладке (или другом окне). Обработчик события выводит новое значение имени пользователя. ### Обработчик события хранилища (storage event handler): Обработчик события хранилища - это функция, которая будет выполнена при возникновении события хранилища. Он принимает объект события в качестве параметра, который содержит информацию о событии, включая измененный ключ (`event.key`), старое значение (`event.oldValue`), новое значение (`event.newValue`), домен и другие. ```javascript // Обработчик события хранилища function handleStorageChange(event) { console.log(`Ключ: ${event.key}`); console.log(`Старое значение: ${event.oldValue}`); console.log(`Новое значение: ${event.newValue}`); } // Добавляем обработчик события хранилища window.addEventListener("storage", handleStorageChange); ``` Событие хранилища полезно, когда вам нужно отслеживать изменения данных между разными вкладками или окнами вашего веб-приложения. **[⬆ Наверх](#содержание)** ## Зачем нужно веб-хранилище (web storage)? Веб-хранилище (web storage) - это механизм, который позволяет веб-приложениям сохранять данные на стороне клиента, в браузере пользователя. Оно имеет несколько важных применений для улучшения пользовательского опыта и работы веб-приложений. ### Примеры применения веб-хранилища: 1. **Локальное сохранение данных**: Веб-хранилище позволяет приложениям сохранять данные, которые будут доступны даже после перезагрузки страницы или закрытия браузера. Это полезно для хранения настроек пользователя, последних действий или состояния приложения. 2. **Сессионное управление**: Веб-приложения могут использовать веб-хранилище для управления сессией пользователя. Это позволяет хранить информацию, которая будет доступна в течение текущей сессии, например, аутентификационные токены. 3. **Передача данных между страницами**: Веб-хранилище позволяет обмениваться данными между разными страницами одного домена. Это может быть полезно, если вы хотите передать какие-то данные с одной страницы на другую без использования сервера. 4. **Кэширование**: Веб-хранилище можно использовать для кэширования данных, чтобы уменьшить количество запросов к серверу и ускорить загрузку страниц. 5. **Отслеживание состояния приложения**: Веб-хранилище позволяет сохранять текущее состояние приложения, например, активную вкладку, выбранный раздел и другие параметры. **[⬆ Наверх](#содержание)** ### Пример использования веб-хранилища: Допустим, у вас есть веб-приложение для заметок. Вы хотите, чтобы пользователь мог вернуться к своим заметкам даже после перезагрузки страницы. ```javascript // Сохраняем заметку в локальное хранилище localStorage.setItem("note1", "Список покупок: молоко, яйца, хлеб"); // Извлекаем заметку из локального хранилища const savedNote = localStorage.getItem("note1"); console.log(savedNote); // "Список покупок: молоко, яйца, хлеб" ``` В этом примере, заметка сохраняется в локальное хранилище и остается доступной даже после закрытия браузера или перезагрузки страницы. В целом, веб-хранилище предоставляет удобный способ хранения данных на стороне клиента, улучшая пользовательский опыт и функциональность веб-приложений. **[⬆ Наверх](#содержание)** ## Как проверить поддержку веб-хранилища браузером? Для проверки поддержки веб-хранилища (web storage) в браузере можно использовать проверку наличия соответствующих объектов `localStorage` и `sessionStorage`. ### Пример проверки поддержки веб-хранилища: ```javascript if (typeof Storage !== "undefined") { // Веб-хранилище поддерживается console.log("Веб-хранилище поддерживается в этом браузере."); } else { // Веб-хранилище не поддерживается console.log("Веб-хранилище не поддерживается в этом браузере."); } ``` Этот код проверяет, существует ли объект `Storage` (который используется для работы с веб-хранилищем) в глобальном контексте. Если поддержка есть, вы увидите сообщение о поддержке в консоли. Обратите внимание, что веб-хранилище широко поддерживается современными браузерами, и большинство современных версий браузеров поддерживают эту функциональность. Вам, скорее всего, не понадобится часто проводить такую проверку. **[⬆ Наверх](#содержание)** ## Как проверить поддержку веб-воркеров (web workers) в браузере? Для проверки поддержки веб-воркеров (web workers) в браузере можно использовать проверку наличия объекта `Worker`. ### Пример проверки поддержки веб-воркеров: ```javascript if (typeof Worker !== "undefined") { // Веб-воркеры поддерживаются console.log("Веб-воркеры поддерживаются в этом браузере."); } else { // Веб-воркеры не поддерживаются console.log("Веб-воркеры не поддерживаются в этом браузере."); } ``` Этот код проверяет, существует ли объект `Worker` (который используется для создания веб-воркеров) в глобальном контексте. Если поддержка есть, вы увидите сообщение о поддержке в консоли. Веб-воркеры широко поддерживаются в современных браузерах, но стоит помнить, что некоторые устаревшие или очень старые браузеры могут не поддерживать эту функциональность. В большинстве случаев, однако, поддержка веб-воркеров не представляет проблемы. ## Приведите пример использования веб-воркера (web worker) в JavaScript Веб-воркеры (web workers) - это фоновые потоки выполнения JavaScript, которые позволяют выполнять вычисления и задачи в отдельном потоке, не блокируя основной поток браузера. Они полезны для выполнения тяжелых вычислений и долгих операций, не влияя на отзывчивость пользовательского интерфейса. ### Пример веб-воркера: ```javascript // Создаем файл worker.js // worker.js self.onmessage = function (event) { // Получаем данные из основного потока const data = event.data; // Выполняем вычисления (например, факториал) const result = calculateFactorial(data); // Отправляем результат обратно в основной поток postMessage(result); }; function calculateFactorial(n) { if (n <= 1) { return 1; } else { return n * calculateFactorial(n - 1); } } ``` В основном скрипте: ```javascript // Создаем веб-воркера const worker = new Worker("worker.js"); // Отправляем данные на обработку в веб-воркер worker.postMessage(5); // Получаем результат из веб-воркера worker.onmessage = function (event) { const result = event.data; console.log(`Факториал: ${result}`); }; // При необходимости завершаем работу веб-воркера worker.terminate(); ``` В этом примере мы создаем веб-воркера, который вычисляет факториал числа. Мы отправляем данные на обработку в веб-воркер, а затем получаем результат через событие `onmessage`. Обратите внимание, что веб-воркеры могут выполняться в отдельном файле (как `worker.js`) и не имеют доступа к DOM. Веб-воркеры удобно использовать для выполнения вычислительно интенсивных операций, которые не должны блокировать основной поток браузера. **[⬆ Наверх](#содержание)** ## Какие ограничения существуют у веб-воркеров по работе с DOM? Веб-воркеры (web workers) предоставляют возможность выполнять код в отдельных фоновых потоках, что позволяет избежать блокировки основного потока браузера. Однако у веб-воркеров есть некоторые ограничения в отношении доступа и взаимодействия с DOM. ### Ограничения веб-воркеров по работе с DOM: 1. **Отсутствие доступа к DOM**: Веб-воркеры не имеют прямого доступа к DOM. Это означает, что они не могут взаимодействовать с элементами DOM, менять HTML-структуру или стили страницы. 2. **Отсутствие доступа к глобальным переменным**: Веб-воркеры не имеют доступа к глобальным переменным и функциям основного потока. 3. **Синхронизация и обмен данными**: Для обмена данными между веб-воркерами и основным потоком используются асинхронные механизмы, такие как события (`postMessage`). Это может привести к сложностям в синхронизации и обработке данных. ### Пример ограничений: ```javascript // Веб-воркер self.onmessage = function (event) { // Нельзя изменить DOM или получить доступ к window // Нельзя использовать глобальные переменные из основного потока // Это не сработает: document.getElementById("myElement").textContent = "Hello"; // Можно только отправить сообщение обратно в основной поток postMessage("Hello from the worker!"); }; ``` Поскольку веб-воркеры выполняются в отдельных потоках, они не могут напрямую влиять на пользовательский интерфейс и DOM. Однако они идеально подходят для вычислительно интенсивных операций и обработки данных, не связанных с изменением DOM. **[⬆ Наверх](#содержание)** ## Что такое промис (Promise)? Промис (Promise) - это объект в JavaScript, представляющий результат успешного завершения или ошибки асинхронной операции. Он позволяет более удобно и читаемо обрабатывать асинхронный код, делая его более структурированным и предсказуемым. ### Пример промиса: ```javascript // Пример асинхронной функции, которая возвращает промис function fetchData() { return new Promise((resolve, reject) => { setTimeout(() => { const data = "Данные получены"; resolve(data); // Успешное завершение // Если произошла ошибка: reject(new Error("Ошибка получения данных")); }, 2000); }); } // Использование промиса fetchData() .then((result) => { console.log(result); // "Данные получены" }) .catch((error) => { console.error(error); }); ``` В этом примере функция `fetchData` возвращает промис, который успешно завершается через 2 секунды. Мы используем метод `.then` для обработки успешного выполнения промиса и метод `.catch` для обработки ошибки. Промисы позволяют создавать цепочки асинхронных операций, улучшая читаемость и управляемость кода. Они также предоставляют механизмы для обработки нескольких асинхронных операций сразу, например, с помощью `Promise.all` или `Promise.race`. ## Зачем нужен промис (Promise)? Промис (Promise) в JavaScript используется для более удобной и структурированной обработки асинхронного кода. Асинхронные операции, такие как запросы к серверу, чтение/запись в файлы или таймеры, могут занять некоторое время и могут быть завершены в будущем. Промисы помогают справиться с такими ситуациями и улучшить читаемость кода. ### Пример использования промиса: ```javascript // Пример асинхронной функции с промисом function fetchData() { return new Promise((resolve, reject) => { setTimeout(() => { const data = "Данные получены"; resolve(data); // Успешное завершение }, 2000); }); } // Использование промиса fetchData() .then((result) => { console.log(result); // "Данные получены" }) .catch((error) => { console.error(error); }); ``` **Почему промисы полезны:** 1. **Обработка асинхронности**: Промисы предоставляют четкий способ обрабатывать асинхронные операции, позволяя избежать "callback hell" - глубоко вложенных коллбэков. 2. **Читаемость кода**: Код с использованием промисов более структурирован и легко читается, так как асинхронные операции описываются последовательно с помощью методов `.then` и `.catch`. 3. **Управление ошибками**: Промисы предоставляют механизм для обработки ошибок с помощью метода `.catch`, что делает код более надежным и предсказуемым. 4. **Цепочки операций**: Промисы позволяют создавать цепочки операций, где результат одной операции используется как вход для следующей. 5. **Параллельные операции**: Промисы также позволяют выполнять несколько асинхронных операций параллельно и ждать, пока все они завершатся. Промисы стали стандартной практикой для обработки асинхронного кода и являются фундаментальным элементом при работе с современными веб-приложениями. **[⬆ Наверх](#содержание)** ## Каковы три состояния промиса (Promise)? Промис (Promise) в JavaScript имеет три основных состояния, которые описывают текущее состояние выполнения асинхронной операции. 1. **Ожидание (Pending)**: Начальное состояние, когда промис создан, но операция, связанная с ним, еще не завершена. Промис находится в ожидании результата. 2. **Выполнено (Fulfilled)**: Состояние, в котором асинхронная операция успешно завершена. Промис переходит в это состояние, когда вызывается функция `resolve()`, передавая ей результат операции. 3. **Отклонено (Rejected)**: Состояние, в котором асинхронная операция завершается с ошибкой. Промис переходит в это состояние, когда вызывается функция `reject()`, передавая ей информацию об ошибке. ### Пример использования состояний промиса: ```javascript const promise = new Promise((resolve, reject) => { // Имитация асинхронной операции setTimeout(() => { const success = true; if (success) { resolve("Операция успешно выполнена"); } else { reject(new Error("Произошла ошибка")); } }, 2000); }); promise .then((result) => { console.log(result); // "Операция успешно выполнена" }) .catch((error) => { console.error(error.message); // "Произошла ошибка" }); ``` В этом примере промис переходит в состояние "Выполнено" (Fulfilled) при успешном завершении асинхронной операции, и в состояние "Отклонено" (Rejected) при ошибке. С помощью методов `.then` и `.catch` мы обрабатываем соответствующие состояния промиса. **[⬆ Наверх](#содержание)** ## Что такое функция обратного вызова (callback function)? Функция обратного вызова (callback function) в JavaScript - это функция, которая передается в качестве аргумента другой функции и вызывается после завершения определенной операции или события. Она позволяет создавать асинхронный код и контролировать его поток выполнения. ### Пример функции обратного вызова: ```javascript // Пример асинхронной функции с функцией обратного вызова function fetchData(callback) { setTimeout(() => { const data = "Данные получены"; callback(data); }, 2000); } // Использование функции обратного вызова fetchData((result) => { console.log(result); // "Данные получены" }); ``` В этом примере функция `fetchData` выполняет асинхронную операцию и после ее завершения вызывает переданную функцию обратного вызова. Таким образом, мы можем определить, что делать с данными после их получения. Функции обратного вызова используются часто для обработки асинхронных операций, обработки событий, запросов к серверу и других сценариев, где результат операции может быть неизвестен на момент вызова функции. Однако, использование большого количества вложенных коллбэков может привести к "callback hell" - сложному для читаемости и поддержки коду. **[⬆ Наверх](#содержание)** ## Зачем нужны функции обратного вызова (callback)? Функции обратного вызова (callback) в JavaScript используются для управления асинхронным кодом и выполнения операций, которые зависят от завершения других операций. Они позволяют создавать гибкое и масштабируемое асинхронное программирование. ### Пример использования функций обратного вызова: ```javascript // Пример асинхронной функции с функцией обратного вызова function fetchData(callback) { setTimeout(() => { const data = "Данные получены"; callback(data); }, 2000); } // Использование функции обратного вызова fetchData((result) => { console.log(result); // "Данные получены" }); ``` **Почему функции обратного вызова полезны:** 1. **Асинхронность**: Функции обратного вызова позволяют обрабатывать асинхронные операции, такие как запросы к серверу, чтение файлов или таймеры, без блокировки основного потока выполнения. 2. **Управление потоком**: Функции обратного вызова позволяют контролировать порядок выполнения операций, например, вызывать вторую функцию только после завершения первой. 3. **События и обработчики**: Они также используются для обработки событий, например, обработки кликов, загрузки ресурсов или асинхронных запросов. 4. **Параметризация поведения**: Функции обратного вызова позволяют параметризовать, какой код должен быть выполнен после завершения операции. Это делает код более гибким и переиспользуемым. 5. **Избегание блокировок**: Они позволяют избежать блокировки пользовательского интерфейса, что делает приложение более отзывчивым. Хотя функции обратного вызова очень полезны, при использовании большого количества вложенных коллбэков может возникнуть проблема "callback hell". Эту проблему можно решить с помощью промисов или асинхронных функций в более современных версиях JavaScript. **[⬆ Наверх](#содержание)** ## Что такое "callback hell"? "Callback hell" (иногда также называемое "преисполнение коллбэков") - это ситуация в асинхронном программировании, когда большое количество вложенных функций обратного вызова делает код сложным для чтения, поддержки и понимания. Такое состояние может возникнуть, когда асинхронные операции выполняются внутри других асинхронных операций, и код начинает сильно вклиниваться. ### Пример "callback hell": ```javascript asyncOperation1(function (result1) { asyncOperation2(result1, function (result2) { asyncOperation3(result2, function (result3) { // И так далее... }); }); }); ``` В этом примере, каждая асинхронная операция выполняется внутри функции обратного вызова предыдущей операции. Это может привести к глубокому вложению и усложнению кода, а также усложнению обработки ошибок и отладки. **Почему это проблема:** 1. **Читаемость**: Код становится трудночитаемым, сложно понять поток выполнения и логику операций. 2. **Обработка ошибок**: Обработка ошибок становится более сложной из-за множества точек неудачи. 3. **Поддержка и изменения**: Такой код сложно поддерживать и изменять, особенно когда требуется добавление или изменение функциональности. ### Как избежать "callback hell": 1. **Промисы**: Использование промисов позволяет создавать более структурированный код с использованием методов `.then` и `.catch`, избегая глубокой вложенности. 2. **Асинхронные функции**: В современных версиях JavaScript можно использовать ключевое слово `async` вместе с `await` для более линейного кода. 3. **Библиотеки**: Множество библиотек, таких как `async/await`, `Bluebird` и другие, предоставляют инструменты для более удобной работы с асинхронным кодом. Соблюдение лучших практик и использование современных подходов помогут избежать "callback hell" и сделать код более читаемым и управляемым. **[⬆ Наверх](#содержание)** ## Что такое события, отправляемые с сервера (Server-Sent Events)? События, отправляемые с сервера (Server-Sent Events или SSE), представляют собой механизм веб-браузера для установления однонаправленного потока данных от сервера к клиенту по протоколу HTTP. Этот механизм позволяет серверу отправлять информацию клиенту без необходимости, чтобы клиент делал повторные запросы. ### Пример использования событий, отправляемых с сервера: **Сервер (Node.js):** ```javascript const http = require("http"); http .createServer((req, res) => { res.writeHead(200, { "Content-Type": "text/event-stream", "Cache-Control": "no-cache", Connection: "keep-alive", }); setInterval(() => { res.write(`data: Сообщение с сервера\n\n`); }, 1000); }) .listen(3000); ``` **Клиент (HTML/JavaScript):** ```html <!DOCTYPE html> <html> <head> <title>Server-Sent Events Example</title> </head> <body> <div id="sse-data"></div> <script> const eventSource = new EventSource("/sse"); eventSource.onmessage = (event) => { const sseDataElement = document.getElementById("sse-data"); sseDataElement.innerHTML += `<p>${event.data}</p>`; }; eventSource.onerror = (error) => { console.error("Error:", error); }; </script> </body> </html> ``` В этом примере сервер на Node.js отправляет события, содержащие текстовое сообщение, каждую секунду по пути `/sse`. Клиентский код создает экземпляр `EventSource` и слушает события, которые приходят с сервера. Полученные данные выводятся на страницу. События, отправляемые с сервера, предоставляют простой и эффективный способ передачи данных от сервера к клиенту в режиме реального времени. Они особенно полезны для обновления информации на веб-странице без необходимости перезагрузки страницы или активных запросов от клиента. **[⬆ Наверх](#содержание)** ## Как получать уведомления событий, отправляемых с сервера (Server-Sent Events)? Для получения уведомлений о событиях, отправляемых с сервера (Server-Sent Events или SSE), в веб-браузере используется объект `EventSource`. Этот объект позволяет установить соединение с сервером и прослушивать события, приходящие с сервера в режиме реального времени. ### Пример получения уведомлений событий, отправляемых с сервера: **Сервер (Node.js):** ```javascript const http = require("http"); http .createServer((req, res) => { res.writeHead(200, { "Content-Type": "text/event-stream", "Cache-Control": "no-cache", Connection: "keep-alive", }); setInterval(() => { res.write(`data: Сообщение с сервера\n\n`); }, 1000); }) .listen(3000); ``` **Клиент (HTML/JavaScript):** ```html <!DOCTYPE html> <html> <head> <title>Server-Sent Events Example</title> </head> <body> <div id="sse-data"></div> <script> const eventSource = new EventSource("/sse"); eventSource.onmessage = (event) => { const sseDataElement = document.getElementById("sse-data"); sseDataElement.innerHTML += `<p>${event.data}</p>`; }; eventSource.onerror = (error) => { console.error("Ошибка:", error); }; </script> </body> </html> ``` В этом примере, когда сервер на Node.js отправляет события, клиентский код создает экземпляр `EventSource` и слушает события, которые приходят с сервера. Полученные данные выводятся на страницу. Каждую секунду сервер отправляет сообщение, и это сообщение отображается на веб-странице в реальном времени. Использование объекта `EventSource` позволяет устанавливать длительное соединение с сервером и автоматически получать уведомления о событиях. **[⬆ Наверх](#содержание)** ## Как проверить поддержку браузером событий, отправляемых с сервера (Server-Sent Events)? Для проверки поддержки браузером событий, отправляемых с сервера (Server-Sent Events или SSE), вы можете использовать объект `EventSource` и проверить его наличие и функциональность. ### Пример проверки поддержки браузером событий, отправляемых с сервера: ```javascript if (typeof EventSource !== "undefined") { // Браузер поддерживает SSE const eventSource = new EventSource("/sse"); eventSource.onmessage = (event) => { console.log("Получено событие:", event.data); }; eventSource.onerror = (error) => { console.error("Ошибка:", error); }; } else { // Браузер не поддерживает SSE console.error("Браузер не поддерживает Server-Sent Events."); } ``` В этом примере мы проверяем, есть ли объект `EventSource` в глобальной области видимости. Если объект `EventSource` доступен, это указывает на поддержку SSE браузером, и мы можем создать соединение с сервером для получения событий. В противном случае, если объект `EventSource` не определен, браузер не поддерживает SSE. Проверка поддержки SSE особенно важна, чтобы предоставить альтернативное поведение для браузеров, которые не поддерживают эту технологию. **[⬆ Наверх](#содержание)** ## Какие события доступны для событий, отправляемых с сервера (Server-Sent Events)? Для событий, отправляемых с сервера (Server-Sent Events или SSE), доступны следующие типы событий: 1. **`message`**: Это событие возникает, когда сервер отправляет новое событие. Вы можете использовать обработчик события `onmessage`, чтобы обрабатывать приходящие данные. 2. **`error`**: Это событие возникает, если происходит ошибка во время соединения или передачи данных. Вы можете использовать обработчик события `onerror`, чтобы обрабатывать ошибки. 3. **`open`**: Это событие возникает, когда соединение с сервером устанавливается. Однако, оно редко используется, так как события, отправляемые с сервера, подразумевают постоянное открытое соединение. ### Пример использования обработчиков событий: ```javascript const eventSource = new EventSource("/sse"); eventSource.onmessage = (event) => { console.log("Получено событие:", event.data); }; eventSource.onerror = (error) => { console.error("Ошибка:", error); }; ``` В этом примере мы устанавливаем обработчики для событий `message` и `error`. Когда на сервере отправляется новое событие, будет вызван обработчик `onmessage`, и мы выведем данные этого события в консоль. Если произойдет ошибка в соединении, будет вызван обработчик `onerror`, и мы выведем информацию об ошибке. **[⬆ Наверх](#содержание)** ## Каковы основные правила работы с промисами (Promise)? Промисы (Promise) в JavaScript предоставляют механизм для управления асинхронными операциями и обработки их результатов. Вот основные правила работы с промисами: 1. **Создание промиса**: Промис можно создать с помощью конструктора `Promise`. Внутри конструктора находится функция с двумя параметрами - `resolve` и `reject`, которые используются для завершения промиса успешно или с ошибкой. 2. **Обработка результатов**: Используйте методы `.then()` и `.catch()` для обработки успешного завершения и ошибок соответственно. 3. **Цепочки промисов**: Метод `.then()` также возвращает новый промис, что позволяет создавать цепочки операций. 4. **Обработка ошибок**: Используйте метод `.catch()` для централизованной обработки ошибок в цепочке промисов. 5. **Обработка асинхронных операций**: Код внутри промиса выполняется асинхронно. Можно использовать `setTimeout`, `fetch`, `XMLHttpRequest` и другие асинхронные операции. 6. **Состояния промиса**: Промис имеет три основных состояния - ожидание (`pending`), выполнено (`fulfilled`), отклонено (`rejected`). 7. **Невозможность изменения состояния**: После того как промис перешел в состояние "выполнено" или "отклонено", его состояние не может измениться. ### Пример использования промисов: ```javascript const fetchData = new Promise((resolve, reject) => { setTimeout(() => { const data = "Данные получены"; if (data) { resolve(data); // Успешное выполнение } else { reject("Произошла ошибка"); // Ошибка } }, 2000); }); fetchData .then((result) => { console.log(result); // "Данные получены" }) .catch((error) => { console.error(error); // "Произошла ошибка" }); ``` В этом примере создается промис `fetchData`, который после двух секунд успешно завершается или завершается с ошибкой. Мы используем методы `.then()` и `.catch()` для обработки результатов и ошибок соответственно. **[⬆ Наверх](#содержание)** ## Что такое "callback внутри callbackа" (callback in callback)? "Callback внутри callbackа" означает использование одной или нескольких функций обратного вызова (callback) внутри другой функции обратного вызова. Это может произойти, когда выполнение асинхронного кода требует последовательности операций или обработки результатов одной асинхронной операции перед выполнением другой. ### Пример "callback внутри callbackа": ```javascript function fetchUserData(userId, onSuccess, onError) { // Эмуляция асинхронного запроса данных пользователя setTimeout(() => { const userData = { id: userId, name: "John" }; if (userData) { onSuccess(userData); } else { onError("Ошибка при получении данных пользователя"); } }, 1000); } function fetchUserPosts(user, onSuccess, onError) { // Эмуляция асинхронного запроса постов пользователя setTimeout(() => { const posts = ["Пост 1", "Пост 2"]; if (posts) { onSuccess(posts); } else { onError("Ошибка при получении постов пользователя"); } }, 1500); } fetchUserData( 123, (user) => { console.log("Данные пользователя:", user); fetchUserPosts( user, (posts) => { console.log("Посты пользователя:", posts); }, (error) => { console.error("Ошибка:", error); } ); }, (error) => { console.error("Ошибка:", error); } ); ``` В этом примере мы используем две функции обратного вызова: `fetchUserData` и `fetchUserPosts`. Внутри успешного коллбэка первой функции мы вызываем вторую функцию обратного вызова для получения постов пользователя. Это демонстрирует "callback внутри callbackа" - асинхронные операции, которые зависят друг от друга. **[⬆ Наверх](#содержание)** ## Что такое цепочка промисов (Promise Chaining)? Цепочка промисов (Promise Chaining) - это метод использования промисов в JavaScript, который позволяет последовательно связывать несколько асинхронных операций в виде цепочки, где результат одной операции передается в следующую. ### Пример цепочки промисов: ```javascript function fetchUserData(userId) { return new Promise((resolve, reject) => { setTimeout(() => { const userData = { id: userId, name: "John" }; if (userData) { resolve(userData); } else { reject("Ошибка при получении данных пользователя"); } }, 1000); }); } function fetchUserPosts(user) { return new Promise((resolve, reject) => { setTimeout(() => { const posts = ["Пост 1", "Пост 2"]; if (posts) { resolve(posts); } else { reject("Ошибка при получении постов пользователя"); } }, 1500); }); } fetchUserData(123) .then((user) => { console.log("Данные пользователя:", user); return fetchUserPosts(user); }) .then((posts) => { console.log("Посты пользователя:", posts); }) .catch((error) => { console.error("Ошибка:", error); }); ``` В этом примере мы используем метод `.then()` для связывания двух асинхронных операций - `fetchUserData` и `fetchUserPosts`. Результат операции `fetchUserData` передается в метод `.then()`, где выполняется операция `fetchUserPosts`. Это позволяет нам последовательно выполнять асинхронные операции в линейной цепочке. Если какая-либо операция в цепочке завершается с ошибкой, управление передается обработчику ошибок, указанному через метод `.catch()`, где можно обработать ошибку для всей цепочки. **[⬆ Наверх](#содержание)** ## Что такое `Promise.all`? `Promise.all` - это метод в JavaScript, который позволяет объединить несколько промисов в массиве в один промис. Этот метод ожидает выполнения всех промисов в массиве и возвращает новый промис, который разрешается массивом результатов, когда все промисы успешно выполнились, или отклоняется с ошибкой, если хотя бы один промис отклонен. ### Пример использования `Promise.all`: ```javascript function fetchUserData(userId) { return new Promise((resolve, reject) => { setTimeout(() => { const userData = { id: userId, name: "John" }; if (userData) { resolve(userData); } else { reject("Ошибка при получении данных пользователя"); } }, 1000); }); } function fetchUserPosts(userId) { return new Promise((resolve, reject) => { setTimeout(() => { const posts = ["Пост 1", "Пост 2"]; if (posts) { resolve(posts); } else { reject("Ошибка при получении постов пользователя"); } }, 1500); }); } const userId = 123; Promise.all([fetchUserData(userId), fetchUserPosts(userId)]) .then((results) => { const userData = results[0]; const userPosts = results[1]; console.log("Данные пользователя:", userData); console.log("Посты пользователя:", userPosts); }) .catch((error) => { console.error("Ошибка:", error); }); ``` В этом примере мы используем `Promise.all` для параллельного выполнения `fetchUserData` и `fetchUserPosts` для одного и того же `userId`. Когда оба промиса успешно выполняются, мы получаем массив результатов и можем обработать их с помощью `.then()`. Если хотя бы один промис отклонен, обработчик ошибок будет вызван. `Promise.all` особенно полезен, когда нужно выполнить несколько асинхронных операций параллельно и дождаться их завершения. **[⬆ Наверх](#содержание)** ## Какова цель метода `race` в промисах? Метод `race` в промисах предназначен для того, чтобы выполнять несколько промисов параллельно и вернуть результат первого завершившегося промиса (будь то успешное выполнение или отклонение). Остальные промисы не отменяются и продолжают выполняться, но их результаты не используются. ### Пример использования метода `race`: ```javascript function fetchUserData(userId) { return new Promise((resolve, reject) => { setTimeout(() => { const userData = { id: userId, name: "John" }; if (userData) { resolve(userData); } else { reject("Ошибка при получении данных пользователя"); } }, 1000); }); } function fetchUserPosts(userId) { return new Promise((resolve, reject) => { setTimeout(() => { const posts = ["Пост 1", "Пост 2"]; if (posts) { resolve(posts); } else { reject("Ошибка при получении постов пользователя"); } }, 1500); }); } const userId = 123; Promise.race([fetchUserData(userId), fetchUserPosts(userId)]) .then((result) => { console.log("Первый завершившийся результат:", result); }) .catch((error) => { console.error("Ошибка:", error); }); ``` В этом примере метод `race` используется для параллельного выполнения `fetchUserData` и `fetchUserPosts` для одного и того же `userId`. Результатом будет тот промис, который первым завершится. Если первый завершившийся промис успешно выполнится, будет вызван обработчик `.then()`. Если первый завершившийся промис отклонен, будет вызван обработчик ошибок через `.catch()`. Метод `race` полезен, когда нужно выполнить несколько асинхронных операций и использовать результат первой завершившейся. **[⬆ Наверх](#содержание)** ## Что такое строгий режим (strict mode) в JavaScript? Строгий режим (strict mode) - это специальный режим работы JavaScript, в котором применяются дополнительные правила и ограничения для улучшения безопасности и предотвращения ошибок. Включение строгого режима помогает разработчикам избегать определенных уязвимостей и нежелательных практик в коде. ### Пример использования строгого режима: ```javascript "use strict"; x = 10; // Ошибка: x не определено ``` В этом примере, если строгий режим не включен, переменная `x` будет автоматически объявлена как глобальная. Однако, в строгом режиме, код выдаст ошибку, так как нельзя присваивать значение необъявленной переменной. ### Преимущества строгого режима: 1. **Запрет на использование неявных глобальных переменных**: В строгом режиме, если переменная не объявлена, будет выдана ошибка. 2. **Запрет на удаление переменных и функций**: Нельзя удалять переменные и функции, объявленные с использованием `var`, `let`, `const`, `function`. 3. **Запрет на дублирование параметров функции**: Нельзя использовать одинаковые имена параметров в одной функции. 4. **Запрет на использование некоторых нежелательных операторов**: Например, `with`, который часто усложняет чтение и понимание кода. 5. **Строгая обработка ошибок**: Некоторые незаметные ошибки в нестрогом режиме приводят к неожиданному поведению, в строгом режиме они приводят к выдаче ошибок. Строгий режим рекомендуется использовать во всех новых проектах, так как он помогает сделать код более надежным и предотвращает множество потенциальных проблем. **[⬆ Наверх](#содержание)** ## Зачем нужен строгий режим (strict mode)? Строгий режим (strict mode) в JavaScript нужен для усиления контроля над вашим кодом и предотвращения многих распространенных ошибок. Он помогает сделать ваш код более надежным, предупреждает о нежелательных практиках и улучшает общую безопасность выполнения программы. ### Пример: Допустим, у нас есть следующий код: ```javascript x = 10; // Ошибка? console.log(x); ``` В нестрогом режиме, это сработает без ошибок, но переменная `x` будет автоматически создана как глобальная. Это может привести к непредсказуемому поведению в вашей программе. Однако, если мы включим строгий режим: ```javascript "use strict"; x = 10; // Ошибка: x не определено console.log(x); ``` В этом случае, код выдаст ошибку на строке `x = 10;`, так как попытка присвоения значения необъявленной переменной запрещена в строгом режиме. Это пример того, как строгий режим помогает выявить и предотвратить потенциальные ошибки. ### Преимущества строгого режима: 1. **Предотвращение использования неявных глобальных переменных**: Это помогает избегать случайного создания глобальных переменных и улучшает изоляцию кода. 2. **Обнаружение некоторых ошибок на этапе разработки**: Например, использование зарезервированных слов, дублирование параметров функции, использование `with`, и т.д. 3. **Улучшение производительности**: Строгий режим может позволить JavaScript-движку оптимизировать код для более эффективного выполнения. 4. **Улучшение безопасности**: Строгий режим может предотвращать опасные операции, такие как использование `eval` для выполнения небезопасного кода. 5. **Соответствие современным стандартам**: Строгий режим помогает писать код в соответствии с современными стандартами и рекомендациями. Использование строгого режима рекомендуется во избежание многих ошибок и проблем, которые могут возникнуть в коде, особенно в больших и сложных проектах. **[⬆ Наверх](#содержание)** ## Как объявить строгий режим (strict mode)? Для объявления строгого режима (strict mode) в JavaScript используется директива `"use strict";`. Эта директива помещается в начало скрипта или функции и включает строгий режим для данного контекста. ### Пример: ```javascript "use strict"; x = 10; // Ошибка: x не определено console.log(x); ``` В этом примере строгий режим включается с помощью директивы `"use strict";` перед использованием переменной `x`. При попытке присвоения значения необъявленной переменной будет выдана ошибка. ### Варианты объявления строгого режима: 1. **Глобальный уровень**: Директиву `"use strict";` можно поместить в начало глобальной области видимости, что включит строгий режим для всего скрипта. ```javascript "use strict"; // Весь код в этом скрипте находится в строгом режиме ``` 2. **Локальный уровень (внутри функции)**: Директиву `"use strict";` также можно поместить в начало функции, чтобы включить строгий режим только для этой функции. ```javascript function myFunction() { "use strict"; // Код внутри этой функции находится в строгом режиме } ``` Обратите внимание, что строгий режим включается по отдельности для каждой функции или скрипта. Если вы хотите использовать его повсюду, включите директиву `"use strict";` в каждый файл или функцию. Объявление строгого режима рекомендуется использовать во всех ваших скриптах, так как это помогает предотвратить многие ошибки и нежелательные практики. **[⬆ Наверх](#содержание)** ## Какова цель двойного восклицательного знака в JavaScript? Двойной восклицательный знак (`!!`) в JavaScript используется для преобразования значения в булевое (логическое) значение `true` или `false`. Это помогает сделать явное преобразование данных в булевый тип. ### Пример: ```javascript const value = "Hello"; const booleanValue = !!value; console.log(booleanValue); // Вывод: true ``` В этом примере, `value` содержит строку `"Hello"`. При применении двойного восклицательного знака, значение будет преобразовано в булевое значение `true`, так как любая непустая строка в JavaScript рассматривается как `true`. ### Полезность двойного восклицательного знака: Часто двойной восклицательный знак используется для явного преобразования значений в булевый тип, особенно если значение не является булевым. Например, для проверки наличия значения или для сравнения значений с булевыми значениями: ```javascript const number = 0; const stringValue = "Some text"; const arrayValue = []; console.log(!!number); // Вывод: false console.log(!!stringValue); // Вывод: true console.log(!!arrayValue); // Вывод: true ``` В этом примере, `number` со значением `0` преобразуется в `false`, а `stringValue` и `arrayValue`, содержащие данные, преобразуются в `true`. Использование двойного восклицательного знака может быть полезным при необходимости преобразования значений в булевый тип для выполнения логических операций или проверок. **[⬆ Наверх](#содержание)** ## Какова цель оператора `delete` в JavaScript? Оператор `delete` в JavaScript используется для удаления свойств объектов или элементов массивов. Он позволяет удалить существующие свойства или элементы, что может быть полезно при динамической работе с данными. ### Пример: ```javascript const person = { firstName: "John", lastName: "Doe", age: 30, }; delete person.age; console.log(person); // Вывод: { firstName: "John", lastName: "Doe" } ``` В этом примере мы создали объект `person` с тремя свойствами: `firstName`, `lastName` и `age`. С помощью оператора `delete` мы удаляем свойство `age` из объекта. После выполнения этой операции свойство `age` больше не существует в объекте. ### Ограничения оператора `delete`: 1. Оператор `delete` не может удалить переменные или функции. 2. В строгом режиме (strict mode), попытка удаления неперечислимых свойств или свойств, принадлежащих прототипу объекта, вызовет ошибку. ```javascript "use strict"; const obj = {}; Object.defineProperty(obj, "myProperty", { value: "Hello", enumerable: false, // Свойство неперечислимое }); delete obj.myProperty; // Ошибка в строгом режиме ``` ### Использование оператора `delete`: Оператор `delete` следует использовать осторожно, так как он может привести к неожиданным побочным эффектам и ухудшить производительность. В большинстве случаев лучше использовать другие способы обработки данных, чтобы избежать неявных ошибок. Оператор `delete` часто применяется, когда нужно динамически управлять свойствами объектов или элементами массивов, но его использование следует осуществлять сознательно и внимательно. **[⬆ Наверх](#содержание)** ## Что такое оператор `typeof`? Оператор `typeof` в JavaScript используется для определения типа значения. Он возвращает строку, представляющую тип операнда. ### Пример: ```javascript const number = 42; const string = "Hello"; const boolean = true; const object = { key: "value" }; const array = [1, 2, 3]; console.log(typeof number); // Вывод: "number" console.log(typeof string); // Вывод: "string" console.log(typeof boolean); // Вывод: "boolean" console.log(typeof object); // Вывод: "object" console.log(typeof array); // Вывод: "object" ``` В этом примере мы используем оператор `typeof` для определения типов различных значений. Он возвращает строку с именем типа. Обратите внимание, что `typeof array` возвращает `"object"`, так как встроенный тип массива в JavaScript также является объектом. ### Важные моменты: 1. `typeof null` возвращает `"object"`, что является исторической ошибкой в языке JavaScript. 2. `typeof function` возвращает `"function"`, что позволяет отличить функции от других объектов. 3. `typeof undefined` возвращает `"undefined"`. ### Применение оператора `typeof`: Оператор `typeof` полезен для проверки типов перед обработкой данных, для определения возможных ошибок и для принятия соответствующих решений в зависимости от типов значений. Он используется в различных ситуациях, таких как проверка наличия свойств в объектах, динамическое форматирование вывода и т.д. ```javascript function printValue(value) { if (typeof value === "string") { console.log("Строка: " + value); } else if (typeof value === "number") { console.log("Число: " + value); } else { console.log("Неизвестный тип"); } } printValue("Hello"); // Вывод: Строка: Hello printValue(42); // Вывод: Число: 42 printValue(true); // Вывод: Неизвестный тип ``` **[⬆ Наверх](#содержание)** ## Что такое свойство со значением `undefined`? Свойство со значением `undefined` в JavaScript указывает на то, что свойство существует в объекте, но не имеет присвоенного значения. Это означает, что переменная объявлена, но ей не было присвоено никакое конкретное значение. ### Пример: ```javascript const person = { name: "John", age: undefined, }; console.log(person.name); // Вывод: John console.log(person.age); // Вывод: undefined ``` В этом примере у нас есть объект `person` с двумя свойствами: `name` и `age`. Свойство `name` имеет присвоенное значение `"John"`, тогда как свойство `age` имеет значение `undefined`. ### Зачем используется `undefined`: 1. **По умолчанию для неинициализированных переменных**: Если переменная объявлена, но ей не было присвоено значение, то ее значение по умолчанию будет `undefined`. 2. **Для явного указания отсутствия значения**: В коде можно явно указать, что свойство существует, но ему не присвоено значение, используя `undefined`. 3. **Проверка наличия свойства в объекте**: Проверка наличия свойства в объекте может осуществляться с помощью `undefined`. ### Применение в проверках: ```javascript const obj = { prop: undefined, }; if (obj.prop === undefined) { console.log("Свойство не имеет значения"); } ``` В этом примере мы проверяем, имеет ли свойство `prop` в объекте `obj` значение `undefined`, чтобы определить, было ли ему присвоено какое-либо значение. **[⬆ Наверх](#содержание)** ## Что такое значение `null`? Значение `null` в JavaScript представляет собой специальное значение, которое указывает на отсутствие значения или пустое значение. Это не то же самое, что `undefined`. В то время как `undefined` означает, что значение переменной не было определено, `null` используется для явного указания отсутствия какого-либо значения. ### Пример: ```javascript const myValue = null; console.log(myValue); // Вывод: null ``` В этом примере переменной `myValue` присвоено значение `null`. Это показывает, что переменная существует, но ей специально присвоено значение `null`. ### Зачем используется `null`: 1. **Явное указание отсутствия значения**: В программировании иногда требуется явно указать, что у переменной нет значения. В таких случаях `null` может быть использован вместо неопределенного значения. 2. **Сброс значения**: В некоторых ситуациях значение переменной может быть установлено на `null` для обозначения, что предыдущее значение больше не актуально. 3. **Ручное освобождение памяти**: В некоторых языках программирования, значение `null` может использоваться для ручного освобождения памяти, хотя в JavaScript память освобождается автоматически. ### Пример использования: ```javascript let user = { name: "John", age: null, }; console.log(user.name); // Вывод: John console.log(user.age); // Вывод: null ``` В этом примере мы используем `null` для свойства `age` объекта `user` вместо `undefined`, чтобы явно показать, что возраст пользователя неизвестен. **[⬆ Наверх](#содержание)** ## В чем разница между значениями `null` и `undefined`? В JavaScript `null` и `undefined` представляют отсутствие значения, но у них есть небольшие различия в их семантике и использовании. ### `undefined`: - `undefined` означает, что переменная объявлена, но ей не было присвоено никакое значение. ### `null`: - `null` означает, что переменная объявлена, но явно имеет пустое значение. ### Примеры: ```javascript let variable1; // Значение переменной будет undefined const variable2 = null; // Значение переменной будет null console.log(variable1); // Вывод: undefined console.log(variable2); // Вывод: null console.log(variable1 === undefined); // Вывод: true console.log(variable2 === null); // Вывод: true ``` ### Когда использовать каждое значение? - `undefined` используется, когда переменная существует, но ей не было присвоено значение. Это может быть результатом объявления переменной без инициализации, а также результатом отсутствия возвращаемого значения в функции. - `null` используется, когда вы явно хотите указать, что переменная имеет пустое или отсутствующее значение. Это может быть полезным, например, при сбросе значения переменной на "ничто". Обратите внимание, что при сравнении с помощью оператора `===`, `null` и `undefined` равны друг другу, но не равны никаким другим значениям: ```javascript console.log(null === undefined); // Вывод: true console.log(null == undefined); // Вывод: true console.log(null === 0); // Вывод: false console.log(undefined === 0); // Вывод: false ``` В общем, использование `null` и `undefined` зависит от контекста и задачи, но оба значения представляют отсутствие или пустое значение. **[⬆ Наверх](#содержание)** ## Что такое `eval`? `eval` в JavaScript представляет собой встроенную функцию, которая позволяет интерпретировать и выполнять строку как код JavaScript. Однако из-за своих потенциальных безопасностных и производственных проблем использование `eval` не рекомендуется в большинстве ситуаций. ### Пример: ```javascript const x = 10; const y = 20; const code = "x + y"; const result = eval(code); console.log(result); // Вывод: 30 ``` В этом примере код в строке `'x + y'` интерпретируется и выполняется как код JavaScript с помощью `eval`, что приводит к результату `30` при сложении `x` и `y`. ### Ограничения и проблемы: 1. **Безопасность**: Использование `eval` может представлять угрозу безопасности, так как оно позволяет выполнить произвольный код, включая вредоносный. 2. **Сложность отладки**: Код, выполняемый через `eval`, труднее отлаживать, так как он может изменяться во время выполнения. 3. **Снижение производительности**: Использование `eval` может снизить производительность, так как код, выполняемый с его помощью, не может быть заранее оптимизирован. ### Альтернативы: В большинстве случаев лучше использовать альтернативные подходы, такие как: - **`JSON.parse`**: Для разбора JSON-строк. - **Функции конструктора**: Для создания объектов. - **Функции высшего порядка**: Для выполнения динамического кода. ```javascript const x = 10; const y = 20; const code = (x, y) => x + y; const result = code(x, y); console.log(result); // Вывод: 30 ``` Общее правило: если есть альтернативные способы достижения цели без использования `eval`, лучше отдать им предпочтение из соображений безопасности и поддерживаемости кода. **[⬆ Наверх](#содержание)** ## В чем разница между `window` и `document`? В контексте браузерного JavaScript `window` и `document` - это два различных объекта, предоставляемых браузером, но они имеют разные роли и функциональность. ### `window`: - `window` является глобальным объектом браузера, представляющим текущее окно браузера или вкладку. Он также является глобальным контекстом выполнения для JavaScript кода, выполняющегося в текущей вкладке. - `window` содержит множество свойств и методов, которые предоставляют доступ к браузерным функциям и свойствам, таким как размер окна, URL-адрес, таймеры, хранилища и многое другое. ### `document`: - `document` является объектом, представляющим текущий HTML-документ в окне браузера. Он предоставляет доступ к элементам и структуре HTML-документа, позволяя манипулировать содержимым, добавлять, изменять и удалять элементы. - `document` также предоставляет методы для работы с событиями, стилями и многими другими аспектами веб-страницы. ### Пример: ```javascript // Получение высоты окна const windowHeight = window.innerHeight; // Изменение текста элемента на странице const myElement = document.getElementById("my-element"); myElement.textContent = "Новый текст"; ``` В этом примере мы используем `window.innerHeight`, чтобы получить высоту окна браузера, и `document.getElementById`, чтобы получить элемент на странице и изменить его текстовое содержимое. ### Заключение: Коротко говоря, `window` представляет окно браузера и предоставляет доступ к его свойствам, в то время как `document` представляет текущий HTML-документ и позволяет манипулировать его содержимым. **[⬆ Наверх](#содержание)** ## Как получить доступ к истории браузера в JavaScript? Вы можете получить доступ к истории браузера через объект `history`, который предоставляет методы для управления переходами между страницами в истории браузера. ### Пример: ```javascript // Перейти на предыдущую страницу в истории history.back(); // Перейти на следующую страницу в истории (если доступно) history.forward(); // Перейти на определенное количество страниц назад или вперед history.go(-2); // Перейти назад на две страницы history.go(3); // Перейти вперед на три страницы // Получить количество записей в истории const historyLength = history.length; console.log("Количество записей в истории: " + historyLength); ``` В этом примере мы используем методы `back()`, `forward()` и `go()` объекта `history`, чтобы перейти назад, вперед или на определенное количество страниц в истории. Мы также используем свойство `length`, чтобы получить количество записей в истории. Обратите внимание, что доступ к объекту `history` ограничен политикой безопасности браузера, и некоторые действия, такие как переход на страницу из другого домена, могут быть ограничены. ### Использование в навигации: Объект `history` полезен для управления навигацией между страницами внутри вашего веб-приложения. Он позволяет создавать пользовательские переходы и возвращения, сохраняя историю переходов между различными состояниями приложения. **[⬆ Наверх](#содержание)** ## Как определить, включена ли клавиша Caps Lock? Для определения, включена ли клавиша Caps Lock, можно использовать события клавиатуры в JavaScript. При этом проверяется состояние клавиши, когда пользователь вводит текст. ### Пример: ```javascript // Событие обработки нажатия клавиши document.addEventListener("keydown", function (event) { const capsLockOn = event.getModifierState("CapsLock"); if (capsLockOn) { console.log("Клавиша Caps Lock включена"); } else { console.log("Клавиша Caps Lock выключена"); } }); ``` В этом примере мы добавляем обработчик события `keydown` на документ. При нажатии клавиши на клавиатуре мы используем метод `getModifierState("CapsLock")` для проверки состояния клавиши Caps Lock. Если она включена, выводится соответствующее сообщение. Обратите внимание, что этот способ проверки зависит от обработки событий клавиатуры. Если пользователь вводит текст в поле ввода, например, в текстовом поле, то состояние клавиши Caps Lock можно определить по событиям этого поля. ### Другой подход: Еще одним способом может быть отслеживание состояния клавиши в реальном времени на поле ввода: ```javascript const inputElement = document.getElementById("my-input"); inputElement.addEventListener("input", function (event) { const text = event.target.value; const lastChar = text[text.length - 1]; const isUpperCase = lastChar === lastChar.toUpperCase() && lastChar !== lastChar.toLowerCase(); if (isUpperCase) { console.log("Клавиша Caps Lock включена"); } else { console.log("Клавиша Caps Lock выключена"); } }); ``` В этом случае мы отслеживаем событие `input` на поле ввода. После каждого ввода символа мы проверяем, является ли последний введенный символ заглавной буквой. Если да, то считаем, что клавиша Caps Lock включена. **[⬆ Наверх](#содержание)** ## Что такое `isNaN`? `isNaN` в JavaScript - это встроенная функция, которая используется для определения, является ли переданное значение "не числом" (Not-a-Number). Она возвращает `true`, если значение не может быть преобразовано в число, и `false`, если оно может быть. ### Пример: ```javascript console.log(isNaN("Hello")); // Вывод: true, так как "Hello" не является числом console.log(isNaN(42)); // Вывод: false, так как 42 - это число console.log(isNaN("42")); // Вывод: false, так как "42" может быть преобразовано в число ``` В этом примере `isNaN` используется для проверки разных значений. Значение `"Hello"` не является числом, поэтому результат - `true`. Значение `42` является числом, поэтому результат - `false`. Значение `"42"` может быть преобразовано в число, поэтому также получается `false`. ### Замечание: Однако есть важное обстоятельство, о котором следует помнить. `isNaN` пытается преобразовать переданное значение в число перед проверкой. Это может привести к некоторым неожиданным результатам: ```javascript console.log(isNaN("42px")); // Вывод: true, так как "42px" не может быть преобразовано в число ``` В этом случае `"42px"` не может быть корректно преобразовано в число, даже если оно начинается с числа. Поэтому результат - `true`. ### Использование замен: Для более точной проверки на числовое значение рекомендуется использовать `Number.isNaN()`, доступный в ECMAScript 6: ```javascript console.log(Number.isNaN("Hello")); // Вывод: false console.log(Number.isNaN(42)); // Вывод: false console.log(Number.isNaN("42")); // Вывод: false console.log(Number.isNaN("42px")); // Вывод: false ``` В этом случае `Number.isNaN()` не пытается преобразовывать значение, и результаты более соответствуют ожиданиям. **[⬆ Наверх](#содержание)** ## Каковы различия между необъявленными и неопределенными переменными? В JavaScript есть различия между необъявленными и неопределенными переменными. Эти понятия часто вызывают путаницу, но они имеют разные значения. ### Необъявленные переменные: - Необъявленные переменные - это переменные, которые не были объявлены с помощью ключевых слов `var`, `let` или `const`. - Попытка обращения к необъявленной переменной приведет к ошибке `ReferenceError`. ### Неопределенные переменные: - Неопределенные переменные - это переменные, которые были объявлены, но им не было присвоено никакое значение. - При обращении к неопределенной переменной, ее значение будет `undefined`. ### Примеры: ```javascript // Пример необъявленной переменной try { console.log(nonExistentVariable); // ReferenceError: nonExistentVariable is not defined } catch (error) { console.log("Ошибка: " + error.message); } // Пример объявления и неопределенной переменной let x; console.log(x); // Вывод: undefined ``` В первом примере `nonExistentVariable` не объявлена, поэтому обращение к ней вызывает ошибку. Во втором примере переменная `x` объявлена, но не имеет значения, поэтому выводится `undefined`. ### Заключение: Помните, что необъявленные переменные - это переменные, которые вообще не были объявлены, а неопределенные переменные - это переменные, которые объявлены, но не имеют значения. **[⬆ Наверх](#содержание)** ## Что такое глобальные переменные? Глобальные переменные в JavaScript - это переменные, которые объявлены в глобальной области видимости, то есть за пределами любых функций или блоков кода. Они доступны из любого места в вашем коде. ### Пример: ```javascript // Глобальная переменная var globalVariable = "Это глобальная переменная"; function printGlobal() { console.log(globalVariable); // Можно обратиться к глобальной переменной внутри функции } printGlobal(); // Вывод: "Это глобальная переменная" console.log(globalVariable); // Вывод: "Это глобальная переменная" ``` В этом примере переменная `globalVariable` объявлена в глобальной области видимости и, следовательно, доступна как внутри функции `printGlobal`, так и за её пределами. ### Важное замечание: Использование глобальных переменных может быть опасным, так как они могут взаимодействовать и перезаписываться из разных частей кода. Это может привести к сложностям в отладке и поддержке кода. Вместо использования глобальных переменных рекомендуется ограничивать область видимости переменных, объявляя их с помощью ключевых слов `let` или `const` внутри функций, блоков кода или модулей. ### Пример без использования глобальных переменных: ```javascript function exampleFunction() { let localVariable = "Это локальная переменная"; console.log(localVariable); } exampleFunction(); // Вывод: "Это локальная переменная" console.log(localVariable); // Ошибка: localVariable is not defined ``` В этом примере `localVariable` объявлена внутри функции и не доступна за её пределами, что помогает избежать конфликтов и проблем с областью видимости. **[⬆ Наверх](#содержание)** ## Какие проблемы связаны с использованием глобальных переменных? Использование глобальных переменных может привести к ряду проблем и сложностей в коде. Вот некоторые из них: 1. **Конфликты имен**: Если в разных частях кода используются одинаковые имена глобальных переменных, это может привести к непредсказуемому поведению и ошибкам. 2. **Неявные изменения**: Глобальные переменные могут быть изменены из любой части кода, что может сделать отслеживание изменений сложным и привести к неожиданным эффектам. 3. **Затруднения в отладке**: При наличии множества глобальных переменных сложно определить, где именно произошло изменение значения, вызвавшее ошибку. 4. **Читаемость и понимание кода**: Использование глобальных переменных может затруднить понимание того, какие данные используются и откуда они берутся в различных частях кода. ### Пример: ```javascript var count = 0; function increment() { count++; } function doubleCount() { count = count * 2; } increment(); console.log(count); // Вывод: 1 doubleCount(); console.log(count); // Вывод: 2 (ожидалось 4 из-за неявного изменения) ``` В этом примере глобальная переменная `count` изменяется из двух разных функций, что может вызвать путаницу в том, какое значение ожидается. ### Предостережение: Хотя использование глобальных переменных иногда неизбежно, хорошей практикой является минимизация их использования. Лучше ограничивать область видимости переменных, объявляя их внутри функций, блоков кода или модулей, чтобы снизить вероятность конфликтов и неожиданных изменений. **[⬆ Наверх](#содержание)** ## Что такое свойство NaN? `NaN` (Not-a-Number) в JavaScript представляет собой специальное значение, которое указывает на то, что результат математической операции не является числом. У `NaN` есть свойство `NaN`, которое можно использовать для определения, является ли значение `NaN`. ### Пример: ```javascript const result = 0 / 0; // Деление на ноль дает NaN console.log(result); // Вывод: NaN console.log(result === NaN); // Вывод: false, так как NaN нельзя сравнить напрямую console.log(isNaN(result)); // Вывод: true, так как result содержит NaN ``` В этом примере мы выполняем деление на ноль, что приводит к получению значения `NaN`. Однако при сравнении `result` с `NaN` напрямую результат будет `false`, так как `NaN` не равно ни какому другому значению, даже самому себе. Для проверки наличия значения `NaN` удобно использовать функцию `isNaN()`. Она возвращает `true`, если переданное значение является `NaN`, и `false`, если не является. ### Дополнительно: Заметьте, что использование оператора `===` для сравнения с `NaN` может быть некорректным, так как `NaN` не равно ни одному другому значению, даже себе. Поэтому для проверки на `NaN` рекомендуется использовать `isNaN()` или строгое сравнение с `Number.isNaN()`. **[⬆ Наверх](#содержание)** ## Каково назначение функции `isFinite`? В JavaScript функция `isFinite` используется для определения, является ли переданное значение конечным числом, то есть числом, которое не равно бесконечности (`Infinity`) или минус бесконечности (`-Infinity`). ### Пример: ```javascript console.log(isFinite(42)); // Вывод: true, так как 42 - конечное число console.log(isFinite(Infinity)); // Вывод: false, так как Infinity - бесконечность console.log(isFinite(-Infinity)); // Вывод: false, так как -Infinity - минус бесконечность console.log(isFinite("42")); // Вывод: true, так как "42" будет преобразовано в число console.log(isFinite("Hello")); // Вывод: false, так как "Hello" не может быть преобразовано в число ``` В этом примере мы используем `isFinite` для проверки разных значений. Число `42` является конечным числом, поэтому результат - `true`. Значения `Infinity` и `-Infinity` не являются конечными числами, поэтому результат - `false`. Строка `"42"` может быть преобразована в число, поэтому также получается `true`. Строка `"Hello"` не может быть преобразована в число, поэтому результат - `false`. ### Замечание: Обратите внимание, что `isFinite` преобразует переданное значение в число перед проверкой. Если значение нельзя преобразовать в число (например, строку `"Hello"`), то результат будет `false`. Это может быть полезно для фильтрации некорректных или нечисловых значений. **[⬆ Наверх](#содержание)** ## Что такое поток событий (Event Flow)? Поток событий (Event Flow) в контексте веб-разработки описывает последовательность, в которой браузер обрабатывает события в документе. События могут быть связаны с элементами DOM, например, щелчок мыши, нажатие клавиши, изменение размеров окна и так далее. Поток событий определяет порядок, в котором браузер передает и обрабатывает эти события. ### Три этапа потока событий: 1. **Фаза захвата (Capture Phase)**: Событие проходит вниз по дереву DOM, начиная с самого верхнего родительского элемента и двигаясь к целевому элементу события. 2. **Фаза цели (Target Phase)**: Событие достигает целевого элемента, на котором оно было сгенерировано. 3. **Фаза всплытия (Bubbling Phase)**: Событие возвращается вверх по дереву DOM, от целевого элемента к верхнему родительскому элементу. ### Пример: ```html <div id="parent"> <button id="child">Нажми меня</button> </div> ``` ```javascript const parent = document.getElementById("parent"); const child = document.getElementById("child"); parent.addEventListener( "click", () => { console.log("Событие всплывает: parent"); }, false ); // параметр false указывает на использование фазы всплытия child.addEventListener( "click", () => { console.log("Событие захватывает: child"); }, true ); // параметр true указывает на использование фазы захвата ``` В этом примере при клике на кнопку "Нажми меня" сначала будет выполняться обработчик события на этой кнопке (фаза цели), затем на родительском элементе (фаза всплытия). Результат выполнения будет: ``` Событие захватывает: child Событие всплывает: parent ``` ### Приемущества понимания потока событий: Понимание потока событий важно для правильной обработки событий и предотвращения нежелательных поведений. Вы можете выбирать между фазой захвата и фазой всплытия в зависимости от требуемого поведения и цели обработки событий. **[⬆ Наверх](#содержание)** ## Что такое всплытие событий (Event Bubbling)? Всплытие событий (Event Bubbling) - это механизм в потоке событий браузера, при котором событие, возникающее на вложенном элементе DOM, поочередно передается родительским элементам вверх по иерархии DOM. Это позволяет обработчикам событий, прикрепленным к родительским элементам, также реагировать на событие, которое произошло внутри вложенного элемента. ### Пример: ```html <div id="parent"> <button id="child">Нажми меня</button> </div> ``` ```javascript const parent = document.getElementById("parent"); const child = document.getElementById("child"); parent.addEventListener("click", () => { console.log("Событие всплывает: parent"); }); child.addEventListener("click", () => { console.log("Событие всплывает: child"); }); ``` При клике на кнопку "Нажми меня" произойдет всплытие события. Сначала выполнится обработчик события на кнопке (вложенный элемент), а затем обработчик на родительском элементе. Результат выполнения: ``` Событие всплывает: child Событие всплывает: parent ``` ### Преимущества всплытия событий: 1. **Удобство обработки**: Всплытие событий позволяет просто обрабатывать события на родительских элементах, не привязывая обработчики ко всем вложенным элементам. 2. **Динамический контент**: При добавлении новых элементов на страницу всплытие событий автоматически применяется к ним, что упрощает работу с динамически созданным контентом. 3. **Расширяемость**: Можно создавать обработчики событий на общих родительских элементах, чтобы не повторять код для каждого вложенного элемента. ### Замечание: Всплытие событий может быть остановлено с помощью метода `event.stopPropagation()`, если необходимо избежать передачи события выше по иерархии DOM. **[⬆ Наверх](#содержание)** ## Что такое захват событий (Event Capturing)? Захват событий (Event Capturing) - это механизм в потоке событий браузера, при котором событие сначала передается от родительских элементов к целевому элементу, а затем до него долго до вложенных элементов. Это происходит в фазе захвата (Capture Phase) потока событий. ### Пример: ```html <div id="parent"> <button id="child">Нажми меня</button> </div> ``` ```javascript const parent = document.getElementById("parent"); const child = document.getElementById("child"); parent.addEventListener( "click", () => { console.log("Событие захватывает: parent"); }, true ); // параметр true указывает на использование фазы захвата child.addEventListener( "click", () => { console.log("Событие захватывает: child"); }, true ); // параметр true указывает на использование фазы захвата ``` В этом примере при клике на кнопку "Нажми меня" сначала будет выполняться обработчик события на родительском элементе (фаза захвата), затем на самой кнопке (фаза цели), и наконец, обработчик события на родительском элементе снова (фаза всплытия). Результат выполнения: ``` Событие захватывает: parent Событие захватывает: child ``` ### Преимущества захвата событий: 1. **Управление до событием**: Захват событий позволяет обработать событие на родительских элементах до того, как оно достигнет целевого элемента. 2. **Предотвращение всплытия**: Можно предотвратить всплытие события, если в фазе захвата будет вызван метод `event.stopPropagation()`. ### Замечание: Захват событий (`Capture Phase`) не всегда используется на практике так часто, как всплытие событий (`Bubbling Phase`), но он может быть полезным, когда нужно обработать событие до его целевого элемента. **[⬆ Наверх](#содержание)** ## Как отправить форму с помощью JavaScript? Для отправки формы с помощью JavaScript вы можете использовать метод `.submit()` объекта формы. Этот метод вызывается на элементе формы и инициирует отправку данных формы на сервер. ### Пример: ```html <form id="myForm"> <input type="text" name="username" value="John" /> <input type="email" name="email" value="john@example.com" /> <button type="button" onclick="submitForm()">Отправить</button> </form> <script> function submitForm() { const form = document.getElementById("myForm"); form.submit(); } </script> ``` В этом примере у нас есть форма с идентификатором `myForm` и кнопка, при нажатии которой вызывается функция `submitForm()`. Внутри этой функции мы получаем ссылку на форму с помощью `document.getElementById("myForm")` и затем вызываем метод `.submit()` для отправки формы. Заметьте, что обычно кнопки внутри формы имеют атрибут `type="submit"`, чтобы по умолчанию они запускали отправку формы. В данном примере мы использовали `type="button"`, чтобы предотвратить автоматическую отправку и добавили вызов функции `submitForm()` при нажатии кнопки. ### Предостережение: Если у вас есть элементы формы с атрибутом `name`, браузер автоматически сгенерирует и отправит данные формы на сервер. Так что, если вам нужно вмешаться в процесс отправки формы, убедитесь, что у вас есть явная причина для этого. **[⬆ Наверх](#содержание)** ## Как получить информацию о операционной системе? Вы можете использовать объект `navigator` в JavaScript для получения информации о текущей операционной системе пользователя. Свойство `navigator.userAgent` содержит строку, которая включает информацию об операционной системе. ### Пример: ```javascript const osDetails = navigator.userAgent; console.log("Информация об операционной системе:", osDetails); ``` Важно отметить, что свойство `navigator.userAgent` может возвращать довольно сложную строку, содержащую информацию не только об операционной системе, но и о браузере и других аспектах. Чтобы получить точную информацию об операционной системе, вы можете использовать сторонние библиотеки или сервисы, специализирующиеся на определении информации о пользовательском агенте. **[⬆ Наверх](#содержание)** ## В чем разница между событиями загрузки документа и DOMContentLoaded? Событие `load` и событие `DOMContentLoaded` являются двумя разными событиями в жизненном цикле загрузки веб-страницы. Они происходят в разные моменты и служат для разных целей. ### Событие `load`: Событие `load` происходит, когда весь документ, включая изображения, стили, скрипты и другие ресурсы, полностью загружен и отображен на странице. Это событие может быть использовано, когда вы хотите выполнять действия, требующие полной загрузки всех ресурсов. ```javascript window.addEventListener("load", () => { console.log("Страница и все ресурсы загружены"); }); ``` ### Событие `DOMContentLoaded`: Событие `DOMContentLoaded` возникает, когда весь DOM (структура страницы) готов к манипуляции с элементами, даже если некоторые внешние ресурсы, такие как изображения и стили, все еще загружаются. Это событие обычно используется для запуска скриптов или других действий, которые не зависят от полной загрузки всех ресурсов. ```javascript document.addEventListener("DOMContentLoaded", () => { console.log("DOM готов к манипуляции"); }); ``` ### Различия между ними: - Событие `load` происходит после полной загрузки всех ресурсов, включая изображения и стили. - Событие `DOMContentLoaded` происходит после полной загрузки структуры DOM, но до полной загрузки внешних ресурсов. В большинстве случаев, если вам нужно выполнить действия, связанные с манипуляцией DOM, рекомендуется использовать событие `DOMContentLoaded`, так как оно обеспечивает более быструю реакцию страницы. **[⬆ Наверх](#содержание)** ### В чем разница между встроенными, хост объектами и объектами пользовательского кода? В JavaScript существуют различные типы объектов, которые могут быть классифицированы как встроенные (native), хост-объекты (host) и объекты пользовательского кода (user). Вот как они отличаются друг от друга: ### Встроенные (Native) объекты: Встроенные объекты - это объекты, предоставляемые самим языком JavaScript. Они включают в себя такие объекты, как `Object`, `Array`, `String`, `Number`, `Date` и другие. Эти объекты доступны по умолчанию в любом окружении, поддерживающем JavaScript. Пример: ```javascript const myArray = new Array(1, 2, 3); const myString = new String("Hello"); ``` ### Хост-объекты (Host Objects): Хост-объекты - это объекты, предоставляемые средой выполнения JavaScript, такой как браузерное окружение или среда Node.js. Эти объекты зависят от окружения и могут варьироваться в разных средах. Примерами хост-объектов могут быть `window` и `document` в браузере или объекты, предоставляемые сервером Node.js. Пример: ```javascript console.log(window.innerWidth); // Свойство окна браузера ``` ### Объекты пользовательского кода (User Objects): Объекты пользовательского кода - это объекты, созданные и определенные пользовательским кодом. Это объекты, которые вы создаете сами в своих скриптах, определяя их свойства и методы в соответствии с вашей логикой. Пример: ```javascript const myCustomObject = { name: "John", age: 30, greet: function () { console.log("Hello, " + this.name); }, }; ``` ### Вывод: Встроенные (native) объекты предоставляются языком JavaScript, хост-объекты предоставляются окружением выполнения (браузером, Node.js и т.д.), а объекты пользовательского кода создаются и определяются самим пользовательским кодом. **[⬆ Наверх](#содержание)** ## Какие инструменты или методы используются для отладки кода на JavaScript? Отладка кода на JavaScript - это процесс выявления и исправления ошибок в вашем коде. Существует несколько инструментов и методов, которые можно использовать для упрощения этого процесса: ### Инструменты браузера: 1. **Консоль разработчика**: Практически все современные браузеры предоставляют консоль разработчика, где вы можете выводить сообщения, проверять значения переменных, анализировать ошибки и т.д. 2. **Инспектор элементов**: Позволяет просматривать и изменять DOM-структуру страницы, а также применять стили для отладки макета. 3. **Отладчик кода**: Позволяет установить точки останова, шагать по коду, анализировать значения переменных и контролировать выполнение кода шаг за шагом. ### Инструменты сторонних разработчиков: 1. **Visual Studio Code**: Популярный редактор кода с встроенной поддержкой отладки JavaScript. 2. **Chrome DevTools**: Мощные инструменты для отладки в Chrome, включая отладчик и профилирование. 3. **Firefox Developer Tools**: Инструменты для разработчиков Firefox с аналогичными функциональными возможностями. ### Техники отладки: 1. **Использование точек останова**: Вы можете установить точки останова в коде, чтобы остановить выполнение программы в определенном месте и анализировать состояние переменных. 2. **Вывод сообщений**: Используйте функцию `console.log()` для вывода значений переменных и сообщений в консоль разработчика. 3. **Использование инструкции `debugger`**: Вставьте ключевое слово `debugger` в код для активации отладчика в инструментах разработчика браузера. 4. **Анализ ошибок и исключений**: При наличии ошибок и исключений в коде, браузер предоставит информацию о месте возникновения проблемы. ### Пример: ```javascript function calculateSum(a, b) { debugger; // Остановка выполнения кода const sum = a + b; console.log("Сумма:", sum); return sum; } calculateSum(5, 10); ``` Путем использования указанных инструментов и методов вы сможете эффективно отлаживать свой код и находить ошибки, что облегчит разработку приложений на JavaScript. **[⬆ Наверх](#содержание)** ## Каковы плюсы и минусы промисов по сравнению с обратными вызовами? ### Плюсы использования промисов: 1. **Более читаемый код**: Промисы позволяют писать код более структурированно и последовательно, что делает его более понятным и читаемым. 2. **Избегание "callback hell"**: Промисы позволяют избежать так называемой "callback hell" (чрезмерная вложенность обратных вызовов), что упрощает понимание и поддержку кода. 3. **Легкая обработка ошибок**: Промисы позволяют централизованно обрабатывать ошибки через метод `.catch()` или блок `catch`, делая код более надежным. 4. **Чейнинг**: Промисы поддерживают цепочку методов, что упрощает последовательное выполнение асинхронных операций. ### Минусы использования промисов: 1. **Сложность для новичков**: Новичкам может потребоваться время для понимания промисов и их работы. 2. **Нет поддержки в старых браузерах**: Промисы поддерживаются не всеми старыми версиями браузеров, в отличие от обратных вызовов. 3. **Ограниченные возможности**: Промисы имеют ограниченный набор функций по сравнению с некоторыми более новыми концепциями, такими как `async/await`. ### Пример: **Использование обратных вызовов:** ```javascript function fetchData(callback) { // Асинхронная операция setTimeout(() => { const data = { message: "Данные получены" }; callback(data); }, 1000); } fetchData((result) => { console.log(result.message); }); ``` **Использование промисов:** ```javascript function fetchData() { return new Promise((resolve) => { // Асинхронная операция setTimeout(() => { const data = { message: "Данные получены" }; resolve(data); }, 1000); }); } fetchData().then((result) => { console.log(result.message); }); ``` В данном примере код с использованием промисов выглядит более читаемо и легко понимаемо. **[⬆ Наверх](#содержание)** ## В чем разница между атрибутом и свойством? В контексте HTML и JavaScript, термины "атрибут" и "свойство" обозначают два разных понятия, связанных с элементами веб-страницы. ### Атрибут: Атрибут - это часть HTML-кода, определяющая начальные значения для элементов. Они указываются в открывающем теге элемента в виде пары "имя=значение". Атрибуты являются частью статической структуры HTML-документа и задают начальные значения, которые могут быть изменены с помощью JavaScript. Атрибуты также могут быть использованы для передачи дополнительной информации, такой как ссылки или стили, браузерам и другим инструментам. Пример: ```html <input type="text" value="Hello" id="myInput" /> ``` ### Свойство: Свойство - это значение, представляющее текущее состояние элемента, которое может изменяться динамически через JavaScript. Свойства находятся в объектах, представляющих HTML-элементы в DOM. Они предоставляют доступ к информации о состоянии элемента, а также позволяют изменять это состояние. Пример: ```javascript const inputElement = document.getElementById("myInput"); console.log(inputElement.value); // Получение значения свойства "value" inputElement.value = "New Value"; // Изменение значения свойства "value" ``` ### Различие между атрибутами и свойствами: - Атрибуты задают начальные значения элементов и часто описываются в HTML-коде. - Свойства предоставляют доступ к текущему состоянию элементов и часто изменяются с помощью JavaScript. - Изменение атрибутов не всегда влияет на свойства, и наоборот. Например, изменение атрибута `value` на элементе `<input>` не обязательно изменит свойство `value` этого элемента, и наоборот. ```html <input type="text" value="Initial Value" id="myInput" /> ``` ```javascript const inputElement = document.getElementById("myInput"); inputElement.value = "New Value"; // Изменение свойства value console.log(inputElement.getAttribute("value")); // Получение атрибута value ``` В данном случае, хотя свойство `value` изменено, атрибут `value` остается без изменений. ## Что такое политика одного источника (Same Origin Policy)? Политика одного источника (Same-Origin Policy) - это безопасностная политика, применяемая веб-браузерами для ограничения взаимодействия между веб-страницами или скриптами из разных источников (доменов). Она предотвращает скрипты с одного источника от доступа к данным или взаимодействия с ресурсами на другом источнике без явного разрешения. Для того чтобы две веб-страницы были в рамках одного источника, они должны иметь одинаковый протокол (http, https), домен (например, www.example.com), и порт (если указан). ### Пример: Допустим, у вас есть веб-страница, загруженная с источника "https://www.example.com". Согласно политике одного источника, скрипты на этой странице не могут безопасно взаимодействовать с ресурсами (например, куки, localStorage) другой веб-страницы на источнике "https://www.anotherdomain.com", даже если обе страницы открыты в одном браузере. ```javascript // Это приведет к ошибке политики одного источника const anotherDomainResponse = fetch("https://www.anotherdomain.com/api/data"); ``` Однако, если сервер на источнике "https://www.anotherdomain.com" поддерживает механизмы, такие как "CORS" (Cross-Origin Resource Sharing), то можно настроить разрешения для взаимодействия между доменами. Политика одного источника является важной частью безопасности веб-приложений, поскольку она ограничивает возможность злоумышленников выполнять междоменные атаки и защищает данные пользователей от несанкционированного доступа. **[⬆ Наверх](#содержание)** ## Какова цель использования `void 0` в JavaScript? В JavaScript `void` - это оператор, который возвращает значение `undefined` для выражения, переданного ему. Использование `void 0` является приемом, который используется для создания безопасной ссылки на `undefined`. Это может быть полезно в контексте избегания нежелательного переопределения глобальной переменной `undefined`. ### Пример: ```javascript var undefined = "Это не undefined!"; console.log(undefined); // Выведет: "Это не undefined!" var safeUndefined = void 0; console.log(safeUndefined); // Выведет: undefined ``` В этом примере переменная `undefined` была переопределена. Однако, использование `void 0` помогает получить настоящее значение `undefined`, независимо от переопределения переменной `undefined`. **[⬆ Наверх](#содержание)** ## Является ли JavaScript компилируемым или интерпретируемым языком? JavaScript является интерпретируемым языком программирования. Это означает, что код JavaScript выполняется непосредственно во время выполнения программы, без необходимости предварительной компиляции. Когда браузер (или другой исполнитель) встречает JavaScript-код, он интерпретирует его и выполняет соответствующие действия. Однако с развитием технологий в JavaScript также начали использовать компиляцию. Например, современные движки JavaScript, такие как V8 (используемый в браузере Google Chrome), выполняют оптимизацию и компиляцию в машинный код, чтобы ускорить выполнение программ. ### Пример: ```javascript function greet(name) { console.log("Привет, " + name + "!"); } greet("Алексей"); ``` В данном примере код JavaScript не компилируется в отдельный бинарный файл перед выполнением. Браузер (или движок JavaScript) интерпретирует этот код и выполняет функцию `greet`, выводя сообщение в консоль. **[⬆ Наверх](#содержание)** ## Является ли JavaScript языком, чувствительным к регистру символов? Да, JavaScript является языком, чувствительным к регистру символов. Это означает, что он различает между заглавными и строчными буквами и считает их разными символами. ### Пример: ```javascript var myVariable = 10; var MyVariable = 20; console.log(myVariable); // Выведет: 10 console.log(MyVariable); // Выведет: 20 ``` В этом примере две переменные `myVariable` и `MyVariable` считаются разными переменными из-за различия в регистре первой буквы. Если бы JavaScript был нерегистрозависимым, обе переменные были бы считаны как одна и та же переменная. **[⬆ Наверх](#содержание)** ## Что такое события (events)? В контексте веб-программирования события - это действия или происшествия, которые происходят веб-браузере, такие как клик мыши, нажатие клавиши, загрузка страницы и другие взаимодействия пользователя с веб-страницей. В JavaScript события используются для реагирования на действия пользователя и управления поведением веб-страницы. ### Пример: ```html <button id="myButton">Нажми меня</button> <script> const buttonElement = document.getElementById("myButton"); // Добавляем обработчик события клика buttonElement.addEventListener("click", function () { alert("Кнопка была нажата!"); }); </script> ``` В этом примере кнопка "Нажми меня" имеет прикрепленный обработчик события клика. Когда пользователь нажимает на кнопку, вызывается функция, которая выводит всплывающее окно с сообщением. Событие "click" происходит при клике на элемент. События позволяют создавать интерактивные веб-приложения, реагирующие на действия пользователей, и являются важной частью программирования на веб-страницах.
400+ вопросов по JS для собеседования. Собеседование, JavaScript
cheatsheet,interview-questions,javascript
2023-08-26T07:42:07Z
2023-08-26T13:07:10Z
null
1
0
20
0
0
9
null
null
null
prestodb/presto-js-client
main
# presto-client This monorepo was generated with [Nx](https://nx.dev). ## Presto JS Client For information on the Presto JS Client check its [README](presto-client/README.md) file under presto-client. ## Contributing Check the [CONTRIBUTING](CONTRIBUTING.md) file for information on how to build, test and publish the client.
Monorepo for Presto JavaScript packages
javascript,presto,prestodb,typescript
2023-08-29T17:05:57Z
2024-01-24T18:29:13Z
2024-01-24T17:37:44Z
16
13
24
1
2
9
null
Apache-2.0
TypeScript
pjyotianwar/Car-Rental
main
# Car Rental Project The Car Rental project is a comprehensive MERN stack web application tailored for small rental companies. It encompasses end-to-end functionality, including user authentication, booking management, and admin features. This application is built using Node.js, Express.js, React.js, Redux, MongoDB, and Mongoose. ## Project Features - User authentication for secure access to the platform. - Booking management system for efficient rental services. - Admin dashboard with specialized features for company management. ## Live Link [Click here to visit Car Rental](<https://car-rental-p1wz.vercel.app/>) ## How to Use 1. Clone the repository: ```bash git clone https://github.com/pjyotianwar/CarRental.git ``` 2. Install dependencies for both the server and client: ```bash cd CarRental npm install cd client npm install ``` 3. Start the server and client: ```bash # In the main project directory npm run dev ``` 4. Open your browser and visit `http://localhost:3000` to start using Car Rental. ## Project Structure - `client`: Contains the React.js frontend of the project. - `server`: Contains the Node.js and Express.js backend of the project. ## Screenshots <img width="1440" alt="CarRental 1" src="https://github.com/pjyotianwar/Car-Rental/assets/70092582/bbe56b53-c3fa-47e7-bf97-62db012950a1"> <br><br> <img width="1440" alt="CarRental 2" src="https://github.com/pjyotianwar/Car-Rental/assets/70092582/89a8c5fa-e00f-4904-80c4-33d10f554a23"> <br><br> <img width="1023" alt="CarRental 3" src="https://github.com/pjyotianwar/Car-Rental/assets/70092582/f673c18a-6d47-4e9d-9176-7e76339b5044"> <br><br> <img width="1024" alt="CarRental 4" src="https://github.com/pjyotianwar/Car-Rental/assets/70092582/69a685c1-0292-4ad6-822c-7f1410776e9e"> <br><br> <img width="1026" alt="CarRental 5" src="https://github.com/pjyotianwar/Car-Rental/assets/70092582/b081b2d8-943f-4151-bcea-77961d3212a7"> <br><br> <img width="1022" alt="CarRental 6" src="https://github.com/pjyotianwar/Car-Rental/assets/70092582/aa000364-7f97-4fcb-9486-41a14d869ec2"> <br><br> <img width="1038" alt="CarRental 7" src="https://github.com/pjyotianwar/Car-Rental/assets/70092582/bf666a46-3c02-492e-9ede-7fd4a5411cd3"> <br><br> <img width="1042" alt="CarRental 8" src="https://github.com/pjyotianwar/Car-Rental/assets/70092582/4b5011a5-5191-463e-99e9-9f7222363512"> ## Contributing Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change. ## License [MIT](LICENSE) ## Acknowledgements - Special thanks to the developers and contributors of the libraries and technologies used in this project.
MERN Stack Project
expressjs,javascript,mongodb,mongoose,nodejs,reactjs,redux
2023-08-29T12:18:11Z
2023-10-23T17:03:30Z
null
1
0
11
1
1
9
null
null
JavaScript
TAbhay/Hacktoberfest-2023
main
# Closed
Closed
digitalocean,first-pull-request,github,hacktoberfest-accepted,hacktoberfest-approved,hacktoberfest2022,pull-requests,hacktobefest2023,firstcontribution,hacktoberfest
2023-09-09T02:46:09Z
2023-10-02T04:42:57Z
null
12
30
76
0
16
9
null
MIT
Java
mnnkhndlwl/kharido
master
<div id="top"></div> <h1 align="center"> GroGo </h1> <h3 align="center"> ⭐A Grocery Delivery app built with React Native⭐ </h3> <!-- ---------------------------------------------------------------------------------------------------------------------- --> <!-- ---------------------------------------------------------------------------------------------------------------------- --> <br /> <strong> <a href="https://github.com/mnnkhndlwl/shopping_microservice">Backend Code Repo </strong></a> <br /> <!-- ---------------------------------------------------------------------------------------------------------------------- --> <!-- ABOUT THE PROJECT --> ## Overview of Project <p align="center"> A grocery delivery app built with react native , nodejs and mongodb. </p> <!-- ............................................................................................................................................. --> ### Tech Stacks used ``` # React Native for Android app development # Redux toolkit for state management # Nodejs for Backend # Mongodb as Database # Mapbox for map feature # Stripe for payment gateway # Firebase cloud storage for storing images # Docker for Containerization # Nginx Reverse Proxy # RabbitMQ as a message broker # JWT authentication # Hashed password saving in the MongoDB database # RESTful API using ExpressJS ``` <!-- -------------------------------------------------------------------------------------------------------------------------------------------------- --> ### Key Features ``` # Login using email and password # Searching products by voice # Adding and removing products from wishlist # Adding Different Address to a user by selecting on the map # Payment feature by stripe # Filtering Products based on different categories # Sorting Products based on Price in ascending and descending order # Separate screen for seeing user's all orders # Free Delivery on orders above 99 # Persisting User Cart # Persisting Current User # Checkout Feature # JWT Authentication # JWT cookie authentication ``` <!-- ------------------------------------------------------------------------------------------------------------------------------------------------------------- --> https://github.com/mnnkhndlwl/kharido/assets/75252077/3af07156-3c4b-4d9e-b093-87bd7400fe31 # ![image](https://github.com/mnnkhndlwl/kharido/assets/75252077/f9c4199a-a85c-4e5b-8bb4-a25b4d35d8ff) # ![image](https://github.com/mnnkhndlwl/kharido/assets/75252077/246f2a7e-e4b3-4bf4-a6ee-5a86277687b1) # ![image](https://github.com/mnnkhndlwl/kharido/assets/75252077/1513662e-2abf-4460-b761-4eaf54babae8) # ![image](https://github.com/mnnkhndlwl/kharido/assets/75252077/91573d47-0835-4cc1-954e-b04a800258ea) # ![image](https://github.com/mnnkhndlwl/kharido/assets/75252077/b3e402f6-91b3-43ae-be04-ede0d49c1643) # ![image](https://github.com/mnnkhndlwl/kharido/assets/75252077/5d4465d1-72c5-44f1-b579-cfbee53f99c8) # ![image](https://github.com/mnnkhndlwl/kharido/assets/75252077/2390fdf1-e31d-4aa6-952e-40d610871588) # ![image](https://github.com/mnnkhndlwl/kharido/assets/75252077/877eb12d-031c-4b24-9c0c-4b719d1a6eea) # ![image](https://github.com/mnnkhndlwl/kharido/assets/75252077/c26241bc-e1f7-4f08-994f-0f26b9b2b7c7) # ![image](https://github.com/mnnkhndlwl/kharido/assets/75252077/81c5518d-881c-4a4f-bb3e-8fa70e41ee22) # ![image](https://github.com/mnnkhndlwl/kharido/assets/75252077/8cbb798e-8a21-4702-8538-ae4be8b0cdb0) # ![image](https://github.com/mnnkhndlwl/kharido/assets/75252077/b4430df0-041f-4568-ad37-f2dead330a79) <p align="right">(<a href="#top">back to top</a>)</p> <!-- ------------------------------------------------------------------------------------------------------------------------------------------------------------- --> <!-- ------------------------------------------------------------------------------------------------------------------------------------------------------------------ --> ## Feedback If you have any feedback or suggestions please reach out to maintainers. * [Manan khandelwal](https://github.com/mnnkhndlwl) <!-- ------------------------------------------------------------------------------------------------------------------------------------------------------------------ --> <br> <div align="center"> <h3>Show some ❤️ by starring this awesome repository!</h3> </div> ### [![Typing SVG](https://readme-typing-svg.herokuapp.com/?lines=Thanks+for+contributing!;&size=30;align=center)](https://git.io/typing-svg) <div id="Bottom"></div>
Grocery delivery app built with react native and nodejs with microservices architecture and mapbox for maps
api-gateway,docker,docker-compose,docker-image,javascript,microservices,mongodb,nginx-proxy,nodejs,rabbitmq
2023-08-31T17:23:07Z
2023-10-12T16:59:18Z
null
1
0
10
0
0
9
null
null
JavaScript
teamkooestscholar/001JS-area-of-the-rectangle
main
# EASY: 001 JS - Calculate the Area of a Rectangle ## Description Create a program that calculates the area of a rectangle. Prompt the user to enter the width and height of the rectangle. Print a nice message with the answer. ## Sample solution ```javascript function calculateRectangleArea(w, h) { const a = w * h; return a; } ``` ## Bonus Challenges * Make sure that all inputs are numbers. Display an error message if the user did not enter numbers for the width and height. (Hint: Look into the `isNaN()` function.) **[+5 extra credit points]** * Calculate and display the perimeter of the rectangle. (Hint: Look into the `Math` object.) **[+5 extra credit points]** * Calculate and display the length of the diagonal. (Hint: Look into the `Math` object.) **[+5 extra credit points]** ## How to answer? * Kindly go to `src` directory and edit `solution.js` file. * Replace the `commented code` with your solution.
Write a JavaScript function that calculates and returns the area of a rectangle when given its length and width as parameters.
easy,javascript,assessment
2023-09-04T12:24:10Z
2023-09-09T21:23:29Z
null
3
3
14
0
4
9
null
Unlicense
HTML
maggike/Full-Stack-AI-Course-Creator-Learning-Journey
master
## Learning Journey- Full-Stack-AI-Course-Generator 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). It is a fully-functioning AI web application that generates courses based on the title and the units you provide it. It uses OpenAI's API using prompt-engineering to utilize user provided data to generate the courses. Any topic can be provided, the ideas are ENDLESS! It has a login feature to login through your Google account (used Google Cloud API) and also generates relevant images using Unsplash API. The relevant YouTube videos are generated through YouTube's API and the Summary section summarizes the video transcript. It uses Prisma, an open-source ORM which generates all the configuartions for the MySQL-compatible serverless database - PlanetScale. ## Getting Started First, run the development server on your terminal - no need to use an IDE. Make sure that you are in the current directory of learning-journey-yt before beginning. ```bash npm run dev ``` Open [http://localhost:3000](http://localhost:3000) with your browser to see the result. The page should be like the one shown below once you sign in: ![lj1](https://github.com/maggike/Full-Stack-AI-Course-Creator-Learning-Journey/assets/140755916/aaf6104f-a818-458d-8e1a-9e658bf16bd6) 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. The Gallery page shows the courses you have generated using Learning Journey. Here are some I generated below! You can generate courses from the simplest to the most complicated topics.... ![lj2](https://github.com/maggike/Full-Stack-AI-Course-Creator-Learning-Journey/assets/140755916/9beb8222-9928-4983-911c-e48a30ecd7d1) Click on the create course button to create your first course!! Input the titles and units you want. You can input as many units as you want by clicking on "Add Unit". The default value is 3 units. ![lj-3](https://github.com/maggike/Full-Stack-AI-Course-Creator-Learning-Journey/assets/140755916/026b31ae-c396-4f61-a4a4-98fdc10dd373) All the pages can be viewed in both light and dark themes ! My favourite is the dark theme. ![lj-4](https://github.com/maggike/Full-Stack-AI-Course-Creator-Learning-Journey/assets/140755916/bc8c7ddf-fd4c-409f-8fdc-d1109955f20d) Once the course has been generated the page should look like the one shown below. ![lj-5](https://github.com/maggike/Full-Stack-AI-Course-Creator-Learning-Journey/assets/140755916/270352e9-2ed7-4045-94db-b0c3c2c7b7b6) Each chapter within the course will have a relevant video generated from YouTube along with a short summary summarising the video's transcript. ![lj-11](https://github.com/maggike/Full-Stack-AI-Course-Creator-Learning-Journey/assets/140755916/5f995580-b0fd-4cb9-967f-81557fb42a2b) You can return to the course generated anytime from the course gallery. Have fun creating courses! ## 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.
Learning journey - Your ultimate 1-stop learning platform to generate the best learning courses tailored to your needs using Open AI's immensely powerful LLM - GPT4
chatgpt,course,css,full-stack,google,javascript,learning,login,openai,planetscale
2023-08-26T19:53:16Z
2023-08-28T05:20:14Z
null
1
0
7
2
4
9
null
null
TypeScript
2M4U/Fortnite-WebSocket-Client
main
# Fortnite WebSocket Client ## Overview The Fortnite WebSocket Client is a JavaScript application that demonstrates how to interact with Fortnite's matchmaking WebSocket service to receive game session updates. This application covers the entire process, from obtaining an access token to connecting to the WebSocket service. ## Prerequisites Before running the application, ensure you have the following prerequisites installed: - [Node.js](https://nodejs.org/) (v14 or higher) - [npm](https://www.npmjs.com/) (Node Package Manager) - [axios](https://www.npmjs.com/package/axios) (HTTP client for making requests) - [crypto](https://nodejs.org/api/crypto.html) (Node.js crypto library) - [ws](https://www.npmjs.com/package/ws) (WebSocket library) You can install the required npm packages using the following command: ```bash npm install axios crypto ws ``` ## Usage 1. Clone the repository to your local machine: ```bash git clone https://github.com/2M4U/fortnite-websocket-client.git ``` 2. Navigate to the project directory: ```bash cd fortnite-websocket-client ``` 3. Open the `index.js` file in a text editor and configure the following variables: - `debug`: Set this to `true` for debugging purposes. - `solo`: Specify the desired playlist or set it to `playlist_playgroundv2`. - `exchangeCode`: Input your Exchange Code here. 4. Run the application: ```bash node index.js ``` 5. The application will perform the following steps: - Obtain an access token. - Retrieve the NetCL value. - Generate a ticket. - Calculate the checksum. - Connect to the Fortnite matchmaking WebSocket service. - Display received data from the WebSocket. ## Contributing Contributions to this project are welcome. You can contribute by: - Opening issues for bug reports or feature requests. - Submitting pull requests with improvements or fixes. Please ensure that your code follows the project's coding standards and includes relevant tests. # License This project is licensed under the GNU Public License. See the [LICENSE](./LICENSE) file for details. ## Credits ### Contributors - [2M4U](https://github.com/2M4U) - Project Lead - [Eldor](https://github.com/3ldor/mms-checksum-poc/) - Reverse Engineering - [YLS-Dev](https://github.com/YLSDev/Fortnite-Matchmaker/) - Python ### External Libraries and Resources - [Axios](https://github.com/axios/axios) - Used for making HTTP requests. - [WebSocket](https://developer.mozilla.org/en-US/docs/Web/API/WebSocket) - JavaScript WebSocket API. - [Epic Games](https://www.epicgames.com/site/en-US/home) - For providing official APIs and services. ### Special Thanks - Special thanks to the [EpicGames App Development](https://discord.gg/TbrCXNQuz7) community, - [YLS-Dev](https://github.com/YLSDev/). - [Eldor](https://github.com/3ldor/) If you've contributed to this project or if you've used external libraries and resources, make sure to include them in the "Credits" section. It's a way to acknowledge the efforts of contributors and give credit to the resources that have been utilized. # **Ban Disclaimer:** This project interacts with Fortnite's matchmaking and game session services using official APIs provided by Epic Games. However, please be aware that any unauthorized or excessive use of these APIs can potentially violate Epic Games' Terms of Service. While efforts have been made to ensure that this project follows best practices and respects Epic Games' policies, there is always a risk associated with using third-party tools and services. **I am not responsible for any consequences that may arise from using this project, including but not limited to:** - Temporary or permanent bans from Fortnite. - Loss of in-game items or progress. - Restrictions on your Epic Games account. It is crucial to use this project responsibly and in moderation. Ensure that you are in compliance with Epic Games' policies and terms of service. Use at your own discretion, and be aware of the potential risks involved. By using this project, you acknowledge that you understand these risks and accept responsibility for any consequences that may occur.
A JavaScript application that interacts with Fortnite's matchmaking WebSocket service to receive real-time game session updates. This client covers the entire process, from obtaining an access token to connecting to the WebSocket service, making it a valuable resource for Fortnite API enthusiasts and developers.
api-client,axios,fortnite,fortnite-api,game-development,gaming,javascript,nodejs,real-time,websocket-client
2023-09-07T14:02:58Z
2023-09-07T14:49:16Z
null
1
0
7
0
0
9
null
GPL-3.0
JavaScript
hafiz1379/space-travelers-hub
develop
<div align="center"> <h1 align="center">Space Travelers</h1> </div> <!-- TABLE OF CONTENTS --> # 📗 Table of Contents - [📗 Table of Contents](#-table-of-contents) - [🛠 Built With ](#-built-with-) - [Tech Stack ](#tech-stack-) - [Key Features ](#key-features-) - [💻 Getting Started ](#-getting-started-) - [Prerequisites](#prerequisites) - [Setup](#setup) - [Install](#install) - [Run tests](#run-tests) - [👥 Author ](#-author-) - [🔭 Future Features ](#-future-features-) - [🤝 Contributing ](#-contributing-) - [⭐️ Show your support ](#️-show-your-support-) - [🙏 Acknowledgments ](#-acknowledgments-) - [📝 License ](#-license-) <!-- PROJECT DESCRIPTION --> # 📖 [Space Travelers] `React` `Redux` `API` `ES6`<a name="about-project"></a> **Space Travelers Hub** is a Single Page Application (SPA) designed to allow users to make rocket reservations, join space missions, and manage their personal profiles. The platform relies on real-time data provided by the SpaceX API, ensuring an up-to-date and thrilling experience for space enthusiasts. ## 🛠 Built With <a name="built-with"></a> ### Tech Stack <a name="tech-stack"></a> <details> <summary>Client</summary> <ul> <li>Front-end: React, React Redux, React Router,JavaScript.</li> <li>API Integration: SpaceX API for real-time data.</li> <li>Version Control: GitHub with Gitflow.</li> <li>Testing: React Testing Library, Jest.</li> <li>Build Tool: Create React App.</li> </ul> </details> <!-- Features --> ### Key Features <a name="key-features"></a> - **Rockets** The Rockets section displays a comprehensive list of available SpaceX rockets. Each rocket is presented with its name, detailed description, and a representative image. Users can make rocket reservations by clicking the respective button. Additionally, if they have previously made a reservation, they can cancel it to free up the rocket's availability. - **Missions** The Missions section provides a comprehensive view of current space missions. Next to each mission, a brief description and participation status are displayed. Users have the option to join a specific mission or leave a mission they have previously joined. This allows users to stay informed about exciting space exploration opportunities and be active participants in them. - **My Profile** In the My Profile section, users can access a personalized list of rocket reservations they have made and missions they have joined. This provides a quick overview of the space activities they are involved in and allows them to efficiently manage their reservations and participations. <p align="right">(<a href="#readme-top">back to top</a>)</p> <!-- (url)## 🚀 Live Demo <a name="live-demo"></a> - [Live Demo Link]() <p align="right">(<a href="#readme-top">back to top</a>)</p> --> <!-- GETTING STARTED --> ## 💻 Getting Started <a name="getting-started"></a> To get a local copy up and running, follow these steps: - Clone this repo as described in the setup section. - Make modifications as preferred ### Prerequisites In order to run this project you need: To clone or fork and run it in a browser ### Setup Clone this repository to your desired folder: Example commands: ```sh cd my-folder git clone git@github.com:hafiz1379/space-travelers-hub.git ``` using Ubuntu: ```sh cd my-desired-folder git clone git@github.com:hafiz1379/space-travelers-hub.git ``` ### Install - Install dependencies by running: ```sh cd space-travelers-hub npm install ``` - To run the project, execute the following command: ```sh npm start ``` - To run the project, execute the following command: - Run ```sh npm start ``` ### Run tests To run tests, run the following command: - to test CSS linter errors `npx stylelint "**/*.{css,scss}"` - to test JavaScript linter errors `npx eslint .` - to run the jest tests `npm test` <p align="right">(<a href="#readme-top">back to top</a>)</p> <!-- AUTHORS --> ## 👥 Author <a name="authors"></a> 👤 **Hafizullah Rasa** - GitHub: [@githubhandle](https://github.com/hafiz1379) - LinkedIn: [LinkedIn](https://www.linkedin.com/in/hafizullah-rasa-8436a1257/) 👤 **Javier Aybar** - GitHub: [@JavierAybar](https://github.com/JavierAybar) - LinkedIn: [@JavierAybar](https://www.linkedin.com/in/javier-aybar-932376274/) <!-- FUTURE FEATURES --> ## 🔭 Future Features <a name="future-features"></a> - User Profiles and Data Storage: Allow users to create accounts, customize profiles, store their booking history, mission participations, and personal preferences. - Immersive Interactive UI: Create an immersive user interface that combines real-time updates with interactive elements. Utilize animations, dynamic transitions, and user-friendly interfaces to make users feel connected to the space exploration experience. <p align="right">(<a href="#readme-top">back to top</a>)</p> <!-- CONTRIBUTING --> ## 🤝 Contributing <a name="contributing"></a> Contributions, issues, and feature requests are welcome! Feel free to check the [issues page](../../issues/). <p align="right">(<a href="#readme-top">back to top</a>)</p> <!-- SUPPORT --> ## ⭐️ Show your support <a name="support"></a> Give a ⭐️ if you like this project! <p align="right">(<a href="#readme-top">back to top</a>)</p> <!-- ACKNOWLEDGEMENTS --> ## 🙏 Acknowledgments <a name="acknowledgements"></a> - Thanks to all Microverse community <p align="right">(<a href="#readme-top">back to top</a>)</p> <!-- FAQ (optional) ## ❓ FAQ (OPTIONAL) <a name="faq"></a> > Add at least 2 questions new developers would ask when they decide to use your project. - **[Question_1]** - [Answer_1] - **[Question_2]** - [Answer_2] <p align="right">(<a href="#readme-top">back to top</a>)</p> --> <!-- LICENSE --> ## 📝 License <a name="license"></a> This project is [MIT](./LICENSE) licensed. <p align="right">(<a href="#readme-top">back to top</a>)</p>
In this task, we use the real live data from the SpaceX API. This web application is for a company that provides commercial and scientific space travel services. The application will allow users to book rockets and join selected space missions.
api,css,html,javascript,react,redux,router,testing
2023-08-27T04:04:54Z
2023-08-30T16:34:01Z
null
2
17
76
0
1
9
null
NOASSERTION
JavaScript
hafiz1379/bookstore
Develop
<a name="readme-top"></a> <div align="center"> <br/> <h3><b>Bookstore</b></h3> </div> <!-- TABLE OF CONTENTS --> # 📗 Table of Contents - [� Table of Contents](#-table-of-contents) - [📖 Portfolio Desktop Version ](#-portfolio-desktop-version-) - [🛠 Built With ](#-built-with-) - [Tech Stack ](#tech-stack-) - [Key Features ](#key-features-) - [🚀 Live Demo ](#-live-demo-) - [💻 Getting Started ](#-getting-started-) - [Prerequisites](#prerequisites) - [Setup](#setup) - [Install](#install) - [Usage](#usage) - [Run tests](#run-tests) - [Deployment](#deployment) - [👥 Authors ](#-authors-) - [🔭 Future Features ](#-future-features-) - [🤝 Contributing ](#-contributing-) - [⭐️ Show your support ](#️-show-your-support-) - [🙏 Acknowledgments ](#-acknowledgments-) - [📝 License ](#-license-) <!-- PROJECT DESCRIPTION --> # 📖 Bookstore <a name="about-project"></a> > This Bookstore project using HTML, CSS, JavaScript and React. ## 🛠 Built With <a name="built-with"></a> 1- HTML 2- CSS 3- JaveScript 4- React 5- Webpack 6- Linters ### Tech Stack <a name="tech-stack"></a> > <details> <summary>Client</summary> <ul> <li><a href="https://html.spec.whatwg.org/multipage//">HTML</a></li> <li><a href="https://www.w3.org/TR/CSS/#css/">CSS</a></li> </ul> </details> <!-- Features --> ### Key Features <a name="key-features"></a> - **Responsive** - **GitHub WorkFlow** - **Grid and Flexbox** <p align="right">(<a href="#readme-top">back to top</a>)</p> <p align="right">(<a href="#readme-top">back to top</a>)</p> <!-- GETTING STARTED --> ## 💻 Getting Started <a name="getting-started"></a> > ### Prerequisites In order to run this project you need: 1. Web browser. 2. Code editor. 3. Git-smc. ### Setup Clone this repository to your desired folder: Run this command: ```sh cd my-folder git clone https://hafiz1379.github.io/bookstore ### Install Install this project with: Run command: ```sh cd my-project npm install ``` ### Usage To run the project, execute the following command: Open index.html using live server extension. <p align="right">(<a href="#readme-top">back to top</a>)</p> <!-- AUTHORS --> ## 👥 Authors <a name="authors"></a> Hafizullah Rasa 👤 **Hafizullah Rasa** - GitHub: [@githubhandle](https://github.com/hafiz1379) - LinkedIn: [LinkedIn](https://www.linkedin.com/in/hafizullah-rasa-8436a1257/) <p align="right">(<a href="#readme-top">back to top</a>)</p> <!-- FUTURE FEATURES --> ## 🔭 Future Features <a name="future-features"></a> - Creating all the remaining sites - Adding more functionality <p align="right">(<a href="#readme-top">back to top</a>)</p> <!-- CONTRIBUTING --> ## 🤝 Contributing <a name="contributing"></a> Contributions, issues, and feature requests are welcome! Feel free to check the [issues page](../../issues/). <p align="right">(<a href="#readme-top">back to top</a>)</p> <!-- SUPPORT --> ## ⭐️ Show your support <a name="support"></a> If you like this project just give it a star. <p align="right">(<a href="#readme-top">back to top</a>)</p> <!-- ACKNOWLEDGEMENTS --> ## 🙏 Acknowledgments <a name="acknowledgements"></a> I would like to thank Microverse to have this opportunity, and also thank you the code review team. <p align="right">(<a href="#readme-top">back to top</a>)</p> <p align="right">(<a href="#readme-top">back to top</a>)</p> <!-- LICENSE --> ## 📝 License <a name="license"></a> This project is [MIT](./LICENSE) licensed. <p align="right">(<a href="#readme-top">back to top</a>)</p>
A website built with React, Redux, and CSS for styling. The project is displaying a list of books, adding, and removing books.
css,html,javascript,react,redux
2023-08-18T04:48:20Z
2023-08-24T17:27:54Z
null
1
5
78
0
0
9
null
MIT
JavaScript
gabrielSantos1101/Front-foodExplorer
main
# 🍕 Front End - Food Explorer. ## Sobre o Projeto O **Food Explorer** é um Web App que simula um menu interativo de um restaurante fictício. Ele oferece uma experiência envolvente e informativa aos usuários, permitindo que eles explorem os pratos, bebidas e opções do cardápio de forma interativa e visualmente atraente. Com o **Food Explorer**, os clientes podem navegar pelos pratos, ver imagens, descrições e informações detalhadas sobre cada item, criando uma experiência gastronômica virtual única. ## 📋 Índice - 📦 [Pré-requisitos](#-pré-requisitos) - 🛠️ [Instalação](#%EF%B8%8F-instalação) - 💻 [Tecnologias Utilizadas](#-tecnologias-utilizadas) - 🤝 [Contribuições](#-contribuições) - 📄 [Licença](#-licença) ## preview 💻 ![Preview do projeto](https://cdn.discordapp.com/attachments/1135990801948745979/1154859433684381716/Mockups.png) [acesse o back end aqui](https://github.com/gabrielSantos1101/backEnd-FoodExplorer) ## Conta de demostração ```bash e-mail: admin@gmail.com senha: 123 ``` ## 📦 Pré-requisitos Liste de pré-requisitos necessários para que o projeto seja executado com sucesso: - [Node.js](https://nodejs.org/) - Versão v18.18.0 ou superior. - [npm](https://www.npmjs.com/) ou [Yarn](https://yarnpkg.com/) - Versão 9.5.1 ou superior. ## 🛠️ Instalação Siga os passos abaixo para instalar e configurar a aplicação em um ambiente local: 1. 📥 **Clone o repositório:** ```bash git clone https://github.com/gabrielSantos1101/Front-foodExplorer.git ou a CLI: gh repo clone gabrielSantos1101/Front-foodExplorer ``` 2. 📂 **Navegue para o diretório do projeto:** ```bash cd ./Front-foodExplorer ``` 3. 📦 **Instale as dependências:** ```bash npm install ou npm i ``` 4. ⚙️ **Crie um arquivo de configuração:** Crie um arquivo `.env` como mostra no arquivo `.env.local.example` na raiz do projeto e configure as variáveis de ambiente necessárias. Por exemplo: ```dotenv VITE_BASE_URL="api_url" VITE_IMAGE_API_URL= ``` Certifique-se de substituir `api_url` pela url da **API** do backend. 5. ▶️ **Inicie o servidor:** ```bash npm run dev ``` Agora a **Aplicação Food Explorer** está instalada, configurada e em execução no seu ambiente local. Você pode começar a usá-la para testes e desenvolvimento. ## 💻 Tecnologias Utilizadas Liste as principais tecnologias e bibliotecas que você usou no projeto, como: - [**@phosphor-icons/react**](https://github.com/phosphor-icons/phosphor-react) - [**axios**](https://axios-http.com/) - [**jwt-decode**](https://www.npmjs.com/package/jwt-decode) - [**react**](https://reactjs.org/) - [**react currency input field**](https://www.npmjs.com/package/react-currency-input-field) - [**react-dom**](https://reactjs.org/) - [**react-router-dom**](https://reactrouter.com/web/guides/quick-start) - [**react-toastify**](https://fkhadra.github.io/react-toastify/introduction) - [**react easy crop**](https://www.npmjs.com/package/react-easy-crop) - [**styled-components**](https://styled-components.com/) - [**splide.js**](https://splidejs.com/) - [**RadixUI**](https://www.radix-ui.com/) ## Serviços - [**black_hole**](https://deta.space/discovery/@mikhailsdv/black_hole-3kf) ## 🤝 Contribuições Agradeço por considerar contribuir para a **Food Explorer API**! Contribuições são importantes para melhorar e evoluir o projeto. Aqui estão algumas maneiras pelas quais você pode contribuir: ### 1. Abertura de Issues Se você encontrar problemas, bugs ou tiver sugestões de melhorias, sinta-se à vontade para abrir uma issue. Certifique-se de incluir detalhes suficientes para que possamos entender o problema ou a sugestão. ### 2. Envio de Pull Requests (PRs) Se você deseja fazer alterações no código, pode criar um fork deste repositório, fazer suas alterações no seu fork e, em seguida, enviar um Pull Request. Certifique-se de descrever as alterações que você fez e explicar como isso beneficia o projeto. ### 3. Melhoria da Documentação A documentação é fundamental para manter a API acessível e fácil de entender. Se você identificar partes do código que precisam de documentação adicional, pode contribuir adicionando comentários claros ou atualizando o README. ### Como Contribuir 1. Faça um fork deste repositório. 2. Crie uma nova branch para suas alterações: `git checkout -b feature/nome-da-sua-feature`. 3. Faça suas alterações e commit: `git commit -m 'Adiciona nova funcionalidade'`. 4. Envie suas alterações para o GitHub: `git push origin feature/nome-da-sua-feature`. 5. Abra um Pull Request para este repositório. 🤝 Agradeço por sua contribuição! ## 📄 Licença O app **Food Explorer** é distribuída sob a licença MIT. Isso significa que você pode usar, modificar e distribuir o código desta API livremente, desde que inclua a declaração de direitos autorais e a licença MIT em qualquer cópia ou parte dela.
Projeto de conclusão do Explorer
deta-space,html,javascript,react,vercel,hacktoberfest
2023-08-09T02:25:49Z
2024-01-15T13:16:47Z
null
2
2
132
0
0
9
null
null
JavaScript
Freezeraid/redbubble-automation
master
### Redbubble AI Automation V1 This script allows you to create an image and its redbubble parameters using AI (ChatGPT and Replicate), and upload it to your redbubble account. No maintenance required, just set up the project on an ubuntu machine, create the cron task and let the script do the work for you. Set up the following environment variables in an .env file at the root of the project <code>REDBUBBLE_URL=https://www.redbubble.com/ OPENAI_API_KEY=sk- //Your OPENAI API Key REPLICATE_API_KEY= //Your Replicate API Key REDBUBBLE_LOGIN= //Redbubble account email REDBUBBLE_PW= //Redbubble account password START_DATE= //Date of creation and setup of account information, YYYY-MM-DD</code> Use the following Ubuntu commands to set up the picture upload automation every 30mins. <code>sudo apt update curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | bash nvm install 18.0.0 nvm use v18.0.0 curl -sL https://deb.nodesource.com/setup_18.x | sudo -E bash - sudo apt-get install -y xfce4 xfce4-goodies sudo apt install xrdp -y sudo systemctl enable xrdp sudo reboot sudo apt-get install -y nodejs npm install -g npm@latest sudo apt install cron sudo systemctl enable cron cd /redbubble-automation chmod +x run.sh #Check that EOL is Unix format (LF) sudo apt-get install -y libxi6 libxtst6 libcups2 libxss1 libxrandr2 libasound2 libpangocairo-1.0-0 libgtk-3-0 xvfb x11-xkb-utils xfonts-100dpi xfonts-75dpi xfonts-scalable xfonts-cyrillic x11-apps libx11-xcb1 libxcomposite1 libxdamage1 libxext6 libxfixes3 libnss3 libnspr4 libatk1.0-0 libatk-bridge2.0-0 libgtk-3-0 libxrandr2 libxshmfence1 libgbm1 libasound2 crontab -e */30 * * * * /home/ubuntu/redbubble-automation/run.sh >> /home/ubuntu/redbubble-automation/cron.log 2>&1 sudo reboot</code>
Fetch trending keywords of the day, generate art and art settings via AI and upload it to your redbubble account. Fully automated bot, maintenance-free scripting. Written in JavaScript with NodeJS.
art,crontask,javascript,js,node,nodejs,picture,redbubble,automatic,automation
2023-08-19T09:30:14Z
2023-08-19T10:22:42Z
null
1
2
6
5
6
9
null
null
JavaScript
No-Country/C13-41-FT-NODE-REACT
main
null
Somos un gestor de telemedicina. Nuestra misión es conectar profesionales de la salud con pacientes que requieran de sus servicios de una manera amigable, comoda y accesible.
express,javascript,nodejs,react,reactjs,telemedicine
2023-08-19T19:28:03Z
2023-09-18T15:30:02Z
null
12
112
559
0
3
8
null
null
JavaScript
DevelOrm/DeveLearn
main
# DeveLearn - 팀명: DeveLorm - 주제(서비스명): 온라인 학습 플랫폼 - 클래스를 운영하는 선생님과, 원하는 클래스를 수강하는 학생 간의 교육이 이루어지는 온라인 학습 플랫폼입니다. - REPO 주소: https://github.com/DevelOrm/DeveLearn <img width="2048" src="https://github.com/FutureMaker0/DRF_webex_final/assets/120623320/c04c8f3f-feac-48d2-9e5e-6036a6ca66e0"> # 개발 기간 - 23.8.17 ~ 23.09.04 # DataBase Structure <img width="2048" src="https://github.com/FutureMaker0/DRF_webex_final/assets/120623320/ef6ae05e-57b3-437d-9501-16dd91d4b21d"> # 배포 URL - FE: http://develearn.co.kr/ - BE: http://52.79.53.117/ - 테스트용 계정 - id: user1 - pw: pw1 # 배포 서버 구조 <img width="2048" src="https://github.com/FutureMaker0/DRF_webex_final/assets/120623320/fe6b7858-b548-4883-a107-ccd5813fe61c"> # API 명세 자동화 > drf-spectacular 적용 - http://52.79.53.117/api/swagger (swagger-ui) - http://52.79.53.117/api/redoc (redoc-ui) - 테스트용 관리자 계정 (관리자 계정만 접근할 수 있습니다.) - id: test / pw: test 1. 어드민 페이지 접속 후 test 계정 로그인 (http://52.79.53.117/admin/) 2. swagger 또는 redoc url 접속 <img width="2048" src="https://github.com/FutureMaker0/DRF_webex_final/assets/120623320/d25104ca-50ce-4f28-a7e4-c7d35d329ca2"> # Index [1. 기술스택 & 개발환경](#1-기술-스택--개발-환경) [2. 팀원소개 및 역할](#2-팀원소개-및-역할) [3. 프로젝트 요약](#3-프로젝트-요약) [4. 주요 기능 소개](#4-주요-기능-소개) [5. 라이브 데모](#5-기능app별-라이브-데모) [6. 개발 중 장애물 & 극복 방법](#6-개발-중-장애물--극복-방법) [7. 추가 및 리서치 하고 싶은 기능](#7-추가-및-리서치-하고-싶은-기능) [8. 프로젝트 소감 (어려웠던 점 & 배운점 & 향후 계획)](#8-프로젝트-소감-어려웠던-점--배운점--향후-계획) [9. Q & A](#) # 1. 기술 스택 & 개발 환경 <table> <thead align="center"> <tr> <th><span>BE</span></th> <th><span>FE</span></th> <th><span>DB</span></th> <th><span>DEPLOYMENT</span></th> <th><span>MANAGEMENT</span></th> </tr> </thead> <tbody> <td align="center"> <img src="https://img.shields.io/badge/python-3776AB?style=for-the-badge&logo=python&logoColor=white"> <img src="https://img.shields.io/badge/django-092E20?style=for-the-badge&logo=django&logoColor=white"> </td> <td align="center"> <img src="https://img.shields.io/badge/html5-E34F26?style=for-the-badge&logo=html5&logoColor=white"> <img src="https://img.shields.io/badge/bootstrap-7952B3?style=for-the-badge&logo=bootstrap&logoColor=white"> <img src="https://img.shields.io/badge/javascript-F7DF1E?style=for-the-badge&logo=javascript&logoColor=black"> </td> <td align="center"> <img src="https://img.shields.io/badge/postgresql-4169E1?style=for-the-badge&logo=postgresql&logoColor=white" width="250" height="30"> </td> <td align="center"> <img src="https://img.shields.io/badge/Amazon EC2-FF9900?style=for-the-badge&logo=Amazon EC2&logoColor=white"> <img src="https://img.shields.io/badge/amazon s3-569A31?style=for-the-badge&logo=amazons3&logoColor=white"> <img src="https://img.shields.io/badge/nginx-009639?style=for-the-badge&logo=nginx&logoColor=white"> <img src="https://img.shields.io/badge/gunicorn-499848?style=for-the-badge&logo=gunicorn&logoColor=white"> </td> <td align="center"> <img src="https://img.shields.io/badge/github-181717?style=for-the-badge&logo=github&logoColor=white"> <img src="https://img.shields.io/badge/notion-000000?style=for-the-badge&logo=notion&logoColor=white"> <img src="https://img.shields.io/badge/discord-5865F2?style=for-the-badge&logo=discord&logoColor=white"> </td> </tbody> </table> # 2. 팀원소개 및 역할 <table> <colgroup> <col style="width: 200px;"> <col style="width: 200px;"> <col style="width: 200px;"> <col style="width: 200px;"> <col style="width: 200px;"> </colgroup> <thead align="center"> <tr> <th>★남궁범★</th> <th>이지섭</th> <th>주기현</th> <th>김재현</th> <th>박종수</th> </tr> </thead> <tbody> <tr> <td align="center"> <img width="200px" src="https://avatars.githubusercontent.com/u/90359639?v=4"/> </td> <td align="center"> <img width="200px" src="https://avatars.githubusercontent.com/u/89283288?v=4"/> </td> <td align="center"> <img width="200px" src="https://avatars.githubusercontent.com/u/95518318?v=4"/> </td> <td align="center"> <img width="170px" src="https://avatars.githubusercontent.com/u/120623320?v=4"/> </td> <td align="center"> <img width="200px" src="https://avatars.githubusercontent.com/u/131739329?v=4"/> </td> </tr> <tr> <td align="center"> <a href="https://github.com/tombeom">🔗tombeom</a> </td> <td align="center"> <a href="https://github.com/vBORIv">🔗vBORIv</a> </td> <td align="center"> <a href="https://github.com/rlguswn">🔗rlguswn</a> </td> <td align="center"> <a href="https://github.com/FutureMaker0">🔗FutureMaker0</a> </td> <td align="center"> <a href="https://github.com/jongsoo-P">🔗jongsoo-P</a> </td> </tr> <tr> <td align="center">유저</td> <td align="center">뉴스</td> <td align="center">클래스룸</td> <td align="center">API 문서화</td> <td align="center">배포</td> </tr> </tbody> </table> # 3. 프로젝트 요약 - 서비스 전체 개요 - 온라인 학습 플랫폼 DeveLearn은 선생님-학생 간 학습이 이루어지는 공간입니다. - 선생님은 기술스택 별 클래스를 개설하고 문제출제(문제게시판), 강의자료 게시(자료게시판), 질문대응(질문게시판)을 수행합니다. - 학생은 원하는 기술스택 클래스를 수강하며 문제 답변제출(문제게시판), 강의자료 다운로드(자료게시판), 질문등록(질문게시판)을 할 수 있습니다. - 선생님이 출제하고 학생이 제출한 문제 답변을 자동으로 채점하여 결과를 피드백합니다. - 사용자별(학생, 선생님) 클래스 구독 정보를 알 수 있습니다. - IT업계 동향을 파악할 수 있는 최신 뉴스를 홈페이지에서 보여줍니다. - 서비스 개발 관점 - drf-spectacular를 적용해 API 명세를 작성하여 협업 간 효율증진을 도모하였습니다. - 서비스를 실 배포하여(Lightsail, EC2활용) 추후 운영이 가능하도록 하였습니다. - 협업 - Notion 기반 프로젝트 일정관리 진행하였습니다. - 협업 효율 최적화를 위해 일 3회(9/13/16시) 정기회의를 진행하였습니다. <table> <colgroup> <col style="width: 250px;"> <col style="width: 250px;"> <col style="width: 250px;"> </colgroup> <thead align="center"> <tr> <th>팀스페이스</th> <th>일정</th> <th>회의록</th> </tr> </thead> <tbody> <tr> <td align="center"> <img height="400px" src="https://github.com/DevelOrm/DeveLearn/assets/89283288/f2473711-8cb4-4834-ad8c-8e13d114ec32"/> </td> <td align="center"> <img height="400px" src="https://github.com/DevelOrm/DeveLearn/assets/89283288/8ad1b74a-05e3-4197-b32b-8740b8db08ea"/> </td> <td align="center"> <img height="400px" src="https://github.com/DevelOrm/DeveLearn/assets/89283288/d5fdebdc-f460-43f6-a0fa-8c0166a16a92"/> </td> </tr> </tbody> </table> # 4. 주요 기능 소개 - Classroom > 클래스룸 - 게시판 - 댓글 구조의 기본 CRUD 기능을 제공한다 - 클래스룸 게시판의 종류는 문제 게시판, 강의자료 게시판, 질문 게시판 총 3가지가 있다 선생님으로 지정된 유저가 클래스룸, 게시판을 생성할 수 있고 클래스룸을 구독한 유저들이 이를 자유롭게 이용 가능하다 - 문제 게시판 선생님으로 지정된 유저가 문제 게시글을 생성하면 각 유저들이 자유롭게 문제에 대한 댓글 혹은 답변 제출이 가능하다 auto_score가 true인 문제 게시글에 유저가 답변을 제출하면 미리 지정된 문제 게시글의 solution필드와 비교해 채점하며 정답 여부가 answer_status필드에 저장된다 ```python ## models.py class Test(models.Model): solution = ArrayField(models.CharField(max_length=50, blank=True), null=True, blank=True) auto_score = models.BooleanField() # ... ## views.py TestSubmitView def post(self, request): try: test_pk = request.data['test'] test_obj = Test.objects.get(pk=test_pk) if request.user.is_authenticated: solution = test_obj.solution user_answer = request.data['user_answer'] if test_obj.auto_score: answer_status = user_answer in solution else: answer_status = None # ... ``` - 강의자료 게시판 선생님으로 지정된 유저가 학습용 파일, 이미지, 텍스트를 게시글로 작성할 수 있고 유저들이 자유롭게 이용 가능하다 - 질문 게시판 클래스룸을 구독한 유저 모두가 이용 가능하며 이미지를 첨부해 게시글을 작성할 수 있다 - 댓글 로그인된 유저는 각 게시판의 게시글에 댓글을 작성할 수 있다 - News > GitHub Action을 이용하여 개발 관련 키워드를 검색하여 나온 뉴스 크롤링을 매일 진행한다. 크롤링된 뉴스 목록은 post로 `/news/bot/`의 URL로 전송하여 서버 DB에 저장한다. - 크롤링 봇 자동화 ```yml ## .github/workflows/DeveLearnNewsBot.yml on: schedule: - cron: "0 21 * * *" jobs: build: # ... - name: Install dependencies run: | python -m pip install --upgrade pip python -m pip install beautifulsoup4 python -m pip install requests - name: run macro main.py file run: | python main.py ``` GitHub Action을 이용하여 매일 `21:00 UTC` 에 Linux에 환경세팅 후 main.py 파일을 실행하도록 설정했다. main.py 파일에서 크롤링 함수를 실행하고 서버 URL에 뉴스 데이터를 담아 전송하면, 서버에서 데이터 확인 후 DB에 저장하게 된다. - 검색엔진 확장성 ```python ## NewsBot.py def NaverNews(keyword): # ... def GoogleNews(keyword): # ... ## main.py import NewsBot NewsBot.NaverNews(keyword) # ... ``` 각 검색엔진에서 뉴스 리스트를 크롤링하는 기능을 하나의 함수로 구현하여 `main.py`에서 실행하도록 구조화하였다. 이를 통해 추후 크롤링할 검색엔진 추가 또는 페이지 구조 변경으로 인한 함수 수정 시 용이성을 높일 수 있었다. - 검색 키워드 확장성 ```python ## keywords.txt keyword1 keyword2 ... ## main.py with open('keywords.txt', 'r') as keywords_file: keywords = keywords_file.read().split() for keyword in keywords: NewsBot.NaverNews(keyword) # ... ``` 검색에 사용할 키워드를 외부 파일에서 가져와 각 검색 엔진 크롤링 함수에 넣어 실행하였다. 이를 통해 추후 검색 키워드 추가 및 변동 시 용이성을 높일 수 있었다. - 중복 뉴스 처리 ```python ## news/views.py for news_index in data: news = data[news_index] if News.objects.filter(title=news['title']).exists(): continue ``` 크롤링된 뉴스 데이터가 서버로 전송되면 중복을 확인하여 DB에 없는 뉴스인 경우에만 새로 추가한다. 같은 뉴스이더라도 redirect되는 링크가 상이할 수 있기 때문에 기사 제목으로 중복 여부를 확인하였다. 각 뉴스 데이터마다 DB 호출을 하여 확인해야 하기 때문에 다소 비효율적인 측면이 존재한다. 우선적으로 가장 서버 활성이 적을 것이라 예상되는 늦은 새벽 시간에 크롤링 및 서버 전송이 동작하도록 설정하여 과부하를 최소화하였다. - 오늘의 뉴스 기능 ```python class NewsRecentView(generics.ListAPIView): queryset = News.objects.all().order_by('-written_at')[:6] serializer_class = NewsSerializer ``` 프론트엔드 메인페이지에 오늘의 뉴스를 출력하기 위해 최신 뉴스 출력 기능을 구현하였다. 화면에 6개의 뉴스 객체를 출력하기 때문에 가장 최근에 DB에 추가된 순서대로 6개의 뉴스 데이터를 담아 브라우저에 응답한다. - User - `AbstractBaseUser` 상속 받아 불필요한 Field 제거 및 Custom Field 추가 ```python class User(AbstractBaseUser): objects = UserManager() user_id = models.CharField(max_length=20, unique=True) nickname = models.CharField(max_length=20, unique=True) email = models.EmailField(max_length=128, unique=True) phone_number = models.CharField(max_length=14, unique=True) profile_image = models.ImageField(blank=True, null=True) joined_date = models.DateTimeField(auto_now_add=True) is_active = models.BooleanField(default=True) is_teacher = models.BooleanField(default=False) is_admin = models.BooleanField(default=False) class Meta: db_table = "user" verbose_name = "user" verbose_name_plural = "users" ``` - JWT를 이용한 인증 방식 구현 - 회원가입, 회원 정보 조회, 회원 정보 수정, 회원 삭제 등 기본적인 User Model CRUD 제공 - 회원가입 시 60개의 긍정 형용사, 동물 40개, #0001~9999 범위의 랜덤한 수를 조합해 랜덤 닉네임 생성 `열정적인 호랑이#1234` - 백엔드에서 회원가입, 회원정보 수정 시 사용하는 serializer 중복 체크 외에도 프론트엔드에서 사용할 수 있는 중복체크 API 지원으로 DB에 중복 에러 발생하지 않도록 이중으로 설계 - OAuth2.0 (Naver 소셜 로그인) 지원 및 소셜 로그인 시 닉네임, 핸드폰 번호, 닉네임 등을 User Model에 업데이트 및 저장 - 회원가입 및 비밀번호 초기화 시 이메일 인증 단계를 추가해 보안 강화 # 5. 기능(APP)별 라이브 데모 | APP | 이미지/데모 | 비고 | | :-------------: | :--------------------------------------------------------------------------------------------------------------------------------------------------: | :-----------: | | Classroom | ![클래스룸1](https://github.com/FutureMaker0/DRF_webex_final/assets/120623320/99e2bb3d-23c3-4cf8-a27e-69df46caa213) | 클래스룸 동작 | | News | <img width="1469" alt="뉴스 목록" src="https://github.com/FutureMaker0/DRF_webex_final/assets/120623320/bba85e7c-ee9b-49b7-bbda-bf2b749e8df6"> | 뉴스 크롤링 | | User | <img width="1470" alt="회원가입" src="https://github.com/DevelOrm/DeveLearn/assets/89283288/1034faac-41e8-4bca-84d3-183b65dcd105"> | 회원가입 | | User | <img width="1470" alt="회원가입예외" src="https://github.com/DevelOrm/DeveLearn/assets/89283288/0c4b92f3-3e56-4278-8fb0-a53f323ab997"> | 회원가입 예외 | | drf-spectacular | ![swagger](https://github.com/FutureMaker0/DRF_webex_final/assets/120623320/d25104ca-50ce-4f28-a7e4-c7d35d329ca2) | SWAGGER-UI | | drf-spectacular | ![redoc](https://github.com/FutureMaker0/DRF_webex_final/assets/120623320/ec15c63b-b9f4-4d02-93c0-7fdf6f0dc1d6) | REDOC-UI | | 에러 페이지 | ![error](https://github.com/DevelOrm/DeveLearn/assets/89283288/38368bbc-fa4c-46ff-8857-3c9f6f5069c5) | 404 페이지 | # 6. 개발 중 장애물 & 극복 방법 <table> <thead align="center"> <tr> <th><span>기능(APP)</span></th> <th><span>장애물</span></th> <th><span>극복방법</span></th> </tr> </thead> <tbody> <tr> <td align="center" rowspan="2"> <a>Classroom</a> </td> <td align="center"> <a>이미지 필드와 파일 필드의 업로드 문제</a> </td> <td> <a>- JSON raw 데이터로만 CRUD기능을 테스트하던 중, 이미지와 파일이 포함된 POST 요청을 보내는 방법을 숙지하지 못함 요청하는 데이터의 body를 raw 데이터가 아닌 form-data형식으로 요청하여 해결</a> </td> </tr> <tr> <td align="center"> <a>업데이트뷰 작성시 부분 업데이트 에러 문제</a> </td> <td> <a>- serializer의 'partial=True' 옵션을 사용해 유효성 검사를 완화하여 검사에 실패한 필드가 있더라도 업데이트가 가능하도록 함</a> </td> </tr> <tr> <td align="center" rowspan="3"> <a>drf-spectacular</a> </td> <td align="center"> <a>지금까지의 프로젝트에서 활용해본 적이 없는 새로운 개념으로 배경지식 부족</a> </td> <td rowspan="2"> <a>- 공식문서 활용 및 관련 내용을 다룬 기술 블로그 참조</a> </td> </tr> <tr> <td align="center"> <a>활용법 미숙지로 인해 setting 및 적용하는 과정에서 장애 발생</a> </td> </tr> <tr> <td> <a>spectacular ui 적용 후, 단순 적용에서 나아가 view layer수준 api doc 커스터마이징 과정에서 장애 발생</a> </td> <td> <a>- 전체 서비스 내 app별로 view 상속 레벨이 다른 경우, drf-spectacular가 매번 같은 형태로 적용하지 않으며 다른 방식을 취함을 스터디 후 적용</a><br> <a>- @extend_schema / @extend_schema_view / @extned_schema_serializer 등이 있고 동시 적용 시 우선순위가 존재</a> </td> </tr> <tr> <td align="center" rowspan="3"> User </td> <td> <a>라이브러리 사용 시 직접 설계한 것이 아니라 공식문서를 읽고 코드를 이해하는데 어려움</a> </td> <td> <a>직접 코드를 분석해보고 어떻게 동작하는지 확인하면서 이해하는 과정을 거침</a> </td> </tr> <tr> <td> <a>비정상적 API 요청에 대해 대비해야 할 경우의 수가 많다.</a> </td> <td> <a>직접 어떤 취약점이 있을까 직접 공략을 해보고 대비할 코드를 만들었다.</a> </td> </tr> </tbody> </table> # 7. 추가 및 리서치 하고 싶은 기능 <table> <thead align="center"> <tr> <th><span>기능(APP)</span></th> <th><span>TO-BE</span></th> </tr> </thead> <tbody> <tr> <td align="center"> <a>Classroom</a> </td> <td> <a> - 게시글에 영상을 첨부해 재생할 수 있는 기능 </a> <br> <a> - 신고 기능(분탕 유저 신고 기능, 오타수정 제보 기능, 에러 제보 기능 등)) </a> </td> </tr> <tr> <td align="center"> <a>News</a> </td> <td> <a> - 뉴스 중복 처리 효율성: 현재 코드는 모든 크롤링된 데이터에 대해서 한번씩 DB 호출을 통해 중복 여부를 확인하기 때문에 다소 비효율 적이다. 따라서 추후 서버 이용자 및 크롤링 데이터가 많아지는 상황에 대비하여 뉴스 중복 처리 과정에서 DB 호출을 줄일 수 있는 방법이 필요하다.</a> <br> <a> - 뉴스 추가 페이지 인증: 현재 크롤링된 뉴스 데이터는 `/news/bot/`로 POST 요청을 보내 서버로 전송된다. 이때 json 구조만 일치시키면 인증 과정 없어 서버 DB에 데이터가 추가될 수 있다. 따라서 GitHub Private Key에 인증 정보를 저장하고 서버의 views.py에서 인증 과정을 추가하여 DB 접근을 관리해야 할 것이다.</a> <br> </td> </tr> <tr> <td align="center"> <a>User</a> </td> <td> <a> - Python logging 모듈을 사용해 로그를 남기고 유저 패턴 및 악의적인 요청 분석</a> <br> <a> - 핸드폰 번호 인증을 도입해 보안 강화</a> <br> <a> - 프로필 사진 업로드 시 저장되는 이미지를 변환(메타 데이터 삭제 및 리사이징)해서 개인정보 보호 및 서버 리소스 소모 감소</a> <br> <a> - CAPTCHA 등 봇 탐지 도입</a><br> <a> - 비정상적 요청이 많은 유저는 자동으로 차단할 수 있는 기능 추가</a><br> <a> - 1년 이상 미접속 사용자 휴면 계정 전환 기능 추가</a><br> <a> - 핸드폰 번호 인증을 도입해 보안 강화</a><br> <a> - 프로필 사진 업로드 시 저장되는 이미지를 변환(메타 데이터 삭제 및 리사이징)해서 개인정보 보호 및 서버 리소스 소모 감소</a><br> </td> </tr> <tr> <td align="center"> <a>drf-spectacular</a> </td> <td> <a> - View 클래스 내부 메소드 단위의 schema를 일괄적으로 적용한 것에 대한 아쉬움 존재 </a> <br> <a> - 단순 적용 및 담당 serializer를 request/response하여 api 동작을 확인하는 것에 추가로, 메소드별 커스터마이징 추가적용 희망 </a> <br> <a> - 커스터마이징 시 각 파라미터별 역할과 사용법을 좀 더 익혀 서비스 개발 시 협업에 큰 도움이 되는 drf-spectacular에 대한 이해도와 활용 스킬을 증진하고자 함</a> </td> </tr> <tr> <td align="center"> <a>배포</a> </td> <td> <a> - CI/CD: 베포 전 dev 브랜치를 기준으로 테스트 서버를 가동하여 백엔드 후반 작업 및 프론트엔드 연결을 진행하였다. 이때 새로운 feature를 dev 브랜치에 적용할 때마다 직접 서버에서 git pull 명령어로 업데이트하였다. GitHub Action을 이용하여 dev 브랜치에 push 발생을 기준으로 자동화 시스템을 구축할 수 있을 것이다.</a> <br> </td> </tr> </tbody> </table>
null
django,ec2,gunicorn,javascript,nginx,postgresql,python
2023-08-17T08:31:43Z
2023-09-05T04:00:07Z
null
5
37
149
0
3
8
null
null
Python
CyberCellGu/CyberCell
main
# 🧙‍♂️ Hacktober Fest 2023 `Good First` # Project Glimpse: ![Screenshot 2023-10-02 013940](https://github.com/CyberCellGu/CyberCell-New/assets/77672838/5eccf200-c3c1-4a54-ad90-97cdbd913f9d) ☄🌠 This year Marks the 10th anniversary of Hacktoberfest, and we all can Celebrate🎉 🎯 Sign up for Hacktober, Learn and contribute towards Open Source, Fork repos make pull requests etc, and win digital swags and get a tree planted 🎄 🎆 Open Sorcery Hacktoberfest 2023: Contribute to open source, learn. Beginner-friendly. Explore issues, fork, code, and make a global impact. Let's collaborate! 🎐 Submit your first contribution to a participating project to get started with Hacktoberfest2023! # [Register For Hacktoberfest 2023](https://hacktoberfest.com/participation/) 👈 # How to Contribute: ## 👨‍💻INSTRUCTIONS👩‍💻 TECH Stack: Reactjs , Html/Css , Strapi , Vite, yarn/npm. ## Contributions to the project are welcome. Please create an issue or get an issue assigned to yourself first. - Fork this Repository using the button at the top on right corner. - Clone this repo to you local Machine `git clone https://github.com/your-username/CyberCell-New.git` - Carve your own path with a new branch for your modifications and you can also do google search of how to push and open pull requests, this is a learning process (ie. `git branch new-user` or simply do `git checkout -b new-user`, Check all branches `git branch` to see all branches) - Install dependencies: - `cd .\CyberCell_Web\` - `npm install` - Start the development server: - `npm run dev` - After running the development server, you can view the app at (http://localhost:5173/) ## Make changes as per issue assigned. - Add your changes: - `git add .` - `git commit -m "Added Changes"` - `git push origin new-user` # Open a Pull Request to main Repo from your profile page. # That's it Wolla If everthing goes without any error. # You made your Contribution.
🧑‍💻Open source Community Website for Cybersecurity Enthusiasts.
animejs,css,hacktoberfest,html,nodejs,reactjs,threejs,hacktoberfest-accepted,javascript,strapi
2023-09-06T19:44:38Z
2023-11-02T14:55:29Z
null
12
32
84
5
27
8
null
null
JavaScript
itkhanz/Cypress-Framework
main
# Cypress Test Automation Framework [![cypress-framework](https://img.shields.io/endpoint?url=https://cloud.cypress.io/badge/detailed/sh3aqa/main&style=flat&logo=cypress)](https://cloud.cypress.io/projects/sh3aqa/runs) [![cypress-framework](https://img.shields.io/endpoint?url=https://cloud.cypress.io/badge/count/sh3aqa/main&style=flat&logo=cypress)](https://cloud.cypress.io/projects/sh3aqa/runs) Cypress test automation framework built with JavaScript (JS) that follows the Page Object Model (POM) design pattern to implement the UI tests for OpenCart E-commerce store. > If you are a beginner to Cypress, refer to my other repo to refresh your Cypress knowledge which will serve as a starting-point to Cypress testing: [Cypress-E2E-Web-and-API-Testing](https://github.com/itkhanz/Cypress-E2E-Web-and-API-Testing) Application Under Test (AUT): https://naveenautomationlabs.com/opencart/index.php ## Features 💡 * Atomic and Independent test cases * Robust Locator strategies to target elements * No hard coded strings and test data in spec files * Hooks to perform the repeated steps for all the tests inside spec * Loading test data from external fixtures files i.e. JSON * Generate random test data with faker library * Loading environment specific configuration and environment variables per environment i.e. dev, stage, prod * Ability to filter and run tests with specific tags i.e. regression, smoke * Pass browser and mode as environment variable * Configure routes (URL endpoints) in a constant config file * Usage of OOP Inheritance to extend all the pages from BasePage * Allows to load header and footer components from BasePage constructor * Call the `cy.visit()` from BasePage with specified path * Test Retries for failing tests * Custom commands for login and validation in `cypress/support/commands.js` * Intellisense for custom commands in `cypress/support/index.d.ts` * Reusable test utilities functions inside `cypress/e2e/utils` * Support for Cypress Cloud (Dashboard) * Multiple reporters configuration (JUnit XML, cpress-mochawesome-reporter HTML) * Cypress with Docker using Dockerfile and docker-compose * Continuous Integration CI with Jenkins ## Setup 🛠️ ### Pre-requisites * Install NodeJS and NPM pakcage manager. * Code Editor of your choice e.g. Visual Studio Code * Install [ESLint](https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint) VS Code extension from Microsoft to make linting work in IDE * GIT Client (for remote tracking) * GIT Bash terminal (for Windows) #### Optional * Install [Cypress Snippets](https://marketplace.visualstudio.com/items?itemName=CliffSu.cypress-snippets) VS Code Extension that includes the most common cypress snippets. ### Setup from Scratch * `npm init` to setup node project with package.json * `npm install --save-dev cypress` to install cypress as dev dependency * `npx cypress open` to open the cypress test runner and choose `E2E Testing` which will create cypress config, support and fixture folders. * Choose browser of your choice, and scaffold examples which will create boilerplate specs within e2e folder. * Remove the default boilerplate specs from `cypress/e2e` folder * Add `.gitignore` to exclude files and folders from GIT * Add `README.md` to document * Start with writing tests under `cypress/e2e` directory. #### Integrating ESLint * Install [ESLint](https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint) VS Code extension from Microsoft to make linting work in IDE * Install eslint in project `npm init @eslint/config --save-dev` * Install [Cypress ESLint Plugin](https://www.npmjs.com/package/eslint-plugin-cypress) with `npm install eslint-plugin-cypress --save-dev` * Configure the `.eslintsrc.json` to use recommended settings or add custom rules: ```json { "extends": [ "plugin:cypress/recommended" ] } ``` * [Linting Cypress code using ESLint and eslint-plugin-cypress](https://www.youtube.com/watch?v=-YgitwmwFo0) ### Using existing framework * Clone git repo * Navigate to folder and open terminal * Run `npm install` to install the framework dependencies #### Pre-requistes * Register with a new user on the website manually for first time. * Save the login credentials for registered user under `cypress/fixtures/users.json` * Add the `projectId` for Cypress Cloud in `cypress.config.js` > To add IntelliSense for IDE like VS Code, add the [Triple slash directives](https://docs.cypress.io/guides/tooling/IDE-integration#Triple-slash-directives) to the head of test file or use the [Refernce type declaration via jsconfig.json](https://docs.cypress.io/guides/tooling/IDE-integration#Triple-slash-directives) --- ## Configurarion ⚙️ * Project specific constants are defined under `cypress/config/constants.js` * URL routes for pages are defined under `cypress/config/routes.js`. This allows to open the page directly by calling the `open()` method of page. * Environment specific Cypress settings are placed inside JSON files per enironment in `settings/{environmentName}.settings.json` file. This allows to load separaete settings per environment. * [Configuration](https://docs.cypress.io/guides/references/configuration) * [Cypress.config](https://docs.cypress.io/api/cypress-api/config) * [How To Load Cypress Settings Per Environment](https://glebbahmutov.com/blog/load-cypress-env-settings/) * [Cypress basics: Using baseUrl](https://filiphric.com/cypress-basics-using-baseurl) * --- ## Running tests ⚡ * [Command Line](https://docs.cypress.io/guides/guides/command-line) * [Environment Variables](https://docs.cypress.io/guides/guides/environment-variables) * `npx cypress open` will open the cypress test runner so you can run the tests from it * `npx cypress run` will run all the test spec files located within `cypress/e2e` folder. By default test are run in headless mode on electron browser. * If you want to run test on specific browser, you can provide with `--browser` argument like `--browser chrome`. * To run tests in headed mode, pass argument `--headed` * To run a specific test spec, use the following cmd syntax: `npx cypress run --spec cypress/e2e/tests/AddToCartTest.cy.js --headed --browser chrome` will run the tests from AddToCartTest spec on chrome browser in headed mode. * Following custom test scripts are setup in `package.json` to run specific test suites in headless format: * `npm run test:registration` * `npm run test:login` * `npm run test:productData` * `npm run test:addToCart` * `npm run test:wishlist` * `npm run test:productSearch` * You can also filter the tests based on tag by providing `--env grepTags="<tag>"` * For example, To run the tests that are tagged as `@smoke`: * `npx cypress run --spec cypress/e2e/tests/AddToCartTest.cy.js --env grepTags="@smoke"` * To use the command line args with npm run scripts, append an extra `--` * `npm run test:addToCart -- --env grepTags="@smoke"` * Similarly you can filter the test based on its title by providing ` --env grep="<substring_in_spec_title>` * To run the tests on any specific browser in headed mode: * For example, `npm run test:addToCart -- --env grepTags="@smoke" --headed --browser chrome` will run the smoke tests from addToCart spec on chrome browser in headed mode * You can also change baseUrl, configuration files and enironment variables during test execution by passing the `environmentName` enviornment variable. * Summing up all the above configuration, here is an example: * `npm run test:registration -- --env environmentName="stage",grepTags="@smoke" --headed --browser chrome` will run tests with following configurations: * **spec** `RegistrationTest.cy.js` * **browser** `chrome` * **mode** `headed` * **tag** `smoke` * **environmentName** `stage` * **baseUrl** `https://stage.naveenautomationlabs.com/opencart/index.php` is automatically teken from `environmentName` * You can add cloud execution and test recording to the existing scripts by appending `-- --record --key <key>` to the end of npm test scripts. For example, `npm run test:registration -- --env environmentName="local",grepTags="@smoke" --record --key <KEY_VALUE>` * Terminal output shows the results summary as: <img src="doc/results-terminal-output.PNG"> --- ## Test Reporting 📑 * This framework uses [cypress-mochawesome-reporter](https://www.npmjs.com/package/cypress-mochawesome-reporter) to generate HTML test reports. * Add the following options to `cypress.config.js` ```js //cypress-mochawesome-reporter reporter: 'cypress-mochawesome-reporter', reporterOptions: { charts: true, //Genarates Chart in HTML report reportPageTitle: 'OpenCart Test Report', //Report title will be set to the mentioned string embeddedScreenshots: true, //Screenshot will be embedded within the report inlineAssets: true, //No separate assets folder will be created videoOnFailOnly: false, //If Videos are recorded and added to the report, setting this to true will add the videos only to tests with failures. }, ``` * HTML Reports are generated by default in `root/cypress/reports` folder. * It embeds the screenshots of tests on failure automatically to the report, and also attaches the videos to report. * It also allows the customization of report with better control of how and where report is generated. * This is how the report dashboard looks like: <img src="doc/mochaawesome-report-overview.PNG"> * Some ther reporting possibilities are: * [mochawesome](https://www.npmjs.com/package/mochawesome) * [cypress-allure-plugin](https://www.npmjs.com/package/@shelex/cypress-allure-plugin) * If a test case is failed, then the assertion error, screenshot and video gets attached to report automatically. * When a test retries, Cypress will continue to take screenshots for each failed attempt or cy.screenshot() and suffix each new screenshot with (attempt n), corresponding to the current retry attempt number. <img src="doc/mochawesome-failed-test-report.png"> ## Multiple Reporters * [Configure Multiple Reports](https://docs.cypress.io/guides/tooling/reporters) * Oftentimes we see users wanting the ability to use multiple reporters. When running in CI, you might want to generate a report for junit and perhaps a json report. This is great, but by setting this reporter you won't receive any additional feedback while the tests are running! * The framework is configured to report JUnit XML reports, as well as mochawesome HTML reports. * Install additional dependencies with `npm install --save-dev cypress-multi-reporters mocha-junit-reporter` * Specify your reporter and reporterOptions in your Cypress configuration: ``` reporter: 'cypress-multi-reporters', reporterOptions: { configFile: 'reporter-config.json', }, ``` * Then add the separate `reporter-config.json` file (defined in your configuration) to enable mochawesome and junit reporters and direct the junit reporter to save separate XML files. ```json { "reporterEnabled": "cypress-mochawesome-reporter, mocha-junit-reporter", "mochaJunitReporterReporterOptions": { "mochaFile": "cypress/results/junit/results-[hash].xml" }, "cypressMochawesomeReporterReporterOptions": { "reportDir": "cypress/results/cypress-mochawesome-reporter", "charts": true, "reportPageTitle": "OpenCart Test Report", "embeddedScreenshots": true, "inlineAssets": true, "videoOnFailOnly": false } } ``` * Test results are generated under directory: * `cypress/results/junit` for JUnit XML reports * `cypress/results/cypress-mochawesome-reporter` for mochawesome HTML reports * In case you want to combine generated XML files into a single one, [junit-report-merger](https://www.npmjs.com/package/junit-report-merger) can be added. * Add the scripts in `package.json` to delete the reports before test run, and combine the JUnit XML reports into single XML report after test finishes. ```json { "results-junit:delete": "rm -rf cypress/results/junit/* || true", "results-junit:combine": "jrm cypress/results/junit/combined-report.xml \"cypress/results/junit/*.xml\"", "report:pre": "npm run results-junit:delete", "report:post": "npm run results-junit:combine", "test:report": "npm run report:pre && npx cypress run && npm run report:post" } ``` * `rm` and `true` are native shell commands and so the above scripts will not run in poweshell terminal, therefore use GIT Bash terminal if you are on windows. --- ## Cypress Cloud ☁️ * Record a run to see your test results in Cypress Cloud. You can then optimize your test suite, debug failing and flaky tests, Test Replay, watch video, view console output and screenshots, and integrate with your favorite tools. * [Cypress Cloud documentation](https://docs.cypress.io/guides/cloud/introduction) * [Cypress Project ID and Record Key](https://docs.cypress.io/guides/cloud/account-management/projects) * [Record tests](https://docs.cypress.io/guides/continuous-integration/introduction#Record-tests) * Once you set up your project to record, Cypress generates a unique projectId for your project and automatically insert it into your Cypress configuration file. The projectId is a 6 character string in your Cypress configuration. * The record key is used to authenticate that your project is allowed to record tests to Cypress Cloud. As long as your record key stays private, no one will be able to record test runs for your project - even if they have your projectId. * Create `cypress.env.json` in root directory that Cypress will automatically check. Values in here will overwrite conflicting environment variables in your Cypress configuration.This strategy is useful because if you add cypress.env.json to your `.gitignore` file, the values in here can be different for each developer machine. ```json { "projectId": "" } ``` * Run the test via `npx cypress run --record --key <record key>` <img src="doc/cyress-cloud-specs.PNG"> <img src="doc/cyress-cloud-results.PNG"> --- ## Docker 🐋 If you want to execute the tests using Docker, you can do the following in your terminal (Powershell) at the workspace project.- ```bash # Without docker-compose # Build the docker image from Dockerfile > docker build -t cypress_docker . # Run the following command to run all tests with test:all script inside docker > docker run -i -v ${PWD}:/cypress_docker -t cypress_docker:latest test:all # You can also pass command line parameters optionally to further narrow down your tests > docker run -i -v ${PWD}:/cypress_docker -t cypress_docker:latest test:registration -- --env environmentName="local",grepTags="@smoke" --headed --browser chrome ``` ```bash # With docker-compose # Build the docker image from Dockerfile > docker build -t cypress_docker . # Execute the following command to compile the file. <YourVersionTag> may be any value you want > docker build -t cypress_docker:<YourVersionTag> . # Then, execute the following command to run the tests inside of the container > docker-compose up # To run cross browser tests on multiple browsers > docker-compose -f docker-compose-browsers up # To stop the docker compose execution > docker-compose -f docker-compose-browsers.yml down --volumes --remove-orphans # You can also combine the building of image and running of test in single step > docker-compose -f docker-compose-build.yml up --build ``` * For more detail on cypress with docker, read [cypress docker](./doc/docker.md) ## Continuous Integration CI 🚀 The Project is configured to run Cypress in Continuous Integration with multiple CI Providers. ### Jenkins Integration <img src="doc/jenkins.png"> * This framework supports the Continous Integration CI with Jenkins, and offers fully customize execution with support for: * Jenkinsfile Pipeline Script * Build with Parameters * Allows to select test specs, browser, browser mode, tags, environment, dashboard recording. * Publishes Mochawesome HTML report via HTML Publisher Plugin * Parses JUnit XML results to display a summary and trends of test results * Sends a Slack Notification with test results summary, link to test report, and job. * See the [Jenkinsfile](./Jenkinsfile) to see how the pipeline is configured. * For more detail on cypress with Jenkins, read [Cypress Jenkins](./doc/jenkins.md) <img src="doc/jenkins-pipieline-dashboard.PNG"> <img src="doc/jenkins-pipeline-config.PNG"> <img src="doc/jenkins-slack-notification.PNG">
Test automation framework built with Cypress and Javascript that follows Page Object Model (POM) design pattern
cypress,javascript,test-automation,chai,cypressio,docker,end-to-end-testing,jenkins,page-object-model
2023-08-19T14:20:59Z
2023-09-16T17:17:46Z
null
1
0
49
0
5
8
null
null
JavaScript
ashduino101/WebAssetStudio
main
# WebAssetStudio [!["Buy Me A Coffee"](https://www.buymeacoffee.com/assets/img/custom_images/orange_img.png)](https://www.buymeacoffee.com/ashduino101) WebAssetStudio is an online tool to view and extract game asset bundles, inspired by Perfare's [AssetStudio](https://github.com/Perfare/AssetStudio) (archived). It runs entirely inside your browser using JavaScript and WebAssembly. **This tool and its creator, sponsors, and users are not affiliated or endorsed by Unity or any other company with a supported product.** ## Supported formats WebAssetStudio currently supports the following formats: - UnityFS (`.unity3d`, `.assets`, `level*`) - FSB5 (currently only for UnityFS bundles) - XNA/FNA serialized assets (`.xnb`, `.xnb.deploy`) - Godot bundles (`.pck`) (beta) - GZip-compressed versions of the formats listed above ## Planned support WebAssetStudio plans to eventually support the following formats: - Wwise BNK (`.bnk`) - Unreal bundles (`.pak`) and assets (`.uasset`, `.ubulk`, etc) Feel free to suggest formats as GitHub issues. ## Exporting Currently, only ZIP exporting is supported, as well as downloading files individually by selecting the object and clicking the "Download object" (for the significant converted data) or "Download info" (for the object properties) button below the preview. A guide to the ZIP directory layout is as follows: ``` │ └ <filename> ├ Externals: details of external files used by the asset │ └ <guid>.json ├ Objects: the actual objects of the asset (e.g. textures, meshes, sprites) │ ├ <object>.<extension>: An exported asset (e.g. .png, .gltf, .shader [note 1]) │ └ Info: all properties of each object (to a reasonable degree) │ └ <object>.json: A JSON file containing properties of the object ├ Reference types: type trees used as references │ └ <typename>_<scriptID>.json: A type tree, in JSON form └ Type trees: type definitions used by objects - these might be inaccurate └ <typename>_<scriptID>.json: Same as above ``` Note 1: Shaders contain a raw shader structure and aren't exported at the moment. (TODO) ## Supported classes (Unity) These Unity classes are currently supported: - `Animation` - `AnimationClip` - `Animator` - `AnimatorController` - `AnimatorOverrideController` - `AssetBundle` - `AudioClip` - `AudioListener` - `Avatar` - `Behaviour` - `CanvasRenderer` - `Component` - `Cubemap` - `EditorExtension` - `FlareLayer` - `Font` - `GameObject` - `Material` - `Mesh` - `MeshFilter` - `MeshRenderer` - `MonoBehaviour` - `MonoScript` - `NamedObject` - `ParticleSystemRenderer` - `PhysicMaterial` - `PPtr` (note 1) - `Renderer` - `RuntimeAnimatorController` - `Shader` - `SkinnedMeshRenderer` - `Sprite` - `TextAsset` - `Texture` - `Texture2D` - `Transform` Note 1: In this implementation, PPtrs do not explicitly declare a type. The type is inferred by the resolved path. ## Credits - [AssetStudio](https://github.com/Perfare/AssetStudio) - [mikunyan](https://github.com/Ishotihadus/mikunyan) - [Crunch](https://github.com/BinomialLLC/crunch) - [UnityCrunch](https://github.com/Unity-Technologies/crunch/tree/unity)
An online tool for viewing and extracting assets from game asset bundles.
unity,unity3d,web,godot,unreal,javascript,webapp,xna,asset-extraction
2023-09-04T04:58:41Z
2024-05-03T05:01:01Z
null
1
0
92
0
0
8
null
MIT
JavaScript
aronvsr/Ye-said
main
<h2>React Native App and Swift Widgets for Kanye West quotes!</h2> <img src="./images/widget-preview-all.jpg" width="768" title="Widgets preview"> > "Name one genius that ain't crazy..." - <a href="https://apps.apple.com/app/ye-said/id6463562198">App Store (±7.5k downloads)</a> - <a href="https://play.google.com/store/apps/details?id=com.aronvsr.yesaid">Play Store (±500 downloads)</a> <h3>App & Widgets</h3> This is an expo project ejected to be managed in Xcode. Each iOS widget is an individual extension (which is necesarry to have individual widget titles and descriptions). The iOS widget files can be found <a href="./ios-widgets">here</a>. The main app is written with JavaScript in App.js. Run in an React Native Expo environment (or any environment that would support App.js) to test. I can't upload the entire project since there is confindental information in the files, such as apple developer IDs and more. The Android version is written entirely in Kotlin with Android Studio. I couldn't get the React Native part to work with the native Android version, so I opted for this tedious approach (rewriting the app). <h3>Api</h3> View the quotes, and corresponding php script to fetch them, <a href="./server-side">here</a>. <h3>More</h3> I raised the price to 1$, as the increased amount of users came with some more costs. Nuff said, peep these preview images: <p float="left"> <img src="./images/main.jpg" width="256" title="Main app"> <img src="./images/wid.jpg" width="256" title="1/2 widgets"> <img src="./images/gets.jpg" width="256" title="2/2 widgets"> </p>
The app for Kanye West quotes
api,expo,javascript,kanye,kanye-west,poetry,quotes,react-native,swift,widgets
2023-09-03T14:43:19Z
2024-03-20T18:27:42Z
null
3
0
134
0
0
8
null
MIT
Swift
TomC333/React-Sorting-Visualizer
main
# React-Sorting-Visualizer ✨ [![Build Status](https://img.shields.io/badge/build-passing-brightgreen)](https://github.com/Toms343/React-Sorting-Visualizer) [![License](https://img.shields.io/badge/license-MIT-blue)](https://github.com/Toms343/React-Sorting-Visualizer/blob/main/LICENSE) ![SortingApp](https://github.com/Toms343/React-Sorting-Visualizer/blob/main/Images/App.png) ![SelectionSort](https://github.com/Toms343/React-Sorting-Visualizer/blob/main/Images/SelectionSort.png) ![MergeSort](https://github.com/Toms343/React-Sorting-Visualizer/blob/main/Images/MergeSort.png) ## Table of Contents 📜 - [Introduction](#introductioon-) - [Features](#features-) - [Contributing](#contributing-) - [Contact](#contact-) - [Setup](#setup-) ## Introduction 🗨️ Welcome to the Sorting Visualizer React App! This interactive tool lets you visualize various sorting algorithms in action. Watch how different algorithms organize data step by step, making it an ideal resource for both learners and experienced developers. Explore, learn, and have fun with sorting algorithms in a dynamic and engaging way! ## Features 👀 - **Custom Array Size**: Easily adjust the number of elements using a slider to experiment with different array sizes && Speed of algorithm. - **Sorting Algorithm**: Currently supports Insertion Sort, Selection Sort, Bubble Sort && Merge Sort. - **Simple Interface**: Enjoy a straightforward and user-friendly design for a seamless experience. ## Setup 🌱 To get started with the Sorting Visualizer React App, follow these steps: 1. **Install Node.js and npm**: - If you haven't already, download and install Node.js and npm from [nodejs.org](https://nodejs.org/). 2. **Install Visual Studio Code (optional)**: - You can use any code editor of your choice, but we recommend [Visual Studio Code](https://code.visualstudio.com/) for the best experience. 3. **Navigate to the Project Directory**: - Open your terminal/command prompt. - Use the `cd` command to navigate to the directory where you cloned the Sorting Visualizer React App repository. 4. **Start the Development Server**: - Run the following command to start the development server: ```bash npm start ``` ## Contributing 🤝 Contributions are welcome! If you would like to contribute to this project, please follow these steps: 1. Fork the repository. 2. Create a new branch: `git checkout -b feature/your-feature-name` 3. Commit your changes: `git commit -m "Add your feature"` 4. Push to the branch: `git push origin feature/your-feature-name` 5. Open a pull request on the [GitHub repository](https://github.com/Toms343/React-Sorting-Visualizer) Please ensure that your contributions adhere to the following guidelines: - Maintain a clear and concise coding style. - Document any significant changes or additions. Thank you for your contributions! 🙌 ## Contact 📧 For any questions or feedback, feel free to reach out: - Email: d.dadiani343@gmail.com - LinkedIn: [David Dadiani](https://www.linkedin.com/in/david-dadiani-6677b5226/)
Sorting Algorithms Visualizer | React
javascript,react,reactjs,educational-project
2023-09-03T20:32:04Z
2023-09-09T18:04:17Z
null
1
0
19
0
0
8
null
MIT
JavaScript
kingshukkundu/personal-portfolio-template
main
<p align="center"> <a href="/apple-touch-icon-72x72.png"> <img width="60" height="60" src="/apple-touch-icon-72x72.png" alt="Logo" width="200" /> </a> </p> <p align="center"> <h1 align="center"> Personal Portfolio Template </h1> <p align="center"> A simple, minimal, fast and responsive personal portfolio website built using HTML, CSS, and Javascript. This website showcases skills, projects, and provides a way for others to learn more about you. <br><br> <img alt = license src="https://img.shields.io/github/license/kingshukkundu/personal-portfolio-template?color=4caf50"> <img alt = stars src="https://img.shields.io/github/stars/kingshukkundu/personal-portfolio-template?color=4caf50"> <img alt = forks src="https://img.shields.io/github/forks/kingshukkundu/personal-portfolio-template?color=4caf50"> </p> </p> <br> [![Site preview](/images/bg/site-preview.png)](https://kingshuk.cf) ## 🔖 Table of Contents - [Demo](#demo) - [Features](#features) - [Technologies Used](#technologies-used) - [Setup](#setup) - [Usage](#usage) - [Customization](#customization) - [Contributing](#contributing) - [License](#license) ## 💾 Demo You can see a live version of the portfolio website at [https://kingshuk.free.nf](https://kingshuk.free.nf) ## ⭐️ Features - **About Me:** An introduction to who you am, my background, and interests. - **Portfolio:** A showcase of projects with descriptions and links. - **Resume:** A downloadable PDF version of resume. - **Contact:** A way for visitors to get in touch with you. ## 💻 Technologies Used - HTML5: Structuring the content of the website. - CSS3: Styling and layout of the website. - JavaScript: Adding interactivity and dynamic elements. ## ⚙️ Setup 1. **Clone the Repository:** ``` git clone https://github.com/kingshukkundu/personal-portfolio-template ``` 2. **Navigate to the Project Folder:** ``` cd personal-portfolio ``` 3. **Open `index.html` in your Browser:** Simply double-click on the `index.html` file to open it in your default web browser. ## 🔧 Usage 1. **Edit Content:** - Open the `index.html` file and modify the content within the appropriate sections, such as the "About Me," "Portfolio," and "Contact" sections. 2. **Add Projects:** - Navigate to the \#page4 in index.html file and add new project sections following the existing structure. 3. **Styling:** - Customize the styling by modifying the CSS in the `.css` file to match your personal preferences. ## 🪴 Customization Feel free to customize this portfolio website to make it your own! You can change colors, fonts, add new sections, or modify the layout to suit your personal brand. ## 🪢 Contributing Contributions are welcome! If you find a bug or want to improve the website, feel free to create an issue or submit a pull request. 1. Fork the repository. 2. Create a new branch: `git checkout -b feature/your-feature-name`. 3. Make your changes and commit them: `git commit -m 'Add some feature'`. 4. Push the changes to your fork: `git push origin feature/your-feature-name`. 5. Submit a pull request explaining your changes. ## 📝 License This project is licensed under the [MIT License](LICENSE). --- Thank you for visiting my portfolio repository! If you have any questions or feedback, feel free to get in touch.
A beautiful, simple, clean, and responsive portfolio with HTML, CSS and Javascript
html-css-javascript,portfolio,portfolio-template,portfolio-website,css,html,html5,javascript,minimal,minimal-portfolio-template
2023-08-13T04:14:52Z
2024-01-10T06:38:00Z
2023-08-15T05:19:22Z
1
0
20
0
2
8
null
MIT
HTML
Anish-Karthik/promptopia
main
deployed Link: <a href="https://promptopia.anish-karthik.vercel.app/"> https://promptopia.anish-karthik.vercel.app/ </a> ## <h1>Basic Features</h1> ## Home Page and Feed ![image](https://github.com/Anish-Karthik/promptopia/assets/111771214/6aaee825-9711-4f29-bb71-edf34f4490c1) ## Profile when a user visits his profile ![image](https://github.com/Anish-Karthik/promptopia/assets/111771214/e6b2f8ff-5c67-4f78-9e3d-b9e96e54709b) ## Profile of other ![image](https://github.com/Anish-Karthik/promptopia/assets/111771214/2fcfc049-b9d7-436a-a479-5523594479b7) ## Create Prompt ![image](https://github.com/Anish-Karthik/promptopia/assets/111771214/cdbb5be3-0d28-4c9c-842a-9b37318a565e) ## Mobile Feed ![image](https://github.com/Anish-Karthik/promptopia/assets/111771214/2f57a10b-f624-4276-ab87-6c5889a4bfde) ## Additional Features implemented by me <ul> <li>Search and display feed</li> <ul> <li>By tag</li> <li>By prompt content</li> <li>By username</li> </ul> <li>Display feed by on tag click</li> <li>View other profile</li> </ul> ## Additional Features to be implemented by me <ul> <li>adding private and public prompts</li> <li>creating like count for posts || copy count</li> <li>ranking prompts by most liked || copy || search</li> <li>creating followers for users</li> </ul>
Create creative prompts and share with the world.
javascript,mongodb,nextjs,reactjs,tailwind-css
2023-08-12T09:55:12Z
2023-08-17T15:36:01Z
null
1
0
15
0
1
8
null
null
JavaScript
CharudattaGhute/Grocery-Management-System
main
# Grocery Management System The Grocery Management System is a comprehensive solution for efficiently managing and organizing a grocery store's operations. It provides an integrated platform that combines both frontend and backend technologies to streamline various processes related to inventory management, customer interactions, and order tracking. This README file provides an overview of the project, its features, and how to set it up for local development. # Features - User-Friendly Interface: The frontend of the system is built using HTML, CSS, JavaScript, and Bootstrap, ensuring an intuitive and responsive user interface for both customers and store administrators. - Database Integration: The system employs MySQL as the database management system to store and manage crucial data related to products, customers,order tracking and total sales. - Python Backend: The backend of the system is developed using Python, leveraging the Flask web framework to manage business logic. - Individual Project: The project was developed by an individual and followed a structured development approach. # Database Setup To set up the database for the Grocery Management System, follow these steps: - Install MySQL: Make sure you have MySQL installed on your machine. If not, you can download and install it from the official MySQL website: https://dev.mysql.com/downloads/ - Create a Database: Open your MySQL command line interface or a MySQL client of your choice. Create a new database named grocery_store (or any name you prefer): CREATE DATABASE grocery_store; - Create Tables: The system utilizes four tables: products, uom, orders, and order_details. Here's how you can create these tables: We can use the MySql UI. ![table01](https://github.com/CharudattaGhute/Grocery-Management-System/assets/122104600/17ac9ff8-9d8b-4779-ad27-f4cb00fdde43) Similarly we can create other tables such as uom,oders and order_details which includes column name,Datatype,etc. # Update Database Configuration: Open the server.py file in your project and update the database connection configuration. You'll need to provide the host, username, password, and database name that you've set up. DATABASE_CONFIG = { 'localhost': '127.0.0.1', 'user': 'your_username', 'password': 'your_password', 'database': 'grocery_store' } # Access the Application: Open a web browser and navigate to http://localhost:5000 to access the Grocery Management System. # Contributing Contributions to the Grocery Management System are welcome! If you find any issues or would like to enhance the system with new features, feel free to fork the repository, make your changes, and submit a pull request. Please ensure to follow coding standards, write clear commit messages, and provide appropriate documentation for your contributions. # Project Demo Video Check out our project demo video to get a visual walkthrough of the Grocery Management System in action. This video provides an overview of the system's features, functionality, and how it can help streamline your grocery store operations. https://github.com/CharudattaGhute/Grocery-Management-System/assets/122104600/1a549cd9-11f9-4295-9ed2-7e6a784141d2 We hope you find the video informative and insightful. If you have any questions or would like to explore specific aspects of the system further, please don't hesitate to reach out to us. # Contact If you have any questions or need assistance, feel free to reach out me at ghutecharudatta@gmail.com. Your feedback and inquiries are highly valued as we strive to enhance the Grocery Management System for a better experience. # Contact If you have any questions or need assistance, feel free to reach out me at ghutecharudatta@gmail.com. Your feedback and inquiries are highly valued as we strive to enhance the Grocery Management System for a better experience.
Efficiently manage grocery store operations with an integrated frontend, Python backend, and MySQL database.
css,html,javascript,mysql,python,pythonflask
2023-08-19T18:03:49Z
2024-04-16T05:15:06Z
null
1
0
12
0
0
8
null
null
CSS
turbina4/Guess-color
main
# Guess the Color Game (work in progress) ## How does the game work? You will be presented with a random RGB or HEX value (for example, `RGB(163, 69, 231)`), and your task is to select the box with the corresponding background color. ## Disclaimer Please note that if you change the resolution or size of your window, you will need to generate new boxes.
Guess color game
color,colors,css,game,html,html-css-javascript,javascript,js,website
2023-08-16T22:54:07Z
2024-01-28T01:35:59Z
2023-08-17T09:39:31Z
1
0
14
0
0
8
null
MIT
JavaScript
epicestudar/BookHaven
main
# BookHaven Website Development Report 📚 ## Project Overview 🌟 The **BookHaven** website was a collaborative effort among five individuals, including myself. Our goal was to create a platform focused on books, encompassing features for buying and exploring various literary works. The project served as a learning opportunity to delve into the integration of frontend technologies with PHP for database connectivity. Given our limited prior knowledge, the implementation was kept fairly basic. ## Team Members 👥 - [Member 1](https://github.com/epicestudar) - [Member 2](https://github.com/rafaelmoura23) - [Member 3](https://github.com/IgorOliverx) - [Member 4](https://github.com/Ezequielzz) - [Member 5](https://github.com/Edu1Sinico) ## Website Pages 📄 The **BookHaven** website comprised the following pages: - **Home**: The main landing page welcoming users and showcasing featured books. - **Contact**: A page allowing users to get in touch with us for inquiries and support. - **Products**: This section listed various books available for purchase, each with detailed information. - **Support**: A page dedicated to providing assistance to users regarding any issues or queries. - **Login and Signup**: Sections for users to create accounts or log in to existing ones. ## Technologies Used 💻 The website was built using the following technologies: - **HTML**: Used for structuring the pages and content. - **CSS**: Applied for styling and design, ensuring an attractive user interface. - **JavaScript**: Implemented for interactive elements and user experience enhancements. - **PHP**: Employed for backend processing, database connectivity, and dynamic content generation. ## Challenges Faced 🤔 Throughout the development process, we encountered several challenges: - **Responsiveness**: Adapting the website to different screen sizes and devices proved to be a significant hurdle. Achieving a seamless experience across platforms required meticulous adjustments. - **Git Versioning**: Initially, we struggled with effective use of Git for version control. We learned the importance of creating separate branches for development and implementing pull requests. - **Database Integration**: Connecting the frontend with the database using PHP was a new concept for us. We had to grasp the fundamentals, leading to a basic implementation. ## Embracing the Theme 🎉 To infuse the theme of books and literature into the project, we incorporated relevant emojis across the site: - 📖 (Book): Used to signify book-related elements, such as featured books and product listings. - 🌟 (Star): Represented user reviews and ratings for books. - 🖋️ (Pen): Symbolized the act of writing, prevalent in the author profiles and book descriptions. ## Conclusion and Future Endeavors 🚀 The development of the **BookHaven** website was an enlightening experience, enabling us to apply our knowledge and learn new concepts. Moving forward, we aim to enhance the website's functionality, improve user experience, and explore advanced features for a more comprehensive book platform. Feel free to explore the [BookHaven repository](https://github.com/BookHaven) for further details. For any inquiries or suggestions, please don't hesitate to reach out. Thank you for being a part of our journey! 📚
e-commerce site focused on a book sales site for the senai project
action,adventure,books,css,ecommerce,fantasy,horror,html,javascript,library
2023-08-15T16:36:35Z
2023-09-12T16:58:04Z
null
5
0
94
1
0
8
null
null
HTML
valcat/pomotorro
master
null
🍅 The Pomotorro App is a simple productivity tool based on the Pomodoro Technique, designed to enhance time management, focus, and productivity.
css,javascript,react,redux
2023-08-10T16:03:47Z
2024-05-20T19:01:58Z
null
4
210
176
0
2
8
null
MIT
JavaScript
chomnr/win7-emulator
main
# create-svelte Everything you need to build a Svelte project, powered by [`create-svelte`](https://github.com/sveltejs/kit/tree/master/packages/create-svelte). ## Creating a project If you're seeing this, you've probably already done this step. Congrats! ```bash # create a new project in the current directory npm create svelte@latest # create a new project in my-app npm create svelte@latest my-app ``` ## Developing Once you've created a project and installed dependencies with `npm install` (or `pnpm install` or `yarn`), start a development server: ```bash npm run dev # or start the server and open the app in a new browser tab npm run dev -- --open ``` ## Building To create a production version of your app: ```bash npm run build ``` You can preview the production build with `npm run preview`. > To deploy your app, you may need to install an [adapter](https://kit.svelte.dev/docs/adapters) for your target environment.
A web-based Windows 7 emulator, offering a rudimentary replication of the Windows 7 experience directly within your browser.
css,emulator,javascript,sveltekit,windows7
2023-08-22T07:24:14Z
2023-10-13T00:17:03Z
null
1
0
229
0
0
8
null
null
Svelte
GautamPatil1/EBikeStore
main
null
The EBikeStore is a comprehensive web platform designed to provide users with a wealth of information about electric bikes and scooters available in India
css,django,docker,docker-compose,html,javascript,python
2023-09-06T11:56:09Z
2024-03-04T13:40:10Z
null
7
6
22
0
5
8
null
MIT
Python
Zrital3265/CRUD-SQL
main
This basic E-Bookstore was created using React.js, Node/express.js, and MySQL with CRUD functionality for educational purpose. ### Installation: #### Cloning the repository: ```shell git clone https://github.com/Zrital3265/CRUD-SQL.git ``` #### Open your terminal and: ```shell cd CRUD-SQL ``` #### Install the packages: ```shell npm install ``` then, ```shell cd server ``` ## Configuration (database) Edit index.js file (which is inside server) with your own DB Configuration. ```shell host: "localhost", user: "root", password: "Your DB Password", database: "test", ``` **You must establish a database connection with the name "test" or something similar.** After that(inside server folder) enter: ```shell npm start ``` then inside client folder as well enter: ```shell npm start ``` ***Enjoy.***
Discover and manage your favorite books effortlessly with this online book shop. Built with MySQL, this project offers basic CRUD functionality for browsing, adding, updating, and deleting books.
expressjs,javascript,mysql,reactjs
2023-09-10T09:43:17Z
2024-03-10T09:52:42Z
null
1
5
20
0
4
8
null
null
JavaScript
divyaGrvgithub/YouTube-Clone
youtube/clone
# Youtube-clone [Live](https://you-tube-clone-5lu7ibkyh-divyagrvgithub.vercel.app/) ![logo](https://cdn.vox-cdn.com/thumbor/b36noYT2bfb68KwmdP4U8bo16hM=/0x0:1848x1036/1400x788/filters:focal(688x471:689x472)/cdn.vox-cdn.com/uploads/chorus_asset/file/19353488/Screen_Shot_2019_11_06_at_5.04.08_PM.png) ![Screenshot of the Application](https://cdn.vox-cdn.com/thumbor/VXo0XCVNeysQWoO7uxX7xGKe1ok=/0x0:1494x840/1400x788/filters:focal(220x120:221x121)/cdn0.vox-cdn.com/uploads/chorus_asset/file/8449755/New_Dark_Theme.png) ![Screenshot of the Application](https://www.addictivetips.com/app/uploads/2018/12/screenshot-youtube.jpg) ![Screenshot of the Application](https://media.sproutsocial.com/uploads/2022/08/youtube-ad-example-fliteboard.png) ## Table of content 📝 1. Features 2. Tech Stack 3. Getting Started 4. Understand Context Api 5. Contribute ## 1. Features 🎯 <details> <summary>1. Infinite Scrolling</summary> <ul> <li>Implemented infinite scrolling using the powerful <a href="https://www.npmjs.com/package/react-infinite-scroll-component">react-infinite-scroll-component</a> library.</li> <li>Experience the same seamless scrolling used by platforms like Facebook, Instagram, YouTube, and TikTok, etc.</li> </ul> </details> <details> <summary>2. Modern Dark Theme</summary> <ul> <li>Most modern applications use a dark theme.</li> <li>It's an eye-comfortable and highly demanded feature.</li> </ul> </details> <details> <summary>3. Loading UI</summary> <ul> <li>I have used the Chakra UI <a href="https://chakra-ui.com/docs/components/skeleton">Skeleton</a> component for loading.</li> <li>It's a very important feature for a good user experience.</li> </ul> </details> <details> <summary>4. Country Option 🌍</summary> <ul> <li>I have provided users with a country option to filter videos.</li> <li>With this option, users can embark on a journey around the world and become creative thinkers.</li> </ul> </details> <details> <summary>5. Autocomplete Search Bar</summary> <ul> <li>I created an Autocomplete Search bar using the Google Queries API - <em>https://suggestqueries.google.com/complete/search?client=youtube&ds=yt&num=10&q=${query}</em></li> <li>The Autocomplete Search bar provides a similar experience to YouTube for my application.</li> </ul> </details> <details> <summary>6. Mobile Responsive</summary> <ul> <li>This application is designed to be mobile-friendly, ensuring that users can enjoy its features on various devices.</li> </ul> </details> ## 2. Tech Stack 1. ⚛️ **[ReactJS](https://react.dev/)** - A popular JavaScript library for building user interfaces, known for its component-based architecture and efficient rendering. 2. 💎 **[Chakra UI](https://chakra-ui.com)** - A flexible and accessible UI component library for React that makes it easy to create visually appealing and responsive user interfaces. 3. Packages - [react-router-dom](https://reactrouter.com/web/guides/quick-start) - [react-icons](https://react-icons.github.io/react-icons/) - [react-infinite-scroll-component](https://www.npmjs.com/package/react-infinite-scroll-component) - [axios](https://axios-http.com/docs/intro) - [react-youtube](https://www.npmjs.com/package/react-youtube) - [framer-motion](https://www.framer.com/api/motion/) - [lodash](https://lodash.com/docs/) - [date-fns](https://date-fns.org/) - [numeral](https://numeraljs.com/) ## 3. Getting Started ▶️ Follow these steps to set up and run the project on your local machine. #### 1. Clone the Repository To get a local copy of this repository, run the following command in your terminal: ```sh git clone https://github.com/divyaGrvgithub/YouTube-Clone ``` #### 2. Navigate to the Project Change your working directory to the project folder: ```sh cd YouTube-Clone ``` #### 3. Install Dependencies Install the required packages using npm: ```sh npm i npm i -D tailwindcss ``` #### 4. API KEY Setup To fetch YouTube data, you'll need the following `API_KEYS`. Follow these steps to set them up: 1. Obtain a **YouTube API key from Google** by visiting [Google Developers - Getting Started](https://developers.google.com/youtube/v3/getting-started). If you need detailed instructions, you can also refer to [How to Get a YouTube API Key](https://blog.hubspot.com/website/how-to-get-youtube-api-key). 2. Get a YouTube V3 API key from [Rapid API - YouTube V3](https://rapidapi.com/ytdlfree/api/youtube-v31). If you haven't used Rapid API before, you'll need to sign up after signup subscribe to the **YouTube V3 API** for free. Once you have your API keys, proceed with the following: 3. Create a `.env` file in the `root` directory of your project. 4. Place your API key values in the `.env` file as shown below. Note that I've included two Google API keys as backups in case one exceeds its usage limits. ```sh REACT_APP_YOUTUBE_API_KEY_GOOGLE1=YOUR_API_KEY REACT_APP_YOUTUBE_API_KEY_GOOGLE2=YOUR_API_KEY REACT_APP_YOUTUBE_API_KEY_RAPIDAPI=YOUR_API_KEY ``` > Note :- The `REACT_APP` prefix is used to define environment variables in a React application. These variables are used during the build process and can be accessed in your code using `process.env.REACT_APP_VARIABLE_NAME`. #### 5. Start the Project Run the following command to launch the ReactJS project in your local environment: ```sh npm start ``` #### 6. Access the Project Open your web browser and go to [http://localhost:3000](http://localhost:3000) to view the project. That's it! You're now ready to explore the project locally. Happy coding! 🚀 <div align="center"> <h4>⭐️If you've found value in this, a star would be a wonderful way to say thanks..</h4> </div> ## 4. Understand Context API 🧠 `YoutubeContext.js` is a context module designed to simplify the management of YouTube data in your React application. It leverages the power of React's Context API to provide a centralized state and functions for fetching and handling YouTube data. Key Features: - Fetch trending videos based on country code. - Perform autocomplete suggestions for search queries. - Retrieve search results for videos based on user queries. - Efficiently handle API calls and loading states. - I have incorporated a second API for generateAutocomplete suggestions due to the first API's lack of mobile screen support. However, the first API offers unlimited access on desktop, which is why I decided to utilize both. - For the functions getSearchVideos and getTrendingVideo, I implemented the second API as a backup. This arrangement ensures that when the first API exceeds its usage limit, the second API can seamlessly take over and provide uninterrupted service. This approach enhances the reliability of the application and provides a smooth user experience. ## 5. How to Contribute 🤝 Thank you for considering contributing to this project! Your contributions make a real difference and help improve this project for everyone. Here are a few ways you can get involved: - **Report Bugs:** If you come across any bugs or issues, please [open an issue](https://github.com/divyGrvgithub/YouTube-Clone/issues) to let us know. Be sure to provide as much detail as possible. - **Suggest Enhancements:** Have an idea to make this project even better? Feel free to [create an issue](https://github.com/divyGrvgithub/YouTube-Clone/issues) to share your enhancement suggestions. - **Submit Pull Requests:** If you're technically inclined, you can submit a pull request with code changes. Make sure to follow our coding guidelines and explain the purpose of your pull request. - **Spread the Word:** If you love this project, a simple star or sharing it with others can make a big difference. We value every contribution, big or small, and appreciate your support in making this project better for the entire community. Thank you for being a part of it!
Building a YouTube clone with HTML, CSS, JavaScript, and React.js is a complex task. It involves creating a user interface, video playback, user authentication, database, and more. You'll need to follow tutorials and use resources to learn each aspect. Break it down into manageable steps and take your time.
css,gitignore,html,htmlcssjavascript,javascript,license,tailwind-css
2023-09-01T13:08:46Z
2023-09-02T10:40:10Z
null
1
0
120
0
2
8
null
BSD-3-Clause
JavaScript
epicestudar/FrontEnd-2semestre-2023-Senai
main
null
repository for frontend projects of the Senai DEV course
css,frontend,html,javascript,sites,websites
2023-08-10T17:00:11Z
2023-11-24T17:36:14Z
null
1
0
20
0
0
8
null
null
HTML
morshedulmunna/taskify
main
### Taskify is a Task management Web Base Software. Which one you can create a task in your team collaboration group? <br> [Live Webiste](https://taskify-drab.vercel.app/login) ### Common Features: - ##### User Authentication: - Implement user authentication and registration functionalities Like sign up, log in, and log out - Each user should have an Update profile Name, title, and bio. - ##### Task Creation and Management: - Allow users to create tasks with a title, description, due date, and priority level. - Users should be able to assign tasks to other team members. - Implement a way to mark tasks as completed or in progress. - ##### Team Collaboration: - Create a team-based environment where users can form teams and invite others to join. - Users should only be able to view and manage tasks within their team. - ##### Task Filtering and Sorting: - Provide options to filter tasks by their status (completed, in progress, pending) and due date. - Allow users to sort tasks by different criteria (priority, due date, etc.). - - ##### Bonus: - Create a "Dashboard" section that shows, How Many Tasks, Today's Date, and one Digital Clock. ##### UI UX View - Dashboard View ![image](https://github.com/morshedulmunna/taskify/assets/44342051/18cb67c9-1bfb-4980-aa7c-b42c7765f144) - Group Create View ![image](https://github.com/morshedulmunna/taskify/assets/44342051/9f38cef3-5d63-4a45-bcb3-92c9ab23c50f) - Task Management View ![image](https://github.com/morshedulmunna/taskify/assets/44342051/91ca49ba-e6b9-48c0-8231-231f3b7a2792) - Update Task Status ![image](https://github.com/morshedulmunna/taskify/assets/44342051/25183af7-2d3b-4c3d-bb51-48d595882024) - Profile View Also Can be Update Profile Info ![image](https://github.com/morshedulmunna/taskify/assets/44342051/9c1f73ed-d8ea-4502-8cff-2ce4ec3d325c) Design & Develop by morshedulmunna email: morshedulmunna1@gmail.com
Taskify is a Task Management Web application.
reactjs,tailwind-css,vercel,vite,indexeddb,javascript
2023-09-06T15:08:03Z
2023-09-28T04:37:10Z
null
2
1
38
0
2
8
null
null
JavaScript
sahil-bhanvadiya/agency-app
main
# Agency Web Application ## Description This is a web application designed to manage the operations of an agency. It includes features such as Client Management, Project Management, Task Assignment, Time Tracking, Invoicing and Billing, Reporting, Collaboration Tools. [Live demo here!](https://agency-app-navy.vercel.app/) ## Pictures ## Getting Started First, You need to clone the repo in local system. For run this app please use node lts version, I have used 18. After that, Do install all the packages and run the development server: ```bash npm i npm run dev ``` Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
An agency app template of nextjs 13.
css,html,javascript,nextjs,react,theme-ui,agency-website,salesforce
2023-09-05T18:18:39Z
2023-09-13T19:10:04Z
null
1
3
15
0
1
8
null
null
JavaScript
epicestudar/GameZone
main
null
video game event website
eletronics,events,games,gamezone,website,cards,css,html,javascript,responsive
2023-09-03T21:35:26Z
2023-09-11T17:15:31Z
null
1
0
3
1
0
8
null
null
CSS
KayaraSilveira/Abrace
main
null
O Abrace é um projeto de uma plataforma dedicada à promoção da solidariedade e ao apoio à comunidade. Nela, você pode facilmente criar e participar de projetos solidários, se conectando com outras pessoas que se interessam pelas mesmas causas.
django,javascript,python
2023-08-17T03:31:14Z
2023-09-28T01:54:21Z
null
6
14
94
0
0
7
null
null
JavaScript
galvinguy2002/OUTCOME-BASED-EDUCATION-OBE-AUTOMATION
main
# OUTCOME-BASED-EDUCATION-(OBE) AUTOMATION System that will facilitate the storing and evaluation of all the components of an OBE based curriculum<br> ![image](https://github.com/galvinguy2002/OUTCOME-BASED-EDUCATION-OBE-AUTOMATION/assets/119154626/6a0dedc6-22e4-43e8-93fe-ae3a7d1e0fb9) <br> It will evaluate as:<br> <b>STEP 1 <br> a.Course information b.Faculty profile c.Learning outcomes d.Course objective e.CLO-PO mapping f.Academic session <br> STEP 2 <br> a.Topic selection and alignment with CLO b.Teaching learning strategy <br> STEP 3 <br> a.Assessment strategy b. Assessment tool selection c. Evaluation policy and grading <\b> # OUTPUT CO-PO-mapping + CO-PSO-mapping + PO-PSO-mapping + attainment sheet + final attainment using last year # PREVIEW SCREENSHOTS ![image](https://github.com/galvinguy2002/OUTCOME-BASED-EDUCATION-OBE-AUTOMATION/assets/119154626/c7c18221-f109-4c86-b670-cdb83e337fb8)<br> ![image](https://github.com/galvinguy2002/OUTCOME-BASED-EDUCATION-OBE-AUTOMATION/assets/119154626/9785b822-9baa-4e8d-b774-dca37f53d634)<br> ![image](https://github.com/galvinguy2002/OUTCOME-BASED-EDUCATION-OBE-AUTOMATION/assets/119154626/21f1ab2b-d247-4630-9373-a44b3980d1cf)<br> ![image](https://github.com/galvinguy2002/OUTCOME-BASED-EDUCATION-OBE-AUTOMATION/assets/119154626/e11d058b-cdea-433b-81e7-9c769edf8d54)<br> ![image](https://github.com/galvinguy2002/OUTCOME-BASED-EDUCATION-OBE-AUTOMATION/assets/119154626/6554d675-4efb-4a0c-8d98-9f890b74925b)<br> ![image](https://github.com/galvinguy2002/OUTCOME-BASED-EDUCATION-OBE-AUTOMATION/assets/119154626/1172bd8e-d541-491f-802b-72fe480c43d4)<br> ![image](https://github.com/galvinguy2002/OUTCOME-BASED-EDUCATION-OBE-AUTOMATION/assets/119154626/bb24304f-2cbc-48bb-86a5-a73e6288c190)<br> ![image](https://github.com/galvinguy2002/OUTCOME-BASED-EDUCATION-OBE-AUTOMATION/assets/119154626/6581a55a-9ea0-4beb-b0a4-22527ad2a6d7)
A revolutionary unique project to facilitate the automation of OBE curriculum and reduce hassle I.E. the only ONE ON GITHUB
css,html,java,javascript,spring-boot,vanilla-js,mysql-database,tomcat,automation
2023-08-21T20:14:26Z
2023-09-28T18:27:34Z
null
1
0
5
1
0
7
null
null
HTML
Lucas-Erkana/SpeakEasyBot
develop
"# SpeakEasyBot"
A React Native project that leverages the power of Google Text-to-Speech API and OpenAI's advanced models to generate spoken audio responses and context-aware suggestions, enhancing the user experience.
javascript,nestjs,openai,react-native,typescript
2023-08-30T05:11:27Z
2023-08-30T05:21:56Z
null
1
0
2
0
0
7
null
null
TypeScript
yahaielbnna/gm-mode
main
<p ><img src="https://github.com/yahaielbnna/gm-mode/blob/main/gmode.png" width="250" alt="gmode Logo"></p> # What is gm-mode? 🤷‍♂️ <p>gm-mode is a JavaScript library that makes your website more modern and awesome with light and dark modes. It saves your time and gives you all control over your style and codes.</p> <b>Make your website modern and awesome with a low number of codes!🌟</b> # Why gm-mode? 🤔 <ul> <li> <b> Time saving </b><br> <p>Nowadays we are in a race with time! a good team is a team that finds a fast way to create a thing without losing any professionalism.</p> <p>So gm-mode works to save your coding time and helps you to find a fast way to use your creativity in creating a modern website.</p> </li> <li> <b> Over control </b><br> <p>You don't have to be restricted by the available features and colors in each library. You have a right to use your creativity in choosing the colors and creating your website as you imagine.</p> <p>So gm-mode works to make you free to make your imagination a real website.</p> </li> </ul> # Installation 🔥 ```sh npm i gmode ``` # Usage > NOTE THAT: this simplified code for the library. You can find all methods and explain them in the next section. ```Javascript require('gmode'); new GMode( 'button.float', { StyleSrc: "assets/style/mode/light-mode.css", button: { innerhtml: `<i class="fa-solid fa-moon fa-2xl"></i>`, } }, { StyleSrc: "assets/style/mode/dark-mode.css", button: { innerhtml: `<i class="fa-solid fa-sun fa-2xl"></i>`, } }); ``` # Explain ```Javascript require('gmode'); new GMode( 'button.float', // 1st parameter --> The query selector of the element that the user will click on { // 2nd parameter --> the data set of the Light mode StyleSrc: "assets/style/mode/light-mode.css", // The CSS file dir. that has the light theme style class: "light", // The class name that will add to the main app container at the light mode attr: { // the attributes that will add to the main app container at the light mode 'light': 'yes' }, button: { // the element that the user clicks on properties at the Light mode innerhtml: `<i class="fa-solid fa-moon fa-2xl"></i>`, // the inner html of the element at the light mode class: ['class_light_1', 'class_light_2'], // the class names for the element at the light mode attr: { 'light': 'yes' } // the attributes for the element at the light mode } }, { // 3rd parameter --> the data set of the Dark mode StyleSrc: "assets/style/mode/dark-mode.css", // The CSS file dir. that has the dark theme style class: "dark", // The class name that will add to the main app container at the dark mode attr: { // the attributes that will add to the main app container at the dark mode 'light': 'no' }, button: { // the element that the user clicks on properties at the dark mode innerhtml: `<i class="fa-solid fa-sun fa-2xl"></i>`, // the inner html of the element at the dark mode class: ['class_dark_1', 'class_dark_2'], // the class names for the element at the dark mode attr: { 'light': 'no' } // the attributes for the element at the dark mode } }, 'body', // 4th parameter --> The main app container (will contain the class names and attributes) * The main value = 'body' true // 5th parameter --> is the main theme for the website is Light ? * The main value = true ); ```
Creating dark & light toggling website. Make your own colors in both dark and light theme with high controllable functions.
color-toggle,dark-mode,javascript,javascript-library,light-mode,shortcode,ui,web-design
2023-08-26T18:00:47Z
2024-02-10T12:58:30Z
2024-02-10T12:02:20Z
1
1
28
1
0
7
null
MIT
JavaScript
petya0927/real-dark-mode
main
# real-dark-mode A simple npm package to create the real dark mode experience on your website. It creates a spotlight effect on the page following your mouse, making the rest of the page darker. [Demo on Vercel](https://real-dark-mode-demo.vercel.app/) ## Installation ```bash npm install real-dark-mode ``` ## Usage ```javascript import { realDarkMode } from "real-dark-mode"; realDarkMode(); ``` When you call the `realDarkMode` function, it will start the dark mode effect. To stop it, call the function again. The effect will stop if the user scrolls. We made a plain javascript implementation for websites that don't use npm. It's available in the [plain-js directory](https://github.com/petya0927/real-dark-mode/tree/main/plain-js) and you can use it by importing the index.js file. It's only available in the repo, not the npm package! ```html <script type="module"> import realDarkMode from "./plain-js/index.js"; realDarkMode(); </script> ``` ### Options | Option | Type | Default | Description | | ------- | ------ | ------- | --------------------------------------------------------------------------- | | color | string | #000000 | The color of the backdrop. Can be any valid CSS color. | | size | number | 100 | The size of the spotlight in pixels. | | falloff | number | 0.5 | The difference of the inner circle's size commpared to the outer one. | | opacity | number | 0.95 | The opacity of the spotlight. Must be a number between 0 and 1 (inclusive). | ```javascript import { realDarkMode } from "real-dark-mode"; realDarkMode({ color: "#000000", size: 100, falloff: 0.5, opacity: 0.95, }); ``` The package also exports a RealDarkModeOptions interface to deeper typescript integration. ## Contributing Pull requests are welcome. For changes, please open an issue first to discuss what you would like to change. After that, feel free to open a pull request. ## License [MIT](https://github.com/petya0927/real-dark-mode/blob/main/LICENSE)
A simple npm package to create the real dark mode experience on your website. It creates a spotlight effect on the page following your mouse, making the rest of the page darker.
dark-mode,javascript,npm,package,typescript,website,real-dark-mode,flashlight,spotlight
2023-09-01T15:34:58Z
2024-03-08T08:45:41Z
2023-09-01T18:48:57Z
3
3
15
0
4
7
null
MIT
TypeScript
tsparticles/vue
main
[![banner](https://particles.js.org/images/banner3.png)](https://particles.js.org) # @tsparticles/vue [![npm](https://img.shields.io/npm/v/@tsparticles/vue)](https://www.npmjs.com/package/@tsparticles/vue) [![npm](https://img.shields.io/npm/dm/@tsparticles/vue)](https://www.npmjs.com/package/@tsparticles/vue) [![GitHub Sponsors](https://img.shields.io/github/sponsors/matteobruni)](https://github.com/sponsors/matteobruni) Official [tsParticles](https://github.com/matteobruni/tsparticles) VueJS 3.x component [![Slack](https://particles.js.org/images/slack.png)](https://join.slack.com/t/tsparticles/shared_invite/enQtOTcxNTQxNjQ4NzkxLWE2MTZhZWExMWRmOWI5MTMxNjczOGE1Yjk0MjViYjdkYTUzODM3OTc5MGQ5MjFlODc4MzE0N2Q1OWQxZDc1YzI) [![Discord](https://particles.js.org/images/discord.png)](https://discord.gg/hACwv45Hme) [![Telegram](https://particles.js.org/images/telegram.png)](https://t.me/tsparticles) [![tsParticles Product Hunt](https://api.producthunt.com/widgets/embed-image/v1/featured.svg?post_id=186113&theme=light)](https://www.producthunt.com/posts/tsparticles?utm_source=badge-featured&utm_medium=badge&utm_souce=badge-tsparticles") <a href="https://www.buymeacoffee.com/matteobruni"><img src="https://img.buymeacoffee.com/button-api/?text=Buy me a beer&emoji=🍺&slug=matteobruni&button_colour=5F7FFF&font_colour=ffffff&font_family=Arial&outline_colour=000000&coffee_colour=FFDD00"></a> ## Installation ```shell script yarn add @tsparticles/vue ``` ## Usage ```javascript import Particles from "@tsparticles/vue"; createApp(App).use(Particles); ``` ### Demo config ```html <template> <div id="app"> <vue-particles id="tsparticles" :particlesInit="particlesInit" :particlesLoaded="particlesLoaded" url="http://foo.bar/particles.json" /> <vue-particles id="tsparticles" :particlesInit="particlesInit" :particlesLoaded="particlesLoaded" :options="{ background: { color: { value: '#0d47a1' } }, fpsLimit: 120, interactivity: { events: { onClick: { enable: true, mode: 'push' }, onHover: { enable: true, mode: 'repulse' }, resize: true }, modes: { bubble: { distance: 400, duration: 2, opacity: 0.8, size: 40 }, push: { quantity: 4 }, repulse: { distance: 200, duration: 0.4 } } }, particles: { color: { value: '#ffffff' }, links: { color: '#ffffff', distance: 150, enable: true, opacity: 0.5, width: 1 }, move: { direction: 'none', enable: true, outMode: 'bounce', random: false, speed: 6, straight: false }, number: { density: { enable: true, area: 800 }, value: 80 }, opacity: { value: 0.5 }, shape: { type: 'circle' }, size: { random: true, value: 5 } }, detectRetina: true }" /> </div> </template> ``` ```javascript //import { loadFull } from "tsparticles"; // if you are going to use `loadFull`, install the "tsparticles" package too. import { loadSlim } from "@tsparticles/slim"; // if you are going to use `loadSlim`, install the "@tsparticles/slim" package too. const particlesInit = async engine => { //await loadFull(engine); await loadSlim(engine); }; const particlesLoaded = async container => { console.log("Particles container loaded", container); }; ``` ### TypeScript errors If TypeScript returns error while importing/using Particles plugin try adding the following import before the previous code: ```typescript declare module "@tsparticles/vue"; ``` ## Demos The demo website is [here](https://particles.js.org) <https://particles.js.org> There's also a CodePen collection actively maintained and updated [here](https://codepen.io/collection/DPOage) <https://codepen.io/collection/DPOage> ## Migrating from Vue 2.x to Vue 3.x If you are migrating your project from Vue 2.x to 3.x you need to these steps: - Change the dependency from `vue2-particles` to `@tsparticles/vue` - Update the `node_modules` folder executing `npm install` or `yarn` - Change the `use` function from `Vue.use(Particles)` to `createApp(App).use(Particles)`. The `<Particles />` tag syntax remains the same, so you don't need to do any additional action.
tsParticles official Vue.js component library
hacktoberfest,javascript,nuxt,nuxt2,nuxt3,tsparticles,typescript,vue,vuejs,vuejs2
2023-08-26T17:50:06Z
2023-12-21T15:58:32Z
null
2
20
7
2
0
7
null
MIT
Vue
teamkooestscholar/002JS-check-for-even-or-odd
main
# EASY: 002 JS - Check For Even or Odd ## Description Write a JavaScript function that takes an integer as an argument and returns "Even" if it's an even number or "Odd" if it's an odd number. ## Sample solution ```javascript function checkEvenOrOdd(number) { if (number % 2 === 0) { return "Even"; } else { return "Odd"; } } ``` ## Bonus Challenges * Modify the function to handle non-integer inputs gracefully. Return an error message if the input is not an integer. (Hint: Use `typeof` operator). **[+5 extra credit points]** * Implement the function without using conditional statements (if-else). (Hint: Use `Math.floor` and `Math.abs` functions). **[+5 extra credit points]** * Extend the function to check if the input is a positive or negative even or odd number. (Hint: Use `Math.sign` function). **[+5 extra credit points]** ## How to answer? * Kindly go to `src` directory and edit `solution.js` file. * Replace the `commented code` with your solution.
Write a JavaScript function that takes an integer as an argument and returns "Even" if it's an even number or "Odd" if it's an odd number.
easy,javascript,assessment
2023-09-07T13:13:21Z
2023-09-09T21:26:04Z
null
1
3
5
0
1
7
null
Unlicense
HTML
Rednexie/perma.db
main
PermaDB is a database management library, uses better-sqlite3 under the hood. # Features The highlight of perma.db is that it makes it easy to process and access your data. - Speed: PermaDB comes with an option to work on memory until the end of the process, and also saves your data into the database. This makes it very fast. - Ease: You can either use the database with a single database or use databases with custom options. - All-in-one: PermaDB unites key-value architecture with SQL. - Integration: SQLite3 usage is just a function away. - Space: Unlike other alternatives, your database takes up less space. - Versatile: PermaDB offers both Python and Node.js libraries, along with the Cloud Database API. # Links PermaDB documentation: https://rednexie.gitbook.io/permadb Node Package Manager: https://npmjs.com/perma.db Python Module: https://github.com/LegendMan46/permaDB
key-value database library in node.js, python and soon javascript
async,asynchronous,better-sqlite,javascript,key-value,no-sql,node,nodejs,nosql,nosql-database
2023-08-30T12:12:06Z
2024-05-01T21:01:46Z
null
1
1
129
0
0
7
null
MIT
JavaScript
hafiz1379/react-tutorial-exercise
develop
# Getting Started with Create React App This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app). ## Available Scripts In the project directory, you can run: ### `npm start` Runs the app in the development mode.\ Open [http://localhost:3000](http://localhost:3000) to view it in your browser. The page will reload when you make changes.\ You may also see any lint errors in the console. ### `npm test` Launches the test runner in the interactive watch mode.\ See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information. ### `npm run build` Builds the app for production to the `build` folder.\ It correctly bundles React in production mode and optimizes the build for the best performance. The build is minified and the filenames include the hashes.\ Your app is ready to be deployed! See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information. ### `npm run eject` **Note: this is a one-way operation. Once you `eject`, you can't go back!** If you aren't satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project. Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you're on your own. You don't have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn't feel obligated to use this feature. However we understand that this tool wouldn't be useful if you couldn't customize it when you are ready for it. ## Learn More You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started). To learn React, check out the [React documentation](https://reactjs.org/). ### Code Splitting This section has moved here: [https://facebook.github.io/create-react-app/docs/code-splitting](https://facebook.github.io/create-react-app/docs/code-splitting) ### Analyzing the Bundle Size This section has moved here: [https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size](https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size) ### Making a Progressive Web App This section has moved here: [https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app](https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app) ### Advanced Configuration This section has moved here: [https://facebook.github.io/create-react-app/docs/advanced-configuration](https://facebook.github.io/create-react-app/docs/advanced-configuration) ### Deployment This section has moved here: [https://facebook.github.io/create-react-app/docs/deployment](https://facebook.github.io/create-react-app/docs/deployment) ### `npm run build` fails to minify This section has moved here: [https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify](https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify)
Creating a To-Do's App using React
css,html,javascript,react
2023-08-16T04:24:37Z
2023-08-16T05:27:21Z
null
1
2
21
0
0
7
null
MIT
JavaScript
isaac-lal/CodePath-WEB102
main
# CodePath - WEB 102: Intermediate Web Development | Isaac Lal #### This repository contains all the work that I have done in CodePath WEB 102 during the Fall 2022 semester. #### Technologies utilized: <ul> <li>HTML</li> <li>CSS</li> <li>JavaScript</li> <li>React</li> <li>Supabase</li> </ul>
The complete CodePath WEB102 project files for Fall 2022.
database,javascript,react,web-development
2023-08-23T23:43:52Z
2023-08-24T00:23:40Z
null
1
0
13
0
0
7
null
null
JavaScript
ricardonunez-io/queue-benchmarks
master
# Javascript (Bun) vs. Go ## Blazingly Fast Async/Synchronous Queue Benchmarks With the recent release of Bun 1.0, there's been a lot of talk on Twitter about its incredibly impressive performance, as well as how it fares against faster languages like Go. I'm currently building an application that's incredibly data intensive where each service deals with hundreds of thousands of datapoints per request, with arrays reaching up to millions of elements after serializing to flatbuffers, so I wanted to make a benchmark to see if Bun would fit my use case of efficiently massaging the data I need and aggregating it from a variety of other endpoints/databases, since many of my services are already built in Go. I'm building the frontend soon, so if I can leverage Javascript for more of the backend, it'll make the rest of development less fragmented for my one person team (of me). Many of the benchmarks I've seen online have been on IO/syscall intensive tasks where the program isn't CPU or memory bound, so I wanted to create a benchmark more representative of real-world use cases with data transformations among large data objects rather than syscall driven benchmarks like DB retrieval or JSON parsing where Bun is heavily optimized. Why? Because although Bun is heavily optimized for these kinds of tasks (i.e. using SIMD for text parsing and JSON parsing), Go can leverage CGo to use simdjson or just use `simdjson-go` or another library to match it, in which case it's a battle of libraries, not languages, though some would argue Bun's parsing is native anyways. Another note: although Javascript is definitely a wider used language than Go and probably easier to learn for most people, even with Go's strong typing, the implementations in both languages ended up being almost the exact same amount of code. It's incredible how succinct the language is given its performance, but just how performant is it compared to Javascript ran with Bun? We'll get into it now: The benchmarks themselves are two-fold for each language. ### Async Firstly, I wanted to test the async capabilities of both language when it comes to data processing in a queue. > [!IMPORTANT] > It's worth noting that for the sake of the benchmark, "async" doesn't mean parallel execution. For CPU-bound tasks, Javascript's event loop doesn't allow for parallel execution without the usage of worker threads, so instead, I simply used `Promise.all()` in JS (which still executes each promise serially, not in parallel) and goroutines & channels in Go (which, in this case, also execute each concurrent task serially due to the locking nature of channels in the way I used them). > > This way, I can get as true of a 1:1 comparison as possible between Go and Javascript since Go can perform true parallel execution with goroutines, but that would've been an unfair advantage since serial execution is the design of Javascript, not necessarily a performance bottleneck when comparing execution times. > > If I wanted to test true parallel execution, I would've used a SharedArrayBuffer in Javascript across many worker-threads and a similar channel structure or mutexes but with random, parallel execution in Go, but then dealing with race conditions would've been less fun. Both implementations were as close to identical as I could make them, and I tried to limit object creation in Javascript as much as possible (to avoid unnecessary/expensive garbage collection) so as to not give Go an unfair advantage. I used pre-allocation for the array to avoid expensive copies of objects, similar to how Go can instantiate a channel/array with a predefined size. As for the benchmark itself, we're going to be testing each language/runtime's ability to concurrently "process" a queue (array in JS/channel in Go) by having each async task/goroutine go through an array, assign a variable to the value of that task's index in the array, increment the variable, and then replace that same index's value with the incremented variable. The channel/array will be of length `n` where `n` is also equal to the number of tasks/goroutines we want to test. ### Synchronous For the synchronous benchmark, the goal was simple. Write a for loop that accomplishes the same as above where each iteration over the loop retrieves the value of the array/channel at the index of the iteration's number, assigns it to a variable, icrements the variable, and reassigns the item back to the array/channel. The channel/array will also be of length `n` where `n` is equal to the number of tasks/goroutines we want to test. ## Testing To perform the benchmarks, I used [Hyperfine](https://github.com/sharkdp/hyperfine) for the speed tests and [GNU Time](https://www.gnu.org/software/time/) for the resource consumption tests (I couldn't figure out Valgrind and it scared me). I ran multiple executions of each program, incrementing the number of tasks/goroutines by 10x each iteration, starting at 100 tasks/goroutines and ending at 10,000,000. To execute the tests, first, clone the repo: ```zsh git clone https://github.com/ricardonunez-io/queue-benchmarks/ ``` Then, build the Go binaries: ```zsh cd queue-benchmarks/go/async && go build main.go && cd ../.. && cd queue-benchmarks/go/sync && go build main.go ``` Finally, run the tests by `cd`ing back to the `queue-benchmarks` folder and executing `tests.sh` and `memory-tests.sh`, passing in the number of tasks/goroutines you'd like to run per test as the argument, i.e.: ```zsh ./tests.sh 100 ./memory-tests.sh 10000 ``` ## Results ### Resource Usage I ran the tests on a 1 core, 2Gb RAM server hosted in [Linode's](https://linode.com) US-East region to both limit any multithreading advantage from Go as well as represent a real world scenario for a realistic—albeit maybe big container's resources. I didn't use Docker so as to not overcomplicate things since I was already using a small, 1 core server. Firstly, resource usage. Speed might seem like an important test, but resource usage on a server tells you a lot about the constraints of a lanaguage, especially if there's bottlenecks that could translate to requests-per-second limits in production, heap out of memory errors, forced server restarts, etc, because my MacBook with 12 cores and 64Gb of RAM (+ Philz Coffee) isn't representative of the real world like Cloudflare Workers with their 128Mb memory limit. For CPU usage, Bun was typically either neck-and-neck with or beating Go, with iterations of 1M and 10M tasks being nearly 3x less CPU intensive than Go. We'll get to why in a minute, but in terms of memory usage, Go's memory management and compiled nature makes it very difficult for any runtime/interpreter to compete, even one as performant as Bun's. Here are the results from running GNU Time (`/usr/bin/time -v`) on each language's async/synchronous program after warming each file's execution up 100 times to prepopulate system caches. ![async-memory](https://github.com/ricardonunez-io/queue-benchmarks/assets/113212961/de1accc5-e8b2-4769-ad36-d52e7ff8de1b) ![sync-memory](https://github.com/ricardonunez-io/queue-benchmarks/assets/113212961/e5206d1b-6145-457a-a911-6e09b808720b) <details> <summary>Click here to see the full table of the data for the resource consumption benchmark.</summary> <br/> | Language | Async | Tasks/Goroutines | CPU usage (%) | Maximum Resident Set Size (Mb) | |:-----------|:--------|:-------------------|:----------------|:---------------------------------| | Go | Yes | 100 | 91% | 3.336 | | Javascript | Yes | 100 | 85% | 50.164 | | Go | Yes | 1,000 | 100% | 5.398 | | Javascript | Yes | 1,000 | 74% | 61.512 | | Go | Yes | 10,000 | 88% | 21.855 | | Javascript | Yes | 10,000 | 52% | 65.277 | | Go | Yes | 100,000 | 100% | 87.863 | | Javascript | Yes | 100,000 | 41% | 112.918 | | Go | Yes | 1,000,000 | 99% | 180.340 | | Javascript | Yes | 1,000,000 | 38% | 429.168 | | Go | Yes | 10,000,000 | 99% | 359.570 | | Javascript | Yes | 10,000,000 | 37% | 1,807.570 | | Go | No | 100 | 81% | 3.352 | | Javascript | No | 100 | 100% | 47.656 | | Go | No | 1,000 | 100% | 3.352 | | Javascript | No | 1,000 | 90% | 50.211 | | Go | No | 10,000 | 83% | 3.355 | | Javascript | No | 10,000 | 100% | 54.715 | | Go | No | 100,000 | 86% | 3.367 | | Javascript | No | 100,000 | 90% | 58.684 | | Go | No | 1,000,000 | 100% | 11.488 | | Javascript | No | 1,000,000 | 92% | 77.320 | | Go | No | 10,000,000 | 93% | 80.656 | | Javascript | No | 10,000,000 | 90% | 139.293 | </details> As you can see, for each iteration of the async programs, memory usage is dramatically higher than the synchronous equivalent. However, the most important thing to note here is that with the exception of the program ran with 100,000 async tasks where Bun's memory usage is only about 28% higher, Go's memory usage is usually about 2-3x lower than Bun's at 10,000 tasks and above, with the lower iterations using between 12x-16x less memory. This is a dramatic difference, and running the tests multiple times gave very similar results each time, though I can't say what the statistical significance was on each iteration. Especially for the iteration with 100,000 tasks/goroutines, this seemed to be Bun's sweet spot and Go's weak spot, with Go occasionally using slightly more memory (within 100Kb) as Bun. ### Speed Now, for the speed tests. Here's where the CPU usage really begins to explain itself. Given that these programs are, for the most part, CPU-bound due to the fact they are performing computations (incrementing an item that's assigned from an array and then placing it back in the array) more so than waiting on syscalls or performing IO bound tasks, Bun's lower CPU usage can be explained by one thing: speed. Although it does fair well against Go in terms of speed for IO/syscall based operations like running a web server where JSON serialization of database objects might be the most expensive operation ([Elysia is a great example of how performant this can be in Javascript](https://elysiajs.com)), Go's speed is still farther ahead of Bun's when it comes to processing instructions efficiently and quickly. This means Go's CPU usage % will also be higher due to the fact that it's simply processing approximately the same amount of instructions at a quicker rate. However, Bun's speed is impressive when it hits the same sweet spot of 100k to 1M async tasks, where it's actually able to compete with Go, having only a 20% slowdown in speed at 100k tasks and only a ~2% slowdown at 1M tasks, *within a standard deviation* of Go's benchmark. At 10 million, the difference widens again in Go's favor, but having 1 million promises run concurrently on a 1 million item array in Javascript and being at essentially the same speed as Go using goroutines is incredibly impressive, and for those running workloads that aren't as memory constrained (i.e. longer running servers or larger containers), this speed is going to make a huge difference when considering Bun as an alternative to Node, along with Bun's very fast startup times. > [!NOTE] > At 1 million promises, the memory overhead was 480Mb, so it still isn't a lean program by any means and won't work well in execution environments like Cloudflare Workers. > > Because the memory usage is still quite high compared to Go, you still might run into `heap out of memory` errors if running programs that process this much data. ![async-time](https://github.com/ricardonunez-io/queue-benchmarks/assets/113212961/46d33269-eb35-4e38-a730-538b1732fb07) ![sync-time](https://github.com/ricardonunez-io/queue-benchmarks/assets/113212961/1f4b11d2-cdc8-4ba3-a1b6-1d790f28f883) <details> <summary>Click here to see the full table of the data for the speed benchmark.</summary> <br/> | Language | Async | Tasks/Goroutines | Mean Time | Std. Dev. | Range (min) | Range (max) | Runs | |:-----------|:------|:-----------------|:----------|:----------|:------------|:------------|:-----| | Go | Yes | 100 | 0.6 ms | 0.1 ms | 0.5 ms | 3.1 ms | 4161 | | Javascript | Yes | 100 | 13.1 ms | 0.8 ms | 11.3 ms | 16.5 ms | 213 | | Go | Yes | 1,000 | 1.1 ms | 0.1 ms | 0.9 ms | 3.3 ms | 2421 | | Javascript | Yes | 1,000 | 22.3 ms | 1.5 ms | 17.4 ms | 27.3 ms | 152 | | Go | Yes | 10,000 | 7.9 ms | 0.4 ms | 7.5 ms | 10.6 ms | 369 | | Javascript | Yes | 10,000 | 40.1 ms | 1.5 ms | 36.7 ms | 42.9 ms | 72 | | Go | Yes | 100,000 | 98.2 ms | 6.7 ms | 90.1 ms | 122.1 ms | 31 | | Javascript | Yes | 100,000 | 117.7 ms | 2.5 ms | 112.4 ms | 125.4 ms | 25 | | Go | Yes | 1,000,000 | 756.1 ms | 21.2 ms | 711.8 ms | 793.2 ms | 10 | | Javascript | Yes | 1,000,000 | 769.8 ms | 10.6 ms | 757.0 ms | 786.2 ms | 10 | | Go | Yes | 10,000,000 | 7.197 s | 0.079 s | 7.077 s | 7.296 s | 10 | | Javascript | Yes | 10,000,000 | 8.863 s | 0.245 s | 8.679 s | 9.442 s | 10 | | Go | No | 100 | 0.6 ms | 0.1 ms | 0.5 ms | 2.6 ms | 4262 | | Javascript | No | 100 | 11.3 ms | 0.7 ms | 8.8 ms | 13.1 ms | 291 | | Go | No | 1,000 | 0.6 ms | 0.1 ms | 0.5 ms | 2.0 ms | 4493 | | Javascript | No | 1,000 | 11.5 ms | 0.6 ms | 10.1 ms | 13.9 ms | 269 | | Go | No | 10,000 | 0.6 ms | 0.0 ms | 0.5 ms | 1.0 ms | 3985 | | Javascript | No | 10,000 | 15.1 ms | 0.7 ms | 13.5 ms | 16.7 ms | 193 | | Go | No | 100,000 | 0.6 ms | 0.1 ms | 0.5 ms | 1.0 ms | 4055 | | Javascript | No | 100,000 | 18.5 ms | 1.1 ms | 15.9 ms | 22.2 ms | 179 | | Go | No | 1,000,000 | 1.6 ms | 0.1 ms | 1.5 ms | 3.6 ms | 1734 | | Javascript | No | 1,000,000 | 26.2 ms | 1.6 ms | 23.1 ms | 29.6 ms | 108 | | Go | No | 10,000,000 | 13.6 ms | 0.5 ms | 11.9 ms | 15.5 ms | 214 | | Javascript | No | 10,000,000 | 65.5 ms | 1.4 ms | 62.8 ms | 68.7 ms | 45 | </details> ## Conclusion This benchmark was very insightful into the performance of Bun and getting deeper than just the standard benchmarks we've grown accustomed to of dependency install times, server startup times, etc. While Go is most likely going to remain the clear option for those building performance critical network/backend services, it's great to see a new contender revolutionizing the Javascript space with performance that *can* rival performance-optimized languages in terms of speed, even with the overhead of a runtime. The biggest takeaway I had, however, is to pre-allocate memory wherever possible, because who knows how Bun would've performed if I had used a dynamic array with no instantiation. I'm likely going to do this same benchmark but with Bun vs. Node and update this to see how that turns out as well. Thank you!
Bun vs. Go - Blazingly Fast Async/Synchronous Queue Benchmarks
async,benchmarks,bun,go,golang,javascript
2023-09-11T18:33:38Z
2023-09-13T00:10:00Z
null
1
0
22
0
0
7
null
null
Go
YuukioFuyu/Serverless-Temp-File-Sharing
main
<h2 align="center">Happy 78th Indonesian Independence Day</h2> <p align="center" valign="top"> <a href="https://en.wikipedia.org/wiki/Independence_Day_(Indonesia)"><img src="https://upload.wikimedia.org/wikipedia/commons/6/6f/78_RI_2023.svg" width="20%" alt="Indonesian Independence Day Image"/></a> </p> <h4 align="center">In honor of Indonesia's Independence Day, we present a special project that embodies the spirit of unity and progress.</h4> <hr /> # Serverless Temporary File Sharing using Cloudflare Worker and Google Drive API **Exploring Free and Unlimited Sharing Platforms** Discover the world of streamlined and costless file sharing through our innovative Serverless Temporary File Sharing solution. Utilizing Cloudflare Worker and the Google Drive API, this platform empowers you to share files without constraints. Uploaded files find a home on Google Drive without an expiration date, ensuring they're available until you decide to download. Once downloaded, files are automatically removed, maintaining your drive's tidiness. Simplify cross-platform sharing with our built-in QR code generator. Experience efficient, worry-free, and secure file sharing at its best. <hr> ![Yuuki0 Temporary File Sharing](https://github.com/YuukioFuyu/Serverless-Temp-File-Sharing/assets/79379934/c564b9c3-d89d-4d1d-9a5d-e8ead2696389) ![File Shared](https://github.com/YuukioFuyu/Serverless-Temp-File-Sharing/assets/79379934/6fcf20ed-dea5-4830-b7f2-5d6d4372c8d3) <hr> # Installation ## Getting Google Drive API Credentials for Cloudflare Worker Project 1. **Create a Google Cloud Platform Project:** - Go to the Google Cloud Console: [https://console.cloud.google.com/](https://console.cloud.google.com/) - Create a new project or select an existing project. 2. **Enable the Google Drive API:** - In your Google Cloud Console project, navigate to the API Library. - Search for "Google Drive API" and enable it. 3. **Create OAuth 2.0 Credentials:** - In the Google Cloud Console, go to the "Credentials" section. - Click the "Create Credentials" button and select "OAuth client ID." - Choose "Web application" as the application type. - Provide a name for your OAuth 2.0 client ID. - Add the following redirect URIs: - `https://your-worker-subdomain.your-subdomain.workers.dev/_oauth` - `https://your-worker-subdomain.your-subdomain.workers.dev/oauth2callback` Replace `your-worker-subdomain` and `your-subdomain` with your actual Cloudflare Worker subdomain and domain. - Click "Create" to generate your OAuth 2.0 client ID and client secret. 4. **Obtain the Refresh Token:** - Use the [OAuth 2.0 Playground](https://developers.google.com/oauthplayground) to obtain the refresh token. - Click on the gear icon in the top right corner and check "Use your own OAuth credentials." - Enter your OAuth client ID and client secret created in the previous steps. - Scroll down and find "Drive API v3" in the list of APIs. Select the scope(s) you need. - Click the "Authorize APIs" button. - Follow the steps to authorize the Playground to access your Google Drive. - Once authorized, exchange the authorization code for tokens. - The refresh token will be included in the response. Make sure to note it down. 5. **Use the Credentials in Your Cloudflare Worker:** - Store the client ID, client secret, and refresh token securely as environment variables or secrets in your Cloudflare Worker. ## Deploying `worker.js` from GitHub to Cloudflare Worker with Free Plan 1. **Prerequisites:** - Make sure you have a Cloudflare account. If not, sign up at [https://www.cloudflare.com](https://www.cloudflare.com). 3. **Create a Cloudflare Worker:** - Log in to your Cloudflare account. - Go to the "Workers" section from the Cloudflare dashboard. - Click the "Create a Worker" button. 3. **Configure GitHub Repository:** - Fork the repository "Serverless-Temp-File-Sharing" on [Yuukio Fuyu Github Page](https://github.com/YuukioFuyu/Serverless-Temp-File-Sharing). - Go to your forked repository. - Navigate to the `worker.js` file in the repository. 4. **Modify the Script:** - Open the `worker.js` file in your forked repository. - Make any necessary configuration changes or adjustments as needed for your deployment. - Edit this object in the script with the details you generated above. ``` GOOGLE_CLIENT_ID: "", GOOGLE_CLIENT_SECRET: "", GOOGLE_REFRESH_TOKEN: "", DESTINATION_FOLDER_ID: "", ``` > The Destination Folder ID can be found at the back of the Google Drive URL when you open one of your folders. > Example: `https://drive.google.com/drive/u/0/folders/`[YOUR_DESTINATION_FOLDER_ID] 5. **Deploy to Cloudflare:** - Copy the content of the `worker.js` file in your forked repository. 7. **Create a New Cloudflare Worker:** - Go back to your Cloudflare Workers dashboard. - In the "Script" section, paste the content of the `worker.js` file. 7. **Deploy and Test:** - Click the "Save and Deploy" button to deploy the worker. - Once the deployment is successful, you'll receive a worker URL. 8. **Configure Routes:** - To route incoming requests to your Cloudflare Worker, configure the routes. - Go to the "Routes" section in the Cloudflare Workers dashboard. - Add a new route (e.g., `https://your-subdomain.your-domain.com/*`) and associate it with the deployed worker. 9. **Testing:** - Access the URL of your worker (e.g., `https://your-subdomain.your-domain.com/`) to test the deployed script.
Utilize Cloudflare Worker and Google Drive API for Serverless Temporary File Sharing Based on JavaScript
api,auto-delete,auto-upload,bootstrap,cloudflare,cloudflare-worker,file-sharing,google-drive-api,html,javascript
2023-08-17T00:50:30Z
2023-08-17T03:34:14Z
null
1
0
5
0
6
7
null
AGPL-3.0
JavaScript
itzzritik/OrderWorder
main
<img src="public/screenshots/restaurant_banner.jpg" width="100%"> <br> # OrderWorder - Contactless Dining Experience Introducing OrderWorder, our Contactless Dining Full-Stack Platform! This groundbreaking platform transforms the dining experience, enabling restaurants to effortlessly swap out traditional menus with a digital, contactless solution. ## Features - **QR Code Integration**: Each table is equipped with a QR code for easy access to the application. - **Ordering System**: Customers can browse the menu, place orders, and make payments directly through the intuitive web app. - **Admin Dashboard**: Enables restaurant management, order acceptance/rejection, inventory, and payroll management. - **Kitchen Dashboard**: Chefs receive live updates on incoming orders for efficient food preparation. - **Real-Time Functionality**: Built using Next.js and SCSS to ensure a responsive and real-time user experience. ## Tech Stack - **FullStack**: Next.js and SASS - **Database**: Mongo ## How to Use 1. **Setup QR Codes**: Place QR codes on each table to enable access for customers. 2. **Access the Web App**: Customers can scan the QR code using their smartphones to open the web app and start ordering. 3. **Admin Dashboard**: Access the admin panel to manage restaurants, accept/reject orders, and handle inventory and payroll. 4. **Kitchen Dashboard**: Chefs can use the kitchen dashboard to stay updated on live orders for timely preparation. ## Try it out Orderworder has two interfaces, one for **customers** and one for **restaurant's admin**. ### Customer Login: <table> <tr> <td> <ul> <img src="public/screenshots/px.png" width="0px" height="0px"> <li>Goto <a href="https://orderworder.ritik.me/starbucks?table=1">Starbucks Menu Page</a> or Scan the QR Code</li> <li>Click on order button</li> <li>Enter Name and Phone (10 digit number format)</li> <li>Login complete, now add few items in cart and place order</li> <img src="public/screenshots/px.png" width="500px" height="0px"> </ul> </td> <td width="200px"> <p align="center"> <picture> <source media="(prefers-color-scheme: dark)" srcset="public/screenshots/restaurant_qrcode_dark.png" /> <source media="(prefers-color-scheme: light)" srcset="public/screenshots/restaurant_qrcode_light.png" /> <img alt="OrderWorderQR" src="public/screenshots/restaurant_qr_light.png" /> </picture> </p> </td> </tr> </table> ### Admin Login (Open in separate browser): <table> <tr> <td> <ul> <img src="public/screenshots/px.png" width="0px" height="0px"> <li>Goto <a href="https://orderworder.ritik.me">Homepage</a>, and scroll down to login section</li> <li>Enter email: <code>admin@starbucks.com</code></li> <li>Enter password: <code>starbucks@123</code></li> <li>Login complete, Now visit <a href="https://orderworder.ritik.me/dashboard">Admin Dashboard</a> or <a href="https://orderworder.ritik.me/kitchen">Kitchen Dashboard</a></li> <img src="public/screenshots/px.png" width="700px" height="0px"> </ul> </td> </tr> </table> ## Screenshots #### Restaurant Menu: <p align="center"> <img src="public/screenshots/restaurant_menu.png" width="49%"> <img src="public/screenshots/restaurant_cart.png" width="49%"> </p> #### Admin Dashboard: <p align="center"> <img src="public/screenshots/dashboard_requests.png" width="49%"> <img src="public/screenshots/dashboard_active.png" width="49%"> </p>
OrderWorder: A cutting-edge contactless dining full-stack application transforming restaurant experiences. Seamlessly replacing menus with QR code-enabled ordering, payment, and management systems. Built with Next.js and SCSS for real-time functionality, including admin dashboards, kitchen monitoring, and intuitive customer interfaces
nextjs,react,sass,javascript,typescript,admin,dashboard,ecommerce,food,mongo
2023-09-09T11:26:52Z
2024-01-29T00:56:40Z
null
1
0
65
2
2
7
null
null
TypeScript
iyarivky/debash
main
<p align="center"><img src="media/shell.png" alt="ayo what?" width=250px></p> <h1 align="center">DeBash</h1> <h3 align="center">online tool that aims to deobfuscate bash/shell scripts using JavaScript</h3> <br> <br> Can deobfuscate bash/shell script strings that have formats like ```shell z='<value>' ..... eval "$z$...." ``` ## Usage - Go to https://dsh.deno.dev - Input your obfuscated bash/shell string or upload your file .sh - Press "Deobfuscate" button - Done > :warning: **Warning** <br> Since this project is still a WIP, there are bound to be bugs such as undefined replace, inappropriate deobfuscate results, etc. If you want to help this project, you can PR to this repo ## To-Do - Add "Upload File" form - idk, my head feels empty, no thoughts pm me [@iya_rivvikyn](https://t.me/iya_rivvikyn) if you wanna ask something or maybe you wanna be my friend 😎 <p align="left"><img src="media/👉👈.jpg" alt="👉👈" width=300px></p>
DeBash is a online tool that aims to deobfuscate bash scripts using JavaScript
bash,deobfuscate,deobfuscation,deobfuscator,javascript,shell
2023-08-19T17:37:16Z
2023-08-31T14:55:08Z
null
1
0
28
0
2
7
null
null
JavaScript