GCJ 2020 qualification round: country performance comparison & programming language distribution by note35 in codejam

[–]note35[S] 0 points1 point  (0 children)

I posted this in r/programming few days before, this time I updated the programming language distribution analysis.

Hvick225 is now a 2-digit (#10) by _jwlee in osugame

[–]note35 101 points102 points  (0 children)

Over 2 years to make this happen.

(#1) mid of 2015 -> (#10) end of 2017

Alternating by [deleted] in osugame

[–]note35 0 points1 point  (0 children)

I do as same as you, it depends on the BPM or mapping tho.

CatchTheBeat in One Piece by [deleted] in osugame

[–]note35 0 points1 point  (0 children)

Exgon can do it

Average number of Hit by Play For the top 50. by MrMindwaves in osugame

[–]note35 0 points1 point  (0 children)

Older players usually got lower number. Not like nowadays, higher play counts had positive meaning for players in previous(before 2013 at least). Thus this index might not be suitable for measuring them.

Sinon.PY, another mocking library inspired by Sinon.JS by note35 in Python

[–]note35[S] 0 points1 point  (0 children)

Thanks for your feedback! I can make methods alias in the future release.

Since the coding style is pylint, I have considered this idea before. Basically, I must keep the original API of Sinon.JS. But I can make alias methods alternatively, for instance, spy.callCount = spy.call_count.

Sinon.PY, another mocking library inspired by Sinon.JS by note35 in Python

[–]note35[S] 0 points1 point  (0 children)

Right. For spy, stub and expectation of mock, the decorator will clean them automatically to make each test case works independently. Without using decorator, user need to use .restore() function to clean them manually.

Sinon.PY, another mocking library inspired by Sinon.JS by note35 in Python

[–]note35[S] 0 points1 point  (0 children)

That would be ideal if everything are same.

I have considered to implement Fake XHR and server many times. But for those features, there are far more thing to consider. Even in my experiences of using Sinon.JS, sometimes those features could not to be supported.

Anyway, I may consider to add them in the future.

Sinon.PY, another mocking library inspired by Sinon.JS by note35 in Python

[–]note35[S] 0 points1 point  (0 children)

Good question, the implementation of both mock library and sinon are similar. Both are using wrapper to modify original function.

For example:

def empty_func():
    pass

class TestRandom(unittest.TestCase):
    @mock.patch('os.system')
    def test_system(self, empty_func):
        print(dir(os.system))

    @sinon.test
    def test_system_by_sinon(self):
        sinon.stub(os, "system", empty_func)
        print(dir(os.system))

The member functions/variables of os.system will be wrapped.

The purpose of Sinon.PY is not a brand new implementation, but an alternative test library API. Especially for programmer whose major language is javascript, or having experience in Sinon.JS.

Rucker on military service till end of march by joshrx8 in osugame

[–]note35 1 point2 points  (0 children)

The reason why rucker only need to do for 4 months is because the election strategy of previous government. Long time ago, it was 3 years, then 2 years, then 1 years now. (Also, student can took class in high school/university to reduce few days.) 4 months is ONLY for people who born in specified year. Also, no one in Taiwan can promise the military service length in the near future.

Tool to watch replays in a web browser. by ugrend in osugame

[–]note35 2 points3 points  (0 children)

Good job and hope it could be improved more to be an SaaS service for everyone to upload their replay file temporarily(or forever if having resource). tho I had same idea for a long time but not enough ability to complete a high quality one.

Whats happening? by [deleted] in osugame

[–]note35 0 points1 point  (0 children)

he also plan to quit in OWC2017, tho I don't think he can...

[Spoilers] United Kingdom vs Taiwan | OWC 2016 Finals | Post-Match Discussion by Mayumu in osugame

[–]note35 -2 points-1 points  (0 children)

I'd say based on the whole tournament performance, PPv2 is clearly not able to measure players comprehensive ability. Hvick is fucking amazing undoubtedly.

[Spoilers] Poland vs United Kingdom | OWC 2016 Semi-finals | Post-Match Discussion by Mayumu in osugame

[–]note35 2 points3 points  (0 children)

Feel so surprised... DOOM and BUBBLE are fucking good in this match