diff --git a/01 - JavaScript Drum Kit/index-START.html b/01 - JavaScript Drum Kit/index-START.html deleted file mode 100644 index 4070d32767..0000000000 --- a/01 - JavaScript Drum Kit/index-START.html +++ /dev/null @@ -1,66 +0,0 @@ - - - - - Codestin Search App - - - - - -
-
- A - clap -
-
- S - hihat -
-
- D - kick -
-
- F - openhat -
-
- G - boom -
-
- H - ride -
-
- J - snare -
-
- K - tom -
-
- L - tink -
-
- - - - - - - - - - - - - - - - diff --git a/01 - JavaScript Drum Kit/index.html b/01 - JavaScript Drum Kit/index.html deleted file mode 100644 index 246639f990..0000000000 --- a/01 - JavaScript Drum Kit/index.html +++ /dev/null @@ -1,83 +0,0 @@ - - - - - Codestin Search App - - - - - -
-
- A - clap -
-
- S - hihat -
-
- D - kick -
-
- F - openhat -
-
- G - boom -
-
- H - ride -
-
- J - snare -
-
- K - tom -
-
- L - tink -
-
- - - - - - - - - - - - - - - diff --git a/01 - JavaScript Drum Kit/sounds/boom.wav b/01 - JavaScript Drum Kit/sounds/boom.wav deleted file mode 100755 index 8d6423bcdb..0000000000 Binary files a/01 - JavaScript Drum Kit/sounds/boom.wav and /dev/null differ diff --git a/01 - JavaScript Drum Kit/sounds/clap.wav b/01 - JavaScript Drum Kit/sounds/clap.wav deleted file mode 100755 index ef952e5eb4..0000000000 Binary files a/01 - JavaScript Drum Kit/sounds/clap.wav and /dev/null differ diff --git a/01 - JavaScript Drum Kit/sounds/hihat.wav b/01 - JavaScript Drum Kit/sounds/hihat.wav deleted file mode 100755 index 885cb196a3..0000000000 Binary files a/01 - JavaScript Drum Kit/sounds/hihat.wav and /dev/null differ diff --git a/01 - JavaScript Drum Kit/sounds/kick.wav b/01 - JavaScript Drum Kit/sounds/kick.wav deleted file mode 100755 index 8fe46dea0c..0000000000 Binary files a/01 - JavaScript Drum Kit/sounds/kick.wav and /dev/null differ diff --git a/01 - JavaScript Drum Kit/sounds/openhat.wav b/01 - JavaScript Drum Kit/sounds/openhat.wav deleted file mode 100755 index 50637521dc..0000000000 Binary files a/01 - JavaScript Drum Kit/sounds/openhat.wav and /dev/null differ diff --git a/01 - JavaScript Drum Kit/sounds/ride.wav b/01 - JavaScript Drum Kit/sounds/ride.wav deleted file mode 100755 index e5829dfef9..0000000000 Binary files a/01 - JavaScript Drum Kit/sounds/ride.wav and /dev/null differ diff --git a/01 - JavaScript Drum Kit/sounds/snare.wav b/01 - JavaScript Drum Kit/sounds/snare.wav deleted file mode 100755 index c4edfc7534..0000000000 Binary files a/01 - JavaScript Drum Kit/sounds/snare.wav and /dev/null differ diff --git a/01 - JavaScript Drum Kit/sounds/tink.wav b/01 - JavaScript Drum Kit/sounds/tink.wav deleted file mode 100755 index f907ea2c0e..0000000000 Binary files a/01 - JavaScript Drum Kit/sounds/tink.wav and /dev/null differ diff --git a/01 - JavaScript Drum Kit/sounds/tom.wav b/01 - JavaScript Drum Kit/sounds/tom.wav deleted file mode 100755 index 9e2cdf691e..0000000000 Binary files a/01 - JavaScript Drum Kit/sounds/tom.wav and /dev/null differ diff --git a/02 - JS + CSS Clock/index-START.html b/02 - JS + CSS Clock/index-START.html deleted file mode 100644 index 2712384201..0000000000 --- a/02 - JS + CSS Clock/index-START.html +++ /dev/null @@ -1,73 +0,0 @@ - - - - - Codestin Search App - - - - -
-
-
-
-
-
-
- - - - - - - diff --git a/02 - JS + CSS Clock/index.html b/02 - JS + CSS Clock/index.html deleted file mode 100644 index 1c777557da..0000000000 --- a/02 - JS + CSS Clock/index.html +++ /dev/null @@ -1,96 +0,0 @@ - - - - - Codestin Search App - - - - -
-
-
-
-
-
-
- - - - - - - diff --git a/03 - CSS Variables/index-START.html b/03 - CSS Variables/index-START.html deleted file mode 100644 index bf0f33e3ba..0000000000 --- a/03 - CSS Variables/index-START.html +++ /dev/null @@ -1,59 +0,0 @@ - - - - - Codestin Search App - - -

Update CSS Variables with JS

