def self.generate_required_data(orders)
all_the_orders = []
orders.each do |order|
...
class User attr_writer :opts def opts ...
Ruby Refactor simple attr_reader
Shortest, most aesthetic wa...
UserAccessControl uac = new UserAccessControl();
if (uac.IsAccessable)
...
C# Setting variable in if bloc...
How can I write a shorter
def parse_url(url)
matches = url.match(/\/([\d]{10})/)
return nil unless matches
...
Ruby Return nil if nothing matched
I want to return nil if not...
#!/usr/bin/env python import sys, os ...
Python filter by indentation level
I wrote this to filter outp...
Just interested to see how ...