Recent submissions

Comment · 7 years ago
The point is that if I send you a gif, you currently don't need to tell whatever program you opened it in that it's meant to loop. When I send you a gif, I expect it to be looped on your end. It's part of the gif package that we've come to love. Of course the loop flag doesn't strictly need to exist, but if someone has to perform an extra step to do what gifs were already doing, then no one will use it as a replacement.
Comment · 7 years ago
I tried using this today. I couldn't find a way to rename the site I signed up for; I didn't make the connection that the username would be the URL/site name. I also couldn't delete my primary site to create a replacement, so I had to close my account just to create a site with a new name. Just thought I'd let y'all know a minor inconvenience I ran into.
Comment · 7 years ago
Not that hard :). Add this as a tampermonkey script for a simple version.

Array.from(document.getElementsByClassName('comment')).forEach(x => {if (/Trump/.test(x.innerText)) { x.innerText = 'Trumped' }})

Comment · 8 years ago
Very true about using it to great effect in 808s and Heartbreak! I remember hearing one of those tracks and finding it fairly nice to listen to. Then I heard him live on SNL and his singing voice was close to non-existent.
Comment · 8 years ago
Charmer? CharmIt? Charming? CharmHPD? Charmplus? Superintendentchalmers? The problem here isn't that PyCharm came second or that Jetbrains will have an issue. The problem here is that it's so many conversations will go

> Have you used CharmPy?

> You mean PyCharm?

> No, CharmPy!

> Are we talking about the same thing?

> No

> Oh, that's just confusing, then.

Comment · 8 years ago
Why?
Comment · 9 years ago
Simon Sinek has an interesting hypothesis about the cause of the breakdown in politics in his book "Leaders Eat Last". I'm giving a very brief summary, but in that book he suggested that most US federal politicians used to live a lot of their careers in Washington DC, attend similar social events and send their children to the same schools, which helped them relate to each other (across party lines). It is suggested that the closeness created decency and civility between them, but now that a lot of them still live in their home states, they no longer see the opposition as similar to themselves, and it's become a "us vs them" kind of thing for everything.
Comment · 10 years ago
What would be a better comparison?
Comment · 10 years ago
This is pretty cool, great job! I know this is only a cheatsheet, which implies simple, but one idea that I think might be useful would be to add something to allow an end-user to resize the preview pane. This would allow more complete "previewing" of responsive items, eg. "navbar-toggleable-*" which collapses the a navbar down to a hamburger when the width is small.

Once again though, nice work! :)

Comment · 10 years ago
Also note, if anyone is using "reactify" and has used the spread operator in JSX, as 15.0.0 removed React.__spread, your build will break. (Reactify uses the deprecated react-tools which uses React.__spread.)
Comment · 10 years ago
Thanks for the response, man! To be completely honest, I definitely don't follow PEP8 100% (especially in regards to continuing-line indentation) because to do so would make some lines quite nasty looking simply for compliance to guidelines (also, I've seen many many projects ignore those rules too). But I don't recall ever seeing any libraries break that specific spacing rule which as some others have pointed out, make the documentation look a bit.. unexpected.

In regards to: > if you use JS libs they won't follow PEP 8 either. > And that's probably something to accept, as, however > big the Python world, one cannot ignore the JS world.

I totally agree. I spend about half of my time writing JS and half in Python and I definitely don't try to enforce PEP8 guidelines onto JS code, simply because it's a Python style guide, not a JS guide. I would try to follow a largely accepted code style of the JS community if I was made aware of one, but there only seems to be a large collection of non-official guides, so just I try to adjust my code style to what seems to be common among all of the "nice"/readable code around the web, or, if I'm working in a large existing code base, the style that is followed in that codebase, unless there's reason good not to.

I guess my general approach is that I prefer to style the code I write based upon the language (sometimes, for example, this requires placing open braces in different positions), and I find this actually helps my mind to switch between languages as they have their own look-and-feel to them.

Thanks for reading, and thanks for writing a very interesting library!

Comment · 10 years ago
Comment · 10 years ago
It looks very nice! How's the battery life? This review seems to indicate it sits at under two thirds of the MBPs:

http://www.pcmag.com/article2/0,2817,2458699,00.asp

Also, just for clarification, do you mean self-repairable? The review said it, like the MBP, has non-standard screw heads making repair difficult. Thoughts?

Comment · 10 years ago
I think he means the exact same Python script can be run directly on any environment that has Python installed if written correctly, in contrast to a C program which has to be recompiled on various environments to be able to run.
Comment · 11 years ago
Ah, yes; that's a great point about the sort algorithm!

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton