Skip to content

Instantly share code, notes, and snippets.

Checking whether the PLT .n2o_dialyzer.plt is up-to-date... yes
Proceeding with analysis...
element_dropdown.erl:14: The pattern {'button', _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _} can never match the type #dropdown{}
n2o_cowboy.erl:27: Function cookie/3 has no local return
n2o_cowboy.erl:27: The call n2o_cowboy:cookie(Cookie::any(),Value::any(),"/",0,Req::any()) will never return since it differs in the 3rd argument from the success typing arguments: (binary() | maybe_improper_list(binary() | maybe_improper_list(any(),binary() | []) | byte(),binary() | []),binary() | maybe_improper_list(binary() | maybe_improper_list(any(),binary() | []) | byte(),binary() | []),binary(),non_neg_integer(),cowboy_req:req())
n2o_cowboy.erl:31: Function delete_cookie/2 has no local return
n2o_cowboy.erl:31: The call n2o_cowboy:cookie(Cookie::any(),[],"/",0,Req::any()) will never return since it differs in the 3rd argument from the success typing arguments: (binary() | maybe_improper_list(binary() | mayb
PLT_NAME=.n2o_dialyzer.plt
$(PLT_NAME):
@ERL_LIBS=deps dialyzer --build_plt --output_plt $(PLT_NAME) \
--apps erts kernel stdlib sasl crypto xmerl cowboy \
erlydtl gproc mimetypes ranch sync || true
dialyze: $(PLT_NAME)
@dialyzer deps/n2o/ebin deps/n2o_sample/ebin deps/n2o_scripts/ebin --plt $(PLT_NAME) \
@Zert
Zert / col.el
Created February 4, 2014 05:51
(defun color-cie-de2000 (color1 color2 &optional kL kC kH)
"Return the CIEDE2000 color distance between COLOR1 and COLOR2.
Both COLOR1 and COLOR2 should be in CIE L*a*b* format, as
returned by `color-srgb-to-lab' or `color-xyz-to-lab'."
(pcase-let*
((`(,L₁ ,a₁ ,b₁) color1)
(`(,L₂ ,a₂ ,b₂) color2)
(kL (or kL 1))
(kC (or kC 1))
(kH (or kH 1))
@Zert
Zert / -
Created December 29, 2013 04:51
-> % rust pkg install github.com/wycats/rust-activesupport
/Users/zert/Work/Rust/.rust/src/github.com/wycats/rust-activesupport-0.1/time.rs:45:14: 45:17 error: found `self` in ident position
/Users/zert/Work/Rust/.rust/src/github.com/wycats/rust-activesupport-0.1/time.rs:45 pub fn year(mut self, year: int) -> Time {
^~~
/Users/zert/Work/Rust/.rust/src/github.com/wycats/rust-activesupport-0.1/time.rs:45:22: 45:23 error: expected `:` but found `,`
/Users/zert/Work/Rust/.rust/src/github.com/wycats/rust-activesupport-0.1/time.rs:45 pub fn year(mut self, year: int) -> Time {
^
task <unnamed> failed at 'explicit failure', /private/tmp/rust-u62U/rust-0.8/src/libsyntax/diagnostic.rs:72
task <unnamed> failed at 'receiving on closed channel', /private/tmp/rust-u62U/rust-0.8/src/libstd/rt/comm.rs:188
-module (cowbug_handler).
-export([start/0]).
-export([init/3, handle/2, terminate/3]).
start() ->
[application:start(A) ||
A <-
[
-> % echo 'adsd werwer' | sed 's/[:space:]+/,/g'
adsd werwer
zert@uranium [03:57:06] [~/Music/Orbital Discography]
-> % ls -l
total 0
drwxrwxrwx 24 zert staff 816 Oct 15 00:17 Albums
drwxrwxrwx 21 zert staff 714 Oct 14 23:51 Foto
drwxrwxrwx 44 zert staff 1496 Oct 15 00:07 Singles and EPs
zert@uranium [03:57:19] [~/Music/Orbital Discography]
-> % find . -name '*.flac' | head
./Albums/1991 - Orbital - Orbital (EU Green Album - 8282482)/01 - The Moebius.flac
./Albums/1991 - Orbital - Orbital (EU Green Album - 8282482)/02 - Speed Freak.flac
@Zert
Zert / .slate
Created December 19, 2013 12:18
# This is the default .slate file.
# If no ~/.slate file exists this is the file that will be used.
config defaultToCurrentScreen true
#config nudgePercentOf screenSize
#config resizePercentOf screenSize
config windowHintsShowIcons true
config windowHintsIgnoreHiddenWindows false
config windowHintsSpread true
config windowHintsSpreadSearchWidth 100
PLT_NAME=.projectname_dialyzer.plt
$(PLT_NAME):
@ERL_LIBS=../erllib/deps dialyzer --build_plt --output_plt $(PLT_NAME) \
--apps erts kernel stdlib sasl crypto lager jiffy \
amqp_client rabbit_common || true
dialyze: $(PLT_NAME)
@dialyzer apps/projectname/ebin --plt $(PLT_NAME) --no_native \
-Werror_handling -Wunderspecs -Wrace_conditions
@Zert
Zert / gist:7643416
Created November 25, 2013 15:48
Почему не надо бояться синтаксиса Erlang
Потому что да пошёл ты нахуй, вот почему