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
Show hidden characters
| [ | |
| { "keys": ["ctrl+x"], "command": "clipboard_manager_cut" }, | |
| { "keys": ["ctrl+c"], "command": "clipboard_manager_copy" }, | |
| { "keys": ["ctrl+v"], "command": "clipboard_manager_paste", "args": { "indent": true } }, | |
| { "keys": ["ctrl+ctrl+v"], "command": "clipboard_manager_paste", "args": { "indent": false } }, | |
| { "keys": ["ctrl+alt+v"], "command": "clipboard_manager_next_and_paste" }, | |
| { "keys": ["ctrl+shift+v"], "command": "clipboard_manager_previous_and_paste" }, |
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
| """ | |
| # Bookstore | |
| - Book => Images | |
| - Book <=> Author | |
| - Book <=> Genre | |
| - Book -> Genre (Primary) |
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
| # Inline styles | |
| @calculate_button = UIButton.named(I18n.t(:calculate_button)).style(color: 0xFFFFFF, align: :center, vertical_align: :center, top: 10, left: 30, width: 120, height: 40) | |
| # External styles | |
| # /app/stylesheets/application.rb | |
| class ApplicationStylesheet < Stylesheets::Base | |
| # Stylesheets for UI-Elements | |
| # usage: @element.outfit(:awesome_default) |
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
| Teacup::Stylesheet.new(:iphone) do | |
| # enable orientations on the root view | |
| style do | |
| left 0 | |
| top 0 | |
| width 320 | |
| height 480 | |
| backgroundColor :lightyellow.uicolor | |
| portrait true |
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 Symbol | |
| def ivar | |
| "@#{self}" | |
| end | |
| end | |
| foo.instance_variable_set(:name.ivar, value) |
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
| Teacup::Stylesheet.new :create_screen do | |
| # Input Fields | |
| style :input_text_wrapper, | |
| left: 24, | |
| backgroundColor: UIColor.colorWithPatternImage(UIImage.imageNamed('ui-textfield-normal.png')), | |
| userInteractionEnabled: true, | |
| width: 249 | |
| style :input_text_type, |
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
| Teacup::Stylesheet.new :main do | |
| style :my_style, | |
| constraints: [ | |
| constrain_left(0), | |
| constrain_width(100), | |
| constrain_top(0), | |
| constrain(:bottom).equals(:superview, :bottom), | |
| ] | |
| 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
| layout do | |
| @table_holder = subview(UIView, :table) do | |
| @table = subview(UITableView, | |
| frame: [[50,300],[500, 400]], | |
| dataSource: self, | |
| delegate: self | |
| ) | |
| end | |
| 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
| # OSX for Hackers (Mavericks/Yosemite) | |
| # | |
| # Source: https://gist.github.com/brandonb927/3195465 | |
| #!/bin/sh | |
| # Some things taken from here | |
| # https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
| # Ask for the administrator password upfront |
OlderNewer