This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | import 'dart:async'; | |
| void main() async { | |
| // Example tasks | |
| final tasks = [ | |
| () async { | |
| print('Task 1: Started'); | |
| await Future.delayed(Duration(seconds: 2)); | |
| print('Task 1: Completed'); | |
| return 'Task 1 Completed'; | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | Akash Mishra | |
| LinkedIn: www.linkedin.com/in/akash-mishra09/ | |
| Github: https://github.com/akashmishra242 | |
| Email: akashmishra242@gmail.com | |
| Website: mishraakash.me | |
| Whatsapp/call: +91-9580608314 | |
| Dear Sir/Ma'am you can whatsapp me, for easy and effective communication an better delivery of services. | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | perform this task in python and nodejs and explain each step: | |
| Task Description: There is a server that has key-value storage. There can be multiple clients which can send requests like ‘GET’, ‘PUT’, and ‘DELETE’ to the server. | |
| The key-value storage, server, and client code is written all from scratch. We were allowed to google anything like syntax, errors, etc. We were even given the option of choosing any language we were comfortable with, I went with Python. | |
| The key-value storage is basically a dictionary in python. So I have written a class which has a dictionary in it and some functions to deal with the ‘GET’, ‘PUT’ and ‘DELETE’ operations. | |
| I wrote code for the server which would be ready to accept clients and can start communicating over TCP protocol, similarly, I wrote code for the client which would be ready to take input from the user for the requests and send it to the server. | |
| After I was done with the task, I still had some time left, I was asked to implement a TTL(Time to live) system for the stor | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | // ignore_for_file: unused_local_variable | |
| import 'dart:io'; | |
| import 'package:flutter/cupertino.dart'; | |
| import 'package:flutter/material.dart'; | |
| import 'package:video_player/video_player.dart'; | |
| class VideoPlayerScreen extends StatefulWidget { | |
| final String videoUrl; // Replace with your video URL | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | import 'package:flutter/material.dart'; | |
| void main() { | |
| runApp(MyApp()); | |
| } | |
| class ShakeMyWidgetController { | |
| late ShakeMyWidgetState _state; | |
| void setState(ShakeMyWidgetState state) { | |
| _state = state; | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | class Constants { | |
| // Email Validation Regex | |
| static const String emailRegex = | |
| r'^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$'; | |
| // URL Validation Regex | |
| static const String urlRegex = | |
| r'^(https?|ftp)://[^\s/$.?#].[^\s]*$'; | |
| // Date Validation Regex | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | [ | |
| { | |
| "name": "Afghanistan", | |
| "code": "AF", | |
| "capital": "Kabul", | |
| "region": "AS", | |
| "currency": { | |
| "code": "AFN", | |
| "name": "Afghan afghani", | |
| "symbol": "؋" | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | import 'package:flutter/material.dart'; | |
| void main() { | |
| runApp(TestApp()); | |
| } | |
| class TestApp extends StatelessWidget { | |
| @override | |
| Widget build(BuildContext context) { | |
| return MaterialApp( | 
      
      Loading
      
  Sorry, something went wrong. Reload?
      Sorry, we cannot display this file.
      Sorry, this file is invalid so it cannot be displayed.
      
    NewerOlder
        