Skip to content

Instantly share code, notes, and snippets.

@evgenvandev
evgenvandev / Game_memory-01.js
Last active July 10, 2024 11:49
Memory game tutorial
// Card data
const cardsArray = [
{
name: 'shell',
img: 'img/blueshell.png',
},
{
name: 'star',
img: 'img/star.png',
},
@evgenvandev
evgenvandev / read.js
Created July 5, 2024 05:54 — forked from taniarascia/read.js
Read data
// echo -en "\x01\x02\x03hello" > data
// node read.js data
let fs = require('fs')
let file = process.argv.slice(2)[0]
let buffer = fs.readFileSync(file)
for (let value of buffer) {
let decimal = value
let hex = value.toString(16)
@evgenvandev
evgenvandev / memory-0.1.js
Created July 5, 2024 05:46 — forked from taniarascia/memory-0.1.js
Memory Game Tutorial
const cardsArray = [ /* ... */ ];
const game = document.getElementById('game');
const grid = document.createElement('section');
grid.setAttribute('class', 'grid');
game.appendChild(grid);
cardsArray.forEach(item => {
const card = document.createElement('div');
card.classList.add('card');

Roadmap of Web Development

Getting Started

Operating System

What operating system your computer runs on.

  • Mac, Windows, Linux
@evgenvandev
evgenvandev / auth.md
Created July 5, 2024 05:43 — forked from taniarascia/auth.md
JavaScript Authentication & Authorization Book/Course

Authentication in Real-World Web Apps with JavaScript

Outline of ideas, concepts to cover, potential projects to write.

Setup Idea

  • Book with a video for each chapter.

Prerequisites/Overview

React Architecture: How to Structure and Organize a React Application

There is no consensus on the right way to organize a React application. React gives you a lot of freedom, but with that freedom comes the responsibility of deciding on your own architecture. Often the case is that whoever sets up the application in the beginning throws almost everything in a components folder, or maybe components and containers if they used Redux, but I propose there's a better way. I like to be deliberate about how I organize my applications so they're easy to use, understand, and extend.

I'm going to show you what I consider to be an intuitive and scalable system for large-scale production React applications. The main concept I think is important is to make the architecture focused on feature as opposed to type, organizing only shared components on a global level and modularized all the other related entities together in the localized view.

Tech assumptions

Since this article will be opinionated,

@evgenvandev
evgenvandev / git.md
Created July 5, 2024 05:32 — forked from taniarascia/git.md
Git

Git

Git command reference.

Upload all files in a local directory to a new Git repository

If you have a project on your computer and you just created an empty Git repository in GitHub, use these commands to upload everything to Git.

cd your-directory