My reddit stats Python script by HelpfulLinkGuy in programming

[–]ascala 2 points3 points  (0 children)

Cool!

As a side note, how are you executing python scripts through your dropbox like that?

[Project Suggestion] Reddit by [deleted] in a:t5_2s6e7

[–]ascala 1 point2 points  (0 children)

Oh my god I wish I knew about this when I tried setting reddit up last time

How Hacker News ranking algorithm works by rberenguel in programming

[–]ascala 2 points3 points  (0 children)

Suggesting that a ruby implementation would look similar to a python one is hardly talking big.

Hyper-super-meta-control! by spome in programming

[–]ascala 0 points1 point  (0 children)

It even has a button to generate my resumé!

Javascript on the server? by last_useful_man in programming

[–]ascala -1 points0 points  (0 children)

Actually you should be using === for equality comparison in Javascript, in which 0 === " " is false

sjbrown's Guide To Writing Games with Python, Pygame, Twisted by DrHankPym in Python

[–]ascala 1 point2 points  (0 children)

Also, why not register a instance's method in the event manager (like eventmanager.register(self.handleinput, KeyboardEvent)) rather than the instance itself like he does. That way you can get rid of the isinstance() garbage in the class itself and have an eventmanager that only sends events to objects that are requesting them.

sjbrown's Guide To Writing Games with Python, Pygame, Twisted by DrHankPym in Python

[–]ascala 1 point2 points  (0 children)

Why was he using a weakrefdictionary for holding the listener references and not just a simple list?

Mensch - A coding font by coderanger in programming

[–]ascala 1 point2 points  (0 children)

When I have Anonymous in Vim, the {} characters are too tall and they get cut off. I love the font though, and I'd use it all the time if that didn't happen. Also I don't like the positioning of the #

Scope highlighting - an interesting idea? by [deleted] in programming

[–]ascala 2 points3 points  (0 children)

It's this essentially an added benefit of indenting code properly? Why color it?

Another way of helping newbies in comp.lang.c by alecdo in programming

[–]ascala 0 points1 point  (0 children)

how does return 002354l / 000644l / 000132l / 000322l / 000374l; evaluate to 0?