Skip to content

Instantly share code, notes, and snippets.

View dmitriid's full-sized avatar

Dmitrii 'Mamut' Dimandt dmitriid

View GitHub Profile
@dmitriid
dmitriid / CHANGELOG
Created July 24, 2012 19:05
HINT changelog
* VERSION 2012-07-24
1. New search infrastructure
2. Code cleanup
3. OTP-biftab based PLT generation
4. Dialyzed
5. Web output cleaned-up
* Previous version:
aliases :bp, :blog_post
class BlogPost < Nanoc::CLI::Commands::CreateItem
def run
# Check arguments
if arguments.length != 1
raise Nanoc::Errors::GenericTrivial, "usage: #{command.usage}"
end
# Extract arguments and options
@dmitriid
dmitriid / init.el
Last active February 9, 2016 10:19
My init.el
;;==============================================================================
;; additional packages
;;==============================================================================
(require 'package)
(add-to-list 'package-archives
'("melpa" . "http://melpa.milkbox.net/packages/") t)
(add-to-list 'package-archives
'("marmalade" .
"http://marmalade-repo.org/packages/"))
@dmitriid
dmitriid / maybe.erl
Created November 19, 2012 16:01
lift
-spec lift(fun()) -> maybe(_, _).
%% @doc Lift F into maybe().
lift(F) ->
try F() of
ok -> {ok, ok};
{ok, Res} -> {ok, Res};
error -> {error, error};
{error, Rsn} -> {error, Rsn};
Res -> {ok, Res}
catch
> git show 031eba227fde3d82b8962537678701ac0cefbda6
tree 031eba227fde3d82b8962537678701ac0cefbda6
.git/
Emakefile
License.txt
Makefile
README.txt
ebin/
src/
@dmitriid
dmitriid / ideas
Last active December 11, 2015 02:28
[ категории новостей: [ события/конференции
| библиотеки(аппликухи)
| статьи о языке(общего характера)
]
, проверка новостей перед отправкой: есть ли смысл вообще писать про этот проект
, коллективные переводы статей
, ссылки на материалы с прошедших событий/конференций
, теги к статьям/новостям (не только авторы)
, собирать и сохранять у себя презентации/видео/прочие ресурсы
, нормальная фильтрация потока с твиттера
@dmitriid
dmitriid / .bashrc
Last active December 11, 2015 11:38
export LC_CTYPE=en_US.UTF-8
export LC_ALL=en_US.UTF-8
export LANG=en_US.utf8
#
# Pretty log with branches and stuff
# http://coderwall.com/p/euwpig?i=3&p=1&t=git
#
git config --global alias.lg "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --"
Jag == Fundament == Pa sondagar
sover == Verb == sover
== Subject == jag
på sofa == Object == på sofa
== Fundament == När
Sover == Verb == sover
du == Subject == du
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
#!/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`