Easy to check which branches will be deleted by removing at the bottom of | sh
:)
git branch -r --merged master | sed -e 's#origin/#:#g' | egrep -v 'master|release|ADD BRANCH NAMES YOU WANT TO LEAVE' | sed 's/^/git push origin'/g | sh
AllCops: | |
TargetRubyVersion: ~ | |
Include: | |
- '**/Rakefile' | |
- '**/config.ru' | |
Exclude: | |
- 'vendor/**/*' | |
- 'bin/*' | |
- 'config/**/*' | |
- 'db/**/*' |
class TextFilePager | |
DEFAULT_BATCH_SIZE = 1000 | |
def initialize(file_path, skip_header: false, delete_line_break: false) | |
@file_path = file_path | |
@skip_header = skip_header | |
@delete_line_break = delete_line_break | |
end | |
def batch_line(batch_size: DEFAULT_BATCH_SIZE) |
#!/usr/bin/env ruby | |
require "net/http" | |
require "uri" | |
require "nokogiri" | |
params = { keyword: ARGV.join("\s") } | |
uri = URI.parse("http://commit-m.minamijoyo.com/commits/search") | |
uri.query = URI.encode_www_form(params) |
module ActiveJobRetryControlable | |
extend ActiveSupport::Concern | |
DEFAULT_RETRY_LIMIT = 5 | |
attr_reader :attempt_number | |
module ClassMethods | |
def retry_limit(retry_limit) | |
@retry_limit = retry_limit |
Easy to check which branches will be deleted by removing at the bottom of | sh
:)
git branch -r --merged master | sed -e 's#origin/#:#g' | egrep -v 'master|release|ADD BRANCH NAMES YOU WANT TO LEAVE' | sed 's/^/git push origin'/g | sh
ActiveModelSerializers (AMS) is often said "an alternative to Jbuilder", but AMS is a kind of decorator which knows only how to serialize the target objects. On the other hand, Jbuilder is a library for the view of MVC.
So, it's a bit tough with only AMS to compose complex JSONs like this:
{
"users": [
Matplotlib's default background is agg
, which doesn't have GUI.
It means that show()
doesn't show any plots on GUI.
That will never show any window, your matplotlib is configured to use agg, which is no gui version of output. Install a gui backend like python-matplotlib-qt4, python-matplotlib-tk and try again. https://forums.opensuse.org/showthread.php/494173-matplotlib-fails-to-show-plots-after-latest-update-from-the-Sciencerepolistory
So, let's configure Matplotlib to use TkAgg, which is really easy to set up: