Skip to content

Instantly share code, notes, and snippets.

Konstantin Gassmann konstantingassmann

  • frankfurt/germany
Block or report user

Report or block konstantingassmann

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
konstantingassmann / svgicons.rb
Created May 12, 2016
liquid tag to display a symbol from your svg icon file. Takes the symbol id as argument.
View svgicons.rb
module Jekyll
class SvgiconTag < Liquid::Tag
def initialize(tag_name, icon, tokens)
@icon = icon.gsub(/\s+/, "")
def render(context)
"<svg class=\"icon\" role=\"img\" width=\"24\" height=\"24\"><use xlink:href=\"/assets/icons.svg\##{@icon}\"></use></svg>"
konstantingassmann / 0_reuse_code.js
Created Sep 28, 2015
Here are some things you can do with Gists in GistBox.
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
You can’t perform that action at this time.