CastorisCausa

Personal blog and hacks by Raymundo Cassani

Posts tagged with: Python


SuperCycle data to Strava

Updated: Now exporting rides from the Zeopoxa cycling app to GPX files is also supported. Recently I moved to the Strava app to register the my biking activity. However, I had plenty of data recorded with the SuperCycle app. So, I code my way to migrate the data. First, each …

This post shows a simple game created using PyScript in this static website created with Pelican and Markdown files. The game Submit guess Reset How it's implemented The implementation is quite eclectic (as Frankenstein's monster), it consist of 3 parts: Markdown post: This is used by Pelican to create the …

Often, there is the need of generating a random RGB color for LEDs. The most common approach is to obtain a random value between 0 and 1 (or 0 and 255) for the Red, Green and Blue channels. RGB cube This approach, however, leads to dark and light colors which …

Updated: After receiving feedback on this post, I updated this post by adding at the end a similar map but using the driving times, rather than the Euclidean distances. Interactive maps: Minimum linear distance to a Costco and Minimum driving time to a Costco Once clarified the different meanings of …

Based on icon made by Freepik from www.flaticon.com Good code commenting, including good syntax and spelling, is an important feature to assure the high quality of code documentation, which in turn, is vital in development of scientific open-source software. Poor spelling is not only unprofessional, it can create …