Skip to content

Instantly share code, notes, and snippets.

View divan's full-sized avatar

Ivan Danyliuk divan

View GitHub Profile
@bus710
bus710 / bleCore.dart
Last active January 3, 2023 19:38
How to use flutter_blue in general
import 'dart:async';
/* If there is an error that points about the minSdkVersion,
change the number (minSdkVersion 16) to 19 in $PROJECT_ROOT/android/app/build.gradle */
// example: https://github.com/pauldemarco/flutter_blue/tree/master/example/lib
import 'package:flutter_blue/flutter_blue.dart'; // for BLE
import 'package:flutter/material.dart';
import 'utils/enums.dart';
class BLEData {
// "00010000-0002-1000-8000-00805f9b34fb"
@davenewham
davenewham / gist:220850ca51667d559bbe9ded6856fd60
Created February 1, 2022 19:32
Convert video file to telegram webm for animated sticker
ffmpeg -i input_file.mp4 -framerate 30 -c:v libvpx-vp9 -an -vf scale=512:512 -pix_fmt yuva420p output_sticker.webm
@tdolsen
tdolsen / README.md
Last active April 1, 2023 03:06
EdgeDB custom scalars

EdgeDB custom scalars

A small collection of custom scalars for EdgeDB, ensuring valid values going into the database.