Skip to content

Instantly share code, notes, and snippets.

Anton Kaliaev melekes

Block or report user

Report or block melekes

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
melekes /
Created Feb 15, 2020 — forked from calebamiles/
Notes on Open Source Governance Models

Node.js Foundation

  • Healthy Open Source
    • explicit goal to be a lightweight process
    • concrete ability to scale to hundreds of contributors
    • good fundamental goals
      • transparency
      • participation
      • efficacy
    • ecosystem projects encouraged but not required to adopt foundation governance templates
    • creation of projects under TSC explicity delegates authority from TSC to project TC
View overflow_uint64.go
// addOrMax performs safe addition: if result overflows, it returns MaxUint64
func addOrMax(accum, value uint64) uint64 {
if (accum + value) < accum {
return math.MaxUint64
} else {
return accum + value
// subOrZero performs safe subtraction: if result underflows, it returns 0
melekes / do_monad.erl
Last active Dec 27, 2019
Erlang snippets
View do_monad.erl
-spec do(any(), [fun((...) -> any())]) -> any().
do(Arg, []) ->
do(Arg, [Fun | Funs]) ->
case Fun(Arg) of
{error, Data} ->
Data ->
do(Data, Funs)
melekes /
Last active Jun 1, 2019
Requirements for a Tendermint client

Requirements for a Tendermint client

Broadcasting transactions

  1. An evil proposer can drop valid transactions ( To ensure tx A will be committed, the client needs to a) send it to multiple nodes b) subscribe for its result or query the result later using /tx API endpoint (requires the tx indexer enabled)

  2. Multiple nodes above requirement comes from a simple fact that an evil node can drop your tx.


melekes / client.go
Created Mar 5, 2019
Example of using Tendermint HTTP client to subscribe for new block headers
View client.go
package main
import (
melekes / badger_db.go
Last active Jan 30, 2019
Alternative databases, which were used to benchmark Tendermint indexing
View badger_db.go
package db
import (
melekes /
Last active Aug 8, 2018
Youtube Dashing widget



Dashing widget to play video from Youtube.


  1. Install Youtube widget
melekes /
Created Aug 31, 2013
Music Player Dashing widget

Music Player

Music Player


Dashing widget to play music. Awesome, right?!

A bit of a history. When we installed the Github's hubot, one of the things we were really miss was playing songs inside our room (not the whole office). The guys from Github have written play, but we just couldn't setup it (we didn't have Mac Mini at that moment - our CI monitors were backed by Ubuntu). So we started looking for another way out and decided to write Dashing widget and control it via hubot.

melekes /
Last active Jul 21, 2017 — forked from iamsteadman/
Add your Twitter friends' RSS feeds to a single OPML file
# -*- coding: utf-8 -*-
This script requires the following Packages
1: Twitter:
2: PyQuery:
3: Jinja2:
It's fairly primitive but works. It uses a Jinja2 template to create an OPML
file from the RSS feeds of the websites run by the people you follow on
You can’t perform that action at this time.