Skip to content

Instantly share code, notes, and snippets.

@gennad
gennad / 144-2-1.cc
Created August 24, 2012 23:02
144-2-1
#include <iostream>
#include <string>
#include <sstream>
#include <assert.h>
class Time {
public:
std::string whatTime(int seconds);
};
@gennad
gennad / gist:3955478
Created October 25, 2012 21:18
Python type checker
import types
classobj = types.ClassType
def check_base_type(arg, nested=False):
msgs = []
if isinstance(arg, tuple) and not nested:
[check_base_type(a, True) for a in arg]
@gennad
gennad / gist:5056635
Created February 28, 2013 13:14
My .vrapperrc
set incsearch
set hlsearch
autocmd CursorMoved * exe printf('match IncSearch /\V\<%s\>/', escape(expand('<cword>'), '/\''))
@gennad
gennad / gist:5056883
Created February 28, 2013 13:54
my .tmux.conf
set prefix C-a
unbind-key C-b
bind-key C-a send-prefix
@gennad
gennad / gist:5056896
Created February 28, 2013 13:55
My .vimrc
set nocompatible
"Включаем распознавание типов файлов и типо-специфичные плагины:
filetype on
filetype plugin on
filetype plugin indent on
"Настройки табов для Python, согласно рекоммендациям
set tabstop=4
set shiftwidth=4