Skip to content

Instantly share code, notes, and snippets.

View tomatohammado's full-sized avatar

Hammad Malik tomatohammado

View GitHub Profile
@tomatohammado
tomatohammado / gist:74870fa5d4ea8b2ee086ec26c5eecd3f
Created November 20, 2017 13:58
Vestibule Week 1, homework over the weekend, memory card game
GAs-MacBook-Air:~ ga$ cd ga-wdi/
GAs-MacBook-Air:ga-wdi ga$ cd sandbox/
GAs-MacBook-Air:sandbox ga$ cd
GAs-MacBook-Air:~ ga$ cd ga-wdi/sandbox/
GAs-MacBook-Air:sandbox ga$ ls
css-test vestibule_day1_test
html-intro-test week1_day3_layout_exercise
GAs-MacBook-Air:sandbox ga$ mkdir conditionals_exercise
GAs-MacBook-Air:sandbox ga$ cd conditionals_exercise/
GAs-MacBook-Air:conditionals_exercise ga$ touch index.html
@tomatohammado
tomatohammado / gist:8072411e54873f17464361c228dec0f1
Created November 20, 2017 15:22
Vestibule Week 2 Day 1(6), correcting .bach_profile and installing Standard Javascript
GAs-MacBook-Air:~ ga$ code ga-wdi/fundamentals/wdi-fundamentals-memorygame/
GAs-MacBook-Air:~ ga$ atom ~/.bash_profile
GAs-MacBook-Air:~ ga$ npm install -g standard
/usr/local/bin/standard -> /usr/local/lib/node_modules/standard/bin/cmd.js
+ [email protected]
added 192 packages in 10.38s
GAs-MacBook-Air:~ ga$ code ga-wdi/fundamentals/wdi-fundamentals-memorygame/
GAs-MacBook-Air:~ ga$ git status ga-wdi/fundamentals/wdi-fundamentals-memorygame/
fatal: Not a git repository (or any of the parent directories): .git
GAs-MacBook-Air:~ ga$ cd ga-wdi/fundamentals/wdi-fundamentals-memorygame/
@tomatohammado
tomatohammado / gist:5a18adcf317ae9725e3c7a49b1036312
Created November 21, 2017 13:58
Vestibule Week 2 day 1, memory card exercise
GAs-MacBook-Air:~ ga$ cd ga-wdi/sandbox/
GAs-MacBook-Air:sandbox ga$ ls
conditionals_exercise html-intro-test week1_day3_layout_exercise
css-test vestibule_day1_test
GAs-MacBook-Air:sandbox ga$ mkdir dom_test && $_
-bash: dom_test: command not found
GAs-MacBook-Air:sandbox ga$ mkdir dom_test
mkdir: dom_test: File exists
GAs-MacBook-Air:sandbox ga$ ls
conditionals_exercise dom_test vestibule_day1_test
@tomatohammado
tomatohammado / reset-button-function.js
Created November 21, 2017 14:01
old reset-button code
document.querySelector('.reset-button').addEventListener('click', function () {
console.log('Reset button clicked')
// console.log(document.querySelectorAll('.flipped'))
var numCardsInPlay = cardsInPlay.length
console.log('numCardsInPlay: ' + numCardsInPlay)
for (var i = 0; i < numCardsInPlay; i++) {
console.log(cardsInPlay[i])
var currentFlippedCard = document.querySelectorAll('.flipped')[i]
// console.log(document.querySelectorAll('.flipped')[i])
// document.querySelectorAll('.flipped')[i].setAttribute('src', 'images/back.png')
@tomatohammado
tomatohammado / gist:1b2765a1073b6e9b132243f9e1340317
Created November 21, 2017 20:30
Vestibule Week 2 day 2(7), cookie-clicker lab
GAs-MacBook-Air:~ ga$ cd ga-wdi/fundamentals/wdi-fundamentals-memorygame/
GAs-MacBook-Air:wdi-fundamentals-memorygame ga$ git status
On branch master
Your branch is up to date with 'origin/master'.
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git checkout -- <file>..." to discard changes in working directory)
modified: js/main.js
@tomatohammado
tomatohammado / gist:7e27bec6f6f5234254242fefd18c975b
Created November 22, 2017 13:42
Vestibule Week 2 Day 2(7) - small changes to cookie-clicker activity
Last login: Tue Nov 21 16:23:39 on ttys001
GAs-MacBook-Air:~ ga$ cd ga-wdi/fundamentals/cookie_clicker_lab/cookie_clicker/
GAs-MacBook-Air:cookie_clicker ga$ git status
On branch master
Your branch is up to date with 'origin/master'.
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git checkout -- <file>..." to discard changes in working directory)
@tomatohammado
tomatohammado / gist:c6e5e21c9a193e9a33d1c1e155f4e2cc
Created November 22, 2017 13:43
Vestibule Week 2 Day 2(7) - ATM assessment
GAs-MacBook-Air:~ ga$ cd ga-wdi/fundamentals/
.DS_Store cell_phone_html_css/ github_resume/ wdi-fundamentals-memorygame/
World/ cookie_clicker_lab/ thinking_like_a_programmer/
GAs-MacBook-Air:~ ga$ cd ga-wdi/fundamentals/
.DS_Store cell_phone_html_css/ github_resume/ wdi-fundamentals-memorygame/
World/ cookie_clicker_lab/ thinking_like_a_programmer/
GAs-MacBook-Air:~ ga$ cd ga-wdi/fundamentals/
GAs-MacBook-Air:fundamentals ga$ mkdir atm_assessment
GAs-MacBook-Air:fundamentals ga$ cd atm_assessment/
GAs-MacBook-Air:atm_assessment ga$ git clone https://git.generalassemb.ly/tomatohammado/atm.git
@tomatohammado
tomatohammado / gist:2bcd60ce219318d167a343bf2f675fa2
Created November 27, 2017 13:36
Vestibule Week 2, Weekend - updates to memory card game
Last login: Tue Nov 21 20:38:51 on ttys001
GAs-MacBook-Air:~ ga$ cd ga-wdi/
.DS_Store fundamentals/ sandbox/
GAs-MacBook-Air:~ ga$ cd ga-wdi/fundamentals/wdi-fundamentals-memorygame/
GAs-MacBook-Air:wdi-fundamentals-memorygame ga$ git status
On branch master
Your branch is up to date with 'origin/master'.
Untracked files:
(use "git add <file>..." to include in what will be committed)
@tomatohammado
tomatohammado / gist:040133dd35e610e4f98a5e077540d5f2
Created November 27, 2017 20:13
installing `brew install tree`
GAs-MacBook-Air:~ ga$ cd ga-wdi/sandbox/
GAs-MacBook-Air:sandbox ga$ ls
conditionals_exercise dom_test vestibule_day1_test
css-test html-intro-test week1_day3_layout_exercise
GAs-MacBook-Air:sandbox ga$ mkdir vestibule
GAs-MacBook-Air:sandbox ga$ mv conditionals_exercise/ vestibule
GAs-MacBook-Air:sandbox ga$ ls
css-test html-intro-test vestibule_day1_test
dom_test vestibule week1_day3_layout_exercise
GAs-MacBook-Air:sandbox ga$ mv css-test/ vestibule
@tomatohammado
tomatohammado / gist:1e02c0de9e06da4c454294d80cdaaec0
Created November 28, 2017 13:33
Week 1 Day 1 - classwork and starting hw
GAs-MacBook-Air:~ ga$ cd ga-wdi/
GAs-MacBook-Air:ga-wdi ga$ ls
sandbox vestibule-fundamentals
GAs-MacBook-Air:ga-wdi ga$ mkdir class_work
GAs-MacBook-Air:ga-wdi ga$ mkdir assignments
GAs-MacBook-Air:ga-wdi ga$ ls
assignments class_work sandbox vestibule-fundamentals
GAs-MacBook-Air:ga-wdi ga$ tree class_work/
class_work/