Quick Tips
Use ReSharper to Change an indexer to Getter/Setter methods
Yes.
With your pointer on the this in the method signature, go to the menu in Resharper -> Refactor -> Convert -> Indexer To Method...
The reverse...
Get max consecutive occurrences of value in array
You can use Enumerable#chunk:
p array.chunk{|x| x}.select{|x, xs| x == 1}.map{|x, xs| xs.size }.max
This is more concise, but if performance was...
How to parse an item in a list containing two floats and omit its parentheses in Python
You can do:
for x, y in points:
p = Point(x, y)
or this:
for item in points:
p = Point(*item)
This tip was originally posted on Stack Overflow.