This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Jag == Fundament == Pa sondagar | |
sover == Verb == sover | |
== Subject == jag | |
på sofa == Object == på sofa | |
== Fundament == När | |
Sover == Verb == sover | |
du == Subject == du |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 --" | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ категории новостей: [ события/конференции | |
| библиотеки(аппликухи) | |
| статьи о языке(общего характера) | |
] | |
, проверка новостей перед отправкой: есть ли смысл вообще писать про этот проект | |
, коллективные переводы статей | |
, ссылки на материалы с прошедших событий/конференций | |
, теги к статьям/новостям (не только авторы) | |
, собирать и сохранять у себя презентации/видео/прочие ресурсы | |
, нормальная фильтрация потока с твиттера |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
> git show 031eba227fde3d82b8962537678701ac0cefbda6 | |
tree 031eba227fde3d82b8962537678701ac0cefbda6 | |
.git/ | |
Emakefile | |
License.txt | |
Makefile | |
README.txt | |
ebin/ | |
src/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;;============================================================================== | |
;; 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/")) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* 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: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-module(plt_cache_server). | |
-behaviour(gen_server). | |
%%% | |
%%% Exports | |
%%% | |
%% | |
%% API | |
%% |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%% Consider | |
%% mod:func([A],{A,B},list(), any(), some_type({A,list(),B})) -> ok | error. | |
%% | |
%% Start from the beginning. Scan each character | |
%% | |
%% 1. Once we hit ":", we've got our module name, start looking for function | |
%% name. | |
%% 2. Once we hit "(", we've got our method name, start looking for arguments | |
%% 3. Arguments are a bit trickier | |
%% 3.1 If we encounter a "{", "[", "(" we don't care about anything |