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
import os | |
from os import path as ospath | |
import sys | |
from mutagen.easyid3 import EasyID3 | |
from mutagen.flac import FLAC | |
from mutagen._id3util import ID3NoHeaderError | |
import re | |
from shutil import copyfile | |
import subprocess |
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
#!/bin/sh | |
wget http://packages.erlang-solutions.com/erlang-solutions_1.0_all.deb | |
sudo dpkg -i erlang-solutions_1.0_all.deb | |
sudo apt-get update | |
sudo apt-get install -y erlang | |
sudo apt-add-repository -y ppa:bigkevmcd/elixir | |
sudo apt-get update | |
sudo apt-get install -y elixir |
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
no. |
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
### Keybase proof | |
I hereby claim: | |
* I am rozap on github. | |
* I am rozap (https://keybase.io/rozap) on keybase. | |
* I have a public key whose fingerprint is EC4A CCAB 283E A6C2 5046 B081 16B3 5551 6E67 CF9D | |
To claim this, I am signing this object: |
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
defmodule Plug.Stats do | |
import Plug.Conn | |
def init(options) do | |
options | |
end | |
def call(conn, _opts) do | |
before_time = :os.timestamp() | |
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
defmodule MyApp do | |
use Application | |
def start(_type, _args) do | |
import Supervisor.Spec, warn: false | |
children = [ | |
worker(Repo, []), | |
worker(Service.StatsManager, [[]]) | |
] |
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
config :logger, backends: [:console, :syslog], | |
format: "$time $metadata[$level] $message\n", | |
level: :debug |
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
def rank_to_int({_, "J"}), do: 11 | |
def rank_to_int({_, "Q"}), do: 12 | |
def rank_to_int({_, "K"}), do: 13 | |
def rank_to_int({_, "A"}), do: 14 | |
def rank_to_int({_, n}), do: n |
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
foo, bar, baz, | |
2, 4, 6, | |
4, 6, 2, | |
5, 3, 2, | |
2, 4, 7, | |
2, 4, 6, | |
4, 5, 7, | |
7, 4, 2 |
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
## in mix.exs | |
def application do | |
[ | |
mod: {MyApplication, []}, | |
applications: [:logger] | |
] | |
end | |