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
| http://www.cultofmac.com/306118/download-apples-iwork-apps-older-macs-free/ |
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
| class PodSerializer < ActiveModel::Serializer | |
| attributes :pod_type, :pod_picture | |
| def pod_picture | |
| @object.picture.present? ? @object.picture.url : nil | |
| end | |
| end | |
| class ShippingListSerializer < ActiveModel::Serializer |
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
| = link_to (content_tag(:i, nil, class: 'fa fa-facebook-square')), "#" |
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
| git reset --merge ORIG_HEAD |
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
| $ ( "# my-id" ) .bind ({ | |
| click: function () { | |
| / / code ở đây | |
| }, | |
| mouseup: function () { | |
| / / code ở đây | |
| } | |
| }); | |
| Code trên xử lý 2 sự kiện mouseup và click cùng trong một ràng buộc. |
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
| def decorate_process | |
| ((object.amount_funded/object.amount)*100).to_s + "%" # SHOULD NOT | |
| "#{object.amount_funded/object.amount*100}%" # SHOULD | |
| 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
| 1. install this plugins https://github.com/ddollar/heroku-accounts | |
| 2. need to change something to make this plugin work well | |
| cd ~/.heroku/plugins/heroku-accounts | |
| git remote rm origin | |
| git remote add origin https://github.com/heroku/heroku-accounts.git | |
| git fetch | |
| git merge origin/master | |
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
| // e.preventDefault(); | |
| ngan chan su kien mac dinh. Vi du khi click form thi e.preventDefault no se ko submit nua |
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
| body { | |
| background-color: #fff; | |
| color: #333; | |
| font-family: verdana, arial, helvetica, sans-serif; | |
| font-size: 13px; | |
| line-height: 18px; | |
| } | |
| p, ol, ul, td { | |
| font-family: verdana, arial, helvetica, sans-serif; |
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
| 1. /views/layouts/appliation.html.slim | |
| head | |
| boby | |
| #container | |
| header | |
| = render 'shared/menu' | |
| = render 'shard/banner' | |
| main | |
| = yield |