Git Product home page Git Product logo

Shane Michael McGrath's Projects

arrayadder icon arrayadder

Simple java program using for loops to allow a user to populate an array of their chosen dimensions and print the final array with the sum total of each value in the array.

beer-song icon beer-song

Simple java script designed to iterate through "99 bottles of beer on the wall" using while loops and if statements. Built in a Linux Teminal environment using a raspberry pi.

crystalball icon crystalball

Building a digital crystall ball with an Arduino board using a tilt switch and an LCD screen to output.

digitcounter icon digitcounter

Java program that counts the number of digits in an integer entered by the user. The program repeatedly asks for input and displays the number of digits the input integer has. This implementation converts the users input to a string and uses the .length( ) method to find the number of characters in it.

dnscheckbashscript icon dnscheckbashscript

Simple Bash script to check the a list of hosts from the domain name system to retrieve the IP address for a chosen domain name.

exponentiationbysquaring icon exponentiationbysquaring

Exponentation by squaring is an algorithm that will quickly calculate x^n given user input. x and n are integers in this case. This implementation uses recursion, whereby a function calls itself within it's own body. The answer is outputted on the console.

fibonaccisequence icon fibonaccisequence

Two implementations in Java to generat the Fibonacci sequence to a length chosen by the user. One recursive and one using iterative for loop. Switch statement is used to control flow.

leapyearidentifier icon leapyearidentifier

Java program to take an inputted year from user and inform them whether it is a leap year or not. The logic of the if statements fits the following criteria: It is a leap year if the year is divisible by 4 but not by 100 (i.e. 1796 is a leap year because it is divisible by 4 but not by 100). A year that is divisible by both 4 and 100 is a leap year if it is also divisible by 400 (i.e. 2000 is a leap year but 1800 is not).

lighttheremin icon lighttheremin

Building a Light Theremin musical instrument with the Arduino board. A phototransistor is used to measure the amount of light reaching the instrument. This is used to estimate how close the musicians hand is to the instrument at a given moment. More specifically the variation of voltage is used to guage the distance. This is then mapped to a range of sound frequencies. A piezo buzzer is used to produce the sound.

myfirstapp icon myfirstapp

Built in Node.js open source server framework. In this project I moved from client-side development (using JavaScript, HTML, and CSS) to building a server-side web application using the Express.js web framework hosted in Node.js runtime environment. The site includes a flatty style landing page including navigatation bar, sign-up forms, staff info etc. It has an uncluttered and minimal UI. The backend API’s communicated with databases designed using MongoDB, an example of a NoSQL database program using JSON-like objects with schemas. All APIs, including GET, PUT, UPDATE and DELETE were tested using Postman. Great experience using PuTTY open-source terminal emulator, working remotely over SSH network protocol. Securing my API with authentication; hashing passwords using Bcrypt and issuing tokens with JSON Web Token (JWT). New additions help to restrict access and ensure tokens are verified. Previous to this the back-end APIs could be easily accessed via the URL. User comments coudl be retrieved, new ones saved, deleted or updated. Hashing is a means of transforming a string of characters (passwords, in my case) into a different and larger set of characters, thus protecting our sensitive data. Bcrypt is the password hashing function used.

quick-sort icon quick-sort

Quick Sort is another example of a divide and conquer algorithm. It requires the identification of an arbitrary pivot point (ideally somewhere near the centre) around which the other values of the array are ordered relatively. This pivot creates a partition in the array. To the left of the pivot we aim to place the values lower than it and to the right the higher values.

salesemployee icon salesemployee

Java program to calculate the commision rate for certain employees within a company. The Superclass is abstact with two subclasses extending from it. Getter and setters are used to access private and protected variables. A driver class is built to test the program and serialize the resulting data in a chosen format.

smooshing icon smooshing

Building a simple portfolio Vue.js app using Nuxt

twitterbot icon twitterbot

Twitter Bot built using JavaScript and node.js runetime environment. Communicating and authenticating to the twitter API to carry out GET, POST and STREAM requests.

website icon website

Kubernetes website and documentation repo:

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.