Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
50 commits
Select commit Hold shift + click to select a range
698282e
Added a change
goodwid Nov 2, 2016
7695bab
Merge branch 'master' of github.com:FundamentalsOfCode/code102
goodwid Nov 3, 2016
fdafb66
Added vi practice text file
goodwid Nov 3, 2016
91cdb2b
Fixed a typo (in lorem ipsum? how would oyu know?
goodwid Nov 3, 2016
179095d
Added resources folder, moved not-code from code to resources
goodwid Jan 18, 2017
5dcde72
Update repo for 5-night course
Jan 18, 2017
824499a
Correct detail on about.md
Jan 18, 2017
712f64a
Merge pull request #2 from bethadele/january-updates
bethadele Jan 18, 2017
7552425
added vi cheat sheet
goodwid Jan 19, 2017
95d5e55
Merge branch 'master' of github.com:FundamentalsOfCode/code102 into s…
goodwid Jan 19, 2017
d5edf0b
A word
goodwid Jan 24, 2017
85aa9d9
Add resource for writing git commit message
Jan 24, 2017
910db56
revamped bash aliases instructions, modified vi cheat sheet
goodwid Jan 26, 2017
3a2005b
Really fixed the vi cheat sheet this time
goodwid Jan 26, 2017
25564d9
Added an actual worksheet with tasks to complete
goodwid Jan 27, 2017
b36849a
Updates to cheat sheet
goodwid Jan 27, 2017
b5bc5da
Add link to bash aliases tutorial
bethadele Apr 18, 2017
dc0d5be
Merge pull request #3 from codefellowspdx/bethadele-patch-1
bethadele Apr 18, 2017
5fc1f90
Add instructions for working with Atom
bethadele Apr 18, 2017
7d7e973
Add link to new Atom instructions
bethadele Apr 18, 2017
e798c68
Repair formatting glitches
bethadele Apr 18, 2017
972293c
Add file for monday notes
Apr 18, 2017
4549128
Add changes to monday file
Apr 18, 2017
d4aec3b
Add notes
Apr 18, 2017
814bc66
Remove line from monday notes
Apr 18, 2017
4901635
Modify line in monday notes
Apr 18, 2017
8b8678c
Change README with some different text
Jan 28, 2017
02e04d7
Add more conflicts
Jan 28, 2017
70b7279
Rearrange schedule
Apr 19, 2017
fe21d26
Add link to vi cheat sheet
bethadele Apr 19, 2017
bf895eb
Fine-tune bash instructions
bethadele Apr 19, 2017
3c81390
Change branch name
bethadele Apr 19, 2017
cbff9bb
Add notes file for Tuesday evening
Apr 19, 2017
378e8d3
Add changes to tuesday notes
Apr 19, 2017
f868ac5
Remove feature/ from branch name
bethadele Apr 20, 2017
0fe1855
Merge remote-tracking branch 'upstream/master'
Apr 20, 2017
5defc26
Remove feature/ from thurs, fri branches
Apr 21, 2017
4df36a5
Merge branch 'master' of github.com:bethadele/code102
Jul 17, 2017
3edf68c
Revise content for July 2017 course
Jul 17, 2017
29662b6
Remove random text from merge conflict lesson
Jul 17, 2017
c038e54
Merge pull request #6 from codefellowspdx/july2017
bethadele Jul 17, 2017
1782a09
Repair formatting
bethadele Jul 17, 2017
cf9858c
Tweak Developer tools formatting
bethadele Jul 18, 2017
2c9809b
Add Monday Notes
Jul 18, 2017
8a04188
Add Initial notes for Tuesday
Jul 19, 2017
875ce3d
tuesday branch changes
Jul 19, 2017
cad2008
add wednesday notes
Jul 20, 2017
309002a
added changes
Jul 20, 2017
742723d
add file for thursday
Jul 21, 2017
1f88556
thursday changes made
Jul 21, 2017
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,21 @@
# Code 102: Fundamentals of Code

Welcome to Code 102! We're going to spend four nights ramping you up so that when you hit the Code 201 course, you're poised for success.
Welcome to Code 102! We're going to spend five nights covering the essentials of JavaScript, Git and the command line. By the end of this week you'll have leveled up your development skills -- whether you're heading into the 201, testing into the 301, or just trying to get a head start on self-study.

## Class Schedule
* [Monday](schedule/monday.md)
* [Tuesday](schedule/tuesday.md)
* [Wednesday](schedule/wednesday.md)
* [Thursday](schedule/thursday.md)
* [Friday](schedule/friday.md)

## Resources
* Keyboard Shortcuts
* [Mac](http://www.danrodney.com/mac/)
* [Windows](http://www.hongkiat.com/blog/100-keyboard-shortcuts-windows/)
* [Mac](http://www.danrodney.com/mac/)
* [Windows](http://www.hongkiat.com/blog/100-keyboard-shortcuts-windows/)
* Text Editors
* [The Basics of vi](http://www.bsdguides.org/2004/the-basics-of-vi/)
* [The Basics of nano](https://wiki.gentoo.org/wiki/Nano/Basics_Guide)
* [The Basics of vi](http://www.bsdguides.org/2004/the-basics-of-vi/)
* [The Basics of nano](https://wiki.gentoo.org/wiki/Nano/Basics_Guide)
* Visual Studio Code
* [The Basics of Visual Studio Code](https://code.visualstudio.com/Docs/editor/codebasics)
* [VS Code Key Bindings](http://www.hongkiat.com/blog/key-binding-management-visual-studio-code/)
Expand All @@ -25,4 +26,5 @@ Welcome to Code 102! We're going to spend four nights ramping you up so that whe
* Git
* [Git Documentation](https://git-scm.com/docs)
* [Git Cheat Sheet](https://www.git-tower.com/blog/git-cheat-sheet/)
* [How to Write a Git Commit Message](http://chris.beams.io/posts/git-commit/)
* [Mastering Markdown](https://guides.github.com/features/mastering-markdown/)
46 changes: 0 additions & 46 deletions code/bash_aliases.md

This file was deleted.

10 changes: 10 additions & 0 deletions code/friday.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<html>
<head>
<title>Code 102: Friday Code Assignment</title>
</head>
<body>
<h1>Friday: Control Flow</h1>

<script type="text/javascript" src="friday.js"></script>
</body>
</html>
22 changes: 22 additions & 0 deletions code/friday.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
// In today's assignment, you'll "refactor" the code from yesterday.
// After each TODO, once you get the code working, stop and add/commit
// your changes to your repository.

// TODO: Copy in your completed code from Thursday.

// TODO: Refactor all the code into a single big function
// called dayApp(). Be sure to work incrementally!

// TODO: What happens if you reload the page now?

// TODO: Add one line of code that calls your new function.
// Now what happens when you reload the page?

// TODO: Refactor the math that gets a random day number
// into a function called getDayNumber().

// TODO: Refactor the if/else if/else block that comments
// on each day into this function:
function remarkOnDay(day) {

}
80 changes: 65 additions & 15 deletions code/thursday.js
Original file line number Diff line number Diff line change
@@ -1,22 +1,72 @@
// In today's assignment, you'll "refactor" the code from yesterday.
// After each TODO, once you get the code working, stop and add/commit
// your changes to your repository.
var day = 'Thursday',
thursday = 'thursday';

// TODO: Copy in your completed code from Wednesday.
// How many equals signs does it take to muck up your code?
if (day = 'thursday') {
console.log('Test 1: Well lookee there, it\'s ' + day);
}

// TODO: Refactor all the code into a single big function
// called dayApp().
// The case of the failing "if" statement
if (day == 'Thursday') {
console.log('Test 2: Lo and behold, it\'s ' + day);
}

// TODO: What happens if you reload the page now?
// Equals thrice, test once
if (day === 'Thursday') {
console.log('Test 3: Huh. It\'s ' + day);
}

// TODO: Add one line of code that calls your new function.
// Now what happens when you reload the page?
// TODO: After commenting out the 3 conditionals above,
// uncomment this code and run it.
// if (day === 'Thursday') {
// console.log('Is it Friday yet?');
// } else {
// console.log('Whistle while you work!')
// }

// TODO: Refactor the math that gets a random day number
// into a function called getDayNumber().
// TODO: Add an "else if" block to check whether it's Saturday
// and console.log() a different statement for the weekend.

// TODO: Refactor the if/elseif/else block that comments
// on each day into this function:
function remarkOnDay(day) {

}

// TODO: Modify the conditional for Saturday to check whether
// the day is Saturday OR Sunday.



// TODO: Add an "else if" block to check whether it's Monday
// and console.log() a different statement for Monday.



// TODO: Change the string that's assigned into the day
// variable and run the code several times.



var days = ['Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday', 'Sunday'];

// console.log('index 0: ' + days[0]);
// console.log('index 1: ' + days[1]);
// console.log('index 2: ' + days[2]);
// console.log('index 6: ' + days[6]);
// console.log('index 7: ' + days[7]);
// console.log('index 20: ' + days[20]);

// TODO: DRY it up!
// for (var i = 0; i < 7; i++) {
// console.log('index ' + i + ': ' + days[i]);
// }


// TODO: Replace the "7" in "i < 7" with the length of the array


// TODO: On each iteration, use our randomly generated dayNumber
// to get a day from the days array, and console.log the
// name of the day.
// var max = 100,
// result;
// for (var j = 0; j < max; j++) {
// dayNumber = Math.floor(Math.random() * days.length);
// }
10 changes: 0 additions & 10 deletions code/wednesday.html

This file was deleted.

72 changes: 0 additions & 72 deletions code/wednesday.js

This file was deleted.

13 changes: 13 additions & 0 deletions notes/about.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
This directory is where you can store your personal notes for the class.

If you put a file in the wrong place and commit it to the repo, here's how to recover:
```
git mv path/to/old/file.md path/to/new/file.md
git commit -m "Move file"
```

For example, if you put Monday's notes file in the main repo directory and want to move it into the *notes* directory, you could do this:
```
git mv monday.md notes/monday.md
git commit -m "Move Monday notes into correct directory"
```
11 changes: 11 additions & 0 deletions notes/monday.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
Making my first change AQH


Make another change
Do something else
tra la la

here's another change

more notes for a monday night!!!!
monday night
1 change: 1 addition & 0 deletions notes/thursday-adrianhawk.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
This is my Thursday file - AQH
1 change: 1 addition & 0 deletions notes/tuesday.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
changes made to Tuesday
24 changes: 24 additions & 0 deletions notes/vi_practice.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
## vi practice worksheet

For a list of commands, view the vi cheat sheet in the resources directory in this reposiorty

After completing each of these tasks, press the `<esc>` key to return to Command mode.

#### Go to a specific line, and add to end of line.
Add your name to the following line. Position the cursor on line `n` by entering `nG` and pressing enter, then type `A`

Hello my name is

#### Insert a line
move your cursor using the `j` and `k` keys to the line with `two`, then press `o` and add the missing list item.

* one
* two
* four

#### Find, delete and add text at cursor
position the cursor at `East` by typing `/East` and pressing enter. Press `n` until you're at the incorrect word. Delete the word by typing `dw`. Then press `i` and enter the proper descriptor.

Code Fellows PDX is located on the East side of the river.

####
1 change: 1 addition & 0 deletions notes/wednesday.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
change change change
15 changes: 15 additions & 0 deletions resources/atom.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Working in Atom

## Getting Started
1. Open your class repo in Atom: **File > Add project folder...**
2. Close extra panes/windows
3. Toggle your file view sidebar with Cmd-M / Ctrl-M
4. Create a file for Monday in the `/notes` folder (call the file `monday.md`)

## Installing a Terminal Plugin
1. **Atom > Preferences** (or Cmd-, / Ctrl-,)
2. Go to **Install** (NOT Packages)
3. In the search box, type: platformio-ide-terminal
4. Install the package
5. Return to your notes file for Monday
6. Open a terminal window by clicking the little terminal icon in the bottom toolbar, or by using Cmd-Shift-T / Ctrl-Shift-T
Loading