CSS Checkerboard Background… But With Rounded Corners and Hover Styles

CSS Checkerboard Background… But With Rounded Corners and Hover Styles

On one hand, creating simple checkered backgrounds with CSS is easy. On the other hand, though, unless we are one of the CSS-gradient-ninjas, we are kind of stuck with basic patterns. At least that’s what I thought while staring at … CSS Checkerboard Background… But With Rounded Corners and Hover Styles originally published on CSS-Tricks, which is part of the DigitalOcean family. You should get the newsletter. ...
More Details on `details`

More Details on `details`

A lot of chatter around the ol’ <details> and <summary> elements lately! I saw Lea Verou recently tweet an observation about the element’s display behavior and that sorta splintered into more observations and usage notes from folks, including a revived … More Details on `details` originally published on CSS-Tricks, which is part of the DigitalOcean family. You should get the newsletter. ...
Pandas DataFrame from Dict

Pandas DataFrame from Dict

Dictionaries in Python are data structures responsible for storing values as keys and values. To manipulate data for machine learning tasks, you must convert dictionaries to pandas dataframes. The from_dict() function is used to create a DataFrame from an array-like dict or a dict of dicts. ...
When is it OK to Disable Text Selection?

When is it OK to Disable Text Selection?

Using CSS, it’s possible to prevent users from selecting text within an element using user-select: none. Now, it’s understandable why doing so might be considered “controversial”. I mean, should we be disabling standard user behaviors? Generally speaking, no, we … When is it OK to Disable Text Selection? originally published on CSS-Tricks, which is part of the DigitalOcean family. You should get the newsletter. ...
Python Exit Codes

Python Exit Codes

Sys.exit() allows you to set an exit code for a process and the exit code attribute on the multiprocessing.Process class will enable you to access the exit code. In this article, you will learn how to get and set exit codes for processes in Python. ...