This file contains 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> | |
<title>Meredith's Awesome Site</title> | |
<script type='text/javascript' src='http://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js'></script> | |
<link type="text/javascript" src="meredithsite.js"/> | |
<link rel="stylesheet" type="text/css" href="meredithsite.css"/> | |
</head> | |
<body> | |
<div class="fun-head"><h1>Meredith's Favorite Movies 2k13</h1></div> |
This file contains 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> | |
<title>Meredith's Awesome Site</title> | |
<script type='text/javascript' src='http://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js'></script> | |
<link type="text/javascript" src="meredithsite.js"/> | |
<link rel="stylesheet" type="text/css" href="meredithsite.css"/> | |
</head> | |
<body> | |
<div class="fun-head"><h1>Meredith's Favorite Movies 2k13</h1></div> |
This file contains 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
$VERBOSE = nil # We'll explain this at the end of the lesson. | |
require 'prime' # This is a module. We'll cover these soon! | |
def first_n_primes(n) | |
unless n.is_a? Integer | |
return "n must be an integer." | |
end | |
if n <= 0 |
This file contains 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
def first_n_primes(n) | |
return "n must be an integer." unless n.is_a? Integer | |
return "n must be greater than 0." if n <= 0 | |
prime_array = [] | |
prime = Prime.new | |
for num in (1..n) |
This file contains 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
$(function() { | |
//Setting width, height and context for the canvas | |
var width = 1000, | |
height = 600, | |
//Shorthand for JQuery object | |
$canvas = $('canvas'), | |
//JQuery returns an array, so we need the first object | |
canvas = $canvas[0], | |
context = canvas.getContext('2d'); | |
canvas.width = width; |
This file contains 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
$(function() { | |
//Setting width, height and context for the canvas | |
var width = 1000, | |
height = 600, | |
//Shorthand for JQuery object | |
$canvas = $('canvas'), | |
//JQuery returns an array, so we need the first object | |
canvas = $canvas[0], | |
context = canvas.getContext('2d'); | |
canvas.width = width; |
This file contains 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
$(function() { | |
//Setting width, height and context for the canvas | |
var width = 1000, | |
height = 600, | |
//Shorthand for JQuery object | |
$canvas = $('canvas'), | |
//JQuery returns an array, so we need the first object | |
canvas = $canvas[0], | |
context = canvas.getContext('2d'); | |
canvas.width = width; |
This file contains 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
$(function() { | |
//Setting width, height and context for the canvas | |
var width = 1000, | |
height = 600, | |
//Shorthand for JQuery object | |
$canvas = $('canvas'), | |
//JQuery returns an array, so we need the first object | |
canvas = $canvas[0], | |
context = canvas.getContext('2d'); | |
canvas.width = width; |
This file contains 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> | |
<title>PONG</title> | |
<link href="http://netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css" rel="stylesheet"> | |
</head> | |
<body> | |
<script type="text/javascript" src="http://code.jquery.com/jquery-2.0.3.min.js"></script> | |
<script type="text/javascript" src="scripts/trent.js"></script> | |
<canvas></canvas> |
OlderNewer