This file contains 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
// check if string contains word | |
"some_word".includes(word) |
This file contains 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
sudo iwlist wlan0 scan | grep \(Channel |
This file contains 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
class A | |
attr_reader :age | |
def initialize(age) | |
@age = age | |
end | |
protected :age | |
# private :age | |
# throw eror for other.age if age method is private |
This file contains 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
module TagLib | |
extend ActiveSupport::Concern | |
module ClassMethods | |
def find_by_tags() | |
# ... | |
end | |
end | |
module InstanceMethods |
This file contains 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
include AbstractController::Callbacks | |
around_filter :wrap_it_in_error_catcher | |
def wrap_it_in_error_catcher | |
begin | |
yield | |
rescue => e | |
raise SomeExceptionClass.new | |
end |
This file contains 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
# factory patern in ruby | |
http://rubyblog.com.ua/2016/04/factory-method-pattern-in-ruby | |
#ruby recursion | |
https://www.leighhalliday.com/recursion-in-ruby | |
# ruby on rails optimisation tips | |
https://infinum.co/the-capsized-eight/articles/top-8-tools-for-ruby-on-rails-code-optimization-and-cleanup | |
# write faster ruby app |
This file contains 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
# tips and trics in chrome tools | |
https://developer.chrome.com/devtools/docs/authoring-development-workflow | |
http://mo.github.io/2015/10/19/chrome-devtools.html | |
# aditional console command for chrome dev tool | |
http://blog.teamtreehouse.com/mastering-developer-tools-console | |
# web development tools | |
https://tproger.ru/digest/web-services/ |
This file contains 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
# css frameworks not only bootstrap | |
https://www.sitepoint.com/5-most-popular-frontend-frameworks-compared/ | |
# css generators for generate buttons efects | |
https://habrahabr.ru/post/149863/ |
This file contains 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
# === ruby books | |
# confident ruby | |
https://www.dropbox.com/sh/t4xu4t3hitqvqjy/AAAncKJ2s_9R-74WHv8zdVdYa?dl=0 | |
# fareless refactoring | |
https://www.dropbox.com/sh/pobxg0jpz7ndho1/AACS84n6AAFnx1ppl4M2MNjLa?dl=0 | |
# Sandy Metz Practical ruby design | |
https://www.dropbox.com/s/p8oejgchshk16ki/Sandi%20Metz%20-%20Practical%20Object-Oriented%20Design%20in%20Ruby.epub?dl=0 | |
# Rails as she is spoke 2012 | |
https://www.dropbox.com/s/jqvlcj15jv11hh3/Docfoc.com-Rails%20as%20She%20is%20Spoke.pdf?dl=0 | |
# lean-publishing-growing-rails-applications-in-practice-2014 |
This file contains 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
# release stages | |
http://www.chromium.org/developers/tech-talk-videos/release-process | |
# complex of algorithms explanation | |
https://rob-bell.net/2009/06/a-beginners-guide-to-big-o-notation/ |