- Shopify
- Github
- Basecamp
- Ask.fm
- Groupon
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
| xxx |
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
| gparted | |
| merge & resize | |
| sudo lvextend -r -l+100%FREE /dev/mapper/ubutnu-vg-root | |
| sudo resize2fs /dev/mapper/ubutnu-vg-root |
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
| du -h . -d 1 | sort -nr |
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
| ООП | |
| що таке SOLID | |
| розкажи про якийсь з цих принципів | |
| 3 принципа ООП | |
| Ruby | |
| принципиальное различие скриптовых и “обычных” языков | |
| реализация множественного наследования в ruby (модулі) | |
| duck typing | |
| многопоточность в ruby | |
| метапрограмінг в рубі |
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 'rubygems' | |
| require 'pry' | |
| class Hooks | |
| def initialize; @callbacks ||= Hash.new({before: [], after: []}) end | |
| def to_s; @callbacks.inspect; end | |
| def register_hook(type, method_name, callback_method = nil, &block) | |
| @callbacks[method_name][type].push(callback_method || block) | |
| 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
| Gemfile | |
| gem 'paper_trail' | |
| gem 'diffy' | |
| gem 'activerecord-diff' | |
| # view | |
| = title "Logs" |
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
| ## ---- | |
| settings = DashboardSettings.new(user: current_user) | |
| card = settings.card(params[:id]) | |
| json: card.to_json | |
| component = DashboardComponent.new(user: current_user) # inside DashboardSettings | |
| json: component.to_json | |
| ## ---- |
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
| [ | |
| { | |
| "_id": "58aee4d83f465d9753258fca", | |
| "index": 0, | |
| "guid": "8e2d4217-292e-4dea-80a7-36bedf426424", | |
| "isActive": true, | |
| "balance": "$2,305.20", | |
| "picture": "http://placehold.it/32x32", | |
| "age": 36, | |
| "eyeColor": "green", |
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
| [ | |
| { | |
| "_id": "58aee4d83f465d9753258fca", | |
| "index": 0, | |
| "guid": "8e2d4217-292e-4dea-80a7-36bedf426424", | |
| "isActive": true, | |
| "balance": "$2,305.20", | |
| "picture": "http://placehold.it/32x32", | |
| "age": 36, | |
| "eyeColor": "green", |
NewerOlder