Skip to content

Instantly share code, notes, and snippets.

View PlugFox's full-sized avatar
🦊
🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊

Plague Fox PlugFox

🦊
🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊
View GitHub Profile
@PlugFox
PlugFox / main.dart
Last active April 26, 2024 18:31
rAthena Warper to OpenKore portals.txt
/*
* 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() {
@PlugFox
PlugFox / main.dart
Last active April 22, 2024 15:14
Flutter HEX Color
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
@PlugFox
PlugFox / main.dart
Created April 18, 2024 16:30
Focus example
/*
* 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';
@PlugFox
PlugFox / clickup.js
Created April 11, 2024 14:51
ClickUp Enhancements
// ==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/*
@PlugFox
PlugFox / main.dart
Last active April 1, 2024 14:45
Simplified navigator that allows to change the pages declaratively.
/*
* 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';
@PlugFox
PlugFox / main.dart
Last active March 23, 2024 10:48
Dart StackOverflow
/*
* 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;
@PlugFox
PlugFox / script.js
Last active March 20, 2024 00:48
Medium Dark Mode
// ==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/*
@PlugFox
PlugFox / script.js
Last active April 9, 2024 11:57
Bypass Medium paywall
// ==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/*
@PlugFox
PlugFox / main.dart
Created March 7, 2024 20:07
Async expand example
/*
* 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';
@PlugFox
PlugFox / main.dart
Last active April 9, 2024 12:01
Sunflower
/*
* 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;