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
| \newcommand{\proof}[3]{ | |
| \begin{aligned} | |
| #1 | |
| \end{aligned} \quad | |
| \left| \quad | |
| \begin{aligned} | |
| #2 | |
| \end{aligned} | |
| \quad \begin{aligned} | |
| #3 |
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
| /** | |
| * @param {{ | |
| * fullKeyword: string, | |
| * shortKeyword: string | undefined, | |
| * type: 'string' | 'number' | 'flag', | |
| * description: string, | |
| * }[]} acceptedArgs | |
| * @returns string | |
| */ | |
| const getArgHelp = (acceptedArgs) => { |
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
| ClrHome | |
| Disp "Pulley Equation Solver" | |
| Input "Mass 1 (kg): ",X | |
| Input "Mass 2 (kg): ",Y | |
| ((9.8*max(X,Y))-(9.8*min(X,Y)))/(X+Y)→A | |
| (min(X,Y)*A)+(9.8*min(X,Y))→T | |
| Disp " " | |
| Disp "Accel (A): " |
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
| # ~ Main Class | |
| class TicTacToe { | |
| [string[][]] $board | |
| [string[]] $players | |
| TicTacToe() { | |
| # ~ Initialize Board | |
| $this.ResetBoard() | |
| # ~ Initialize Players |
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
| # ~ Class for controling different colour schemes | |
| class ColourScheme { | |
| [string]$Name | |
| [string]$BackgroundColour | |
| [string]$ForegroundColour | |
| ColourScheme([string]$name, [string]$backgroundColour, [string]$foregroundColour) { | |
| $this.Name = $name | |
| $this.BackgroundColour = $backgroundColour | |
| $this.ForegroundColour = $foregroundColour |
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
| import curses | |
| from typing import Tuple, List | |
| def underline_text(text: str) -> str: | |
| """Underlines a string with console escape characters""" | |
| return '\u0332'.join(text) + '\u0332' | |
| class TicTacToe(): | |
| """A class to play a tic tac toe game""" |