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
View = require('lib/view') | |
module.exports = class PageguideView extends View | |
template: HandlebarsTemplates['shared/pageguide'] | |
initialize: (context) -> | |
@context = context | |
mediator.on 'route:rendered', @_initializePageGuide | |
render: => |
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.exports = class ChannelsShowReachView extends ChartOneTableView | |
pageGuideContext: | |
title: 'Reach analysis for a single channel' | |
items: [ | |
target: '.breadcrumbs .last' | |
direction: 'right' | |
description: 'Reach, also known as Topline Growth, measures the total | |
number of potential customers you reach in a given channel. Many of | |
these potential customers will not convert to paying customers, but | |
it is important to know which channels are high volume vs low volume to |
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
renderPageGuide: -> | |
# remove any existing guide regardless | |
$('#tlyPageGuideWrapper').remove() | |
if @currentView.pageGuideContext? | |
pageGuideView = new PageGuideView(@currentView.pageGuideContext) | |
$('#pageguide-placeholder').html pageGuideView.render().el |
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
[PROJECT_ROOT]/vendor/bundle/ruby/1.9.1/gems/haml-3.1.7/lib/sass/plugin.rb:7:in `<top (required)>' | |
[PROJECT_ROOT]/vendor/bundle/ruby/1.9.1/gems/haml-3.1.7/lib/sass/rails3_shim.rb:15:in `block in <top (required)>' | |
[PROJECT_ROOT]/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/lazy_load_hooks.rb:36:in `instance_eval' | |
[PROJECT_ROOT]/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/lazy_load_hooks.rb:36:in `execute_hook' | |
[PROJECT_ROOT]/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/lazy_load_hooks.rb:26:in `block in on_load' | |
[PROJECT_ROOT]/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/lazy_load_hooks.rb:25:in `each' | |
[PROJECT_ROOT]/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/lazy_load_hooks.rb:25:in `on_load' | |
[PROJECT_ROOT]/vendor/bundle/ruby/1.9.1/gems/haml-3.1.7/lib/sass/rails3_shim.rb:13:in `<top (required)>' | |
[PROJECT_ROOT]/vendor/bundle/ruby/1.9.1/gems/sass-3.2.5/lib/sass.rb:19:in `<top (required |
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
rake aborted! | |
compression failed | |
(in /tmp/build_k9gleqb00cxc/app/assets/javascripts/application.coffee) | |
... | |
Tasks: TOP => assets:precompile:primary | |
(See full trace by running task with --trace) | |
Precompiling assets failed, enabling runtime asset compilation | |
Injecting rails31_enable_runtime_asset_compilation | |
Please see this article for troubleshooting help: | |
http://devcenter.heroku.com/articles/rails31_heroku_cedar#troubleshooting |
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
select firstMonth, count(*) as cnt | |
from ( | |
SELECT actor, min(LEFT(created_at, 7)) as firstMonth | |
FROM [githubarchive:github.2011] | |
GROUP BY actor | |
) | |
group by firstMonth | |
order by firstMonth |
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
select firstMonth, count(*) as cnt | |
from ( | |
SELECT actor, min(LEFT(created_at, 7)) as firstMonth | |
FROM [githubarchive:github.timeline] | |
GROUP BY actor | |
) | |
group by firstMonth | |
order by firstMonth |
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
task :default => :deploy | |
desc "Deploy to S3" | |
task :deploy do | |
# set deployment config | |
timestamp = Time.now.to_s.gsub('-', '').gsub(':', '').gsub(' ','') | |
updateConfig "timestamp: '#{timestamp}'" | |
# refresh site |
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.exports = class ChannelsIndexListView extends NestedParentView | |
pageGuideContext: | |
title: 'Channel list' | |
items: [ | |
target: '.breadcrumbs .last' | |
direction: 'right' | |
description: 'Channels are simply sources of new customers. By building | |
customer acqusition strategy around a portfolio of channels, it much | |
easier to determine what is working best and prioritize accordingly.' | |
, |
OlderNewer