710 karma · joined February 14, 2013
n = iter(array).next
[(n(), n(), n()) for _ in xrange(len(array) / 3)] while True:
result = list(islice(iterator, 3))
if not result:
break
yield resultThis accomplishes the same thing without being hard to understand:
from itertools import islice
iterator = iter(array)
try:
while True:
yield list(islice(iterator, 3))
except StopIteration:
passHere is a much better writeup: http://www.theverge.com/2013/8/28/4668504/uber-lawsuit-san-f...
I've used the app several times and I've never been prompted to enter a tip. Maybe it's a new feature?
Edit: After reading a few more sources I think the issue is that every fare has a built in 20% tip, but Uber takes half of it. Another source: http://www.businessinsider.com/uber-drivers-open-lawsuit-ove...
http://thenextweb.com/shareables/2013/02/02/typing-these-eig...
$ whois twitter.com
Whois Server Version 2.0
Domain names in the .com and .net domains can now be registered with many different competing registrars. Go to http://www.internic.net for detailed information.
TWITTER.COM.GET.ONE.MILLION.DOLLARS.AT.WWW.UNIMUNDI.COM
TWITTER.COM
And then:
$ whois verisign.com
Whois Server Version 2.0
Domain names in the .com and .net domains can now be registered with many different competing registrars. Go to http://www.internic.net for detailed information.
VERISIGN.COM.MIGHT.SUCK.FYRAE.COM
VERISIGN.COM
I get really crazy responses like this for almost every major site I try (cnn.com, yahoo.com, google.com).
[0] https://play.google.com/store/apps/details?id=net.nurik.roma...
[1] https://play.google.com/store/apps/details?id=com.spectrl.Da...
(edit: why does double * get escaped away on here.)
I have a problem with them abusing the git commit logs to get at my personal email as a way of manipulating me.
Would it be possible to have the refresh icon spin instead of that weird animation, or is that a result of it being a web app?
1) login.persona.org that takes care of authentication
2) a JavaScript shim that developers add to their sites to get the login button to work.
Persona is designed in such a way that reliance on Mozilla will be phased out as email providers take care of #1 and as browsers start to implement #2. As of now I think FireFox is the only browser that has #2 baked in.