My real name is Matthew Peters.
GitHub required I make a unique username for my account, and after a little bit of thinking I came up with my solution.
My last name ends in an 's', and without that 's' my name is made of 2 common first names (Matt and Peter). I decided to swap my first (abbreviated) name and last name leaving the 's' in its place to get peter + matt + s = petermatts, a unique username.
Click here to show process in code form
public static String username() {
String myName = "Matthew Peters"; //my name
myName = myName.toLowerCase(); //make lowercase
//split into an array (first name at index 0, second name at index 1)
String[] names = myName.split(" ");
//create var for first name, using substring to abreviate to an alternative form
String firstname_short = names[0].substring(0, 4); //matt
String lastname = names[1]; //create var for last name (peters)
String s = "";
//if lastname ends in "s": s="s" and trim off last 's' from lastname
if(lastname.endsWith("s")) {
s = "s";
lastname = lastname.substring(0, lastname.length()-1); //peter
}
// my_github_username = "peter" + "matt" + "s"
String my_github_username = lastname + firstname_short + s;
return my_github_username; //petermatts
}
example code for this process as a Java method
- UMass Amherst 2025 M.S. in Computer Science
- UMass Amherst 2024 B.S. in Computer Science and Mathematics
- Nashua (New Hampshire) High School North class of 2020
Main educational focus: Machine Learning and Artificial Intelligence
- NFL Football
- Cooking and Baking
- F1
- Cars
- Rubik's cube speed solving
- Other things I can't think of at the moment
- Did you know that on windows the keyboard short cut
ctrl+alt+shift+windows+L
automattically takes you to LinkedIn in your browser? - Did you know that Desmos uses Latex? So you can copy a raw Latex formula into desmos without needing to retype the whole thing.
- Did you know that someone took the time and effort to create https://guthib.com incase you accidentally spell github incorrectly?
- If you change the
.docx
,.pptx
, etc. file extension of a microsoft office file and rename the file extension to.zip
, you can actually unzip the file into a bunch of.xml
files. Essentially all Microsoft Office files are justxml
. - Similarly, Jupyter Notebooks are just JSON under the hood.
- More coming soon
For much greater detail into my past and current projects (both public and private) as well as my future ideas, see Repos.md
for more information.
Below is a list of languages, tools, and skills I have used. Hover the icons to see the name if you are unfamiliar with the icon logo.
More Languages/Libraries that did not have icons in the API I used to make this.