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
/* | |
* Dart StackOverflow | |
* https://gist.github.com/PlugFox/e74d16fbf4508fb1366ef2b4d2eab6e6 | |
* https://dartpad.dev?id=e74d16fbf4508fb1366ef2b4d2eab6e6 | |
* Mike Matiunin <plugfox@gmail.com>, 23 March 2024 | |
*/ | |
import 'dart:convert'; | |
const depth = 10000; |
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
// ==UserScript== | |
// @name medium-bypass | |
// @namespace plugfox | |
// @version 2024-03-19 | |
// @description Bypass Medium paywall | |
// @author plugfox | |
// @run-at document-end | |
// @homepage https://gist.github.com/PlugFox/608ef9f5caecf87c820d8ffd9468cc72 | |
// @homepageURL https://gist.github.com/PlugFox/608ef9f5caecf87c820d8ffd9468cc72 | |
// @match *://medium.com/* |
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
// ==UserScript== | |
// @name medium-dark | |
// @namespace plugfox | |
// @version 2024-03-19 | |
// @description Dark Mode for Medium | |
// @author plugfox | |
// @run-at document-start | |
// @homepage https://gist.github.com/PlugFox/0795e7ffb4fe4b190fafc734bc5a63a5 | |
// @homepageURL https://gist.github.com/PlugFox/0795e7ffb4fe4b190fafc734bc5a63a5 | |
// @match *://medium.com/* |
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
#Область JSON | |
Функция СериализоватьJSON(Данные, ФункцияПреобразования = "ФункцияПреобразованияJSON") Экспорт | |
ЗаписьJSON = Новый ЗаписьJSON; | |
ЗаписьJSON.УстановитьСтроку(); | |
НастройкиСериализации = Новый НастройкиСериализацииJSON(); | |
НастройкиСериализации.СериализовыватьМассивыКакОбъекты = Ложь; | |
НастройкиСериализации.ФорматСериализацииДаты = ФорматДатыJSON.ISO; | |
НастройкиСериализации.ВариантЗаписиДаты = ВариантЗаписиДатыJSON.ЛокальнаяДатаСоСмещением; | |
ЗаписатьJSON(ЗаписьJSON, Данные, НастройкиСериализации, ФункцияПреобразования, веб_сериализация); | |
Возврат ЗаписьJSON.Закрыть(); |
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 'package:database/src/platform/io.dart' | |
// ignore: uri_does_not_exist | |
if (dart.library.html) 'package:database/src/platform/js.dart'; | |
import 'package:database/src/queries.dart'; | |
import 'package:drift/drift.dart'; | |
import 'package:meta/meta.dart'; | |
part 'database.g.dart'; | |
/// Key-value storage interface for SQLite database |
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
/* | |
* Sunflower | |
* https://gist.github.com/PlugFox/9d251f3300804746884e2c2f8824babb | |
* https://dartpad.dev?id=9d251f3300804746884e2c2f8824babb | |
* Mike Matiunin <plugfox@gmail.com>, 06 March 2024 | |
*/ | |
import 'dart:async'; | |
import 'dart:math' as math; |
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
/* | |
* Stream async expand | |
* https://gist.github.com/PlugFox/0366eb6d7bd2f3e03fd629c5a96ea8ff | |
* https://dartpad.dev?id=0366eb6d7bd2f3e03fd629c5a96ea8ff | |
* Mike Matiunin <plugfox@gmail.com>, 07 March 2024 | |
*/ | |
import 'dart:async'; | |
import 'package:flutter/material.dart'; |
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
/// Dependencies | |
abstract interface class Dependencies { | |
/// The state from the closest instance of this class. | |
factory Dependencies.of(BuildContext context) => InheritedDependencies.of(context); | |
/// Database | |
abstract final Database database; | |
} | |
final class $MutableDependencies implements Dependencies { |
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
/* | |
* Phone formatter | |
* https://gist.github.com/PlugFox/198e8b02565541cfaec4e7e4e1d1359c | |
* https://dartpad.dev/198e8b02565541cfaec4e7e4e1d1359c | |
* | |
* ^(?<country>8|\+7|\+375)?[\-\s\.]*[(]?s?(?<region>[0-9]{1,5})s?[)]?[\-\s\.]*(?<abonent1>[\d]{2,5})[\-\s\.]*(?<abonent2>[\d]{2})[\-\s\.]*(?<abonent3>[\d]{2})[\s]+((доб|#|ext|вн)[а-яa-z\.]{0,7}[\s]?(?<ext>[\d]{1,5})?)?$ | |
*/ | |
/// Source phones | |
const List<String> phones = <String>[ |
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:async'; | |
import 'dart:io'; | |
import 'dart:typed_data'; | |
import 'package:flutter/material.dart'; | |
import 'package:gallery_saver/gallery_saver.dart'; | |
import 'package:path/path.dart'; | |
import 'package:path_provider/path_provider.dart'; | |
import 'screenshot.dart'; |
NewerOlder