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
| import Ember from 'ember'; | |
| import EmberObject, { computed } from '@ember/object'; | |
| export default Ember.Component.extend({ | |
| isAWS: computed("icon", function() { | |
| return this.get("icon") == "aws"; | |
| }), | |
| isGCP: computed("icon", function() { | |
| return this.get("icon") == "gcp"; | |
| }) |
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
| import Ember from 'ember'; | |
| export default Ember.Component.extend({ | |
| selectedOption: null, | |
| actions: { | |
| setSelection: function(selected) { | |
| this.set('selectedOption', selected) | |
| console.log(this.get('selectedOption')) | |
| }, | |
| submit: function(){ |
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
| .sticky-top { | |
| @include position(fixed, $base-spacing null null); | |
| } | |
| .sticky-bottom { | |
| top: auto; | |
| } |
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
| module ApplicationHelper | |
| def body_class | |
| "#{controller_name} #{controller_name}-#{controller.action_name} #{page_id}" | |
| end | |
| def controller_name | |
| controller.controller_path.gsub('/','-') | |
| end | |
| def page_id |
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
| <div class="input-group"> | |
| <input type="checkbox" id="inputID" class="action-checkbox"> | |
| <label for="inputID">Label</label> | |
| </div> |
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
| # | |
| # Initialize the stuff | |
| # | |
| # We build the status bar item menu | |
| def setupMenu | |
| menu = NSMenu.new | |
| menu.initWithTitle 'FooApp' | |
| mi = NSMenuItem.new | |
| mi.title = 'Hellow from MacRuby!' | |
| mi.action = 'sayHello:' |
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
| // Needs jQuery and jquery-visible (https://github.com/customd/jquery-visible) | |
| $ -> | |
| if $(".services").length > 0 | |
| animate_services_icon = -> | |
| $(".services-list .image").each (i, el) -> | |
| $el = $(el) | |
| if $el.visible(true, true) | |
| $el.addClass("animated") |
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
| svg_fallback = (function(){ | |
| var supportsSVG = document.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#Image", "1.1"); | |
| var body = document.querySelector('body'); | |
| var images = document.querySelectorAll("[data-png-fallback]"); | |
| if (!supportsSVG) { | |
| body.className += " no-svg"; | |
| [].forEach.call(images, function(image) { | |
| image.src = image.getAttribute("data-svg-fallback"); | |
| }); |
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
| # Requires BourbonJS | |
| @include keyframes(reveal) { | |
| 0% { | |
| @include transform(translateY(em(30))); | |
| opacity: 0; | |
| } | |
| 100% { | |
| @include transform(translateY(0)); |
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 full_address | |
| address_1 = join_present([address_line_1, address_line_2], ', ') | |
| address_2 = join_present([city, state], ', ') | |
| address_2 = join_present([address_2, zip], ' ') | |
| join_present([address_1, address_2, country], '<br>') | |
| end |
NewerOlder