Skip to content

Instantly share code, notes, and snippets.

View KaidenP's full-sized avatar

Kaiden Prince KaidenP

  • Toronto Area, Ontairio Canada
View GitHub Profile
------------------
System Information
------------------
Time of this report: 12/16/2015, 18:53:14
Machine name: DESKTOP-QVPBLR0
Operating System: Windows 10 Pro 64-bit (10.0, Build 10586) (10586.th2_release.151121-2308)
Language: English (Regional Setting: English)
System Manufacturer: LENOVO
System Model: 444625U
BIOS: Ver 1.00PARTTBL
@KaidenP
KaidenP / LEMH Install Script
Last active December 11, 2015 10:00
This is a auto installer that installs the packages needed for a LEMH (Linux (E)nginx MariaDB (PHP) HHVM) install
#!/bin/sh
########################################################################
# #
# Kaiden's LEMH Installer #
# #
# This is a auto installer that installs the packages needed for #
# a LEMH (Linux (E)nginx MariaDB (PHP) HHVM) install. #
# #
# Credit to: http://www.maketecheasier.com/setup-lemh-stack-in-ubuntu/ #
void board::incrementNotMines(point p) {
minesweeper::board b=*this;
point tmpPoint;
// Function that increments all nearby spots, unless it is a mine (-1)
for(int i=-1; i<=1; i++) {
for(int j=-1; j<=1; j++) {
tmpPoint.x=p.x+i, tmpPoint.y=p.y+j;
if(tmpPoint.chkValidPoint(b) && b.board[tmpPoint.x][tmpPoint.y] != -1) {
b.board[tmpPoint.x][tmpPoint.y]++;
}