// helpers.WEB_COMPONENT(placeholder, tagName, context, args, hash, helpers);
helpers.WEB_COMPONENT(
placeholder0,
"x-foo",
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
# posts/1/comments/1 | |
Blorgh.CommentsNewRoute = Ember.Route.extend | |
model: -> | |
post = @modelFor('post') | |
@store.createRecord('comment', {post}) | |
actions: | |
save: -> | |
route = 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
<div id='content' {{bind-attr class=':columns showSidebar:twelve:sixteen'}}> |
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
== link_to "Contact us", "pricing", class: "button button-sign-up", :onclick => "_gaq.push(['_trackEvent', 'Sign Up Button', 'Clicked', 'Blog sign up']);" | |
= link_to "Contact us", "pricing", \ | |
class: "button button-sign-up", \ | |
:onclick => "_gaq.push(['_trackEvent', 'Sign Up Button', 'Clicked', 'Blog sign up']);" | |
/ Actually, you don't need a \ if the line ends in a comma. | |
= link_to "Contact us", "pricing", |
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
DS.Model.reopen | |
reloadHasManyLink: (key) -> | |
meta = @constructor.metaForProperty(key) | |
link = @_data.links[meta.key] | |
# this accounts for what seems to be an inconsistency in ember-data | |
if typeof meta.type == 'string' | |
meta.type = @store.modelFor(meta.type) | |
resolver = Ember.RSVP.defer() |
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
## Problem | |
Let $b_0 = 1, b_{n+1} = b_n$. What is $b_n \bmod 10^k?$ | |
## Solution (partial) | |
Let $\varphi_0 = 10^k$ and $\varphi_{n+1} = \varphi(\varphi_n)$. | |
Let $d_n = \gcd(b, \varphi_n)$ and $t_n = \varphi_n / d_n$. | |
$b_{n+1} \bmod = b^{b_n} \bmod \varphi_0$ |
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
{"1":function(depth0,helpers,partials,data,args) { | |
var stack1, helper; | |
data.person = args[0]; | |
return " " | |
+ this.escapeExpression(((helper = (helper = helpers.greeting || (depth0 != null ? depth0.greeting : depth0)) != null ? helper : helpers.helperMissing),(typeof helper === "function" ? helper.call(depth0,{"name":"greeting","hash":{},"data":data}) : helper))) | |
+ " " | |
+ this.escapeExpression(this.lambda(((stack1 = (data && data.person)) && stack1.name), depth0)) | |
+ "\n"; | |
},"compiler":[6,">= 2.0.0-beta.1"],"main":function(depth0,helpers,partials,data) { |
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
Cm.SubmissionWorkspaceView = Em.CollectionView.extend | |
tagName: 'ul' | |
classNames: [ 'workspace' ] | |
itemViewClass: 'submissionPage' | |
didInsertElement: -> | |
@$().sortable | |
placeholder: 'placeholder' | |
start: (e, ui) -> |
OlderNewer