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
license: gpl-3.0 |
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
touch README.md | |
git init | |
git add README.md | |
git commit -m "first commit" | |
git remote add origin git@github.com:alexpchin/<reponame>.git | |
git push -u origin master | |
##Push an existing repository from the command line | |
git remote add origin git@github.com:alexpchin/<reponame>.git | |
git push -u origin master |
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>SOUND</title></head> | |
<body> | |
<div>Frequence: <span id="frequency"></span></div> | |
<script type="text/javascript"> | |
var audioCtx = new (window.AudioContext || window.webkitAudioContext)(); | |
var oscillatorNode = audioCtx.createOscillator(); | |
var gainNode = audioCtx.createGain(); |
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
#! /bin/bash | |
# ECHO COMMAND | |
# echo Hello World! | |
# VARIABLES | |
# Uppercase by convention | |
# Letters, numbers, underscores | |
NAME="Bob" | |
# echo "My name is $NAME" |
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
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> | |
<script type="text/javascript"> | |
// The below code fills in the first row of the table | |
var movie = "Mr. Nobody"; | |
var queryURL = "https://www.omdbapi.com/?t=" + movie + "&y=&plot=short&apikey=trilogy"; | |
$.ajax({ | |
url: queryURL, | |
method: "GET" | |
}).then(function(response) { |
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
// Slideshow Activity | |
// Students: follow the instructions below: | |
// TODO: Put links to our images in this image array. | |
var images = ["images/bootstrap.png", | |
"images/github-logo.jpg", | |
"images/logo_JavaScript.png"]; | |
// Variable showImage will hold the setInterval when we start the slideshow | |
var showImage; |
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
//Random Number between Min and Max | |
function getRandomInt(min, max) { | |
return Math.floor(Math.random() * (max - min + 1)) + min; |
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
// Gets Link for Theme Song | |
var audioElement = document.createElement("audio"); | |
audioElement.setAttribute("src", "Assets/captainplanet24.mp3"); | |
// Theme Button | |
$("#musicControls").on("click", ".theme-button", function() { | |
audioElement.play(); | |
}).on("click", ".pause-button", function() { | |
audioElement.pause(); | |
}); |
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
// Keyboard move controls | |
$(document).keyup(function(e) { | |
switch (e.which) { | |
// Move Buttons (Keyboard Down) | |
case 40: | |
captainPlanet.animate({ top: "+=200px" }, "normal"); | |
break; | |
// Move Buttons (Keyboard Right) |
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
<div id="drink-options"></div> | |
<script type="text/javascript"> | |
// Array holds all of the drinks available | |
var drinkList = [ | |
"Coffee: $5", | |
"Espresso: $7", | |
"Cappuccino: $6", | |
"Latte: $4", |