title: jQuery combine .ready and .resize
body: <p>Some (well, nearly all) of my code that is in my jQuery .ready function also applies when the window is resized, as it's layout work. However, since it's the same code, how could I "combine" the two functions, so that my code doesn't repeat itself (and be a mess to maintain)?</p>
  
  <p>Thanks!</p>