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 / variable_sized_grid_view.dart
Created October 19, 2018 09:19 — forked from letsar/variable_sized_grid_view.dart
VariableSizedGridView for Flutter (Masonry style)
import 'dart:math' as math;
import 'package:flutter/foundation.dart';
import 'package:flutter/rendering.dart';
import 'package:flutter/widgets.dart';
/// Signature for a function that creates a [TileSize] for a given index.
typedef TileSize IndexedTileSizeBuilder(int index);
/// Creates grid layouts with a fixed number of spans in the cross axis.
@Hecatoncheir
Hecatoncheir / .gitlab-ci.yml
Last active October 1, 2018 19:05
golang in dind
stages:
- install
- test
- build
before_script:
# Prepare git by added private ssh key
- 'which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y )'
- eval $(ssh-agent -s)
- echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add - > /dev/null
@Hecatoncheir
Hecatoncheir / .golang-example-gitlab-ci.yml
Created September 25, 2018 14:55 — forked from mikeatlas/.golang-example-gitlab-ci.yml
Example Go GitLab CI setup (no root/sudo required)
# See docs/examples
# http://doc.gitlab.com/ce/ci/quick_start/README.html
# http://doc.gitlab.com/ce/ci/yaml/README.html
# GitLab CI template for Go tests. Note this installs
# a new working copy of Go in a non-standard path such
# that sudo/root is not needed for the install stage.
# note that this particular install-environment stage
# is overly verbose in order to debug anything tricky
@Hecatoncheir
Hecatoncheir / golang.gitlab-ci.yml
Created September 24, 2018 19:52 — forked from npenkov/golang.gitlab-ci.yml
gitlab-ci for Go projects using go dep.
# Replace "projectname" and "username"
image: golang:1.9
variables:
BIN_NAME: projectname
ARTIFACTS_DIR: artifacts
GO_PROJECT: gitlab.com/username/projectname
stages:
- build
@Hecatoncheir
Hecatoncheir / main.go
Created August 19, 2018 10:24 — forked from enricofoltran/main.go
A simple golang web server with basic logging, tracing, health check, graceful shutdown and zero dependencies
package main
import (
"context"
"flag"
"fmt"
"log"
"net/http"
"os"
"os/signal"
@Hecatoncheir
Hecatoncheir / Stylefile.yml
Last active August 3, 2018 08:06
Customizations for www.kollega.com via StyleURL.
---
version: 1.0
domains:
- www.kollega.com
url_patterns:
- www.kollega.com/*
timestamp: '2018-08-03T06:35:36Z'
id: meQf
redirect_url: https://www.kollega.com/Izmenenija
shared_via: StyleURL - (https://www.styleurl.app) import and export CSS changes from
var fps = 30;
var now;
var then = Date.now();
var interval = 1000/fps;
var delta;
function draw() {
requestAnimationFrame(draw);
@Hecatoncheir
Hecatoncheir / analyzer
Created May 18, 2018 10:34
Dart Analyzer
analyzer:
strong-mode: true
errors:
# TODO(nshahan) Make these errors when there is a fix for
# https://github.com/dart-lang/sdk/issues/29713
unused_element: warning
unused_import: warning
unused_local_variable: warning
dead_code: warning
uri_has_not_been_generated: ignore
@Hecatoncheir
Hecatoncheir / init.vim
Last active April 16, 2018 11:47
neovim
"dein Scripts-----------------------------
if &compatible
set nocompatible " Be iMproved
endif
" Required:
set runtimepath+=/home/vitaliy/.config/nvim/plugins/repos/github.com/Shougo/dein.vim
" Required:
if dein#load_state('/home/vitaliy/.config/nvim/plugins')
@Hecatoncheir
Hecatoncheir / css
Last active January 22, 2018 14:50
/*Split*/
#flex-split {
display: flex;
flex-direction: column;
background-color: #fffbf7;
width: 100%;
height: calc(100vh - 84px*2);