ls
cd <dir>
git clone <url>
git pull
git status
git add <file>
git commit -m "message"
git push
Get Updates
git pull
Commit Changes (locally)
git status
git add <file(s)>
git status
git commit -m "message"
Run git status
to remind yourself which changes you're actually committing.
Save Changes to Github
git pull
git status
git push
Run git pull
to make sure you're up to date. Run git status
to double-check that you've committed all of the changes you want to save.
Hadouken!
↓↘→ X
$ cd ~/Documents/IntroHCI
$ ls
lab1
I typed in $ cd
and ...
Don't type the $
. We are using the $
surrogate prompt to indicate lines which are commands to input. Then, we display lines of expected/example output without any $
prompt.
...
<link href="css/introHCI.css" rel="stylesheet">
...
...
<div class="project" id="project1">
...
<div class="project" id="project2">
...
...
.project {
margin-left: 20px;
}
p {
font-variant: small-caps;
}
.project p {
font-variant: small-caps;
}
#project1 {
font-variant: small-caps;
}
margin-left: 1px;
background-color: #ab1234;
padding: 1px;
width: 1px;
.project {
margin-left: 20px;
background-color: #deebf7;
padding: 20px;
width: 525px;
}
...
<!-- Bootstrap -->
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="css/bootstrap-theme.min.css" rel="stylesheet">
<link href="css/introHCI.css" rel="stylesheet">
...
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<script src="https://code.jquery.com/jquery.js"></script>
<!-- Include all compiled plugins (blelow), or include individual files as needed -->
<script src="js/bootstrap.min.js"></script>
...
...
<a href="project.html" class="thumbnail">
<img src="..." alt="..." class="img">
<p>...</p>
</a>
...
<body>
<div class="container">
...
<div class="jumbotron">
<h1>Michael Bernstein</h1>
<p>human-computer interaction · social computing · crowdsourcing</p>
</div>
...
<script src="https://code.jquery.com/jquery.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/introHCI.js"></script>
</body>
</html>
$("a.thumbnail").click(projectClick);
function projectClick(e) {
// prevent the page from reloading
e.preventDefault();
// In an event handler, $(this) refers to
// the object that triggered the event
$(this).css("background-color", "#7fff00");
}