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
<html> | |
<body> | |
<div id="player"></div> | |
<script type="text/javascript"> | |
Muziboo.Player.embedSingle(); // Won't work as my_javascript_files are not loaded yet | |
</script> | |
<script type="text/javascript" src="my_javascript_files"></script> | |
</body> | |
</html> |
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
<html> | |
<script type="text/javascript"> | |
_muzq ||= [] | |
</script> | |
<body> | |
<div id="player"></div> | |
<script type="text/javascript"> | |
_muzq.push(['Muziboo.Player.embedSingle']); // The queue will store this message until the javascript is loaded | |
</script> |
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
Muziboo.Queue = { | |
process: function(){ | |
_muzq.each(function(e){ | |
Muziboo.Queue.execute(e); | |
}); | |
// Queue is no longer needed as the stack is ready | |
_muzq = { | |
push: function(e){ |
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
require 'rubygems' | |
require 'rb-inotify' | |
require 'sqlite3' | |
require 'active_record' | |
require 'mail' | |
require 'log4r' | |
include Log4r | |
MYLOG = Logger.new 'mylog' | |
file = FileOutputter.new('fileOutputter', :filename => 'hsi_notifications.log', :trunch => false) |
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
Then I should see :"flash.success.admin_signup" with email: "[email protected]", first_name: "Joe" | |
Then /^I should see :"([^\"]*)"(?: with #{capture_fields})?$/ do |text, fields| | |
if page.respond_to? :should | |
page.should have_content(I18n.t(text, eval("{#{fields}}"))) | |
else | |
assert page.has_content?(I18n.t(text, eval("{#{fields}}"))) | |
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
bundle config build.mysql --with-mysql-config=/usr/local/bin/mysql_config |
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
src_files: | |
# For CI | |
- public/assets/common.js | |
- public/assets/app_assets.js | |
- public/assets/app.js | |
- public/javascripts/testing/sinon-1.1.0.js | |
- public/javascripts/testing/jasmine-sinon.js | |
- public/javascripts/testing/backbone-factory.js | |
- public/javascripts/testing/backbone_mocks.js |
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
#SRC_BASE_DIR = "public/javascripts/backbone" | |
#DEST_BASE_DIR = "app/coffeescripts/backbone" | |
SRC_BASE_DIR = "spec/javascripts" | |
DEST_BASE_DIR = "spec/coffeescripts" | |
JS2COFFEE = "~/node_modules/js2coffee/bin/js2coffee" | |
dirs = [] | |
files = [] | |
Dir.glob("#{SRC_BASE_DIR}/**/*.js").each do |file| |
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
SB.Collections.TicketList = Backbone.Collection.extend({ | |
model: SB.Models.Ticket, | |
url: "/tickets", | |
name: "tickets" | |
} |
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
ticketView = new SB.Views.TicketView({ | |
model: new SB.Models.Ticket({ | |
id: ticket_id | |
}) | |
}) |
OlderNewer