Skip to content

Instantly share code, notes, and snippets.

View Oscarz90's full-sized avatar
🤓
coding...

Oscar Oscarz90

🤓
coding...
View GitHub Profile
[user]
name = Pavan Kumar Sunkara
email = [email protected]
username = pksunkara
[core]
editor = vim
whitespace = fix,-indent-with-non-tab,trailing-space,cr-at-eol
excludesfile = ~/.gitignore
[sendemail]
smtpencryption = tls
@Oscarz90
Oscarz90 / TicTacToeGame.js
Last active August 22, 2018 16:35
Implementation of Tic Tac Toe Game with certain level of AI.
/**
* OMS
* August 2018
**/
/**
* Executes the move for a tic tac toe game given a player who plays the turn.
* @param {array} board The Board Game of tic tac toe with a state
* @param {string} player The player who plays the turn.
* @returns {array} board Returns the board with the move of the player
*/
@Oscarz90
Oscarz90 / Native.js
Created August 1, 2018 20:59 — forked from alexreardon/Native.js
Some vanilla JS methods and patterns
// Native selectors.
(function(window, document) {
'use strict';
var noop = function() {
};
// DOCUMENT LOAD EVENTS
// not needed at the bottom of the page
document.addEventListener('DOMContentLoaded', noop);