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
call plug#begin('~/.vim/plugged') | |
Plug 'https://github.com/altercation/vim-colors-solarized.git' | |
Plug 'Raimondi/delimitMate' | |
Plug 'othree/html5.vim' | |
Plug 'othree/javascript-libraries-syntax.vim', { 'for': 'javascript' } | |
Plug 'scrooloose/nerdtree' | |
Plug 'scrooloose/syntastic' | |
Plug 'tomtom/tcomment_vim' |
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
it "shouldn't create treatment" do | |
allow(DPDMessageSender).to receive(:send) | |
expect do | |
expect do | |
subject.new(invalid_params).handle | |
end.to raise_error(ActiveRecord::Rollback) | |
end.not_to change(Treatment, :count) | |
end |
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
require "mechanize" | |
require "open-uri" | |
agent = Mechanize.new | |
page = agent.get("http://abiturient.kpfu.ru/entrant/abit_entrant_originals_list?p_open=&p_faculty=47&p_speciality=375&p_inst=0&p_typeofstudy=1") | |
table = page.search("body table tr") | |
result = table.select { |tr| tr.attributes["style"].to_s == "font-weight:bold;"} |
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
lsof -wni tcp:3000 | |
kill -9 59780 |
NewerOlder