Skip to content

Instantly share code, notes, and snippets.

<ul id="tlyPageGuide" data-tourtitle="{{title}}">
{{#each items}}
<li class="tlypageguide_{{this.direction}}" data-tourtarget="{{this.target}}">
<div>
{{{this.description}}}
</div>
</li>
{{/each}}
</ul>
View = require('lib/view')
module.exports = class PageguideView extends View
template: HandlebarsTemplates['shared/pageguide']
initialize: (context) ->
@context = context
mediator.on 'route:rendered', @_initializePageGuide
render: =>
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
renderPageGuide: ->
# remove any existing guide regardless
$('#tlyPageGuideWrapper').remove()
if @currentView.pageGuideContext?
pageGuideView = new PageGuideView(@currentView.pageGuideContext)
$('#pageguide-placeholder').html pageGuideView.render().el
[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
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
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
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
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
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.'
,