├── Data Structure Using C ├── readme.md └── stack │ └── stack.c ├── React_Sikhni_Hai_AaaJao_Sikha_doon.md ├── en └── readme.md ├── index.js ├── readme.md ├── readmecode.md └── server.asm /Data Structure Using C/readme.md: -------------------------------------------------------------------------------- 1 | # This is my Readme 2 | 3 | I added my readme file in this repo. 4 | Happy to contribute to open source. 5 | -------------------------------------------------------------------------------- /Data Structure Using C/stack/stack.c: -------------------------------------------------------------------------------- 1 | 2 | #include 3 | #define maxsize 10 4 | 5 | int stack[maxsize], top = -1; 6 | 7 | void push(); 8 | void pop(); 9 | void display(); 10 | 11 | 12 | int main() 13 | { 14 | int choice; 15 | 16 | do 17 | { 18 | printf("\n----stack----\n"); 19 | printf("Press 1 for push\n"); 20 | printf("Press 2 for pop\n"); 21 | printf("Press 3 for display\n"); 22 | printf("Press 4 for exit\n"); 23 | printf("enter your choice: "); 24 | scanf("%d",&choice); 25 | 26 | switch(choice) 27 | { 28 | case 1: push(); break; 29 | case 2: pop(); break; 30 | case 3: display(); break; 31 | case 4: break; 32 | default: printf("Invalid choice"); 33 | } 34 | }while(choice!=4); 35 | } 36 | 37 | void push() 38 | { 39 | if(top == maxsize - 1 ) 40 | { 41 | printf("stack is overflow"); 42 | } 43 | else 44 | { 45 | printf("enter value:"); 46 | top++; 47 | scanf("%d",&stack[top]); 48 | } 49 | } 50 | void pop() 51 | { 52 | if(top == -1){ 53 | printf("stack is empty"); 54 | } 55 | else 56 | { 57 | printf("deleted item %d",stack[top]); 58 | top--; 59 | } 60 | } 61 | void display() 62 | { 63 | if (top == -1) 64 | { 65 | printf("stack is empty"); 66 | } 67 | else 68 | { 69 | for(int i =0; i<=top; i++) 70 | { 71 | printf("%d\t",stack[i]); 72 | } 73 | } 74 | } 75 | -------------------------------------------------------------------------------- /React_Sikhni_Hai_AaaJao_Sikha_doon.md: -------------------------------------------------------------------------------- 1 | ``` 2 | Complete React Roadmap 🔥 3 | | 4 | |--- Fundamentals 5 | | |-- JavaScript ES6+ 6 | | |-- JSX 7 | | |-- Components 8 | | |-- Props 9 | | |-- State and 10 | | |-- Lifecycle 11 | | |-- Events 12 | | |-- Hooks 13 | | | |- useState 14 | | | |- useEffect 15 | | | |- useContext 16 | | | |- useReducer 17 | | | └ Custom Hooks 18 | | | 19 | | |-- Functional vs Class Components 20 | | |-- Conditional Rendering 21 | | |-- Lists and Keys 22 | | |-- Forms 23 | | |-- Controlled Components 24 | | |-- Fragments 25 | | └─ Higher-Order Components 26 | | 27 | |--- Advanced Concepts 28 | | |-- Context API 29 | | |-- Redux 30 | | |-- Redux Basics 31 | | |-- Redux Middleware 32 | | |-- Thunk 33 | | | └ Saga 34 | | | 35 | | |-- React Router 36 | | |-- Error Boundaries 37 | | |-- Portals 38 | | |-- Render Props 39 | | |-- Suspense 40 | | |-- Lazy Loading 41 | | |-- PropTypes 42 | | |-- TypeScript 43 | | └─ Server-side Rendering 44 | | 45 | |--- Styling 46 | | |-- CSS Modules 47 | | |-- Styled Components 48 | | |-- CSS-in-JS Libraries 49 | | |-- Theming 50 | | └─ Responsive Design 51 | | 52 | |--- State Management 53 | | |-- Local Component State 54 | | |-- Context API for Global State 55 | | |-- Redux State Management 56 | | |-- MobX State Management 57 | | |-- Recoil (Experimental) 58 | | └─ Zustand 59 | | 60 | |--- Forms and Validation 61 | | |-- Formik (Form Library) 62 | | |-- Yup (Schema Validation) 63 | | └─ Controlled vs Uncontrolled Components 64 | | 65 | |--- GraphQL and APIs 66 | | |-- Apollo Client (GraphQL) 67 | | |-- Fetch API 68 | | |-- Axios 69 | | |-- RESTful APIs 70 | | └─ Fetching Data in React 71 | | 72 | |--- Performance Optimization 73 | | |-- Memoization 74 | | |-- PureComponent and React.memo 75 | | |-- Code Splitting 76 | | |-- Server-side Rendering (SSR) 77 | | |-- React.lazy and Suspense 78 | | |-- Performance Profiling (React DevTools) 79 | | └─ Tree Shaking 80 | | 81 | |--- Security 82 | | |-- Cross-Site Scripting Prevention 83 | | |-- Cross-Site Request Forgery Protection 84 | | └─ Content Security Policy (CSP) 85 | | 86 | |--- Deployment and Build Tools 87 | | |-- Webpack 88 | | |-- Babel 89 | | |-- ESLint 90 | | |-- Prettier 91 | | └─ CI / CD 92 | | 93 | |--- Server-side Integration 94 | | |-- Integrating React with Node.js 95 | | |-- Integrating React with Express.js 96 | | |-- Integrating React with Django 97 | | └─ Integrating React with Ruby on Rails 98 | | 99 | |--- Libraries and Tools 100 | | |-- Recoil 101 | | |-- React Query (Data Fetching Library) 102 | | |-- SWR (Stale-While-Revalidate) 103 | | |-- Vercel (Deployment Platform) 104 | | |-- Netlify (Deployment and Hosting) 105 | | └─ AWS Amplify (Cloud Services) 106 | | 107 | |--- Mobile and Desktop Applications 108 | | |-- React Native (Mobile) 109 | | └─ Electron (Desktop) 110 | | 111 | |--- Best Practices and Design Patterns 112 | | |-- Component Patterns 113 | | |-- Error Handling Strategies 114 | | |-- Code Splitting Patterns 115 | | |-- State Management Patterns 116 | | └─ Testing Strategies 117 | | 118 | |─- Community and Learning Resources 119 | |-- Official React Documentation 120 | |-- Online Tutorials 121 | |-- React Blogs 122 | |-- Medium Articles 123 | |-- Open Source React Projects 124 | |-- React Community Events 125 | |-- Conferences 126 | └─ GitHub Repositories 127 | 128 | ------------------ END ------------------- 129 | ``` 130 | -------------------------------------------------------------------------------- /en/readme.md: -------------------------------------------------------------------------------- 1 | # Another readme is here 2 | 3 | This is My First OpenSource Contribution. 4 | 5 | ## Write your name here 6 | 7 | Ashish Kumar 8 | -------------------------------------------------------------------------------- /index.js: -------------------------------------------------------------------------------- 1 | console.log("LMAO") 2 | -------------------------------------------------------------------------------- /readme.md: -------------------------------------------------------------------------------- 1 | # repo refreshed 2 | 3 | Repo is refreshed. 4 | 5 | We are leaning Cohort from [https://piyushgarg.dev/cohort](https://piyushgarg.dev/cohort) 6 | -------------------------------------------------------------------------------- /readmecode.md: -------------------------------------------------------------------------------- 1 | Sir, NextJs tutorial is much needed. Try to make video on this as soon as possible. -------------------------------------------------------------------------------- /server.asm: -------------------------------------------------------------------------------- 1 | section .data 2 | listen_sock equ 3 ; File descriptor for listening socket 3 | conn_sock equ 4 ; File descriptor for connection socket 4 | backlog equ 5 ; Maximum length to which the queue of pending connections may grow 5 | buf_size equ 1024 ; Buffer size for receiving data 6 | 7 | crlf db 0x0D, 0x0A ; Carriage return, Line feed 8 | response db 'HTTP/1.1 200 OK', crlf 9 | db 'Content-Type: text/plain', crlf 10 | db '', crlf 11 | db 'Hello, World!', crlf 12 | db 0 ; Null terminator 13 | 14 | section .bss 15 | addr resb 16 ; Buffer for storing remote address 16 | buf resb buf_size ; Buffer for receiving data 17 | 18 | section .text 19 | global _start 20 | 21 | _start: 22 | ; Create a socket 23 | mov eax, 102 ; sys_socketcall syscall number 24 | mov ebx, 1 ; socketcall: SYS_SOCKET 25 | mov ecx, 1 ; AF_INET: IPv4 protocol family 26 | mov edx, 1 ; SOCK_STREAM: TCP socket type 27 | int 0x80 ; call kernel 28 | 29 | ; Check for errors 30 | test eax, eax 31 | js error_handling ; Jump to error_handling if syscall returned with an error 32 | 33 | mov dword [listen_sock], eax ; Store the listening socket file descriptor 34 | 35 | ; Bind the socket to an address and port 36 | ; (Assuming binding to port 8080 and any available address) 37 | mov eax, 102 ; sys_socketcall syscall number 38 | mov ebx, 2 ; socketcall: SYS_BIND 39 | mov ecx, dword [listen_sock] ; Socket file descriptor 40 | lea edx, [addr] ; Pointer to the sockaddr_in structure 41 | mov esi, 16 ; Size of the sockaddr_in structure 42 | int 0x80 ; call kernel 43 | 44 | ; Check for errors 45 | test eax, eax 46 | js error_handling ; Jump to error_handling if syscall returned with an error 47 | 48 | ; Listen for incoming connections 49 | mov eax, 106 ; sys_socketcall syscall number 50 | mov ebx, 4 ; socketcall: SYS_LISTEN 51 | mov ecx, dword [listen_sock] ; Socket file descriptor 52 | mov edx, backlog ; Maximum length to which the queue of pending connections may grow 53 | int 0x80 ; call kernel 54 | 55 | ; Check for errors 56 | test eax, eax 57 | js error_handling ; Jump to error_handling if syscall returned with an error 58 | 59 | accept_loop: 60 | ; Accept incoming connections 61 | mov eax, 102 ; sys_socketcall syscall number 62 | mov ebx, 5 ; socketcall: SYS_ACCEPT 63 | mov ecx, dword [listen_sock] ; Socket file descriptor 64 | lea edx, [addr] ; Pointer to the sockaddr_in structure to store the remote address 65 | lea esi, [conn_sock] ; Pointer to store the new connection socket file descriptor 66 | mov edi, 16 ; Size of the sockaddr_in structure 67 | int 0x80 ; call kernel 68 | 69 | ; Check for errors 70 | test eax, eax 71 | js error_handling ; Jump to error_handling if syscall returned with an error 72 | 73 | ; Read data from the client 74 | mov eax, 3 ; sys_read syscall number 75 | mov ebx, dword [conn_sock] ; Connection socket file descriptor 76 | lea ecx, [buf] ; Buffer to store received data 77 | mov edx, buf_size ; Maximum number of bytes to read 78 | int 0x80 ; call kernel 79 | 80 | ; Check for errors 81 | test eax, eax 82 | js error_handling ; Jump to error_handling if syscall returned with an error 83 | 84 | ; Send the response back to the client 85 | mov eax, 4 ; sys_write syscall number 86 | mov ebx, dword [conn_sock] ; Connection socket file descriptor 87 | lea ecx, [response] ; Response buffer 88 | mov edx, response_len ; Length of the response 89 | int 0x80 ; call kernel 90 | 91 | ; Check for errors 92 | test eax, eax 93 | js error_handling ; Jump to error_handling if syscall returned with an error 94 | 95 | ; Close the connection socket 96 | mov eax, 6 ; sys_close syscall number 97 | mov ebx, dword [conn_sock] ; Connection socket file descriptor 98 | int 0x80 ; call kernel 99 | 100 | ; Check for errors 101 | test eax, eax 102 | js error_handling ; Jump to error_handling if syscall returned with an error 103 | 104 | ; Go back to accept more connections 105 | jmp accept_loop 106 | 107 | error_handling: 108 | ; Handle error 109 | ; Print an error message or perform error recovery 110 | jmp exit 111 | 112 | exit: 113 | ; Close the listening socket 114 | mov eax, 6 ; sys_close syscall number 115 | mov ebx, dword [listen_sock] ; Listening socket file descriptor 116 | int 0x80 ; call kernel 117 | 118 | ; Exit the program 119 | mov eax, 1 ; sys_exit syscall number 120 | xor ebx, ebx ; Exit code 0 121 | int 0x80 ; call kernel 122 | 123 | section .data 124 | prompt_msg db 'Enter your message: ', 0 125 | prompt_len equ $ - prompt_msg 126 | --------------------------------------------------------------------------------