47 karma · joined Nov 24, 2013 (13y ago) · 22 submissions
comment 6y ago · link · parent
I've checked a few browsers on desktop and it seems to be no problem at all there, with the added benefit that most (or all?) modern browsers let's you easily change the font size that is used with Ctrl +/- (or Cmd) on almost all sites. For instance, I have the fonts scaled to 125% here on HN since I find them a bit small normally. (You can do that on mobile as well, but I'm not sure if that works on a per-site basis like how it works on desktop.)
comment 6y ago · link · parent
> Uber determines the price of the ride; Airbnb doesn’t set the rent. Uber sends an order to a specific driver; Airbnb merely provides a prospective guest with a list of properties. Uber, according to Thursday’s ruling, exercises “decisive influence” over the transaction. That’s not the case with Airbnb.
comment 7y ago · link · parent
x = [[[1, 2]], [[2, 3]], [[3, 4]]]
x.flatMap(x=>x)
output: [[1,2], [2,3], [3,4]]
x.map(x=>x).flat()
output: [[1,2], [2,3], [3,4]]
x.map(x=>x).flat(Infinity)
output: [1, 2, 2, 3, 3, 4]
[1]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...
> It is identical to a map() followed by a flat() of depth 1, but flatMap() is often quite useful, as merging both into one method is slightly more efficientcomment 7y ago · link · parent
A shadow ban normally means that you, the creator, can see your content, but nobody else can. So them shadow banning people who post wallet codes is the direct opposite of allowing wallet codes.
comment 7y ago · link · parent
window.addEventListener("keydown", function(e) {
// space and arrow keys
if([32, 37, 38, 39, 40].indexOf(e.keyCode) > -1) {
e.preventDefault();
}
}, false);
That will prevent the scrolling when pressing the arrow keys. It's of course not a perfect solution, and something more robust would be to check if a game is currently running and so on, but it works as a quick hack.comment 7y ago · link · parent
comment 7y ago · link · parent
comment 11y ago · link · parent
comment 12y ago · link · parent
comment 13y ago · link · parent