Skip to content

Instantly share code, notes, and snippets.

View Hecatoncheir's full-sized avatar
:octocat:
Focusing

Vitaliy Vostrikov Hecatoncheir

:octocat:
Focusing
View GitHub Profile
@Hecatoncheir
Hecatoncheir / w_circle_crop.dart
Created August 18, 2022 13:29 — forked from nhancv/w_circle_crop.dart
Flutter crop circles, background image, draggable, transparent hole
import 'dart:convert';
import 'dart:io';
import 'dart:typed_data';
import 'dart:ui' as ui;
import 'package:flutter/material.dart';
import 'package:flutter/rendering.dart';
import 'package:nft/services/safety/base_stateful.dart';
import 'package:nft/widgets/p_appbar_transparency.dart';
import 'package:path_provider/path_provider.dart';
@Hecatoncheir
Hecatoncheir / main.dart
Created May 8, 2022 17:16 — forked from eseidel/main.dart
Boid (bird-like flocking) simulation, inspired by https://www.youtube.com/watch?v=bqtqltqcQhw
import 'dart:ui';
import 'package:flutter/material.dart';
import 'dart:math';
const double kBoidVelocity = 5.0;
const double kBoidScale = 2.0;
const int kBoidCount = 100;
const double kBoidMaxAvoidSteerSpeed = .1;
// Angles above maxAlignAngle are treeted the same (caps the turn speed).
call plug#begin('~/AppData/Local/nvim/plugged')
Plug 'neoclide/coc.nvim', {'branch': 'release'}
Plug 'powerman/vim-plugin-ruscmd'
Plug 'scrooloose/nerdcommenter'
Plug 'dominikduda/vim_current_word'
Plug 'wsdjeg/FlyGrep.vim'
Plug 'vim-test/vim-test'
@Hecatoncheir
Hecatoncheir / .spacemacs
Last active June 18, 2021 11:29
spacemacs
;; -*- mode: emacs-lisp; lexical-binding: t -*-
;; This file is loaded by Spacemacs at startup.
;; It must be stored in your home directory.
(defun dotspacemacs/layers ()
"Layer configuration:
This function should only modify configuration layer settings."
(setq-default
;; Base distribution to use. This is a layer contained in the directory
;; `+distribution'. For now available distributions are `spacemacs-base'
ffmpeg -y -i video.webm -vf palettegen palette.png
ffmpeg -y -i video.webm -i palette.png -filter_complex paletteuse -r 10 animation.gif
Source: http://www.ubuntubuzz.com/2017/08/convert-mp4-webm-video-to-gif-using-ffmpeg.html
@Hecatoncheir
Hecatoncheir / 2020
Last active July 1, 2021 11:48
vimrc
if empty(glob('~/.vim/autoload/plug.vim'))
silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs
\ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
autocmd VimEnter * PlugInstall --sync | source $MYVIMRC
endif
call plug#begin('~/.vim/plugged')
"--- Main ---
Plug 'neoclide/coc.nvim', {'branch': 'release'}
Plug 'powerman/vim-plugin-ruscmd'
// Place your key bindings in this file to override the defaults
[
{
"key": "alt+[",
"command": "workbench.action.previousEditorInGroup"
},
{
"key": "alt+]",
"command": "workbench.action.nextEditorInGroup"
},
// Place your key bindings in this file to overwrite the defaults
[
// Toggle
{
"key": "ctrl+p",
"command": "workbench.action.showCommands"
},
{
"key": "alt+[BracketLeft]",
"command": "workbench.action.previousEditorInGroup"
import "dart:async";
import 'package:flutter/material.dart';
final Color darkBlue = Color.fromARGB(255, 18, 32, 47);
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
class ListPage extends StatelessWidget {
@override
Widget build(BuildContext context) {
return DefaultTabController(
length: 1,
child: NestedScrollView(
headerSliverBuilder: (BuildContext context, bool innerBoxIsScrolled) {
return <Widget>[
SliverOverlapAbsorber(
handle: NestedScrollView.sliverOverlapAbsorberHandleFor(context),