Added method for publishign a codesnippet to pubnub