Skip to content

Instantly share code, notes, and snippets.

View tomatohammado's full-sized avatar

Hammad Malik tomatohammado

View GitHub Profile
@tomatohammado
tomatohammado / gist:c01ce91bb6bba865c02d15177ecab09f
Created November 28, 2017 14:37
Week 1 - To Oz HW first attempt
GAs-MacBook-Air:to_oz ga$ mkdir House
GAs-MacBook-Air:to_oz ga$ cd House/
GAs-MacBook-Air:House ga$ touch Dorothy Toto
GAs-MacBook-Air:House ga$ ls
Dorothy Toto
GAs-MacBook-Air:House ga$ cd ..
GAs-MacBook-Air:to_oz ga$ mkdir Oz
GAs-MacBook-Air:to_oz ga$ touch Oz/Good\ Witch\ of\ the\ North Oz/Wicked\ Witch\ of\ the\ East Oz/Good\ Witch\ of\ the\ South Oz/Wicked\ Witch\ of\ the\ West
GAs-MacBook-Air:to_oz ga$ ls Oz/
Good Witch of the North Wicked Witch of the East
@tomatohammado
tomatohammado / gist:e823874710a73ff04c102f47e31bfcd7
Created November 28, 2017 18:17
Week 1 Day 2 - git practice, and then I ran some shell script...
Last login: Mon Nov 27 15:13:58 on ttys000
GAs-MacBook-Air:~ ga$ cd ga-wdi/
GAs-MacBook-Air:ga-wdi ga$ cd sandbox/
GAs-MacBook-Air:sandbox ga$ mkdir git_practice_sample_resume $$ cd "$_"
GAs-MacBook-Air:sandbox ga$ ls
8038 git_practice_sample_resume vestibule
cd sandbox
GAs-MacBook-Air:sandbox ga$ open .
GAs-MacBook-Air:sandbox ga$ mv git_practice_sample_resume/ sandbox/
GAs-MacBook-Air:sandbox ga$ ls
export PATH="/usr/local/bin:$PATH"
eval "$(rbenv init -)"
export PATH=$PATH:/Applications/Postgres.app/Contents/Versions/latest/bin
export PATH=$PATH:/Applications/Visual\ Studio\ Code.app/Contents/Resources/app/bin
export GITHUB_USERNAME='tomatohammado'
#Add prompt script from https://git.generalassemb.ly/DC-WDI/installfest-bash/blob/master/add-prompt.sh
# source $(brew --prefix)/etc/bash_completion
# source ~/.git-prompt.sh
# GIT_PS1_SHOWDIRTYSTATE=1
@tomatohammado
tomatohammado / console.js
Created November 29, 2017 14:07
experimenting with typeof and functions. Not sure if they were 'objects' or 'functions', and if it would be different for declarations vs expressions
function func1 () { console.log('func1') }
-> undefined
var func2 = function () { console.log('func2') }
-> undefined
typeof func1
-> "function"
typeof func2
-> "function"
Last login: Wed Nov 29 11:08:39 on ttys001
~
$ gl
fatal: Not a git repository (or any of the parent directories): .git
~
$ cd ga-wdi/class-work/week-1/haiku/
~/ga-wdi/class-work/week-1/haiku (master *)
$ git status
On branch master
Your branch is behind 'origin/master' by 2 commits, and can be fast-forwarded.
@tomatohammado
tomatohammado / gist:e907205d1d7d33e8e44cc5d29ffe0748
Created November 30, 2017 14:06
WDI Week 1 HW: Wendy Bite
$ cd ga-wdi/class-work/week-1/
~/ga-wdi/class-work/week-1
$ git clone [email protected]:tomatohammado/wendy_bite.git
Cloning into 'wendy_bite'...
remote: Counting objects: 58, done.
remote: Total 58 (delta 0), reused 0 (delta 0), pack-reused 58
Receiving objects: 100% (58/58), 409.93 KiB | 1.33 MiB/s, done.
Resolving deltas: 100% (24/24), done.
~/ga-wdi/class-work/week-1
$ code .
@tomatohammado
tomatohammado / gist:ad8f6f019b5f658db6409b1a9fab9a05
Last active November 30, 2017 23:34
Week 1 Lab: Portfolio
$ cd ~/ga-wdi/
~/ga-wdi
$
Display all 1597 possibilities? (y or n)
~/ga-wdi
$ ls
class-work labs projects sandbox vestibule-fundamentals
~/ga-wdi
$ cd labs/
~/ga-wdi/labs
@tomatohammado
tomatohammado / fizzbuzz.js
Last active December 1, 2017 21:27
fancy fizbuzz
for (let i = 1; i <= 100; i++) {
let isDivisibleByThree = i % 3 === 0
let isDivisibleByFive = i % 5 === 0
isDivisibleByThree && isDivisibleByFive ?
console.log('FizzBuzz')
: isDivisibleByThree ?
console.log('Fizz')
: isDivisibleByFive ?
console.log('Buzz')
@tomatohammado
tomatohammado / term-wdi-w1-hw-airbnb.bash
Created December 1, 2017 22:46
WDI Week 1 HW: airbnb
$ cd De
Desktop/ Dev/
~
$ cd Dev/ga-wdi/
~/Dev/ga-wdi
$ ls
class-work labs projects sandbox vestibule-fundamentals
~/Dev/ga-wdi
$ cd class-work/week-1/
~/Dev/ga-wdi/class-work/week-1
@tomatohammado
tomatohammado / css-airbnb.bash
Created December 4, 2017 23:43
WDI Week 1: finishing css-airbnb
Last login: Fri Dec 1 18:14:23 on console
~
$ cd dev/ga-wdi/
~/dev/ga-wdi
$ ls
class-work labs projects sandbox vestibule-fundamentals
~/dev/ga-wdi
$ cd labs/
~/dev/ga-wdi/labs
$ ls