Download and install from: https://www.mozilla.org/pl/firefox/new/
Open about:config
and set extensions.pocket.enabled
to false
Extensions:
[Adblock Plus 2.0] | |
||cacaoda.com^ | |
||onet.pl^$all | |
||wp.pl^ | |
||interia.pl^ |
{ | |
"ignition": { | |
"version": "3.3.0" | |
}, | |
"passwd": { | |
"users": [ | |
{ | |
"groups": [ | |
"docker", | |
"sudo", |
{ | |
"ignition": { | |
"config": { | |
"replace": { | |
"source": "https://gist.githubusercontent.com/marekciupak/e47459ec0a5e9a93f5878b8e07424c6f/raw/coreos.ign" | |
} | |
}, | |
"version": "3.3.0" | |
} | |
} |
AllCops: | |
NewCops: enable | |
Exclude: | |
- 'db/schema.rb' | |
- 'vendor/**/*' | |
Layout/EndOfLine: | |
EnforcedStyle: lf | |
Layout/EmptyLineAfterGuardClause: |
Download and install from: https://www.mozilla.org/pl/firefox/new/
Open about:config
and set extensions.pocket.enabled
to false
Extensions:
# https://adventofcode.com/2018/day/18 | |
defmodule Day18 do | |
def parse_input(input) do | |
input | |
|> String.split("\n", trim: true) | |
|> Enum.reduce({%{}, 0}, fn line, {area, y} -> {parse_next_line(area, line, y), y + 1} end) | |
|> elem(0) | |
end |
defmodule Day3 do | |
require Integer | |
def part1(location) do | |
width = width(location) | |
steps = steps(location, width) | |
distance(steps, width) | |
end | |
def width(location) do |
# https://adventofcode.com/2018/day/15 | |
defmodule Day15 do | |
@default_attack_power 3 | |
def parse_map(input) do | |
input | |
|> String.split("\n", trim: true) | |
|> Enum.reduce({0, %{}}, fn row, {y, map} -> | |
{y + 1, parse_row(map, row, y)} |
defmodule Day13 do | |
def parse(input) when is_binary(input) do | |
input | |
|> String.split("\n", trim: true) | |
|> parse | |
end | |
def parse(_rows, y \\ 0, acc \\ {%{}, []}) | |
def parse([row | rest], y, {acc_map, acc_carts}) do |