Skip to content

Instantly share code, notes, and snippets.

View mantisbayne's full-sized avatar
💭
Coding

Meredith Bayne mantisbayne

💭
Coding
  • Austin, TX
View GitHub Profile
<!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>
@mantisbayne
mantisbayne / mantis.html
Last active December 21, 2015 17:58
.js file not loading
<!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>
button {
height: 90px;
width: 180px;
border: 2px solid #0000CC;
font-family: Arial;
font-size: 36px;
background-color: #66FFFF;
margin: auto;
}
@mantisbayne
mantisbayne / original code we are fixing
Created November 28, 2013 00:23
Codecademy trouble
$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
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)
$(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;
$(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;
$(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;
$(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;
@mantisbayne
mantisbayne / PONG
Created December 11, 2013 21:19
PONG
<!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>