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
| (i18n@omicron)5> T = i18n_transliteration:open('Cyrillic-Latin'). | |
| <<>> | |
| (i18n@omicron)7> S = i18n:to(i18n_transliteration:do(T, i18n:from("эрланг"))). | |
| <<"érlang">> | |
| (i18n@omicron)8> io:format("~ts", [S]). | |
| érlangok |
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(bm). | |
| -compile([export_all]). | |
| -record(rec, {f1 = 1, f2 = 2}). | |
| -record(rec2, {f2 = b, f3 = c}). | |
| tst(A, K) -> | |
| case true of | |
| true -> #rec{f2 = V} = #rec2{f2 = V} = A#rec{f1 = updated} | |
| end, | |
| V. |
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
| join([B|Bs], Sep) when is_binary(Sep) -> | |
| R = << <<Sep/binary, X/binary>> || X <- Bs >>, | |
| <<B/binary, R/binary>>; | |
| join([], _Sep) -> | |
| <<>>. | |
| join2([B|Bs], Sep) when is_binary(Sep) -> | |
| R = [ [Sep, X] || X <- Bs ], |
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
| ==> csv_parser (emark) | |
| ERROR: emark failed while processing /home/user/erlang/csv_parser: {'EXIT', | |
| {undef, | |
| [{rebar_erlc_compiler,doterl_compile, | |
| [{config,"/home/user/erlang/csv_parser/deps/emark", | |
| [{erl_first_files,[]}, | |
| {erl_opts,[{d,'BENCHMARK'}]}, | |
| {deps, | |
| [{proper,".*",{git,"git://github.com/manopapad/proper.git","HEAD"}}, | |
| {emark,".*",{git,"git://github.com/ftrvxmtrx/emark.git","HEAD"}}]}, |
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
| Add to /usr/share/vim/vim73/syntax/markdown.vim: | |
| syn region markdownCode start=/^`\{3,3}\s*\w*\s*$/ end=/^`\{3,3}\s*$/ |
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
| sys:trace(ccd3_event, true). |
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
| bjoin([H|T], Delim) -> | |
| BinT = << <<Delim/binary, X/binary>> || X <- T>>, | |
| <<H/binary, BinT/binary>>. | |
| bjoin([], _Delim) -> | |
| <<>>. |
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
| aptitude install libwxgtk2.8-dev libgl1-mesa-dev libglu1-mesa-dev libpng3 | |
| apt-get build-dep erlang |
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
| DEBUG: Rebar location: "/home/user/erlang/i18n/rebar" | |
| DEBUG: Consult config file "/home/user/erlang/i18n/rebar.config" | |
| DEBUG: is_app_available, looking for App triq with Path "/home/user/erlang/i18n/deps/triq" | |
| DEBUG: vcs_vsn: Unknown VCS atom in vsn field: "0.1.0" | |
| INFO: Looking for triq-.* ; found triq-0.1.0 at /home/user/erlang/i18n/deps/triq | |
| DEBUG: is_app_available, looking for App rebar_i18n_plugin with Path "/home/user/erlang/i18n/deps/rebar_i18n_plugin" | |
| DEBUG: vcs_vsn: Unknown VCS atom in vsn field: "1" | |
| INFO: Looking for rebar_i18n_plugin-.* ; found rebar_i18n_plugin-1 at /home/user/erlang/i18n/deps/rebar_i18n_plugin | |
| DEBUG: is_app_available, looking for App edown with Path "/home/user/erlang/i18n/deps/edown" | |
| DEBUG: vcs_vsn: Primary vcs used for /home/user/erlang/i18n/deps/edown |
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
| [22:00:58] user@delta i18n :) ./rebar --version | |
| rebar version: 2 date: 20110930_055606 vcs: git f51e3df | |
| [22:01:02] user@delta i18n :) ./rebar clean skip_deps=true | |
| ==> i18n (clean) | |
| [22:01:06] user@delta i18n :) cat rebar.config | |
| %% -*- tab-width: 4;erlang-indent-level: 4;indent-tabs-mode: nil -*- |