Skip to content

Instantly share code, notes, and snippets.

View dmitriid's full-sized avatar

Dmitrii 'Mamut' Dimandt dmitriid

View GitHub Profile
@dmitriid
dmitriid / b.erl
Last active August 29, 2015 14:06
%% более читабельно
resolve_family({_,_,_,_}, auto) -> inet;
resolve_family({_,_,_,_,_,_,_,_}, auto) -> inet6;
resolve_family(IP, auto) -> throw({error, {strange_family, IP}});
resolve_family(_, F) -> F.
%% менее читабельно
resolve_family({_,_,_,_}, auto) -> inet;
resolve_family({_,_,_,_,_,_,_,_}, auto) -> inet6;
resolve_family(IP, auto) -> throw({error, {strange_family, IP}});
ПРИПЕВ
- Настоящий хотон(коровник) свеж! Барыта!(Все) Балбахынан!(Навозом) Сыбыллыбыт!(Утрамбовано)
- К хотону(коровнику), липнет еще и кэш! Уонна(И)! Бадаран(ГРЯЗЬ)! Эмиэ(ЕЩЕ)!
- Ароматом он пленит кыыс(ДЕВЧОНОК)! Барыта(ВСЕ)! Ынах(КОРОВАМИ)! Сыта(ПАХНЕТ)!
- Эй, детка давай выпьем кумыс! Одьэ(Ооо)! Ынырык(ОЧЕНЬ)! Минигэс(ВКУСНО)!
*
Мои унты(ТОРБАЗА) блестят, в них даже впускают в Европу(В ЯКУТСКЕ ЕСТЬ ТАКОЙ КЛУБ)
Ну, а в Гэлэкси(НАЗВАНИЕ КЛУБА), мне говорят: «- Иди в жопу»!
start() ->
case chain([ fun some_fun/1
, fun some_fun/2
....
], SomeData) of
{error, _} = E -> E;
{ok, Output} -> Output
end.
some_fun1(Input0) ->
## cat ~/.fetchmailrc
poll imap.gmail.com with proto IMAP
user 'USERNAME' there with password 'PASSWORD' is 'LOCALUSER' here
options keep fetchall ssl mda "procmail -d %T"
folder INBOX
## cat ~/.procmailrc
#### config ####
windowHintsOrder = leftToRight
#### bindings ####
# window hints
bind esc:cmd hint ASDFGHJKLQWERTYUIOPCVBN
#window grid
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%% @doc site outputs secure http-only cookies. Because of that you
%%% cannot mix Selenium and inets in your tests
%%%
%%% Basically, when you find youself writing code like
%%% {ok, Cookie} = kselenium:cmd(getCookie, []),
%%% httpc:request(get, {Page, [{"Cookie", Cookie}]},[],[])
%%% this *will not work*. You must use inets.
%%%
%%% This lib ensures that cookies are recorded and sent out with each
[alias]
lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --
bug = !git rev-parse --abbrev-ref HEAD | sed 's/.*\\(\\<[[:alpha:]]\\+\\>\\)\\-\\(\\<[[:digit:]]\\+\\>\\).*/\\1-\\2/g' | cat
mm = !git commit -m \"`git bug` $1\" ${@:2} && :
[user]
name = Dmitrii Dimandt
email = [email protected]
[merge]
tool = diffmerge
[mergetool "diffmerge"]
#!bash
#
# bash completion support for core Git.
#
# Copyright (C) 2006,2007 Shawn O. Pearce <[email protected]>
# Conceptually based on gitcompletion (http://gitweb.hawaga.org.uk/).
# Distributed under the GNU General Public License, version 2.0.
#
# The contained completion routines provide support for completing:
#
#!/bin/bash -e
# Usage # copy from browser "JIRA-205\nTicket title"
# $ jira2branch # echoes jira-205-ticket-title
# $ JIRA2BRANCH_TEAM=team jira2branch # echoes jira-205-team-ticket-title
# $ jira2branch team2 # override mode
# echoes jira-205-team2-ticket-title ignoring $JIRA2BRANCH_TEAM
OS=`uname`
deck of cards
Libertalia, Lords of Waterdeep, Copycat
Race for the galaxy, Gloom, Ascension, roborally
deck of cards, Uno, Bang!, Munchkin
Elder Sign, Illuminati, C'thulhu Dice
Bang, Catan, Red November, Pandemia
munchkin zombies/superheroes
Caylus, Dominion, 7 Wonders, Agricola, Puerto Rico
Civilization - the boardgame based on the video game based on the boardgame
Carcassone, Forbidden islan, Puerto Rico, Catan