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
1. | |
CREATE TABLE animals | |
(animal_id NUMBER(6), | |
name VARCHAR2(25), | |
license_tag_number NUMBER(10), | |
admit_date DATE CONSTRAINT animals_admit_date_nn NOT NULL, | |
adoption_id NUMBER(5), | |
vaccination_date DATE CONSTRAINT animals_vaccination_date_nn NOT NULL, | |
CONSTRAINT animals_animal_id_pk PRIMARY KEY (animal_id), | |
CONSTRAINT animals_license_tag_number_uk UNIQUE (license_tag_number)); |
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> | |
<title>Message</title> | |
<link rel="stylesheet" href="css/style.css" /> | |
</head> | |
<body> | |
<h1 onmouseover="updateMessage()">TravelWorthy</h1> | |
<div id="message">Welcome to our site!</div> | |
<script src="js/basic-function.js"></script> |
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 msg = 'Sign up to receive our newsletter for 10% off!'; | |
function updateMessage() { | |
var el = document.getElementById('message'); | |
el.textContent = msg; | |
} |
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
import webbrowser | |
import os | |
import re | |
# Styles and scripting for the page | |
main_page_head = ''' | |
<head> | |
<meta charset="utf-8"> | |
<title>Fresh Tomatoes!</title> |
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
import fresh_tomatoes | |
import media | |
#Toy Story instance | |
toy_story = media.Movie("Toy Story", | |
"Andy's toys come to life", | |
"81 minutes", | |
"http://upload.wikimedia.org/wikipedia/en/1/13/Toy_Story.jpg", | |
"https://www.youtube.com/watch?v=vwyZH85NQC4") |
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
import webbrowser | |
class Movie(): | |
"""This class provides a way to store movie related information""" | |
VALID_RATINGS = ["G", "PG", "PG-13", "R"] | |
def __init__(self, movie_title, movie_storyline, movie_duration, poster_image, trailer_youtube): | |
self.title = movie_title | |
self.storyline = movie_storyline |
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
package battleshipgame; | |
public class battleship { | |
public static void main(String[] args) { | |
actiongame playGame = new actiongame(); | |
playGame.startGame(); | |
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
package battleshipgame; | |
import java.util.Scanner; | |
import java.util.Scanner; | |
public class actiongame { | |
Gameboard gameboard1 = new Gameboard(); | |
Scanner input = new Scanner(System.in); | |
public void startGame(){ |
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
jQuery(document).ready(function($)) { | |
/* Stick navigation to the top of the page */ | |
var stickyNavTop = $('.main-head-wrap').offset().top; | |
$(window).scroll(function(){ | |
var scrollTop = $(window).scrollTop(); | |
if (scrollTop > stickyNavTop) { | |
$('.main-head-wrap').addClass('sticky-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
/* | |
Theme Name: Ample Child Theme | |
Template: ample | |
*/ | |
@import url("./ample/style.css"); | |
@import url('https://fonts.googleapis.com/css?family=Dancing+Script|Parisienne|Pinyon+Script|Tangerine'); | |
header#masthead.site-header |
NewerOlder