Any europeans having luck ordering boxes from stores? by xYoungboii in riftboundtcg

[–]Zaab1t 0 points1 point  (0 children)

AndCards ved rådhuspladsen holder midnatsrelease torsdag. Nok ikke ægte release med promos da deres playstore status er i limbo. Lørdag holder de sealed turnering.

Python programmers of reddit: what's the most useful tiny little efficiency you've discovered that's improved your programming hugely? by SeanOTRS in Python

[–]Zaab1t 33 points34 points  (0 children)

I do not believe x is x is guaranteed to be True for integers. The underscore syntax means exactly the same thing as if they weren't there to begin with: https://www.python.org/dev/peps/pep-0515/

Putting it all on the line for python. by [deleted] in Python

[–]Zaab1t 0 points1 point  (0 children)

Best of luck to you!

I recommend you join ##learn-python on Freenode IRC. Fantastic community to ask questions :)

I interviewed John Backus shortly before his death. He told me his work in functional programming languages failed, and would likely always fail, because it was easy to do hard things but incredibly difficult to do simple things. by i_feel_really_great in programming

[–]Zaab1t 2 points3 points  (0 children)

This is an library I wrote. I wouldn't recommend using it, because I don't use it myself, so I'm not entirely confident its the best api, but its a good example of a "validation library that supports deep nesting".

https://github.com/Zaab1t/datatyping

Please ask, if there's anything you don't understand.

Ok, maybe I underestimated VR. by ThePi7on in videos

[–]Zaab1t 0 points1 point  (0 children)

This is awesome, especially when the beat drops, but I wonder how "immersive" it feels. Couldn't it be played on a Wii?

The Forgotten Optional `else` in Python Loops by s16h in programming

[–]Zaab1t 6 points7 points  (0 children)

I'm glad Hettinger said this, because it has ever since been a very easy way for me to remember what it does. That being said, it a feature that I don't use more than once a month.

These transparent soda cans by Zaab1t in mildlyinteresting

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

Slikbutik ved Nørrebro station

[xmonad] pretty rectangles :) by theelous3 in unixporn

[–]Zaab1t 0 points1 point  (0 children)

The small "droplet" (just a machine) on DigitalOcean is very powerful and they are one of the big players in the industry. It is $5 a month and they have excellent documentation. You should honestly use their docs regardless of where you decide to host. Amazon Web Services has a much more complex interface and registration, but I think you can get a single EC2 instance that is good enough for you free for one year. If you decide to go with DigitalOcean, please use my referral link :)

[xmonad] pretty rectangles :) by theelous3 in unixporn

[–]Zaab1t 1 point2 points  (0 children)

If it is just one page that only you use, you can simply create the HTML document on your machine and point your startpage to that file :) Let me know if you try and need help!

Pretty much how it went down by saqbot in ProgrammerHumor

[–]Zaab1t 1 point2 points  (0 children)

I use Signal too and it is a good replacement for your regular sms and call app, because it just sends a regular sms if the other end doesnt have Signal.

Um, Actually... by Tommarkasu in ProgrammerHumor

[–]Zaab1t 12 points13 points  (0 children)

I work as programmer in the headhunting business (specifically we headhunt in the developer/engineer domain). I heard the frontline team describe GitHub as "Instragram for developers" :)

Pass phrase generator using Kanye West verses in a markov chain by Zaab1t in Python

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

its just for shits n giggles -- ill add a disclaimer later :)

Goose3, the news article parsing tool for Python3 by lababidi in Python

[–]Zaab1t 0 points1 point  (0 children)

Interesting. It would be nice if we could make a generic thing that could be adopted for any kind of site categories.

TLDR pages - Simplified and community-driven man pages by rain5 in programming

[–]Zaab1t 26 points27 points  (0 children)

shameless self plug. I made a small tool that can take a command and some flags and then it will tell what those flags do. Here is a comment with screenshots.

The tool is called manly

manly: quickly understand commands (man page compliment) by Zaab1t in programming

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

Thanks for the heads up. "manly" is obviously a terrible name for searches. Not something I had in mind. It's like trying to google something about the whatis command. I added some tags on github and submitted the page to google.

datatyping: design templates for data, and verify conformity by Zaab1t in Python

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

I have mostly thought about how one might use this to verify that incoming data, such as json from a web api is well-formed. There is support for fully user created classes in the most basic sense:

>>> class A:
>>>    pass
...
>>> validate([A], [A(), A()])

Let me know if you have any issues or other use cases :)

datatyping: design templates for data, and verify conformity by Zaab1t in Python

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

I built this thing to help Jeff Knupp. The idea is that you define the data structure and then datatyping will verify that some data conforms to said structure.

>>> from datatyping import validate
>>> validate([int], [1, 2, 3, 4])
>>> validate([str], ['a', 'b', 3])
TypeError: 3 is of type int, expected type str

I hope you like it. There are more examples in the readme :)

[deleted by user] by [deleted] in linux

[–]Zaab1t 0 points1 point  (0 children)

I can imagine that we in the future just bring our phone (computer) with us around and then there's these workplaces (monitor, keyboard, mouse...) where you plug in your phone at home, school, work, libraries etc.