Skip to content

Instantly share code, notes, and snippets.

View kurtkaiser's full-sized avatar

Kurt Kaiser kurtkaiser

View GitHub Profile
@kurtkaiser
kurtkaiser / ArrayCombinations.java
Created August 17, 2018 01:23
In this assignment I was asked to print out all possible combinations of each element in a 2D array. The assignment asked for a recursive program, first I solved it traditionally, then morphed that into the recursive program the assignment required.
/*
Kurt Kaiser
CTIM 168
08.02.2018
Homework: Recursive Array Combining
Chapter 11 Practice Problem 7
*/
// Solved using a standard looping approach
@kurtkaiser
kurtkaiser / BirdSurveyDemo.java
Last active August 17, 2018 01:27
This assignment allows a user to input names of birds. The program had to store that information in a linked list. The program also had to produce a count of the each bird population if the user requested it. As I came up against the dead, this assignment got a bit messy. It fully functions, of course, and met the requirements for the assignment.
/*
Kurt Kaiser
CTIM 168
08.02.2018
Homework: Bird Survey Linked List
Chapter 12 Practice Problem 13
*/
import java.util.Scanner;
public class DemoSurvey {
@kurtkaiser
kurtkaiser / Room_Reservation_App.js
Last active September 3, 2019 10:34
Using Google Apps Script, this script is added to a sheet file that a Google Form feeds into. Using the submitted requests, the program manages booking calendars and alerts users of the status of their reservations.
// Room Reservation System Video
// Kurt Kaiser, 2018
// All rights reserved
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];
var lastRow = sheet.getLastRow();
var lastColumn = sheet.getLastColumn();
// Calendars to output appointments to
@kurtkaiser
kurtkaiser / doctorOfficeReservation.js
Last active November 10, 2018 01:55
Using Google Apps Script this program manages calendars for multiple doctors and rooms. It allows patients to submit requests for appointments and have them be viewed and approved by someone in the office.
// Doctor Appointment Booking System
// Kurt Kaiser, 2018
// All rights reserved
// [email protected]
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];
var lastRow = sheet.getLastRow();
var lastColumn = sheet.getLastColumn();
@kurtkaiser
kurtkaiser / dateMessagingSystem.js
Created September 2, 2018 17:36
This script automatically sends an email message on a selected date using a Google Sheet.
// Kurt Kaiser
// Date Emailing System
// All Right Reserved, 2018
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getActiveSheet();
var lastRow = sheet.getLastRow();
var lastColumn = sheet.getLastColumn();
function format(){
@kurtkaiser
kurtkaiser / Level1
Last active October 22, 2018 15:53
Code Combat - JavaScript - Introduction to Computer Science
// Code Combat - JavaScript
// Introduction to Computer Science
// Move towards the gem.
// Don’t touch the spikes!
// Type your code below and click Run when you’re done.
hero.moveRight();
hero.moveDown();
hero.moveRight();
@kurtkaiser
kurtkaiser / emailsending.js
Last active January 16, 2019 00:16
Automatic Email Sending Add-on with Word Detection
// Word Based Email Alert System
// Kurt Kaiser, 2019
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];
var lastRow = sheet.getLastRow();
var lastColumn = sheet.getLastColumn();
// Go through recent submission, check for alert word
function checkSubmission() {
@kurtkaiser
kurtkaiser / codecombatgd1-17.py
Created February 2, 2019 16:49
This is the level I created for the final level of Code Code Combat Game Development 1, level 17. I made my level pretty challenging.
# Coded by Kurt Kaiser
player = game.spawnPlayerXY("samurai", 36, 30)
player.maxHealth = 5000
player.maxSpeed = 12
player.attackDamage = 20
game.addDefeatGoal()
game.spawnMaze("forest", 6)
ogreHome = game.spawnXY("generator", 25, 13)
ogreHome.spawnType = "ogre"
@kurtkaiser
kurtkaiser / Using Alerts in Google Apps Script
Created February 9, 2019 18:12
Google Apps Script can be intimidating at first. On of the early functions I needed to use was alerts. This is a simple program to show how to use an alert in Apps Script.
// Kurt Kaiser
// kurtkaiser.us
// All rights reserved, 2019
var ui = SpreadsheetApp.getUi();
function onOpen() {
ui.createMenu('Alert System')
.addItem('Alert Me!', 'showAlert')
.addToUi();
@kurtkaiser
kurtkaiser / Video - Save Script and User Properties
Created February 12, 2019 00:30
I created this in a tutorial video on how to create script and user properties in Google Apps Script.
// Kurt Kaiser
// kurtkaiser.us
// All Right Reserved, 2019
var ui = SpreadsheetApp.getUi();
var scriptProperties = PropertiesService.getScriptProperties();
var userProperties = PropertiesService.getUserProperties();
function onOpen(){
ui.createMenu('Save a Property')