Skip to content

Instantly share code, notes, and snippets.

View joshuaogle's full-sized avatar
👨‍🎨
Making the cloud a better place to live

Joshua Ogle joshuaogle

👨‍🎨
Making the cloud a better place to live
View GitHub Profile
@joshuaogle
joshuaogle / components.mount-icon.js
Last active October 24, 2019 18:03
Structure Tree View
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";
})
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(){
#
# 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:'