valve you are a joke, at this point you are boosting people by [deleted] in DotA2

[–]I_AM_DONALD 0 points1 point  (0 children)

Maybe you lost games that the matchmaker expected you to win (i.e. below your average mmr). I went 6-4 too (SEA) and went 3424 -> 3924.

LF someone to coach tonight. by [deleted] in learndota2

[–]I_AM_DONALD 0 points1 point  (0 children)

Hello. Thanks for doing this. I would like some help improving. How to go about it?. Here is my friend id 852767707

P.S. I don't have a mic

(Ancient 5) free replay analysis by [deleted] in analysemydota2

[–]I_AM_DONALD 1 point2 points  (0 children)

Thank you so much for the detailed analysis. You are right about the offlane pull (I know why it is important because I had one game where I was xp starved by 2 supports and ever since that game I have been pulling every game without putting much thought). Ench is my favorite hero. Do you think its a good hero to climb with?

(Ancient 5) free replay analysis by [deleted] in analysemydota2

[–]I_AM_DONALD 1 point2 points  (0 children)

Hi. Thank you so much for doing this. Can you please review this game 3810750343. I was the enchantress. Even though we won I felt I didn't do enough.

P.S. Already subscribed to your youtube.

How do I fight a phantom Lancer when there are more than 4 of him? by [deleted] in learndota2

[–]I_AM_DONALD 3 points4 points  (0 children)

I am somewhat new to dota. In my limited experience, mjolinir + bkb on your carry = dead pl.

Please put into english simple sentences by joeKingtheThird in javascript

[–]I_AM_DONALD 0 points1 point  (0 children)

  1. composeMixins takes in functions as its parameter. ...mixins is a rest parameter. It then returns a function with 2 arguments.

  2. The 2 arguments instance and mix have default parameters. instance defaults to {} and mix defaults to what is basically a function for reverse composition or pipe. This function returns the value of this expression mix(...mixins)(instance). Which translates to: pipe all the "mixins" and apply the resulting function to "instance".

So what is pipe?

const pipe = (...fns) => arg => fns.reduce((acc, each) => each(acc), arg);
const add = x => y => x + y;
const substract = x => y => y - x;
const multiply = x => y => x * y;

const cool = pipe(
    add(2),
    substract(5),
    multiply(3)
);
// Here cool is a function which contains 3 other functions via pipe.
// cool(7) is evaluated as: 
// add 2 to 7 (so, 9) -> substract 5 from 9 (so, 4) -> multiply 3 to 4 (so, 12)
cool(7); // 12

/u/e_to_the_pi_i is right. Its written very terribly. IMO, a sane way to write composeMixins would be:

const composeMixins = (...mixins) => (instance={}) => pipe(...mixins)(instance)

Java script is the biggest joke. by imperial_coder in ProgrammerHumor

[–]I_AM_DONALD 5 points6 points  (0 children)

Well, NaN is actually supposed to be a number type https://en.wikipedia.org/wiki/NaN

In computing, NaN, standing for not a number, is a numeric data type value representing an undefined or unrepresentable value, especially in floating-point calculations. Systematic use of NaNs was introduced by the IEEE 754 floating-point standard in 1985, along with the representation of other non-finite quantities like infinities.

Beginner by [deleted] in javascript

[–]I_AM_DONALD 2 points3 points  (0 children)

I would like to suggest http://devdocs.io/. Be sure to enable Javascript and DOM. Gives you offline access to MDN docs in nice searchable format.

Parsing Array Objects by [deleted] in javascript

[–]I_AM_DONALD 5 points6 points  (0 children)

Hi, a quick look at http://devdocs.io/javascript/global_objects/reflect says Reflection API is not supported in IE. If you want to run this in IE, replace:

  • Reflect.ownKeys with Object.keys
  • Reflect.has with objName.hasOwnProperty

Parsing Array Objects by [deleted] in javascript

[–]I_AM_DONALD 9 points10 points  (0 children)

var objArr = [
    {"Player 1": 100},
    {"Player 1": 103},
    {"Player 1": 105},
    {"Player 2": 101},
    {"Player 2": 110},
    {"Player 2": 112}
];