- -
- - - - - - - - -
- - - - - - - - - diff --git a/04 - Array Cardio Day 1/index-FINISHED.html b/array-cardio/index-FINISHED.html similarity index 100% rename from 04 - Array Cardio Day 1/index-FINISHED.html rename to array-cardio/index-FINISHED.html diff --git a/04 - Array Cardio Day 1/index-START.html b/array-cardio/index-START.html similarity index 70% rename from 04 - Array Cardio Day 1/index-START.html rename to array-cardio/index-START.html index 6e28e357d0..76ddfd5324 100644 --- a/04 - Array Cardio Day 1/index-START.html +++ b/array-cardio/index-START.html @@ -27,28 +27,46 @@ // Array.prototype.filter() // 1. Filter the list of inventors for those who were born in the 1500's - + const renaissancers = inventors.filter(inventor => inventor.year >= 1500 && inventor.year < 1600); + renaissancers.forEach(renaissancer => console.log(`${renaissancer.first} ${renaissancer.last}`)); + console.table(renaissancers); // Array.prototype.map() // 2. Give us an array of the inventory first and last names + const names = inventors.map(inventor => `${inventor.first} ${inventor.last}`); + console.log(names); // Array.prototype.sort() // 3. Sort the inventors by birthdate, oldest to youngest + const sorted_inventors = inventors.sort((a, b) => a.year - b.year); + sorted_inventors.forEach(inventor => console.log(`${inventor.first} ${inventor.last} ${inventor.year}`)); // Array.prototype.reduce() // 4. How many years did all the inventors live? + const accumulated_years = inventors.reduce((a, b) => a + (b.passed - b.year), 0); + console.log(accumulated_years); // 5. Sort the inventors by years lived + const oldest = inventors.sort((a, b) => { var a_age = a.passed - a.year; var b_age = b.passed - b.year; return b_age - a_age}); + console.table(oldest); // 6. create a list of Boulevards in Paris that contain 'de' anywhere in the name // https://en.wikipedia.org/wiki/Category:Boulevards_in_Paris + const boulevards = ['yada de pee', 'poo', 'boulevard de pee']; + const boulevards_de = boulevards.filter(boulevard => boulevard.includes('de')); // 7. sort Exercise // Sort the people alphabetically by last name + const sorted_people = people.sort(); // 8. Reduce Exercise // Sum up the instances of each of these const data = ['car', 'car', 'truck', 'truck', 'bike', 'walk', 'car', 'van', 'bike', 'walk', 'car', 'van', 'car', 'truck' ]; + const transportation = data.reduce((object, item) => { + object[item] = object[item] ? object[item] : 0; + object[item] = object[item] + 1; + return object + }, {}); diff --git a/clock/images/bg.png b/clock/images/bg.png new file mode 100644 index 0000000000..5e24bf81fe Binary files /dev/null and b/clock/images/bg.png differ diff --git a/clock/images/body.png b/clock/images/body.png new file mode 100644 index 0000000000..af248f41c0 Binary files /dev/null and b/clock/images/body.png differ diff --git a/clock/images/clockhand1.png b/clock/images/clockhand1.png new file mode 100644 index 0000000000..a1fdcbf8c1 Binary files /dev/null and b/clock/images/clockhand1.png differ diff --git a/clock/images/dick1.png b/clock/images/dick1.png new file mode 100644 index 0000000000..2752de9a84 Binary files /dev/null and b/clock/images/dick1.png differ diff --git a/clock/images/face.png b/clock/images/face.png new file mode 100644 index 0000000000..bbdebf4f5e Binary files /dev/null and b/clock/images/face.png differ diff --git a/02 - JS + CSS Clock/index-FINISHED.html b/clock/index-FINISHED.html similarity index 100% rename from 02 - JS + CSS Clock/index-FINISHED.html rename to clock/index-FINISHED.html diff --git a/clock/index.html b/clock/index.html new file mode 100644 index 0000000000..044e3d08fc --- /dev/null +++ b/clock/index.html @@ -0,0 +1,102 @@ + + + + + Codestin Search App + + + + +
+
+
+
+
+
+
+ + + + + + + + + + diff --git a/clock/sounds/tick.wav b/clock/sounds/tick.wav new file mode 100644 index 0000000000..405ad2a1f6 Binary files /dev/null and b/clock/sounds/tick.wav differ diff --git a/clock/sounds/tock.wav b/clock/sounds/tock.wav new file mode 100644 index 0000000000..09f3eebb72 Binary files /dev/null and b/clock/sounds/tock.wav differ diff --git a/03 - CSS Variables/index-FINISHED.html b/css_variables/index.html similarity index 71% rename from 03 - CSS Variables/index-FINISHED.html rename to css_variables/index.html index 9401d7b339..61bbbcddcf 100644 --- a/03 - CSS Variables/index-FINISHED.html +++ b/css_variables/index.html @@ -14,29 +14,28 @@

Update CSS Variables with JS

+ + + - + +

penis

+ + +
+
+

Hey

+

Let's

+

Dance

+
+
+

Give

+

Take

+

Receive

+
+
+

Experience

+

It

+

Today

+
+
+

Give

+

All

+

You can

+
+
+

Life

+

In

+

Motion

+
+
+ + + + + diff --git a/flex_panel_gallery/index.html b/flex_panel_gallery/index.html new file mode 100644 index 0000000000..a293515fd0 --- /dev/null +++ b/flex_panel_gallery/index.html @@ -0,0 +1,145 @@ + + + + + Codestin Search App + + + + + + +
+
+

oi

+

wanna

+

fug?

+
+
+

Give

+

me

+

pizza

+
+
+

Escaflowne

+

Is

+

Gay

+
+
+

Point

+

Line

+

Trrriannggle

+
+
+

Booboo

+

My

+

Baabaa

+
+
+ + + + + + +