Skip to content

Instantly share code, notes, and snippets.

@variousauthors
Last active December 20, 2015 10:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save variousauthors/6116324 to your computer and use it in GitHub Desktop.
Save variousauthors/6116324 to your computer and use it in GitHub Desktop.
Sunniest month ever record broken in Vancouver.
// apparently we had a really sunny month?
$.each(july, function(index, days) {
if (programming) {
$.each(house.windows, function(index, window) {
window.close();
});
house.ac.open();
self.on('sunrise', go_get_coffee);
self.on('sunset', go_get_coffee);
} else {
// I work a few days a week at a coffee shop
// wouldn't you?
while(customers) {
orders = customers.get_orders()
$.each(orders, function(index, order) {
if ($.inArray(['spro-to-go',
'large-cappuccino',
'iced-espresso',
'macchiato-to-go',
'no-make'], order.drink) {
// NOP
} else {
self.work(order);
}
});
}
}
});
@variousauthors
Copy link
Author

I'm a big fan of,

if (something_disapointing) { 
  // NOP
} else { 
  get_on_with_it
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment