senooken JP Social
  • FAQ
  • Login
senooken JP Socialはsenookenの専用分散SNSです。
  • Public

    • Public
    • Network
    • Groups
    • Popular
    • People

Conversation

Notices

  1. halcy​:icosahedron: (halcy@icosahedron.website)'s status on Tuesday, 15-Jan-2019 06:16:27 JST halcy​:icosahedron: halcy​:icosahedron:
    • kepstin

    @kepstin well, was looking at itertools.product and went "huh, I wonder if I could..." and turns out I can

    In conversation Tuesday, 15-Jan-2019 06:16:27 JST from icosahedron.website permalink
    • halcy​:icosahedron: (halcy@icosahedron.website)'s status on Tuesday, 15-Jan-2019 06:09:31 JST halcy​:icosahedron: halcy​:icosahedron:

      please enjoy this beautiful, concise and not at all hard to read code to convert binary numbers to decimal in python:

      In conversation Tuesday, 15-Jan-2019 06:09:31 JST permalink

      Attachments


      1. https://icosahedron.website/system/media_attachments/files/002/024/144/original/af75cb804a1be962.png
    • halcy​:icosahedron: (halcy@icosahedron.website)'s status on Tuesday, 15-Jan-2019 06:12:06 JST halcy​:icosahedron: halcy​:icosahedron:
      • ZK-Class Reality Failure Event ?

      @monorail I mean it's not golf honestly

      it's just a bad idea that worked out

      In conversation Tuesday, 15-Jan-2019 06:12:06 JST permalink
    • halcy​:icosahedron: (halcy@icosahedron.website)'s status on Tuesday, 15-Jan-2019 06:13:28 JST halcy​:icosahedron: halcy​:icosahedron:
      • Polaris

      @dotUser (((((((((((((((((((((((()))))))))))))))))))))

      In conversation Tuesday, 15-Jan-2019 06:13:28 JST permalink
    • halcy​:icosahedron: (halcy@icosahedron.website)'s status on Tuesday, 15-Jan-2019 06:18:47 JST halcy​:icosahedron: halcy​:icosahedron:
      • minus

      @minus I wonder if python is smart enough to only evaluate the one element it has to

      probably not

      In conversation Tuesday, 15-Jan-2019 06:18:47 JST permalink
    • halcy​:icosahedron: (halcy@icosahedron.website)'s status on Tuesday, 15-Jan-2019 06:20:03 JST halcy​:icosahedron: halcy​:icosahedron:
      • minus

      @minus too bad!

      In conversation Tuesday, 15-Jan-2019 06:20:03 JST permalink
    • halcy​:icosahedron: (halcy@icosahedron.website)'s status on Tuesday, 15-Jan-2019 06:24:27 JST halcy​:icosahedron: halcy​:icosahedron:
      • Yábir Benchakhtir

      @yabirgb why NOT

      In conversation Tuesday, 15-Jan-2019 06:24:27 JST permalink
    • halcy​:icosahedron: (halcy@icosahedron.website)'s status on Tuesday, 15-Jan-2019 06:25:07 JST halcy​:icosahedron: halcy​:icosahedron:
      in reply to

      y'all I know how to convert bases in a not ridiculous way, please

      In conversation Tuesday, 15-Jan-2019 06:25:07 JST permalink
    • Harmon758 (harmon758@mastodon.social)'s status on Tuesday, 15-Jan-2019 06:40:51 JST Harmon758 Harmon758
      in reply to

      @halcy Why not ["".join(p) for p in itertools.product(*("01",)*4)].index("0110")

      In conversation Tuesday, 15-Jan-2019 06:40:51 JST permalink
      halcy​:icosahedron: repeated this.
    • halcy​:icosahedron: (halcy@icosahedron.website)'s status on Tuesday, 15-Jan-2019 06:41:40 JST halcy​:icosahedron: halcy​:icosahedron:
      in reply to
      • Harmon758

      @Harmon758 what an optimization!

      In conversation Tuesday, 15-Jan-2019 06:41:40 JST permalink

Feeds

  • Activity Streams
  • RSS 2.0
  • Atom
  • Help
  • About
  • FAQ
  • TOS
  • Privacy
  • Source
  • Version
  • Contact

senooken JP Social is a social network, courtesy of senooken. It runs on GNU social, version 2.0.2-beta0, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All senooken JP Social content and data are available under the Creative Commons Attribution 3.0 license.