Skip to content

Instantly share code, notes, and snippets.

View TheMajical's full-sized avatar

TheMajical TheMajical

  • ParsisGame
View GitHub Profile
==================================== Hyper Text Markup Language (HTML) ===============================
==> Opening and Closing Tags
each tag typically comes with a paired ending tag that begins with a forward-slash
<tag_example></tag_example>
some tags are self closing and will only have one tag which does or does not ends with a forward-slash
<tag_example/>
<tag_element>
@TheMajical
TheMajical / DOM Manipulation & Event Fundamentals
Created July 2, 2021 17:42 — forked from daaimah123/DOM Manipulation & Event Fundamentals
Notes for Jonas Schmedtmann's lecture building guessGame and modalPopUp apps where we learn about DOM and Event Listener Manipulation https://udemy.com/course/the-complete-javascript-course/learn/lecture/22648441#overview
===== Document Object Model (DOM) Manipulation & Event Fundamentals ====
Structured representation of the HTML document that allows JS to access and select elements and
styles to manipulate them (i.e. change text, HTML attributes and CSS styles). Automatically created
once browser loads HTML and stored in a tree structure with nodes. Not JS, but rather apart of web
api's and interact with JS.
Document object is the entry-point into DOM
.querySelector('.message')
==> Can use imperative or declarative paradigms and is very flexible.
==> First-class functions (treat functions as variables, passing a function into another function);
powerful; allows for functional programming.
==> Dyanmically-type language: no data type definitions, known at runtime and can be automatically changed
==> Concurrency model is JS handling multiple tasks at the same time.
==> Event Loops manage the Single-Thread (executed one task at a time) by taking long running tasks,
executing them in the background, then placing them back in the thread when finished. The Event Loop
prevent non-blocking behavior
==============================================================================================================================
ARRAY METHODS
==============================================================================================================================
const family = ['Malaika', 'Jahdai'];
arr.push()
==> add to end of array > family.push('Daaimah');
==> mutates length > console.log(family);
==> return length of new array ['Malaika', 'Jahdai', 'Daaimah']
==> TOOLS
console.warn()
console.error()
console.table() ==> formatted table with index and value
'use strict'; ==> opts out of silen errors for scripts
Google Chrome breakpoint settings ==> click the line number to pause execution at that point and
observe scope tab to determine what is occuring at the breakpoint
==> COMMON ISSUES
@TheMajical
TheMajical / Dice.py
Created March 10, 2018 14:05
Random Events
__title__ = 'Dice'
__author__ = 'Assassin'
__version__ = '1.2'
import clr
clr.AddReferenceByPartialName("Fougerite")
import Fougerite
import System
from System import *
import math