Skip to content

Instantly share code, notes, and snippets.

View alco's full-sized avatar
🇺🇦

Oleksii Sholik alco

🇺🇦
View GitHub Profile
Testing git.gun.ws_SUITE: Starting test, 1 test cases
----------------------------------------------------
2015-10-26 18:04:01.906
Receiving autobahn_ready
----------------------------------------------------
2015-10-26 18:04:01.906
@alco
alco / gist:4fbce560e0387a747d2d
Created October 26, 2015 15:21
881d09a20b0d0533ee4f8d7c93b213500031532e, Erlang/OTP 18 [erts-7.1]
APP cowlib.app.src
APP ranch.app.src
APP ct_helper.app.src
APP gun.app.src
GEN test-dir
test/spdy_SUITE.erl:378: Warning: a term is constructed, but never used
test/spdy_SUITE.erl:378: Warning: the result of the expression is ignored (suppress the warning by assigning the expression to the _ variable)
test/spdy_SUITE.erl:378: Warning: variable 'Host' is unused
test/spdy_server.erl:126: Warning: variable 'DeltaWindowSize' is unused
test/spdy_server.erl:126: Warning: variable 'StreamID' is unused
defmodule Foo do
Module.register_attribute __MODULE__, :a, [persist: true]
Module.register_attribute __MODULE__, :a_list, [persist: true]
Module.register_attribute __MODULE__, :b, [persist: true, accumulate: true]
Module.register_attribute __MODULE__, :b_list, [persist: true, accumulate: true]
@a 1
@a 2
@a_list [1]
+ mix do local.hex --force, local.rebar --force
** (ArgumentError) non-alphabet digit found: 
(elixir) lib/base.ex:111: Base.dec64/1
(elixir) lib/base.ex:518: Base."-do_decode64/2-lbc$^0/2-0-"/3
(elixir) lib/base.ex:518: Base.do_decode64/2
(mix) lib/mix/local.ex:91: Mix.Local.find_matching_versions_from_signed_csv!/2
(mix) lib/mix/tasks/local.hex.ex:23: Mix.Tasks.Local.Hex.run/1
(elixir) lib/enum.ex:579: Enum."-each/2-lists^foreach/1-0-"/2
(elixir) lib/enum.ex:579: Enum.each/2
(mix) lib/mix/cli.ex:55: Mix.CLI.run_task/2
iex(1)> pid = spawn_link(fn -> receive do :foo -> :ok end end)
#PID<0.59.0>
iex(2)> monitor = Process.monitor(pid)
#Reference<0.0.6.73>
# Now make the spawned process go away
iex(4)> send(pid, :foo)
:foo
iex(5)> Process.alive?(pid)
false
λ mix deps.compile eper
==> eper (compile)
ERROR: [...]/deps/eper/.rebar/erlcinfo file version is incompatible. expected: 1 got: 2
ERROR: compile failed while processing [...]/deps/eper: rebar_abort
** (Mix) Could not compile dependency :eper, "/Users/alco/.mix/rebar" command failed. If you want to recompile this dependency, please run: "mix deps.compile eper"
@alco
alco / index.html
Last active August 29, 2015 14:23
<!DOCTYPE html>
<html>
<head>
<style type="text/css">
@import url("http://github.com/simplegeo/polymaps/raw/v2.4.0/examples/example.css");
html, body {height: 100%;}
svg {display: block;}
.layer circle {fill: #f00;stroke: #000;stroke-width: 2px;}
</style>
<!DOCTYPE html>
<html>
<head>
<style type="text/css">
@import url("http://github.com/simplegeo/polymaps/raw/v2.4.0/examples/example.css");
html, body {height: 100%;}
svg {display: block;}
.layer circle {fill: #f00;stroke: #000;stroke-width: 2px;}
</style>
λ ember build --environment=production
version: 0.2.5
Could not find watchman, falling back to NodeWatcher for file system events.
Visit http://www.ember-cli.com/#watchman for more info.
Build failed.
File: ? (746:20)
Unexpected token punc «(», expected punc «:»
Error
at new JS_Parse_Error (/Users/alco/home/projects/many-components-ember/node_modules/ember-cli-uglify/node_modules/broccoli-uglify-sourcemap/node_modules/uglify-js/lib/parse.js:196:18)
at js_error (/Users/alco/home/projects/many-components-ember/node_modules/ember-cli-uglify/node_modules/broccoli-uglify-sourcemap/node_modules/uglify-js/lib/parse.js:204:11)
Code.require_file "my_iex_helpers.exs"
import MyIExHelpers
λ iex
...
Error while evaluating: /Users/alco/tmp/.iex.exs
** (CompileError) .iex.exs:2: module MyIExHelpers is not loaded and could not be found
(elixir) src/elixir_exp.erl:123: :elixir_exp.expand/2
(stdlib) lists.erl:1352: :lists.mapfoldl/3
(stdlib) lists.erl:1353: :lists.mapfoldl/3