This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This is my first gist. It's pretty cool. | |
I don't think the queen is an animal. | |
Here's a bunch of edits that I made. | |
This is really cool. | |
Ain't nothin' but a guru thing, baby. | |
Two escalations make me crazy. | |
I've got my mind on my tickets, and my tickets on my mind. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var compare = function(choice1,choice2) | |
{ | |
if (choice1 === choice2) { | |
return "The result is a tie!"; | |
} | |
else if (choice1 === "rock") { | |
if(choice2 ==="scissors") { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var isEven = function(number) { | |
// Your code goes here! | |
if (number % 2 === 0) | |
return true; | |
else | |
return false; | |
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// behold, an object. | |
var neutralFolk = {}; | |
// when I go to check this, I get an "unexpected token ." syntax error. Why? | |
var enemies = { | |
enemies.khan = {}; | |
enemies.salazar = {}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// First we define zee objects... | |
var friends = { | |
bill: { | |
firstName: "Bill", | |
lastName: "Grates", | |
number: "613-555-7310", | |
address: ['123 Any Street', 'Ottawa, ON', 'K2P 1Y8'] }, | |
steve: { | |
firstName: "Steve", | |
lastName: "Jerbs", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// So here's my jQuery script. | |
$(document).ready(function(){ | |
$("#one").after("<p>Awesome funtimes for all!</p>"); | |
$("#two").after($("p")); | |
$("p").remove(); | |
}); | |
//how does it know that by "p" I mean my paragraph? I don't declare it as a variable... | |
// but it still moves it after #two and removes it... why is that? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
app.controller('MainController', ['$scope', function($scope) { | |
$scope.exercises = [ | |
{ | |
icon: 'img/pushup.jpg', | |
name: 'Pushups', | |
count: 20 | |
}, | |
{ | |
icon: 'img/squat.jpg', | |
name: 'Squats', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html> | |
<head> | |
<link href="https://s3.amazonaws.com/codecademy-content/projects/bootstrap.min.css" rel="stylesheet" /> | |
<link href='https://fonts.googleapis.com/css?family=Oswald:400,700' rel='stylesheet' type='text/css'> | |
<link href="css/main.css" rel="stylesheet" /> | |
<script src="js/vendor/angular.min.js"></script> | |
</head> | |
<body ng-app="MoveLogApp"> | |
<div class="header"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
app.controller('MainController', ['$scope', function($scope) { | |
$scope.move = { | |
icon: 'img/move.jpg', | |
title: 'MOVE', | |
developer: 'MOVE, Inc.', | |
price: 0.99 | |
}; | |
$scope.shutterbugg = { | |
icon: 'img/shutterbugg.jpg', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html> | |
<head> | |
<link href="https://s3.amazonaws.com/codecademy-content/projects/bootstrap.min.css" rel="stylesheet" /> | |
<link href="css/main.css" rel="stylesheet" /> | |
<!-- Include the AngularJS library --> | |
<script src="//ajax.googleapis.com/ajax/libs/angularjs/1.3.5/angular.min.js"></script> | |
</head> | |
<body ng-app="AppMarketApp"> |
OlderNewer