Skip to content

Instantly share code, notes, and snippets.

View andymboyle's full-sized avatar

Andy Boyle andymboyle

View GitHub Profile
@andymboyle
andymboyle / starter-bootstrap.html
Created February 23, 2016 17:28
Starter bootstrap template
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
<meta name="description" content="">
<meta name="author" content="">
@andymboyle
andymboyle / bootstrap.html
Created February 23, 2016 17:25
basic bootstrap
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
<title>Bootstrap 101 Template</title>
<!-- Bootstrap -->
$(document).ready(function() {
$("#cool").click(function() {
$(".whatever-div").css("background-color","blue"); //edit, body must be in quotes!
});
});
<html>
<head>
<title>Totally cool title</title>
</head>
<body>
<h1>This is a simple webpage</h1>
<p>It should have a pop-up.</p>
</body>
<script>
alert('I am doing some math. Here is 3 times 8, which equals ' + 3*7)
@andymboyle
andymboyle / problem2.html
Created February 16, 2016 03:15
JS -- Homework #2
<html>
<head>
<title>Totally cool title</title>
<style>
.radtastic {
background-color: yellow;
font-size: 14px;
}
.omgwhat {
@andymboyle
andymboyle / problem1.html
Created February 16, 2016 03:11
JS -- Homework #1
<html>
<head>
<title>Totally cool title</title>
</head>
<body>
<h1>This is a simple webpage</h1>
<p>And this is my simple paragraph.</p>
<h2>This headline is pretty cool. It should end right here.
<p>This is a paragraph. It should have normal styles.</p>
<p><a href="http://www.aol.com">This is a cool little link. It should be blue and underlined.</a></p>
curl -o tmp/production.dump `heroku pgbackups:url --remote production --app breaking-news` && pg_restore --verbose --clean --no-acl --no-owner -d bn_dev tmp/production.dump
<html>
<h1>Hello!</h1>
<h2>waddup</h2>
<div class="blah">
<p>Test test test!</p>
</div>
</html>
My grandma was a rad lady. Here are things I heard she did during her life, some of which may or may not be accurate:
Grew up in Iowa, helped build bomber planes during World War II, caught my teenage mom smoking in the basement, singlehandedly defeated Hans Gruber at the Nakatomi Plaza, would read that one "Sesame Street" book where Big Bird steps in a bunch of tomatoes and go "SPLAT!" and always make me laugh even if I asked her to read it to me ten times in a row and singlehandedly taught me the importance of comedic timing, worked in radio selling ads and occasionally being on the air, singlehandedly defeated the Cobra Kai, took the train into Chicago as a 19-year-old woman (very scandalous in the 40s), taught me to love reading, taught me how delicious Kraft macaroni and cheese always will be, singlehandedly defeated the Decepticons and saved the Earth, cried when I sang in competitions when I was a youngster and pushed me to study music for awhile thus leading me to the path I am on now, totally let h
@andymboyle
andymboyle / table-stuff.css
Created January 17, 2014 06:13
Make tables turn from horizontal into vertical, like a boss
@media only screen and (max-width: 550px) {
.col-label {
display: inline-block;
text-align: right;
font-weight: bold;
width: 110px;
}
/* Force table to not be like tables anymore */