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
<div class="recommendRatings leftLine clear recommendationFeed"> | |
<span class="userNameRating">Grace B.'s rating:</span> | |
<span class="rating mRating">3</span> | |
<span class="star_rating_background" title="3 stars"> | |
<span class="star_rating_active fixed_star_rating_3_0"></span> | |
</span> | |
</div> |
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
var rating = { | |
name: "Grace B.", | |
stars: 3 | |
}; | |
var my_template = _.template('<div class="recommendRatings leftLine clear recommendationFeed"><span class="userNameRating"><%= name %> rating:</span><span class="rating mRating"><%= star %></span><span class="star_rating_background" title="<%= star %> stars"><span class="star_rating_active fixed_star_rating_<%= stars %>_0"></span></span></div>'); |
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
<div class="recommend leftLine clear feed rating"> | |
<span class="userNameRating">Grace B.'s rating: 3</span> | |
<span class="stars" title="3 stars"> | |
<span class="rating active fixed 3"></span> | |
</span> | |
</div> |
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
<div class="comments show"><ul class="commentsContainer"><li class="clearfix"><a href="/user/kfinn" class="profile_name"> | |
<img width="30" height="30" src="http://cdn2.gbot.me/photos/yg/IB/1310063135/Kevin_Finn-20000000001594081-30x30.jpg" class="image"> | |
</a> | |
<p class="comment"> | |
<a class="profile" href="/user/kfinn">kfinn</a> | |
Thank you | |
. This place looks perfect, especially the waves.<br> | |
<span class="time">1 day ago</span> | |
<a class="delete sprites">Delete</a> |
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
{"meta":{"remainder":0,"parent_id":"5311010000000042425","parent_type":"ItemFeedback","user":{"name":"Adrian Chang","profile":"/user/adrian_chang","img":"http://cdn2.gbot.me/photos/rb/Ef/1325918203/Adrian_Chang-20000000002376893-30x30.jpg"}},"comments":[{"id":"40000000000000332","parent_id":"5311010000000042425","parent_type":"ItemFeedback","user":{"name":"kfinn","img":"http://cdn2.gbot.me/photos/yg/IB/1310063135/Kevin_Finn-20000000001594081-30x30.jpg","profile":"/user/kfinn"},"comment_text":"Thank you\n. This place looks perfect, especially the waves.","time":"1 day ago","deleteable":true},{"id":"40000000000000334","parent_id":"5311010000000042425","parent_type":"ItemFeedback","user":{"name":"Travis Katz","img":"http://cdn2.gbot.me/photos/ru/6I/1326952508/Travis_Katz-20000000002427413-30x30.jpg","profile":"/user/travis_katz"},"comment_text":"Waves are really good there most days. You'll love it.","time":"1 day ago","deleteable":true}]} |
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
describe("initialize", function() { | |
it("should have a default collection collection and parts", function() { | |
expect(this.view.collection).toBeDefined(); | |
expect(this.view.parts).toBeDefined(); | |
}); | |
it("should bind and add and reset event to renderBare / renderAdd", function() { | |
var renderBare = spyOn(Gogobot.Comments.Views.Container.prototype, "renderBare"), | |
renderAdd = spyOn(Gogobot.Comments.Views.Container.prototype, "renderAdd"); | |
this.view = new Gogobot.Comments.Views.Container(); | |
this.view.collection.trigger("reset"); |
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
var router1 = new Backbone.Router.extend({ | |
routes: { | |
"/tab1": "tab1" | |
} | |
tab1: function() { | |
new router2(); | |
} | |
}); | |
var router2 = new Backbone.Router.extend({ | |
routes: { |
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
var myData = _.flatten([ | |
[1, 2], | |
[3, 4] | |
]); | |
// myData => [1,2,3,4] |
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
import numpy as np | |
import argparse | |
parser = argparse.ArgumentParser() | |
parser.add_argument('-s', type=str) | |
parser.add_argument('-m', type=int) | |
args = parser.parse_args() | |
def max_product(input_str, multiply): | |
table = np.zeros([len(input_str) + 1, multiply + 1], dtype=np.int64) |
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
== Parsed Logical Plan == | |
'Aggregate ['domain], [unresolvedalias('domain, None), collect_list('record, 0, 0) AS twenty_four_months#23193] | |
+- Project [domain#12211, record#23176] | |
+- Project [domain#12211, month#23122, kind#12219, key#12220, value#23148, order#23156, grouping#23167, named_struct(kind, kind#12219, grouping, grouping#23167, key, key#12220, value, value#23148) AS record#23176] | |
+- Project [domain#12211, month#23122, kind#12219, key#12220, value#23148, order#23156, named_struct(type, month, value, cast(month#23122 as int)) AS grouping#23167] | |
+- Filter ((kind#12219 = count) || (order#23156 <= 21)) | |
+- Project [domain#12211, month#23122, kind#12219, key#12220, value#23148, order#23156] | |
+- Project [domain#12211, month#23122, kind#12219, key#12220, value#23148, order#23156, order#23156] | |
+- Window [row_number() windowspecdefinition(domain#12211, kind#12219, value#23148 DESC NULLS LAST, ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW) AS order |
OlderNewer