# Wanna go with the flow?
> basic flowchart app
HTML flowchart.html
This program is a basic piano simulator designed for the Cardputer platform using the MicroHydra framework. It maps keyboard keys to musical notes, which are played through an I2S audio output. The display shows a key layout (white and black keys), and users press keys to generate sine wave-based sounds corresponding to musical notes.
mHYDRA piano.txt |
This app is built for the Cardputer platform using the MicroHydra framework. It allows users to perform several percentage-related calculations such as:
The display interface is handled using the display module, user input is captured through the userinput
module, and the configuration is accessed via the config
module.
mHYDRA cal_percentage.txt |
This is a basic note-taking application designed for the Cardputer platform using the MicroHydra framework. It allows users to write and save notes to an SD card and view previously saved notes. The app provides an intuitive interface for managing notes, with text display managed via the display module, user input handled through the userinput module, and note storage via the sdcard module.
Escape (ESC): Exit reading mode.
Write a new note.
Read saved notes.
Arrow Keys (UP/DOWN): Scroll through notes.
Enter (ENT): Save the current note.
mHYDRA note_app.txt |
This JavaScript is a simple interactive number guessing game. Users are prompted to guess a sequence of randomly generated numbers, adjusting each digit to match the correct sequence. The game provides feedback on each guess, indicating if each digit is too high, too low, or correct. Sound effects and guess counts are included.
HTML numberGuess.html
VBA macro combines multiple Excel files from a selected folder into a single workbook, seperated as tabs.
VBA combine_files.txt
Python script wrote for use as a function for Caseware’s IDEA.
This script defines a function numTidy that takes a string representation of a number and cleans it by removing unwanted characters and ensuring the number is properly formatted.
The line cleaned_str = re.sub(r'[^\d.-]’, ”, number_str) uses regular expressions to remove any characters from the input string that are not digits (\d), a negative sign (
-
), or a decimal point (.
)
Next section checks if there is more than one negative sign. If so, it keeps only the first negative sign at the front by using cleaned_str = ‘-‘ + cleaned_str.replace(‘-‘, ”, 1).
If the string contains multiple decimal points, this part splits the string at the first decimal point and joins the remaining parts, allowing only one decimal point.
The line cleaned_str = re.sub(r'[^0-9]+\Z’, ”, cleaned_str) removes any non-numeric characters that appear at the end of the string after numbers.
The function then attempts to convert the cleaned string into a floating-point number using float(cleaned_st
r)
. If successful, the number is returned as a string.
## Usage:
This function can be used in various contexts, such as cleaning user inputs that may include non-numeric characters, to ensure valid numerical data. In IDEA, the function would be called using @Python(“numTidy”, [data]).
PYTHON numTidy.txt
Tool created using JavaScript and HTML to streamline the process of comparing two columns of data. The tool allows users to paste data into two separate columns, apply customizable character removal options, and then, with the click of a button, instantly identify missing and extra entries between the columns.
Paste Data: Users paste their data into the designated input areas for the first and second columns.
Customize Comparison: Users can choose to remove a specified number of characters from the beginning and end of the data in each column.
Click “Compare Columns”: With a simple click of the button, the tool processes the data, compares the columns, and displays the results in a clear and organized manner.
This tool is particularly useful for tasks involving data reconciliation, such as comparing lists, databases, or any scenario where quick and accurate data matching is essential.
HTML compare.html
It is finally here (almost) the thing you have all been asking for (I asked for it – I made it) the Killer Sudoku Python script to assist with solving Killer Sudokus is now available in HTML form. Check it out –
HTML killer_sudoku.html
The link provided leads to a live OneDrive document, as I have plans to continually update the linked Excel file periodically…
LINK CheatSheet.xlsx
Python print function reduced to physical type speed, with occasional errors included which causes the typing animation to pause briefly, then backspace to remove error, before then continuing to type the desired text.
PYTHON
text_errors.txt
Several variations of the same thing here, mostly got carried away with a few unrelated ideas. But basically, Python RSS reader – will create a txt file to store your feeds, and a json file to remember your history so you’ll not be shown the same feed each time. The information is typed out a letter at a time to give it a personal touch. I also experimented with a Bionic version, which uses \033[1;32;40m TEXT \033[0m to ‘bold’ letters, thus allowing me to split words up so as to appear like a Bionic reader.
** Also**, for “fun”, I’ve added an extra feature that causes the text being typed to make occasional errors, stops typing, deletes errors, and then continues. But I’ll do a separate post about that because, well… I think it’s bloody cool!
You can achieve a typing effect on a webpage using the below JavaScript. This will make characters appear one by one in real-time.
You can also add the below CSS to display a cursor that follows the text as it gets typed out.
Bionic Reading is a reading system that supports the reading flow by guiding the eye through the text using typographic highlights.
Bionic Document Converter – program that will apply the Bionic Reading technique to all open documents and save them as a Bionic Reading enabled document.
This Python script is using the win32com.client library to interact with Microsoft Word documents. Here’s a step-by-step explanation of what it does:
Please note that this script requires that you have Microsoft Word installed on your machine and that you have the necessary permissions to modify and save documents.
PYTHON
bionic_python.txt