This file contains 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
Ext.ComponentMgr.singletons = {}; | |
Ext.ComponentMgr.create = function(config, defaultType){ | |
if(config.render){ return config; } | |
var item = new Ext.ComponentMgr.types[config.xtype || defaultType](config); | |
if(item.xtype){ | |
Ext.ComponentMgr.singletons[item.xtype] = item; | |
} | |
return item; | |
}; |
This file contains 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
App.view.layout.Content = Ext.extend(Ext.Panel,{ | |
layout: 'card', | |
layoutConfig: {deferredRender: true}, | |
items: [{html: 'first card'}], | |
activeItem: 0, | |
defaults: { | |
border: false | |
}, | |
showCard: function(card){ |
This file contains 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
App.controller.NavController = Ext.extend(App.controller.Controller,{ | |
init: function(){ | |
this.control({ | |
// Tree panel that changes the content when nodes are clicked | |
'App.view.layout.Nav': { | |
click: this.navClick, | |
scope: this | |
} | |
}); | |
}, |
This file contains 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
Scenario: Apache restart again | |
Given Apache is running | |
And Apache can restart | |
When I go to the apache page | |
And I click restart | |
Then Apache should restart |
This file contains 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> | |
<input onclick="javascript:runAllTests()" type="button" value="Run Tests" /> | |
<script> | |
new YAHOO.tool.TestLogger(); | |
function runAllTests(){ | |
YAHOO.tool.TestRunner.run(); | |
} | |
</script> |
This file contains 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
res = Net::HTTP.start(<server>,<port>) do |http| | |
http.get <url> | |
end | |
res.body |
This file contains 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 super_user | |
can :see_user, Ticket | |
end |
This file contains 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 Foo | |
def self.included(base) | |
base.extend ClassMethods | |
end | |
module ClassMethods | |
def bar | |
end | |
end |
This file contains 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
$ sudo apt-get install firefox |
This file contains 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 RegistrationsController < Devise::RegistrationsController | |
layout false | |
end |
OlderNewer