Articles with the tag « tip » :

q - Text as Data

in «tip» by Michael Beard
Tags: , , ,

Interesting tool. Haven't had a need for it yet, but I might. You never know.

q - Text as Data

Anyway, here is the blurb from their site:

q is a command line tool that allows direct execution of SQL-like queries on CSVs/TSVs (and any other tabular text files).

q …

Python Dictdiffer - diff between two dictionaries

in «tip» by Michael Beard
Tags: , , , ,

Get a rational difference between two dictionaries

Dictdiffer is a helper module that helps you to diff and patch dictionaries.

Dictdiffer

from dictdiffer import diff, patch, swap, revert

first = {
    "title": "hello",
    "fork_count": 20,
    "stargazers": ["/users/20", "/users/30"],
    "settings": {
        "assignees": [100, 101, 201],
    }
}

second = {
    "title": "hellooo",
    "fork_count": 20,
    "stargazers": ["/users …

Don't use functions as callbacks unless they're designed for it (JavaScript)

in «tip» by Michael Beard
Tags: , , , , , ,

Some really good tips and things to think about in general. Here is a general overview of the article. Read it for the full affect!

From the article:

Watch out for functions being used as callbacks, and objects being used as options, unless they were designed for those purposes. Unfortunately …

marshmallow: simplified object serialization

in «tip» by Michael Beard
Tags: , , , , , , , ,

marshmallow is an ORM/ODM/framework-agnostic library for converting complex datatypes, such as objects, to and from native Python datatypes.

Tip Description:

In short, marshmallow schemas can be used to:

  • Validate input data.
  • Deserialize input data to app-level objects.
  • Serialize app-level objects to primitive Python types. The …

Create interactive dashboards with Streamlit and Python

in «tip» by Michael Beard
Tags: , , , , , ,

In Data Visualization, Dashboard is the great Graphical User Interfaces that helps you to display the information in a highly interactive and informative way. It helps to visualize the key indicators and trends of the data.

Create Interactive Dashboards with Streamlit and Python

Streamlit

Streamlit is gaining popularity in Machine …

Experienced an interesting behavior with TextMate and an external change to the file I was currently editting

in «interesting» by Michael Beard
Tags: , , , , , , ,

If an external entity changes the file you're currently editting ...

It seems that it will show you (when you're focused on it again - not sure how it would react if you're already looking at the file) and shows you a diff that looks like what you see when you do …

Getting Belkin's Usb-c docking station working - get both main displays working on my laptop

in «tip» by Michael Beard
Tags: , , , , , ,

This solved the very annoying problem with the docking station choosing the Dell monitor (usb-c interface) instead of the Thunderbolt-3 adapter (to my Thunderbolt 2 Display). In short, if it chooses anything but the Thunderbolt display first, it makes it so that the display will not work (oddly, all of …