Skip to content

Instantly share code, notes, and snippets.

View disable caplock
#disable that damn caps lock key
#this just creates a harmless reg entry to accomplish this
Set-ItemProperty 'HKLM:\SYSTEM\CurrentControlSet\Control\Keyboard Layout' -Name "scancode map" -value ([byte[]](0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x00,0x00,0x00,0x00,0x00,0x3a,0x00,0x00,0x00,0x00,0x00))
View tic tac toe.ps1
# tic tac toe game
# by shane lindberg
#the starting point of available moves
$humanmoves = @()
$computermoves = @()
$whosx = 1
$humanwon = 0
$computerwon = 0
$tie = 0
shanenin / gist:f164c483db513b88ce91
Last active Aug 29, 2015
introduction to tic tac toe game
View gist:f164c483db513b88ce91
#this function converts a value to pixels to create billy
function write-billy{
#these are the pixels(spaces) that make up the ascii image
$billy = ('sb8','nl9','sb6','sl4','sw5','nl4','sb5','sl3','sw9',
'nl3', 'sb4','sl3','sw11','nl3','sb3','sl3','sw3','sr3','sw1',