This Gist was automatically created by Carbide, a free online programming environment.
[You can view a live, interactive versi
var hasMoved; | |
$(el).on('touchend touchstart touchmove', function(e) { | |
if(e.type == 'touchstart') { | |
hasMoved = false; | |
} | |
else if(e.type == 'touchmove') { | |
hasMoved = true; | |
} | |
else if(e.type == 'touchend') { |
//insert at line 61 in: /core/server/controllers/frontend.js | |
function formatPageResponse(posts, page) { | |
// Delete email from author for frontend output | |
// TODO: do this on API level if no context is available | |
posts = _.each(posts, function (post) { | |
if (post.author) { | |
delete post.author.email; | |
} | |
return post; |
filter { | |
csv { | |
separator => "," | |
columns => ["Date","Open","High","Low","Close","Volume","Adj Close"] | |
} | |
mutate {convert => ["High", "float"]} | |
mutate {convert => ["Open", "float"]} | |
mutate {convert => ["Low", "float"]} | |
mutate {convert => ["Close", "float"]} | |
mutate {convert => ["Volume", "float"]} |