It’s the weekend before Halloween, and somewhere in Bushwick, a gaggle of 20-somethings dressed as Nicole Kidman’s wigs are bankrupting themselves for a warehouse rager. Meanwhile, in midtown, revelers of all ages ride the elevators of the Stavros Niarchos Foundation Library for a free costume extravaganza — one catered to nerds. Tonight is the New York Public Library’s annual Halloween costume parade, or the bibliophile’s Met Gala. Hundreds of people will stream into the library’s rooftop terrace in their best literary getups, dressed as the Caged Bird That Sings or Little Red Riding Hood “in the style of Vivienne Westwood.”