moving

August 21st, 2008

Fridaytraffic is being moved to Wordpress, please check back in a couple of days …

Testing code snippets…

class String
  NUM = /[-+]?(\d+\.)?\d+([eE][-+]?\d+)?/
  DEC = /[-+]?(0d\d([\d_]*\d)?)|([1-9]([\d_]*\d)?)|0/
  BIN = /[-+]?[01]([01_]*[01])?/
  OCT = /[-+]?0([0-7_]*[0-7])?/
  HEX = /[-+]?0x[\da-fA-F]([\da-fA-F_]*[\da-fA-F])?/
 
  def number?;  (self =~ NUM) != nil; end
  def decimal?; (self =~ DEC) != nil; end
  def binary?;  (self =~ BIN) != nil; end
  def octal?;   (self =~ OCT) != nil; end
  def hex?;     (self =~ HEX) != nil; end
end

ps - almost ready for public consumption, busy with final theme selection and customization…