Learn how to build a simple Mileage Calculator app using C# and the OSRM API for accurate distance calculations between two addresses. This tutorial guides you through the key steps of integrating the OSRM API, geocoding with Nominatim, and handling user inputs.
Category: Code Samples
Why React-Based TypeScript Files Should Be Your Go-To for SPFx Applications
Learn why React-based TypeScript (TSX) files are a game changer for SPFx development. From simplifying code with React hooks to improving performance and modularity, discover the key advantages and disadvantages of using React in SharePoint Framework applications.
Web Scraping with C#: A Beginner’s Guide to Extracting Data from Websites
Learn how to harness the power of web scraping with C# in this comprehensive guide. Discover how to extract data from websites using C# libraries like HtmlAgilityPack, handle dynamic content, store data, and avoid anti-scraping measures. Start building your own efficient scrapers today!
Building a Bingo Board Control in C#
Explore how to create a dynamic Bingo board control in C#, featuring game state management and interactive visuals. Ideal for enhancing Bingo game experiences with intuitive user interfaces and engaging feedback effects.
Background Music for a Halloween Display
I was contacted by a friend of mine asking if I knew of an automatic way to have background music begin at the same time as his Halloween display. His Halloween display is on a timer, however the background music he uses doesn’t automatically start up.
Traffic Signal Circuit
I’ve been exploring the concept of creating a decorative traffic light. Using TinkerCad’s circuit designer, I successfully designed a circuit that incorporates an Arduino Microcontroller, three N-type MOSFETs, and several bulbs. The Arduino code is straightforward: You can view the project here. Currently, I’m uncertain whether the MOSFETs can handle the required amperage for the…
Recursive Directory Search
This is a recursive function I wrote that returns an ArrayList of the file names in a folder. This was written in VisualBasic.net 2015. Private Function recursiveDirectorySearch(ByVal SearchDirectory As String, ByRef Optional SearchPattern As String = “*.pdf”) As ArrayList Dim Directory, CurrentFile As String Dim myList As New ArrayList Try For Each Directory In System.IO.Directory.GetDirectories(SearchDirectory)…
ColdFusion: Friendly Time (Posted X mins/hours/days ago)
I am not sure what to call this type of date/time formatting, but I had a need to format time in the “Posted x minutes ago” format using ColdFusion. I couldn’t find much data on the Internet on how this should be done, but I was able to convert a PHP function that was posted…




