Month: September 2020

OpenSource is up to volume 13 of their ongoing series about creating video games in Python 3 using the Pygame module

Programming keyboard coding OpenSource is up to volume 13 of their ongoing series about creating video games in Python 3 using the Pygame module. Python is an all-purpose programming language that can be used to create desktop applications, 3D graphics, video games, and even websites. It’s a great first programming language because it can be easy to learn and it’s simpler than complex languages like C, C++, or Java. Even so, Python is powerful and robust enough to create advanced applications, and it’s used in just about every industry that uses computers. This makes Python a good language for young and old, with or without any programming experience. Check out their entire series of Python & Pygame tutorials here.

{ Comments are closed }

Shortening a URL with with TextExpander and YOURLS

If you would like to shorten a URL by having TextExpander on macOS grab the URL from your clipboard and replace it with your personal YOURLS shortener using a TE snippet, here you go:

Copy your signature token from the Admin Tools page in your install of YOURLS.

In TextExpander create a shell script snippet by clicking on the Content drop down menu at the top where it says Plain Text, and choose Shell Script.

Add the following script for the body of the snippet, replacing the necessary parts with your own information of course.

#!/bin/bash
id="YOURLS_SECRET_TOKEN_HERE"
curl --silent -o - "http://YOURLS_URL_HERE/yourls-api.php?signature=$id&action=shorturl&format=simply&url=%clipboard" |
awk -F# '{gsub(/ /,"");print ($1) }'

Then add your label and abbreviation. You are all set.

{ Comments are closed }

Faster sharing from Firefox to Omnifocus in MacOS

If using the share sheet slows you down, add this bookmarklet to Firefox. The bookmarklet will save the title as the action name and the url as a note. Omnifocus sets a due date of tomorrow to remind you to take it out of your inbox and process it and it autosaves to eliminate any need to interact with Omnifocus. Hit it and keep on going. The bookmark can be edited to share to specific projects and change the due date.

javascript:window.location='omnifocus:///add?project=&due=tomorrow&note='+encodeURIComponent(window.location)+'&name='+encodeURIComponent(document.title)+'&autosave=true'

{ Comments are closed }