Wipe all flutter data
rm -rf ~/.pub-cache $PUB_CACHE \
&& cd $(dirname -- $(which flutter)) \
&& git clean -fdx \
&& (yes | flutter doctor --android-licenses)
Wipe all flutter data
rm -rf ~/.pub-cache $PUB_CACHE \
&& cd $(dirname -- $(which flutter)) \
&& git clean -fdx \
&& (yes | flutter doctor --android-licenses)
import 'package:benchmark_harness/benchmark_harness.dart'; | |
void main() { | |
final letter = Example.values[25]; | |
final simple = Simple(letter).measure(); | |
final cache = Cache(letter).measure(); | |
print('$simple / $cache = ${simple / cache}'); // 4.074025631823892 | |
} | |
enum Example { |
// ignore_for_file: avoid_print | |
import 'dart:async'; | |
import 'dart:math' as math; | |
import 'package:flutter/foundation.dart'; | |
import 'package:flutter/material.dart'; | |
// TODO(plugfox): пропадают элементы снизу при скролле и определенных размерах экранах | |
// TODO(plugfox): добавить скролл при наведении мыши на края экрана |
/* | |
* Seat Viewer | |
* https://gist.github.com/PlugFox/218f5884cf61130433cd684783fd58b7 | |
* https://dartpad.dev?id=218f5884cf61130433cd684783fd58b7 | |
* Mike Matiunin <plugfox@gmail.com>, 05 May 2024 | |
*/ | |
import 'dart:math' as math; | |
import 'package:flutter/foundation.dart' show listEquals; |
void main() => D().close(); | |
abstract base class A { | |
A() { | |
print('A:constructor'); | |
init(); | |
} | |
void init() { | |
print('A:init'); |
// Удаление этих строк незнаконно! | |
// Гарантия 91 года и 1 месяц!!! | |
// Послегарантийное обслуживание - бесплатно!!! | |
// Круглосуточная поддержка - все 48 часов в бою! | |
// Ссылка на источник обязательна! | |
// Эти программы защищены законом об авторских правах. Запрещается перепродажа данной программы. | |
// ПРОВЕРЕНО! ВИРУСОВ НЕТ!!! АНТИВИРУСОВ ТОЖЕ!!! | |
// Смотри Милячуша в творительном !! | |
// скупой слепой тупой - пропой!! | |
// !№№! |
/* | |
* 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() { |
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 |
/* | |
* 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'; |
// ==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/* |