This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 Multiplication Calculator | |
| ; Kurt Kaiser | |
| INCLUDE Irvine32.inc | |
| ; .data is used for declaring and defining variables | |
| .data | |
| codeTitle BYTE " --------- Math Multiplication Magic --------- ", 0 | |
| directions BYTE "Enter 2 numbers.", 0 | |
| prompt1 BYTE "First number: ", 0 |
This file contains hidden or 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 Division 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 hidden or 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
| using System.Collections; | |
| using System.Collections.Generic; | |
| using UnityEngine; | |
| public class DoorToLevel1Script : MonoBehaviour | |
| { | |
| public GameManager gameManager; | |
| private void OnTriggerEnter2D(Collider2D collision) | |
| { | |
| if (collision.gameObject.CompareTag("Player")) |
This file contains hidden or 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
| using System.Collections; | |
| using System.Collections.Generic; | |
| using UnityEngine; | |
| using UnityEngine.SceneManagement; | |
| public class GameManager : MonoBehaviour | |
| { | |
| public GameObject[] spawners; | |
| private int level = 0; | |
| private int currentScene = 0; |