Skip to content

Instantly share code, notes, and snippets.

View gliush's full-sized avatar

Ivan Glushkov gliush

View GitHub Profile

Keybase proof

I hereby claim:

  • I am gliush on github.
  • I am gliush (https://keybase.io/gliush) on keybase.
  • I have a public key ASDZW92VVK-n6EdfOGjfL3oZfUzrT3oyyf8pOEPaqypBzgo

To claim this, I am signing this object:

@gliush
gliush / .gitignore
Last active August 11, 2017 10:31
libphonenumber formatter and validator
.venv
@gliush
gliush / upgrade.md
Created July 11, 2018 13:27 — forked from chrismccord/upgrade.md
Phoenix 1.2.x to 1.3.0 Upgrade Instructions

If you want a run-down of the 1.3 changes and the design decisions behidn those changes, check out the LonestarElixir Phoenix 1.3 keynote: https://www.youtube.com/watch?v=tMO28ar0lW8

To use the new phx.new project generator, you can install the archive with the following command:

$ mix archive.install https://github.com/phoenixframework/archives/raw/master/phx_new.ez

Bump your phoenix dep

Phoenix v1.3.0 is a backwards compatible release with v1.2.x. To upgrade your existing 1.2.x project, simply bump your phoenix dependency in mix.exs:

ScaleUpLimit = max(ScaleUpLimitMinimum, ScaleUpLimitFactor * currentReplicas)
NextReplicas = min(ScaleUpLimit, DesiredReplicas)
@gliush
gliush / levenshtein.go
Last active September 24, 2019 10:11
Find similar words in the file with "Levenshtein Distance" algorithm
// For more info read https://en.wikipedia.org/wiki/Levenshtein_distance
// Kudos to the original LD implementation:
// https://www.golangprograms.com/golang-program-for-implementation-of-levenshtein-distance.html
package main
import (
"bufio"
"fmt"
"os"
"strconv"