This file contains 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
// allaboutflutter.com | |
import 'package:flutter/material.dart'; | |
import 'package:open_filex/open_filex.dart'; | |
import 'package:permission_handler/permission_handler.dart'; | |
import 'dart:io'; | |
enum SortOrder { ascending, descending } | |
void main() { |
This file contains 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
// PDF Viewer Tutorial by allaboutflutter.com | |
import 'package:file_picker/file_picker.dart'; | |
import 'package:flutter/material.dart'; | |
import 'package:flutter_pdfview/flutter_pdfview.dart'; | |
void main() { | |
runApp(const MyApp()); | |
} | |
class MyApp extends StatelessWidget { |
This file contains 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
def idx_to_word(integer, tokenizer): | |
""" | |
Converts a numerical token ID back to its corresponding word using a tokenizer. | |
Args: | |
integer: The integer ID representing the word. | |
tokenizer: The tokenizer object that was used to tokenize the text. | |
Returns: | |
The word corresponding to the integer ID, or None if the ID is not found. |
This file contains 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
def generate_desc(model, tokenizer, feature, max_length): | |
in_text = 'startseq' | |
for _ in range(max_length): | |
sequence = tokenizer.texts_to_sequences([in_text])[0] | |
sequence = pad_sequences([sequence], maxlen=max_length) |
This file contains 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
2090545563_a4e66ec76b.jpg | |
3393035454_2d2370ffd4.jpg | |
3695064885_a6922f06b2.jpg | |
1679557684_50a206e4a9.jpg | |
3582685410_05315a15b8.jpg | |
1579798212_d30844b4c5.jpg | |
269650644_059a84ece5.jpg | |
2596619849_7b635dd310.jpg | |
2635164923_2a774f7854.jpg | |
3583321426_f373c52161.jpg |
This file contains 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
install.packages("forecast") | |
library(forecast) | |
airline = read.csv('Airline_Passengers.csv') | |
colnames(airline) = c('date','values') | |
head(airline) | |
airline = airline$values | |
plot(as.ts(airline)) |
This file contains 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
# Required Libraries install | |
install.packages(c("word2vec", "data.table", "tm", "stringr", "ggplot2", "ggrepel", "plotly", "umap")) | |
# Load the libraries | |
library(data.table) | |
library(word2vec) | |
url <- "https://gist.githubusercontent.com/ManavSarkar/33f322600f2cd5a99d90e1cbaa9e8997/raw/a00623af6aba53ce75d7820ef6082587ba0fdc6a/BA_AirlineReviews.csv" |
We can't make this file beautiful and searchable because it's too large.
This file contains 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
,OverallRating,ReviewHeader,Name,Datetime,VerifiedReview,ReviewBody,TypeOfTraveller,SeatType,Route,DateFlown,SeatComfort,CabinStaffService,GroundService,ValueForMoney,Recommended,Aircraft,Food&Beverages,InflightEntertainment,Wifi&Connectivity | |
0,1,"""Service level far worse then Ryanair""",L Keele,19th November 2023,True,"4 Hours before takeoff we received a Mail stating a cryptic message that there are disruptions to be expected as there is a limit on how many planes can leave at the same time. So did the capacity of the Heathrow Airport really hit British Airways by surprise, 4h before departure? Anyhow - we took the one hour delay so what - but then we have been forced to check in our Hand luggage. I travel only with hand luggage to avoid waiting for the ultra slow processing of the checked in luggage. Overall 2h later at home than planed, with really no reason, just due to incompetent people. Service level far worse then Ryanair and triple the price. Really never again. Thanks for nothing.",Couple Leisure, |
This file contains 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
// follow allaboutflutter.com | |
// post: allaboutflutter.com/implementing-biometric-authentication-in-flutter | |
import 'package:flutter/material.dart'; | |
import 'package:local_auth/local_auth.dart'; | |
void main() { | |
runApp(const MyApp()); | |
} | |
class MyApp extends StatelessWidget { |
This file contains 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:math' as math; | |
class InfixExpressionEvaluator { | |
static int precedence(String operator) { | |
switch (operator) { | |
case '-': | |
return 0; | |
case '+': | |
return 1; | |
case '*': |
NewerOlder