Skip to content

Instantly share code, notes, and snippets.

View martinlaws's full-sized avatar

Martin Laws martinlaws

View GitHub Profile
@martinlaws
martinlaws / setup.sh
Last active June 11, 2021 20:01 — forked from bradp/setup.sh
New Mac Setup Script
#!/bin/sh
start=`date +%s`
bold=$(tput bold)
normal=$(tput sgr0)
red=`tput setaf 1`
green=`tput setaf 2`
reset=`tput sgr0`
@martinlaws
martinlaws / 0_lecture_notes.md
Created August 22, 2016 20:53 — forked from fzero/0_lecture_notes.md
LighthouseLabs - W6D1 Breakout - JS + DOM intro

Javascript in the browser!

  • window, navigator
    • BOM - Browser Object Model
      • navigator represents the the browser basic code (or kernel) and properties, like version, user agent string, language, geolocation options and so on.
      • window is a "god object" containing all browser components, such as the address bar (window.location), modal dialogues (alert(), prompt()) and the window being displayed on screen itself. It's also the top object where all global variables are assigned to.
  • document
    • DOM - Document Object Model
    • Contains all of the content being displayed - in other words, whatever is inside the window.
  • The document represents all content as nodes - tags, text, images, and so on.
@martinlaws
martinlaws / README.md
Created August 3, 2016 22:20 — forked from hofmannsven/README.md
My simply Git Cheatsheet