This file contains 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
## Build | |
build: | |
stage: build | |
tags: | |
- elixir | |
script: | |
- eval $(ssh-agent -s) | |
- echo "$SSH_BUILD_KEY" | tr -d '\r' | ssh-add - | |
- git branch -f master HEAD | |
- mix edeliver build release --revision="$CI_BUILD_REF" --auto-version=revision |
This file contains 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
defmodule Advent1 do | |
def sum([h|_]=list),do: do_sum(list++[h],0) | |
defp do_sum([_],sum),do: sum | |
defp do_sum([a|[a|_]=rest],sum),do: do_sum(rest,sum+a-?0) | |
defp do_sum([_|rest],sum),do: do_sum(rest,sum) | |
end | |
IO.puts Advent1.sum to_charlist IO.read :all |
This file contains 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
[ | |
{ | |
"backcolor": "#b0b0b0", | |
"name": "SA MCRN Donnager", | |
"author": "Łukasz Niemier" | |
}, | |
[ | |
{ | |
"c": "#e3e2dd", | |
"t": "#2d3238", |
This file contains 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
#!/bin/sh | |
set -eo pipefail | |
in="$(mktemp)" | |
out="$(mktemp)" | |
trap "rm '$in' '$out'" EXIT | |
cat /dev/stdin > "$in" | |
"$@" < "$in" 2>/dev/null > "$out" && cat "$out" || cat "$in" |
This file contains 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
[38;5;252m[1m ╓▄≡≡▄╖ | |
[38;5;253m[1m ╓▀ [38;5;238m⸜⏋⎾⸝[38;5;253m ▀╖ | |
[38;5;255m[1m ,▓[38;5;238m⸜[38;5;52m▚[38;5;88m▃[38;5;238m`´[38;5;88m▃[38;5;52m▞[38;5;238m⸝[38;5;255m▓, | |
[38;5;255m[1m █ [38;5;238m `⸜[38;5;160m▀▀[38;5;238m⸝´ [38;5;255m █ | |
[38;5;253m[1m . ▓▐ [38;5;238m ∕≡≡∖ [38;5;253m ▌▓ . | |
[38;5;248m[1m #⌉'╯ ║▌ [38;5;238m ∣≡≡∣ [38;5;248m ▐║ ╰'⌠# | |
[38;5;248m[1m ¬" [38;5;242m ▐V [38;5;248m ▀▄[38;5;238m_∕≡≡∖_[38;5;248m▄▀ [38;5;242mV▌ [38;5;248m"⌐ | |
[38;5;248m[1m w╜ [38;5;242m▐[38;5;245m▄ [38;5;238m,:« "[38;5;248m▀▀▀▀[38;5;238m" »:, [38;5;245m▄[38;5;242m▌[38;5;248m ╙w | |
[38;5;248m[1m ▐╖▄▄▄▄[38;5;238m²[38;5;248m▌[38;5;238m^ ▐ ▌ ^[38;5;248m▌[38;5;238m²[38;5;248m▄▄▄▄╓▌ | |
[38;5;248m[1m ▐[38;5;238m╡W▐[38;5;248m[1m║ ▐ [38;5;238m / ,, \ [38;5;248m[1m ▐ ║▌[38;5;238mW[38;5;248m[1m╞▌ |
This file contains 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
### Keybase proof | |
I hereby claim: | |
* I am hauleth on github. | |
* I am hauleth (https://keybase.io/hauleth) on keybase. | |
* I have a public key ASC0dZl_5-9qDXYdx41ee4Hg-qPbyRBmapJevdcVdwy5Rwo | |
To claim this, I am signing this object: |
This file contains 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
extern crate rayon; | |
extern crate regex; | |
extern crate scan_dir; | |
use rayon::prelude::*; | |
use regex::Regex; | |
use scan_dir::ScanDir; | |
use std::env; | |
use std::fs::File; |
This file contains 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
AllCops: | |
Exclude: | |
- bin/* | |
- config/**/* | |
- coverage/**/* | |
- db/**/* | |
- doc/**/* | |
- log/**/* | |
- public/**/* | |
- script/**/* |
This file contains 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
{ | |
"machines": [ | |
{ | |
"maintenances": [ | |
{ "start": 10, "duration": 10 }, | |
{ "start": 50, "duration": 10 }, | |
] | |
} | |
], | |
"tasks": [ |
This file contains 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
source 'https://rubygems.org' | |
gem 'sinatra' | |
gem 'slim' | |
gem 'mongoid' | |
gem 'bson_ext' |