Skip to content

Instantly share code, notes, and snippets.

# -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: pet/v1/pet.proto
"""Generated protocol buffer code."""
from google.protobuf.internal import enum_type_wrapper
from google.protobuf import descriptor as _descriptor
from google.protobuf import descriptor_pool as _descriptor_pool
from google.protobuf import message as _message
from google.protobuf import reflection as _reflection
from google.protobuf import symbol_database as _symbol_database
@mrgambal
mrgambal / intellij.vmoptions
Last active March 25, 2024 16:47
intellij.vmoptions
-server
-Xmx4g
-XX:ReservedCodeCacheSize=2g
-XX:+IgnoreUnrecognizedVMOptions
-XX:-TraceClassUnloading
-XX:+OmitStackTraceInFastThrow
-XX:+UnlockExperimentalVMOptions
-XX:+UseStringCache
-XX:+UseStringDeduplication
-XX:+AggressiveOpts
package main
import (
"fmt"
"os"
"sort"
"strconv"
"strings"
)
# -*- coding: utf-8 -*-
__author__ = 'Dmitry Gambal <dgambal@terricone.com>'
class AbstractEnum(object):
"""
Produces C#-like enums behavior. Value can be any.
Prohibited runtime-assignments and monkeypatching.
Accessing class by index returns string representation of field name,
which has same value like passed index, or throws KeyError.

Keybase proof

I hereby claim:

  • I am mrgambal on github.
  • I am mr_gambal (https://keybase.io/mr_gambal) on keybase.
  • I have a public key whose fingerprint is 8D8F FA0B 6F27 3550 629D ED46 4AED AD5D C57F 84B2

To claim this, I am signing this object:

# Path to your oh-my-zsh configuration.
ZSH=$HOME/.oh-my-zsh
ZSH_THEME='miloshadzic'
# Path must start from /usr/local/bin because a lot of programms install their
# binaries in it.
export PATH="/opt/homebrew/bin:/usr/local/bin:/usr/local/sbin:$HOME/.docker/bin:$PATH"
export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8
export HISTSIZE=32768;
@mrgambal
mrgambal / .hgrc
Last active December 22, 2015 22:09
.hgrc bootstrap
[ui]
username= Dmitry Gambal <dgambal@terricone.com>
editor=vim
merge=meld
[extensions]
hgext.convert=
color=
graphlog=
extdiff=
@mrgambal
mrgambal / .gitconfig
Last active March 26, 2024 15:21
.gitconfig
[user]
name = Dmytro Hambal
email = mr_hambal@outlook.com
signingkey = /Users/dhambal/.ssh/id_ed.pub
[merge]
conflictStyle = zdiff3
[rerere]
enabled = true
[column]
@mrgambal
mrgambal / .bashrc
Last active December 19, 2015 09:19
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
[ -z "$PS1" ] && return
# don't put duplicate lines or lines starting with space in the history.
# See bash(1) for more options
HISTCONTROL=ignoreboth