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
import java.awt.Color; | |
import ihs.apcs.spacebattle.BasicEnvironment; | |
import ihs.apcs.spacebattle.BasicSpaceship; | |
import ihs.apcs.spacebattle.Point; | |
import ihs.apcs.spacebattle.RadarResults; | |
import ihs.apcs.spacebattle.RegistrationData; | |
import ihs.apcs.spacebattle.commands.IdleCommand; | |
import ihs.apcs.spacebattle.commands.RadarCommand; | |
import ihs.apcs.spacebattle.commands.RotateCommand; |
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
import java.awt.Color; | |
import ihs.apcs.spacebattle.BasicEnvironment; | |
import ihs.apcs.spacebattle.BasicSpaceship; | |
import ihs.apcs.spacebattle.ObjectStatus; | |
import ihs.apcs.spacebattle.Point; | |
import ihs.apcs.spacebattle.RadarResults; | |
import ihs.apcs.spacebattle.RegistrationData; | |
import ihs.apcs.spacebattle.commands.BrakeCommand; | |
import ihs.apcs.spacebattle.commands.IdleCommand; |
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
#include <PCM.h> | |
const unsigned char DogBark[] PROGMEM = { | |
126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 12 |
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
import java.util.Scanner; | |
public class BoardMatrix { | |
static char[][] matrix = new char[3][3]; | |
public static void main(String[] args) { | |
BoardMatrix.assignMatrix(); | |
boolean gameOver = false; |
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
import java.io.File; | |
import java.io.FileNotFoundException; | |
import java.text.DecimalFormat; | |
import java.text.NumberFormat; | |
import java.util.Scanner; | |
public class DroidExpenses { | |
public static void main(String[] args) throws FileNotFoundException { | |
//Scanner scanner = new Scanner(System.in); | |
Scanner scanner = new Scanner(new File("C:\\Users\\cbilson\\DroidExpenses.txt")); |
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
import java.io.File; | |
import java.io.FileNotFoundException; | |
import java.util.Scanner; | |
public class Absolutely { | |
public static void main(String[] args) throws FileNotFoundException { | |
//Scanner scanner = new Scanner(System.in); | |
Scanner scanner = new Scanner(new File("C:\\Users\\cbilson\\Absolutely.txt")); | |
int problems = scanner.nextInt(); |
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
function Sleep-Computer { | |
[CmdletBinding(SupportsShouldProcess=$True,ConfirmImpact="Low")] | |
param([switch]$Force) | |
if ($pscmdlet.ShouldProcess($env:COMPUTERNAME)) { | |
if ($Force.IsPresent) { | |
if ($pscmdlet.ShouldProcess("Turning off hibernation")) { | |
& powercfg -hibernate off | |
} | |
} |
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
function Set-WindowsTheme { | |
param([ValidateSet('Light', 'Dark')] $Value) | |
foreach ($path in 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize', | |
'HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize') | |
{ | |
$personalize = if (Test-Path $path) { | |
Get-Item $path | |
} else { | |
New-Item $path |
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
function Test-IsAdmin { | |
$currentUser = [Security.Principal.WindowsIdentity]::GetCurrent() | |
$principal = new-object Security.Principal.WindowsPrincipal($currentUser) | |
$principal.IsInRole("Administrators") | |
} | |
$global:IsCurrentUserAdministrator = Test-IsAdmin | |
function global:prompt { | |
$realLastExitCode = $LastExitCode |
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
using System; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Text; | |
using System.Threading.Tasks; | |
using clojure.clr.api; | |
using clojure.lang; | |
using Microsoft.Ajax.Utilities; | |
using Microsoft.Owin.Hosting; | |
using Owin; |