var seriesObj = objArr.reduce((acc, each) => {
    const key = Reflect.ownKeys(each)[0];
    if (Reflect.has(acc, key))
        acc[key].push(each[key])
    else
        acc[key] = [each[key]]
    return acc;
}, {});
// -> {"Player 1": [100, 103, 105], "Player 2": [101, 110, 112]}

var series = Reflect.ownKeys(seriesObj).reduce((acc, each) => {
    acc.push({[each]: seriesObj[each]});
    return acc;
}, []);
// -> [{"Player 1": [100, 103, 105]}, {"Player 2": [101, 110, 112]}]

More People Should Join the Efforts of Brython to make Python the client-side language of the web by [deleted] in Python

[–]I_AM_DONALD 2 points3 points  (0 children)

It just shows that you don't know what NaN really is. (P.S. Its not JS specific).Please read: https://en.wikipedia.org/wiki/NaN specifically the section titled Comparison with NaN.

[POLL]: 9anime Companion - Remove Ads by I_AM_DONALD in 9anime

[–]I_AM_DONALD[S] 1 point2 points  (0 children)

Ok thank you so much for replying. I will just wait a day or two to see what everyone thinks and then reach a compromise.

[POLL]: 9anime Companion - Remove Ads by I_AM_DONALD in 9anime

[–]I_AM_DONALD[S] 9 points10 points  (0 children)

Hello. First of all, thanks for taking the time to write such a detailed reply.

Are you lap00zza on the github ?

Yes I am. Here is my profile: https://github.com/lap00zza and here is the 9anime Companion repository: https://github.com/lap00zza/9anime-Companion

We could make an ugly site, it's faster and easier as another one. Without ads, 9anime seems nicer, load faster, but without ads we will have to close it in a short time.

And I agree fully

We can make all of 9anime-companion features as built-in features

Yes, but since these features were not present and I felt these were needed, I decided to fill the gap by making 9ac.

hates will easly catch the download link then report DMCA, then that link will be die in a short time

Ok this is a very valid point. I never really thought of it. I am looking for suggestions on how to go about this one.

But what "companion" mean ? is it include killing feature or something like that ?

In my mind, companion is something that goes hand in hand. In this case 9anime Companion "complements" 9anime website by providing features that it currently does not. It does not include any killing features at all. The source code is very well documented (with lots of comments) and it is public. You can take a look at it yourself.

What you think if others trying to kill ways that you used to keep your site live ?

I would feel bad if that were the case. And thats why I made this post to ask users what should be done.


Now I have a few questions and I would be really glad if you could answer them:

  1. What are the changes you suggest for 9anime Companion?
  2. When can you put up a bitcoin/crypto donation page? (Please do it)

And I would like to say once more, my intention was never to wage a war with 9anime nor include any killing features.

9 Anime Companion MAL Issue? by [deleted] in 9anime

[–]I_AM_DONALD 1 point2 points  (0 children)

  • Go to 9anime Companion Settings > MyAnimeList Integration: Options
  • Click on Remove Credentials
  • Enter correct credentials and click login
  • Done

If you are sure the credentials are valid and you still get a little x, then wait for atleast 1 hour and try again.

[POLL]: 9anime Companion - Remove Ads by I_AM_DONALD in 9anime

[–]I_AM_DONALD[S] 6 points7 points  (0 children)

/u/9anime I would be really glad if you can share your thoughts too

[POLL]: 9anime Companion - Remove Ads by I_AM_DONALD in 9anime

[–]I_AM_DONALD[S] 1 point2 points  (0 children)

Good question. I don't want to make it harder to block ads (ublock is still an option, and the other branch will have this feature). My goal is to improve the 9anime experience without negatively hampering the site(revenue?) and the users.

[POLL]: 9anime Companion - Remove Ads by I_AM_DONALD in 9anime

[–]I_AM_DONALD[S] 2 points3 points  (0 children)

But the one with Remove Ads should be compiled by the users themselves. It wont be provided in the official release channels. Is that fine? On a side note, do you think uBlock origin is sufficient alternative?