Skip to content

Instantly share code, notes, and snippets.

class ContentTools.Tools.Bold extends ContentTools.Tool
# Make the current selection of text (non)bold (e.g <b>foo</b>).
ContentTools.ToolShelf.stow(@, 'bold')
@label = 'Bold'
@icon = 'bold'
@tagName = 'b'
@tagNames = ['b', 'strong']
@Yopi
Yopi / decode_session_cookie.rb
Last active July 10, 2016 10:25 — forked from pdfrod/decode_session_cookie.rb
A simple script to decode Rails 4 session cookies
@Yopi
Yopi / count_votes.rb
Created December 7, 2015 22:49
A script that parses votes made in DUrn.
votes = [
["A", "B", "C"],
["A", "B", "C"],
["A", "B", "C"],
["A", "B", "C"],
["A", "B", "C"],
["A", "B", "C"],
["A", "B", "C"],
["A", "B", "C"],
["A", "B", "C"],