Skip to content

Instantly share code, notes, and snippets.

View noynaert's full-sized avatar

noynaert

  • Missouri Western State University
  • St. Joseph, Missouri
View GitHub Profile
@noynaert
noynaert / csc184ex02f2021.md
Last active November 16, 2021 17:09
Study Guide for CSC184, exam 02, Fall 2021, Missouri Western State University

Study Guide, Exam 02, CSC184, F2021

Chapter 8

Terms

  • String
  • Sequence
  • Traverse
  • Index
@noynaert
noynaert / IntroTo3dPrinting.md
Last active June 30, 2019 07:50
Background information about the CSMP Lulzbot Taz6

Background about 3D printing

The Printer

The printer is a Lulzbot Taz6. We also have a dual-head that we can attach.

Taz6

Working with objects

@noynaert
noynaert / ConstructorsForSections.md
Created November 3, 2018 01:23
Some Help on Homework 6 (and 7, but mainly 6)

About the Constructors

For homeworks 6 and 7 you need two constructors. Here are some examples:

 Section a = new Section("CSC","254","12344","PC 2",
            "McTeacher, M.",25,15);
 Section b = new Section("MAT111E","12345","Statistics",
            "McTeacher, M.",25,-3);

The a object uses the constructor that takes separate discipline and course number. The second example uses the combined constructor.

@noynaert
noynaert / Main.java
Created October 15, 2018 04:35
Example of counting special characters in a string
public class Main {
public static void main(String[] args) {
int count = getSymbolCount("Hello!#@#!!!!!!!");
System.out.println("Count is "+count);
}
public static int getSymbolCount(String word){
final String SYMBOLS = "~!@#$%"; //This is not the full list of characters that need to be checked!
int result = 0;
@noynaert
noynaert / Main.java
Created October 12, 2018 01:57
Quickie demo of counting specific characters from another string
public class Main {
public static void main(String[] args) {
String symbols = "!@#$?%^";
print("Happy", symbols);
print("Happy!", symbols);
print("Happy?", symbols);
print("¿Happy?", symbols);
print("?Happy?", symbols);
print("!!!@@@#Happy?", symbols);
@noynaert
noynaert / html5_CSS_Introduction.md
Last active December 25, 2017 09:19
HTML5_CSS_Introduction

For CSC 346

This gist may be of general use. However, it is intended for students in CSC 346 at Missouri Western State University. Some students in the class have not been exposed to HTML and CSS. This document provides a quick and dirty introduction to HTML. Some of the fine points may be glossed over in the interest of providing students information they need for the course.

The focus is on HTML5. CSS3 is used, although the coverage of CSS will be broad enough to make the material valid for all current and past versions of CSS.

You will need a text editor to follow along. Avoid using notepad that comes with Windows. There are a number of them

📝 Editors 📝

@noynaert
noynaert / IntellijJUnit4.md
Last active October 2, 2017 21:51
Brutally simple tutorial on using JUnit4 in Intellij with Java

JUnit testing in Intellij

This is a brutally simple introduction to unit testing in Intellij

General setup

  • Create a new Project
  • Create a folder called "tests" in the project. It should be at the same level as "src" for this simple example.
  • Click on file
    • Click on "Project Structure"
      • Click on "Modules" in the left pane
  • Click on "Sources" in the right pane
@noynaert
noynaert / linuxAndUnixFileNamed.md
Last active January 27, 2017 16:57
Linux and Unix file names, including command line operations

#Linux and Unix files and directories at the command line

The same rules apply to file names and directory names, but conventions vary a bit. For example, file names often have extensions, but directory names seldom do.

File Names

File names that start with a period . are "hidden" files

A good set of guidelines is at https://www.cyberciti.biz/faq/linuxunix-rules-for-naming-file-and-directory-names/

Summary of the key points:

@noynaert
noynaert / basicLinux.md
Created January 23, 2017 16:49
Getting your linux system set up, basic concepts, and bash commands.

#Setting up your system, and basic bash Linux is a form of Unix. This document will focus more on the "bash shell."

Most modern Linux distributions have a "desktop" interface that looks something like Microsoft Windows. Some of these desktops, like Cinnamon and Mate look vaguely like Windows 7. Others like Unity look more like Windows 8 or Windows 10.

I will be focusing mostly on the "bash shell." The shell is basically a command line interface. It uses the keyboard. You bring it up in a "terminal window." It is often called "term." Term is only mildly aquainted with the mouse so most interactions happen on the keyboard.

The shell has grown over the years. Now most modern systems use the "Bash Shell." Macintosh also uses the Bash shell. Microsoft has announced that it will be releasing the Bash shell for windows as well. It is worth learning as much as possible about the bash shell if you are in IT.