Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
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
9 changes: 9 additions & 0 deletions code/nojs.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<html>
<head>
<title>No JavaScript</title>
</head>
<body>
<h1>No JavaScript here!</h1>

</body>
</html>
27 changes: 15 additions & 12 deletions code/tuesday.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
var day = 'Monday';
console.log('the day is: ' + day);
// console.log('the day is: ' + day);

day = 'Tuesday';
console.log('the day is: ' + day);
day == 'Monday'
day === 'Monday'

day = 'Thursday';
console.log('the day is: ' + day);

day = 1;
console.log('the day is: ' + day);
// day = 'Tuesday';
// console.log('the day is: ' + day);
//
// day = 'Thursday';
// console.log('the day is: ' + day);
//
// day = 1;
// console.log('the day is: ' + day);

var monday = 'monday';
var tuesday = 'tuesday';
Expand All @@ -25,13 +28,13 @@ tuesday = wednesday;

var number = 1;
var numberString = '1';
// console.log('the variable number contains: ' + number);
// console.log('the variable numberString contains: ' + numberString);
console.log('the variable number contains: ' + number);
console.log('the variable numberString contains: ' + numberString);

// TODO: What if we look at these in the console?
// In the console, type:
// number
// numberString

// console.log('the type of variable number is: ' + typeof number);
// console.log('the type of variable numberString is: ' + typeof numberString);
console.log('the type of variable number is: ' + typeof number);
console.log('the type of variable numberString is: ' + typeof numberString);
Empty file added newfile.md
Empty file.
22 changes: 22 additions & 0 deletions notes/monday.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
.md- markdown, formatted html

-Forking- top right of repository page-

atom . =open
control ` to open terminal in atom

after changes- git add
stage/rough draft- git add "file name"
actually commit/snapshot - git commit -m "git message, start with present tense verb"
push- git push origin master

Command Line:
pwd- present working directory
ls- list
cd= back to home
ls .. -list previous directory
cd ..- back to parent directory
control L- clear
cd - = go back to last directory
!!- do command again
history- history of commands during this session
1 change: 1 addition & 0 deletions notes/script.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
var myString = 'my string';
1 change: 1 addition & 0 deletions notes/thursday.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
new
21 changes: 21 additions & 0 deletions notes/tuesday.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
branch- git checkout -b feature/"something"
can branch repository, work in a separate track and merge later.

ssh key lets you (stable shell) not have to put in password all the time

REPL: read evaluate print loop

single or double quotes are interchangeable

console in dev tools chrome
step by step in sources tab dev tools

cancatonating- a number added with a string will transform the number to a string and jam them together.

double equal sign is checking for truthiness- comparison but not strict, triple equals is exact match, singe equals is assignment/definition

use browser console for now, but you can add a console directly into atom.

git log- most recent changes

git checkout "branch name"
11 changes: 11 additions & 0 deletions notes/wednesday.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
-add a remote "git remote add upstream (copied ssh repository url)"
-a way to connect my current working directory/local to the original repository and to merge with it.

fetch- fetch updates from remote- not merging
pull- fetch updates from remote, and merging

In atom, hit control shift m to see markdown preview in atom

vi- editor you use that is more powerful and interfaced with through terminal. can add vi plug in within atom, good to know basics.

"touch" with "file name" creates an empty file in terminal