Skip to content

Instantly share code, notes, and snippets.

@FelixAkk
FelixAkk / keybase.md
Created January 24, 2020 15:35
Keybase proof

Keybase proof

I hereby claim:

To claim this, I am signing this object:

@FelixAkk
FelixAkk / mask-test.svg
Created December 28, 2015 13:52
SVG masking support minimal testcase
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@FelixAkk
FelixAkk / gist:708a871755fbd4342b70
Last active August 29, 2015 14:03
The cure for the disease of div-itis
# Heads up to front-end developers!
# $.append isn’t the only DOM insertion function!
# It requires containers to append elements into.
# It’s the primary source of excessive div-itis.
# Abandon the practice of e.g.
# @$(‘div.itself div.container div.sub-container div.collection div.comments’).append($comments)
# And switch to the more semantic:
@place = @$("header").after
@place($body)
# Wrap with $.proxy when sending out of context, e.g.
@FelixAkk
FelixAkk / gist:8134623
Created December 26, 2013 14:44
Expanding all subcomments on a FeedbackFruits Dialog page using Javascript
// in CoffeeScript: (install Acebug to run CoffeeScript in Firefox developers console)
// for cid, topic of FFApp.window.view.childView.comments.childs
// topic.initializeSubcomments()
// topic.$(".comments, .sub.comment_form").show()
for(var cid in FFApp.window.view.childView.comments.childs){
topic = FFApp.window.view.childView.comments.childs[cid];
topic.initializeSubcomments();
topic.$(".comments, .sub.comment_form").show();
}