Skip to content

Instantly share code, notes, and snippets.

View chrtze's full-sized avatar
👨‍💻

Christopher Möller chrtze

👨‍💻
View GitHub Profile
@chrtze
chrtze / logstash
Created May 28, 2015 11:44
logstash_config_update
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"]}
@chrtze
chrtze / frontend.js
Last active August 29, 2015 14:22
Ghost: Display All Tags
//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;
@chrtze
chrtze / evt.js
Last active October 1, 2015 12:18
simple touch event fix
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') {
@chrtze
chrtze / README.md
Created October 21, 2014 18:35
small multiple maps
@chrtze
chrtze / Hello World Carbide.carbide.md
Last active August 27, 2016 12:00
Hello World Carbide

Hello World Carbide

This Gist was automatically created by Carbide, a free online programming environment.

[You can view a live, interactive versi

Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.