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:dart_bloom_filter/dart_bloom_filter.dart'; | |
| import 'package:path/path.dart' as path; | |
| // compile step, required only once | |
| /// [createBloomy] allows you to create and serialize your bloom filter | |
| /// to be further used anywhere | |
| void createBloomy() { |
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
| void main() { | |
| runApp(const MainApp()); | |
| } | |
| class MainApp extends StatelessWidget { | |
| const MainApp({super.key}); | |
| @override | |
| Widget build(BuildContext context) { | |
| return MaterialApp( |
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 MyApp extends StatelessWidget { | |
| @override | |
| Widget build(BuildContext context) { | |
| return MaterialApp( |
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'; | |
| import 'package:network_connectivity_tut/check_connection.dart'; | |
| import 'package:network_connectivity_tut/connectionType.dart'; | |
| import 'package:internet_speed_test/internet_speed_test.dart'; | |
| import 'package:internet_speed_test/callbacks_enum.dart'; | |
| void main() { | |
| runApp(MyApp()); | |
| } |
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 MyApp extends StatelessWidget { | |
| @override | |
| Widget build(BuildContext context) { |
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:connectivity_plus/connectivity_plus.dart'; | |
| import 'package:flutter/cupertino.dart'; | |
| import 'package:flutter/material.dart'; | |
| class ConnectionType extends StatefulWidget { | |
| @override | |
| _ConnectionTypeState createState() => _ConnectionTypeState(); | |
| } | |
| class _ConnectionTypeState extends State<ConnectionType> { |
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'; | |
| import 'package:internet_connection_checker/internet_connection_checker.dart'; | |
| class CheckConnection extends StatefulWidget { | |
| @override | |
| _CheckConnectionState createState() => _CheckConnectionState(); | |
| } | |
| class _CheckConnectionState extends State<CheckConnection> { | |
| @override |
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
| def latest_post(): | |
| """ | |
| returns the last modified post in posts directory | |
| """ | |
| posts_dic = dict() | |
| for dirpath, dirnames, filenames in os.walk(posts_directory): | |
| for dirname in dirnames: | |
| posts_dic[dirname] = os.stat(dirpath+"/"+dirname).st_mtime | |
NewerOlder