Автор: [Имя разработчика]
Дата: [Дата создания]
Статус: Черновик / На ревью / Утверждено / Отклонено (выбрать/обновлять по ходу)
Ссылка на задачу: [Ссылка на тикет в Jira, Trello, etc.]
Pry.config.history.should_save = true | |
Pry.config.history.file = File.join(__dir__, '.pry_history') |
package main | |
import ( | |
"bytes" | |
"errors" | |
"fmt" | |
"github.com/gin-gonic/gin" | |
"github.com/parsiya/golnk" | |
"io/ioutil" | |
"log" |
package main | |
import ( | |
"flag" | |
"fmt" | |
"github.com/loov/hrtime" | |
"io/ioutil" | |
"os" | |
"regexp" | |
"sort" |
Once in a while, you may need to cleanup resources (containers, volumes, images, networks) ...
// see: https://github.com/chadoe/docker-cleanup-volumes
$ docker volume rm $(docker volume ls -qf dangling=true)
$ docker volume ls -qf dangling=true | xargs -r docker volume rm
package main | |
import ( | |
"encoding/json" | |
"fmt" | |
"github.com/gocolly/colly" | |
"github.com/mb-14/gomarkov" | |
"io/ioutil" | |
"strings" | |
) |
Fetching scrypt 2.0.2 | |
Installing scrypt 2.0.2 with native extensions | |
Gem::Ext::BuildError: ERROR: Failed to build gem native extension. | |
current directory: /Users/thesunwave/.rvm/gems/ruby-2.3.5/gems/scrypt-2.0.2/ext/scrypt | |
/Users/thesunwave/.rvm/rubies/ruby-2.3.5/bin/ruby -rrubygems /Users/thesunwave/.rvm/gems/ruby-2.3.5/gems/rake-10.5.0/bin/rake | |
RUBYARCHDIR=/Users/thesunwave/.rvm/gems/ruby-2.3.5/extensions/x86_64-darwin-18/2.3.0/scrypt-2.0.2 | |
RUBYLIBDIR=/Users/thesunwave/.rvm/gems/ruby-2.3.5/extensions/x86_64-darwin-18/2.3.0/scrypt-2.0.2 | |
mkdir -p x86_64-darwin | |
/Users/thesunwave/.rvm/rubies/ruby-2.3.5/bin/ruby -I/Users/thesunwave/.rvm/gems/ruby-2.3.5/gems/ffi-compiler-0.1.3/lib/ffi-compiler/fake_ffi |
def sort(str) | |
arr = str.split(" ") | |
words = arr.map.with_index do |e, idx| | |
next if e =~ /-?\d+/ | |
[idx, e] | |
end.compact | |
nums = arr.map.with_index do |e, idx| | |
next unless e =~ /-?[0-9]/ |
brew install tmux
Run tmux -CC
or tmux -CC attach
in iTerm2 and then menu is shown on terminal:
require 'rest-client' | |
class YandexGeocoder | |
attr_reader :data, :address | |
NotFound = Class.new(StandardError) | |
EmptyRequest = Class.new(StandardError) | |
BASE_URL = 'https://geocode-maps.yandex.ru/1.x/'.freeze | |
PARAMS = { |