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
/* | |
* rAthena Warper to OpenKore portals.txt | |
* https://gist.github.com/PlugFox/31069d30374670557a023c557793f121 | |
* https://dartpad.dev?id=31069d30374670557a023c557793f121 | |
* Mike Matiunin <plugfox@gmail.com>, 26 April 2024 | |
*/ | |
// ignore_for_file: avoid_print, lines_longer_than_80_chars, curly_braces_in_flow_control_structures | |
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
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'; |
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
void main() => runZonedGuarded<void>( | |
() => runApp(const App()), | |
(error, stackTrace) => log('Top level exception $error'), | |
); | |
class App extends StatelessWidget { | |
const App({super.key}); | |
@override | |
Widget build(BuildContext context) => MaterialApp( |
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
void main() { | |
// Conver Dec to Hex | |
String dec2hex(int n) => n.toRadixString(16).toUpperCase(); | |
// 32 bit number | |
int colorValue = 0xFFf2efed; | |
print('Hex color: ${dec2hex(colorValue)}'); | |
print('Dec color: $colorValue'); | |
// Extract colors |
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/* |
NewerOlder