Skip to content

Instantly share code, notes, and snippets.

View atamocius's full-sized avatar
😜

Anton Mata atamocius

😜
View GitHub Profile
@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
@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 / 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 / web-dev-training.md
Last active May 27, 2020 21:28
Web Development Training
@atamocius
atamocius / advanced-js-func.md
Last active May 13, 2020 13:10
Advanced JS - Functional Programming

Advanced JS - Functional Programming

📖 Introduction

Imperative vs. Declarative

First class functions

🏭 Pure Functions

@atamocius
atamocius / advanced-js-async.md
Last active May 13, 2020 13:11
Advanced JS - Asynchronous Programming

Advanced JS - Asynchronous Programming

📖 Introduction

Synchronous vs. Asynchronous

Callbacks

🔗 Promises

@atamocius
atamocius / advanced-js-patterns.md
Last active May 13, 2020 13:01
Advanced JS - Design Patterns

Advanced JS - Design Patterns

📖 Introduction

What is a "Pattern"?

"Gang of Four" (GoF)

Types/Categories

@atamocius
atamocius / advanced-js-rx.md
Created May 13, 2020 13:05
Advanced JS - Reactive Programming

Advanced JS - Reactive Programming

@atamocius
atamocius / machine.js
Last active August 29, 2020 11:02
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions