Bits & Bytes
  • About
  • Art
  • Blog
  • Cooking
Subscribe
Analyzing NYC Subway Data with Python
python

Analyzing NYC Subway Data with Python

MTA provides a public dataset of turnstile data per station since May 2010. We can grab weather data from Weather Underground, who kindly provides historical weather data in CSV format. You can also grab the same data through their API. Data Munging The data we collected so far usuable yet,

  • Ben Yu
Ben Yu May 19, 2014 • 3 min read
Quine
quine

Quine

Inspired by this impressive piece of engineering, I tried to write my one quine in CoffeeScript. The trick I used was to encode the entire file into decimal ASCII and store it in the data array. To rebuild the actual code, you convert it back to characters. This lets you

  • Ben Yu
Ben Yu Jul 17, 2013 • 1 min read
Advent of Code 2021
art

Advent of Code 2021

Visualizations of Advent of Code 2021 challenge. Code on Github Day 11 - Flashing Octopuses (Strobe Warning)

  • Ben Yu
Ben Yu Dec 29, 2012 • 1 min read
Mario Levels
art

Mario Levels

  • Ben Yu
Ben Yu Dec 29, 2010 •
Procedural Fern
art

Procedural Fern

  • Ben Yu
Ben Yu Dec 29, 2010 •
Harmonographs
art

Harmonographs

  • Ben Yu
Ben Yu Dec 29, 2010 • 1 min read
Wine Still Life - 2019
art

Wine Still Life - 2019

  • Ben Yu
Ben Yu Dec 29, 2010 •
Skull Still Life - 2019
art

Skull Still Life - 2019

  • Ben Yu
Ben Yu Dec 29, 2010 •
Genuary 2021
art

Genuary 2021

Experimenting with different forms of repetition

  • Ben Yu
Ben Yu Dec 29, 2010 • 1 min read
Shapes
art

Shapes

  • Ben Yu
Ben Yu Dec 29, 2010 • 1 min read
Visionary
art

Visionary

  • Ben Yu
Ben Yu Dec 29, 2010 •
Brothers #1
art

Brothers #1

  • Ben Yu
Ben Yu Dec 29, 2010 •
Halibut Poached in Duck Fat with Corn Salad
cooking

Halibut Poached in Duck Fat with Corn Salad

My riff on a recipe from Anthony Bourdain’s Appetites cookbook: Halibut Recipe:2 halibut fillets (about 12 ounces each; ask your fishmonger to remove the white belly skin but to leave the dark dorsal skin attached)1 quart rendered duck fat (available at various gourmet retailers and some butcher

  • Ben Yu
Ben Yu Dec 29, 1992 • 1 min read
Macau-style Pork Chop Sandwich
cooking

Macau-style Pork Chop Sandwich

Came out a bit dry, but the sauce was to die for. Ingredients [serves 4] 4 boneless pork rib chops or cutlets (about 6 ounces each)¼ cup soy sauce¼ cup Chinese rice wine¼ cup black vinegar1 tablespoon sesame oil4 garlic cloves, peeled and coarsely chopped1 tablespoon five-spice powder1 tablespoon dark

  • Ben Yu
Ben Yu Dec 29, 1991 • 2 min read
Duck Rillettes
cooking

Duck Rillettes

Anthony Bourdain's Recipe from Appetites: A Cookbook (page 111)

  • Ben Yu
Ben Yu Dec 29, 1991 • 1 min read
Homemade Ramen Noodles
cooking

Homemade Ramen Noodles

  • Ben Yu
Ben Yu Dec 29, 1991 • 1 min read
叉烧 - Chinese BBQ Pork
cooking

叉烧 - Chinese BBQ Pork

  • Ben Yu
Ben Yu Dec 29, 1991 •
Vanocni Cukrovi (Czech Susenky Christmas Cookies)
cooking

Vanocni Cukrovi (Czech Susenky Christmas Cookies)

  • Ben Yu
Ben Yu Dec 29, 1991 •
Sourdough
nolink

Sourdough

  • Ben Yu
Ben Yu Dec 29, 1991 • 1 min read
Roast Lamb with Mint Sauce
nolink

Roast Lamb with Mint Sauce

  • Ben Yu
Ben Yu Dec 29, 1991 •
Beef Wellington
nolink

Beef Wellington

  • Ben Yu
Ben Yu Dec 29, 1991 •
Omelette Du Fromage
notitle

Omelette Du Fromage

  • Ben Yu
Ben Yu Dec 29, 1991 •
Ivan Orkin Shio Ramen
cooking

Ivan Orkin Shio Ramen

  • Ben Yu
Ben Yu Nov 29, 1991 •
Bon Appetit Perfect Roast Turkey
cooking

Bon Appetit Perfect Roast Turkey

  • Ben Yu
Ben Yu Nov 29, 1991 •
燒肉 - Roast Pork Belly
cooking

燒肉 - Roast Pork Belly

  • Ben Yu
Ben Yu Nov 29, 1991 •
Bits & Bytes © 2025
Powered by Ghost