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 February 5, 2024 14:00
Flutter Web | Inline HTML | Shadow root | Resume builder
import 'dart:async';
import 'package:flutter/material.dart';
import 'package:playground/src/resume_preview.dart';
void main() => runZonedGuarded<Future<void>>(
() async {
runApp(const App());
},
(error, stackTrace) =>
@PlugFox
PlugFox / main.dart
Last active January 23, 2024 18:54
Month/Year Input
/*
* Month/Year Input
* https://gist.github.com/PlugFox/5b152b12c45484ba2f52295f9351d3de
* https://dartpad.dev?id=5b152b12c45484ba2f52295f9351d3de
* Matiunin Mikhail <plugfox@gmail.com>, 23 January 2024
*/
// ignore_for_file: curly_braces_in_flow_control_structures
import 'dart:async';
@PlugFox
PlugFox / docker-stack.yml
Created January 18, 2024 14:57
Docker Swarm Monitoring template
version: "3.8"
services:
grafana:
image: portainer/template-swarm-monitoring:grafana-9.5.2
ports:
- target: 3000
published: 3000
protocol: tcp
mode: ingress
@PlugFox
PlugFox / card.dart
Created January 15, 2024 16:40
Flutter Card with shader
import 'dart:ui' as ui show FragmentProgram, FragmentShader;
import 'package:agora_app/theme_audo/theme.dart';
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
import 'package:flutter/scheduler.dart';
/// {@template card}
/// A Card widget.
/// {@endtemplate}
@PlugFox
PlugFox / example.dart
Last active January 8, 2024 06:05
Win32 Keyboard Dart
void main([List<String>? arguments]) {
Keyboard.add(VK.Q, (state) {
if (state.up) return false;
if (!Keyboard.isShiftPressed) return false;
l.i('Shift + Q pressed');
Keyboard.send(VK.W);
return true; // Return true to prevent default action
});
}
@PlugFox
PlugFox / main.dart
Created December 23, 2023 17:36
Side panel example
/*
* Side panel example
* https://gist.github.com/PlugFox/ed60c155e7792d92b5400ca1652f0c2c
* https://dartpad.dev?id=ed60c155e7792d92b5400ca1652f0c2c
* Matiunin Mikhail <plugfox@gmail.com>, 23 December 2023
*/
import 'dart:async';
import 'dart:developer';
@PlugFox
PlugFox / index.html
Last active December 19, 2023 22:25
HTML Dartpad
<html>
<head>
<title>Playground</title>
<link rel="stylesheet" type="text/css" href="styles.css">
<script defer src="main.dart.js" type="application/javascript"></script>
</head>
<body>
<div id="content">
<h1 class="center">Playground</h1>
<h3 class="center">This is a playground for testing Dart code.</h3>
@PlugFox
PlugFox / main.dart
Last active December 28, 2023 11:37
Long Polling example
/*
* Long Polling example
* https://gist.github.com/PlugFox/51038cb6f587332f6e803790a7d991e5
* https://dartpad.dev?id=51038cb6f587332f6e803790a7d991e5
* Matiunin Mikhail <plugfox@gmail.com>, 29 October 2023
*/
// ignore_for_file: avoid_print
import 'dart:async';
@PlugFox
PlugFox / main.dart
Last active October 29, 2023 20:09
Polling example
/*
* Polling example
* https://gist.github.com/PlugFox/b6e5bbbbfe79157c8229f1ba4808fbe9
* https://dartpad.dev?id=b6e5bbbbfe79157c8229f1ba4808fbe9
* Matiunin Mikhail <plugfox@gmail.com>, 29 October 2023
*/
// ignore_for_file: avoid_print
import 'dart:async';
@PlugFox
PlugFox / main.dart
Last active November 10, 2023 13:35
Пример обмена данными между клиентом и сервером по протоколу TCP/IP
/*
* Пример обмена данными между клиентом и сервером по протоколу TCP/IP
* https://gist.github.com/PlugFox/9cc2adb1d8df24fae2164e95dba6a911
* https://dartpad.dev?id=9cc2adb1d8df24fae2164e95dba6a911
* Matiunin Mikhail <plugfox@gmail.com>, 29 October 2023
*/
// ignore_for_file: avoid_print, lines_longer_than_80_chars
import 'dart:async';