I’m available for freelance work. Let’s talk »

Twitter tidbits

Sunday 8 May 2022

Lately I’ve been posting Python tidbits on Twitter. It’s been fun finding things that people might not yet know, fitting them into a tweet, and giving them some energy.

People ask how I make them. I tried a few “make a code screenshot” sites at first, but wanted more control over how the images looked. Now I create the code shots in vim with a tweaked color scheme (shades-of-purple). This lets me do things like highlight specific words I want to draw attention to. Then I use the Mac screenshot tool to grab an image:

An example of purpled code

The font is Recursive Mono SemiCasual. Recursive is a lovely and lively variable font with a number of axes to play with, especially the Casual axis, which I’ve set to halfway between Linear and Casual. You can get it now on Google Fonts. I’d like to try using Semi-Mono, but vim only understands monospaced fonts.

A sample of Recursive Mono, in Linear, SemiCasual, and Casual

Some people have asked about publishing these tidbits here on nedbatchelder.com also, but I’m not sure it’s worth the effort. Would it be helpful to have a page like this that collected them per-month or something? Or one tweet per page? Or just let them live on Twitter?

Comments

[gravatar]

I’d love to see you post them here as little posts and syndicate them to Twitter! I actually discovered you because I missed having an rss reader and I am trying to move more away from reading Twitter.

More and more I’m finding the joy of discovering new things through rss or through the friendly people on mastodon. It isn’t as big, but the quality of the conversation and interaction is so much higher.

If you ever join the fediverse, I’m @mattk@hostux.social. Say hi!

[gravatar]

Oh yes please do! These are gems and them finding a home on your website is a lot better than twitter bookmark search. Thanks for all you do!

[gravatar]

Yes please. Your blogs are very insightful and resourceful.

Add a comment:

Ignore this:
Leave this empty:
Name is required. Either email or web are required. Email won't be displayed and I won't spam you. Your web site won't be indexed by search engines.
Don't put anything here:
Leave this empty:
Comment text is Markdown.