Showing posts with label TIL. Show all posts
Showing posts with label TIL. Show all posts

Wednesday, 16 January 2013

TIL About Ruby class and modules namespacing

Today's post is courtesy of Captain Obvious, but still I wasn't sure and just HAD TO experiment.
It's simple, if you have a Module A with a class A::B inside, when you include A into class C, C::B will return A::B.
C::A will return A with a warning.

Monday, 5 November 2012

How to make TM, C and R symbols on Keyboard - Linux ™,©, ®

Silly short post, I was playing with the keyboard and finally figured this out, quite useful, so I'm making a post for:
a) I can refer to later.
b) Other people may find later.

I only tested this with Ubuntu, so there

These 3 symbols work in combinations of Alt Gr + Shift + [KEY], I'll list the key:

  • ™ - 8
  • © - c
  • ® - r