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
Future<void> updateIfHasUpdate() async { | |
final String dataFirstFetchUri = "https://sample.django.backend.api/" | |
final List updatableQuestions = await _getUpdatableQuestions(dataFirstFetchUri); | |
} | |
Future<List<dynamic>> _getUpdatableQuestions(nextUri) async{ | |
// THIS FUNCTIONS LOOP THROUGH PAGINATION | |
// AND RETURN data results concat | |
List updatableQuestions = []; |
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 smtplib, ssl | |
from email.mime.text import MIMEText | |
from email.mime.multipart import MIMEMultipart | |
from email.mime.base import MIMEBase | |
import key | |
port = 587 # For starttls | |
smtp_server = "send.one.com" | |
sender_email = "[email protected]" | |
receiver_email = "[email protected]" |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Teacher Solution Chat</title> | |
<script type="text/javascript"> | |
var Tawk_API=Tawk_API||{}, Tawk_LoadStart=new Date(); |
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
String simplifiedResponse(res){ | |
String message = ""; | |
res.forEach((k,v){ | |
if(k == 'app_name' || k == 'success'){ | |
return; | |
} | |
print(k); |
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
String digitInBengaliString(digits) { | |
const Map NumberToBengaliMap = { | |
0: '০', | |
1: '১', | |
2: '২', | |
3: '৩', | |
4: '৪', | |
5: '৫', | |
6: '৬', | |
7: '৭', |
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:convert'; | |
import 'dart:io'; | |
import 'package:http/http.dart' as http; | |
import 'package:path/path.dart'; | |
import 'package:path_provider/path_provider.dart'; | |
import 'package:shared_preferences/shared_preferences.dart'; | |
import 'package:uuid/uuid.dart'; | |
const String ApiBaseURL = "https://api.ebook.com.bd/ebook/v1"; |
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:convert'; | |
import 'dart:io'; | |
import 'package:flutter/cupertino.dart'; | |
import 'package:http/http.dart' as http; | |
import 'package:jobsolution/src/logics/service/lecture_note/lecture_note_api_service.dart'; | |
import 'package:shared_preferences/shared_preferences.dart'; | |
/**************** | |
* | |
* MENU |
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:intl/intl.dart'; | |
* MAKE A FUNCTION TO CHECK EXPIRE | |
* */ | |
bool isExpired(date) { | |
DateTime parseDate = DateFormat("yyyy-MM-dd").parse(date); | |
var inputDate = DateTime.parse(parseDate.toString()); | |
var todayDate = DateTime.now(); | |
final difference = inputDate.difference(todayDate).inDays; |
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 LatestResultListView extends StatelessWidget{ | |
final List questions; | |
const LatestResultListView({Key key, this.questions}) : super(key: key); | |
@override | |
Widget build(BuildContext context) { | |
return CustomScrollView( | |
slivers: <Widget>[ |
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
{ | |
"extends": [ | |
"airbnb", | |
"airbnb/hooks", | |
"eslint:recommended", | |
"prettier", | |
"plugin:jsx-a11y/recommended" | |
], | |
"parser": "babel-eslint", |
NewerOlder