Skip to content

Instantly share code, notes, and snippets.

View MichaelLeonffu's full-sized avatar
📚
I'd rather program than study; but I gotta study before I can program

Michael Leonffu MichaelLeonffu

📚
I'd rather program than study; but I gotta study before I can program
View GitHub Profile
@MichaelLeonffu
MichaelLeonffu / NameIndex.java
Created September 21, 2018 07:44
CS 112 (JAVA) MiraCosta; Absolute Java 6th: Chapter 10: Project 1: NameIndex. HashMap, Scanner, File IO Streams.
/**
*
* Chapter 10; Project 1: NameIndex
*
* @author Michael Leonffu
* @version 20-09-2018
*
* This program interperts two data files: girlnames.txt and boynames.txt which consist of names and their frequncy
* e.g girlsnames.txt
* Jill 999
@MichaelLeonffu
MichaelLeonffu / simpleGitAutoCommit.sh
Created March 23, 2017 15:08
This will auto commit in a simple way
#!/bin/bash
#Github atuomation: Fetch, Pull, Add, Commit, and Push.
#By Michael Leonffu 2017
git fetch
git pull
git add .
printf 'Message to commit with: \n'
read commitMessage
@MichaelLeonffu
MichaelLeonffu / gitAutoCommit.sh
Last active March 23, 2017 15:09
This is auto committing and pushing for GitHub
#!/bin/bash
#Github atuomation: Fetch, Pull, Add, Commit, and Push; with prompts.
#By Michael Leonffu 2017
function centerIt {
lines=$(tput lines);cols=$(tput cols);tput cup $((lines/2)) $(((cols-${#1})/2))
}
function centerPrintIt {
centerIt "$1"
printf "$1"