This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; Simple Calculator | |
; Kurt Kaiser | |
INCLUDE Irvine32.inc | |
; .data is used for declaring and defining variables | |
.data | |
codeTitle BYTE " --------- Math Magic --------- ", 0 | |
directions BYTE "Enter 2 numbers.", 0 | |
prompt1 BYTE "First number: ", 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; Simple Calculator | |
; Kurt Kaiser | |
INCLUDE Irvine32.inc | |
; .data is used for declaring and defining variables | |
.data | |
num1 DWORD ? | |
num2 DWORD ? | |
codeTitle BYTE " --------- Math Magic --------- ", 0 | |
directions BYTE "Enter 2 numbers.", 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Efficiently Calculates Median | |
// Kurt Kaiser | |
#include <iostream> | |
#include <algorithm> | |
using std::cout; | |
using std::endl; | |
// Defining a function to find the median of an array of ints, | |
// return type is double because median of ints can be decimals | |
double findMedian(int intArray[], int length) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// UI Sheets Email Notifications | |
// Kurt Kaiser | |
// kurtkaiser.us | |
// All Rights Reserved, 2019 | |
// Declare global variables | |
var ss = SpreadsheetApp.getActiveSpreadsheet(); | |
var sheet = ss.getActiveSheet(); | |
var lastRow = sheet.getLastRow(); | |
var lastColumn = sheet.getLastColumn(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Kurt Kaiser | |
// kurtkaiser.us | |
// All Rights Reserved, 2019 | |
var scriptProperties = PropertiesService.getScriptProperties(); | |
function onOpen(){ | |
var ui = SpreadsheetApp.getUi(); | |
var response = ui.prompt('What is your favorite color?', ui.ButtonSet.OK); | |
scriptProperties.setProperty('color', response.getResponseText()); | |
ui.alert('Favorite color: ' + scriptProperties.getProperty('color')); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Kurt Kaiser | |
// kurtkaiser.us | |
// Pretty Sidebar | |
// All rights reserved, 2019 | |
function onOpen() { | |
var ui = SpreadsheetApp.getUi(); | |
ui.createMenu('Tadah') | |
.addItem('Show Sidebar', 'showSidebar') | |
.addToUi(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Kurt Kaiser | |
// kurtkaiser.us | |
// All rights reserved, 2019 | |
var ui = SpreadsheetApp.getUi(); | |
function onOpen() { | |
ui.createMenu('Alert System') | |
.addItem('Alert Me!', 'showAlert') | |
.addToUi(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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() { |