Skip to content

Instantly share code, notes, and snippets.

View atamocius's full-sized avatar
😜

Anton Mata atamocius

😜
View GitHub Profile
@atamocius
atamocius / challenge-tictactoe.md
Last active September 19, 2019 18:24
Coding Challenge: Tic-Tac-Toe

Coding Challenge: Tic-Tac-Toe

Create a Tic-Tac-Toe game.

ttt1

Requirements

  • Create a 3x3 grid tic-tac-toe game.
  • Once there is a winner, the winning token must be displayed atop the grid.
  • The grid must be centered on the page.
@atamocius
atamocius / challenge-infinite-scroll.md
Last active January 14, 2020 11:09
Coding Challenge: Infinite Scroll

Coding Challenge: Infinite Scroll

Create a React app that demonstrates infinite scrolling.

react-infinite-scroll 1

Setup

  • Use Git to track code changes.
  • Push your code to GitHub as a private repo.
@atamocius
atamocius / pubsub.lua
Created April 20, 2018 01:23
Publish-subscribe pattern implementation in Lua (ported from "Learning JavaScript Design Patterns" book)
-- https://addyosmani.com/resources/essentialjsdesignpatterns/book/#observerpatternjavascript
local M = {}
-- Storage for topics that can be broadcast
-- or listened to
local topics = {}
-- A topic identifier
local sub_uid = 0