Coder Social home page Coder Social logo

tkr-sh / weekgolf Goto Github PK

View Code? Open in Web Editor NEW
20.0 20.0 7.0 21.9 MB

The official repository behind WeekGolf

Home Page: https://www.weekgolf.net

License: GNU General Public License v3.0

Python 3.94% Dockerfile 0.43% Shell 2.03% C 0.16% CSS 0.08% HTML 0.09% SCSS 15.04% TypeScript 78.04% JavaScript 0.19%
code-golf competitions programming website weekgolf

weekgolf's People

Contributors

fidotortoise avatar garklein avatar liamlagezyxis avatar lyxal avatar shanethegamer avatar steffan153 avatar tkr-sh avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

weekgolf's Issues

Python character read incorrect in translate

In the WeekGolf translate page, under the table that compares several languages on the availability of several features supported/unsupported, I see that Python has a red box (indicating false) for reading a single character from STDIN, next to reading all of STDIN given by open(0).read() in the row for Python.
image

However, as open(0).read() is considered for reading all of STDIN, then I would state that reading a single character from STDIN is possible in Python as well by just passing '1' as an argument to the same .read() method as shown in the column before it. It can be corrected here in Client/src/data/translation.json source. A few ways in which this can be shown is:

  1. sys.stdin.read(1)
  2. open(sys.stdin.fileno()).read(1)
  3. open(0).read(1)

The third one makes more sense to get fit in that table as it is purely a one-liner and would not need any dependencies to be imported separately for it to work (as import sys would be additionally needed in case of first 2 options)

Please see if this needs correction there.

Side Note: @Aderepas You have defeated me in Code Golf on my last clash at Clash of Code, which got my attention on your CoC profile which pointed to your WeekGolf site in description, checking which lead me to file this issue here. ๐Ÿ˜ƒ

Project License

This project is lacking a LICENSE file.
Could you clarify how it's licensed and add one?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.