149 karma · joined May 27, 2013 (13y ago) · 39 submissions
comment 10y ago · link · parent
[0]: http://steamcommunity.com/app/221380/discussions/1/540744934...
comment 10y ago · link · parent
Possible explanation from unknown source: https://www.reddit.com/r/Steam/comments/3y7le9/im_logged_in_...
comment 10y ago · link · parent
function bindMap(fn) { return this.map(fn) }
[ 1, 2, 3 ]::bindMap(n => n + 1)
// standalone use: bindMap.call(arr, fn)
function pipelineMap(fn) { return arr => arr.map(fn) }
[ 1, 2, 3 ] |> pipelineMap(n => n + 1)
// standalone use: pipelineMap(fn)(arr)
(Also nice that it works in a very similar way to decorators, although they won't be interchangeable in most cases, with decorators working on class constructors and property descriptors, instead of just any value.)Presumably, at most one of these proposals will make it in :)
comment 11y ago · link · parent
Twitch has a few additional IRC-ish commands like CLEARCHAT, which deletes messages by a given user. Most IRC clients don't support this, but Twitch's browser client of course does :) In larger streams spammy messages are usually removed by bots like http://www.nightbot.tv/ or http://twitch.moobot.tv/. That's where the delay comes from: messages have to arrive at the moderator first.
Interestingly, CLEARCHAT can only delete _all_ messages by a given user (as far as I know), so non-offending messages are also removed. This is done by the client, the chat servers only pass "CLEARCHAT #channel_name user_name". (e; it's all messages by a given user, or all messages in the channel if no username is given)
In the Twitch browser client, you can double-click the <message deleted> text to show the original text if you really want to! :)
Reference: https://github.com/justintv/Twitch-API/blob/master/IRC.md
comment 11y ago · link · parent
https://github.com/WebAssembly/design/blob/master/TextFormat...
comment 11y ago · link · parent
[].slice.call(document.querySelectorAll(...)).forEach(function () {})
Because a lot of array methods are "generic", i.e. operate on array-like objects instead of just arrays, that can be "compacted" to [].forEach.call(document.querySelectorAll(...), function () {})
but neither are very nice.comment 11y ago · link · parent
Remote: Ok, prefer local
Willing to relocate: _Probably_ not
Technologies: Javascript (Node, Ember, Backbone, ES6 & other new stuff), HTML5/CSS3, PHP, Python, would love to get in touch with new things as well.
Résumé: https://rene.kooi.me/cv.html
Email: rene at kooi dot me
Github: https://github.com/goto-bus-stop
I'm primarily looking for an internship from November 2015-February 2016 or a part-time job next to my Software Engineering study at the Hanze Hogeschool.
comment 11y ago · link · parent
comment 11y ago · link · parent
// server
io.emit('event', function (msg) { console.log('Client responded!', msg) })
// client
io.on('event', function (cb) { cb('This is my response') })
And it also provides socket namespacing, and "rooms" (a bit like chat rooms), and broadcasts, and a bunch of things that I don't use.Sure, you can bolt all of that on in probably a few hundred lines, but socket.io also doesn't just do sockets and events :)
(And it also does it in less than 61000 lines. You still need the "ws" module to do WebSocket stuff in Node, even if you don't use socket.io)
comment 11y ago · link · parent
comment 11y ago · link · parent
comment 11y ago · link · parent
Remote: Fine!
Willing to Relocate: No
Technologies: JS (browser&Node), PHP, HTML5/CSS3/LESS, Python
Résumé: http://rene.kooi.me/cv.html
Email: rene at kooi dot me
Github: https://github.com/goto-bus-stop
I've some six years of hobby experience. Primarily looking for something small part-time (roughly 12hrs/week) next to school, or more during the summer vacation.
16.
Show HN: WikiBattle – 1v1 races through Wikipedia(wikibattle.me ↗)
1 points · by renekooi · 11y ago · discuss
comment 12y ago · link · parent
ytplay() { youtube-dl "$1" -o - | vlc - }
As a side benefit it of course also allows you to instantly watch stuff from all the other sites YT-DL supports :)comment 12y ago · link · parent
comment 12y ago · link · parent
comment 12y ago · link · parent
comment 12y ago · link · parent
e; library to build windows apps = WinJS
comment 12y ago · link · parent
It probably would've. But if they don't want that loss of reputation, perhaps they should have followed the appropriate laws in the first place? Seems like this is kind of the point of a punishment.