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
/* | |
* Focus example | |
* https://gist.github.com/PlugFox/b533f61bbb0fa1a112dc36ad24361124 | |
* https://dartpad.dev?id=b533f61bbb0fa1a112dc36ad24361124 | |
* Mike Matiunin <plugfox@gmail.com>, 18 April 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); | |
/// App metadata | |
abstract final AppMetadata appMetadata; | |
/// Database | |
abstract final Database 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
import 'dart:io' as io; | |
import 'package:flutter_test/flutter_test.dart'; | |
import 'package:integration_test/integration_test.dart'; | |
import 'src/util/screenshot.dart'; | |
void main() { | |
final binding = IntegrationTestWidgetsFlutterBinding.ensureInitialized(); |
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 ClickUp Enhancements | |
// @namespace plugfox | |
// @version 2024-04-11 | |
// @description ClickUp Enhancements | |
// @author plugfox | |
// @run-at document-idle | |
// @homepage https://gist.github.com/PlugFox/608ef9f5caecf87c820d8ffd9468cc72 | |
// @homepageURL https://gist.github.com/PlugFox/608ef9f5caecf87c820d8ffd9468cc72 | |
// @match *://app.clickup.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
/* | |
* 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
// ==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
/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
/// The MIT License | |
/// | |
/// Copyright (c) 2019 Plague Fox | |
/// | |
/// Permission is hereby granted, free of charge, to any person obtaining a copy | |
/// of this software and associated documentation files (the "Software"), to deal | |
/// in the Software without restriction, including without limitation the rights | |
/// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
/// copies of the Software, and to permit persons to whom the Software is |
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
/* | |
* Simplified navigator that allows to change the pages declaratively. | |
* https://gist.github.com/PlugFox/053d267fe59bc65da0d6fb9e9dd7e374 | |
* https://dartpad.dev?id=053d267fe59bc65da0d6fb9e9dd7e374 | |
* Mike Matiunin <plugfox@gmail.com>, 01 April 2024 | |
*/ | |
import 'dart:async'; | |
import 'dart:collection'; |
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
#Область JSON | |
Функция СериализоватьJSON(Данные, ФункцияПреобразования = "ФункцияПреобразованияJSON") Экспорт | |
ЗаписьJSON = Новый ЗаписьJSON; | |
ЗаписьJSON.УстановитьСтроку(); | |
НастройкиСериализации = Новый НастройкиСериализацииJSON(); | |
НастройкиСериализации.СериализовыватьМассивыКакОбъекты = Ложь; | |
НастройкиСериализации.ФорматСериализацииДаты = ФорматДатыJSON.ISO; | |
НастройкиСериализации.ВариантЗаписиДаты = ВариантЗаписиДатыJSON.ЛокальнаяДатаСоСмещением; | |
ЗаписатьJSON(ЗаписьJSON, Данные, НастройкиСериализации, ФункцияПреобразования, веб_сериализация); | |
Возврат ЗаписьJSON.Закрыть(); |