Skip to content

Instantly share code, notes, and snippets.

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

Plague Fox PlugFox

🦊
🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊
View GitHub Profile
@PlugFox
PlugFox / main.bsl
Created June 11, 2019 10:02
Модуль объекта нативного формирования внешней печатной формы в docx
#Если Сервер Или ТолстыйКлиентОбычноеПриложение Или ВнешнееСоединение Тогда
//////////////////////////////////////////////////////////////
#Область Объявление_переменных
Перем ЦветВыделенияПараметров;
#КонецОбласти
//////////////////////////////////////////////////////////////
@PlugFox
PlugFox / main.dart
Created June 13, 2019 04:58
Title register in dart
/*
* Title register in dart for https://t.me/rudart
* https://gist.github.com/PlugFox/973fdcaa9f49613ec4b57aaea0a60b5d
* https://dartpad.dartlang.org/973fdcaa9f49613ec4b57aaea0a60b5d
*/
String toTitleRegister(String string) =>
string
.split(RegExp(r'\s'))
.map<String>((String val)
@PlugFox
PlugFox / dottedBorder.dart
Last active February 15, 2021 07:22
Flutter Web simple file upload
import 'package:flutter_web/material.dart';
import 'dart:math' as math;
class DottedBorder extends StatelessWidget {
final Color color;
final double strokeWidth;
final double gap;
final Widget child;
final EdgeInsets padding;
@PlugFox
PlugFox / main.dart
Created June 17, 2019 13:14
json example mapping for https://t.me/rudart
/* json example mapping for https://t.me/rudart */
import "dart:math";
import "dart:convert";
void main() {
String raw = '''
{"rooms": [
{
"id": "49",
@PlugFox
PlugFox / LICENSE
Last active June 18, 2019 19:32
async in dart example
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
furnished to do so, subject to the following conditions:
@PlugFox
PlugFox / telegram.bsl
Last active April 5, 2024 09:11
Отправка ТабличныйДокумент в телеграм
/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/// 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
@PlugFox
PlugFox / main.dart
Last active September 11, 2019 13:28
Expand object list with factory
/*
https://gist.github.com/PlugFox/18826a7169a6ea632d51c665cc7357e1
https://dartpad.dartlang.org/18826a7169a6ea632d51c665cc7357e1
*/
// A
class A {
final int _value;
int get value => this._value;
A([int value])
@PlugFox
PlugFox / main.dart
Last active September 17, 2019 15:59
Repository with local provider
/*
https://gist.github.com/PlugFox/a013510572bb2115d6ac2e434cb8d197
https://dartpad.dartlang.org/a013510572bb2115d6ac2e434cb8d197
*/
import 'dart:html'; // for _LocalProviderStorage
abstract class Repository {
static final RepositoryProvider _repository = RepositoryProvider();
@PlugFox
PlugFox / main.dart
Last active September 18, 2019 08:09
Repository realisation in dart
/*
Repository realisation in dart
https://gist.github.com/PlugFox/bb2cf58f199886cc0971d75a3e337b6a
https://dartpad.dartlang.org/bb2cf58f199886cc0971d75a3e337b6a
*/
import 'dart:async';
// Repository controller
abstract class Repository {
static final RepositoryProvider _repository = RepositoryProvider();
@PlugFox
PlugFox / main.dart
Last active September 19, 2019 14:25
JSON in dart
/*
JSON in dart
https://gist.github.com/PlugFox/06d15a40281c045c34c81006b38b937e
https://dartpad.dartlang.org/06d15a40281c045c34c81006b38b937e
*/
import 'dart:convert' show json;
import 'dart:math' show Random;
// Model:
// +---------------+