Skip to content

Instantly share code, notes, and snippets.

View stephanielingwood's full-sized avatar

Stephanie Lingwood stephanielingwood

View GitHub Profile
@stephanielingwood
stephanielingwood / gist:4e3d06d284c82ec057a7
Created December 12, 2015 18:17
CSS template for nav bar on the left
/* Note to students: Some properties are given to you to fill out,
others you can modify as they stand, and if you have time,
there are definitely some properties you should add!*/
html {
height: 100%;
}
body {
height: 100%;
}
@stephanielingwood
stephanielingwood / top_nav.css
Last active November 17, 2018 08:30
CSS styling template for a nav bar on the top
/* Note to students: Some properties are given to you to fill out,
others you can modify as they stand, and if you have time,
there are definitely some properties you should add!*/
html {
height: 100%;
}
body {
width: 800px;
height: 100%;
@stephanielingwood
stephanielingwood / Main
Created October 29, 2014 00:44
Modules
var myModule = require("./formodular");
myModule(process.argv[2], process.argv[3], function(err, data) {
if (err) {
throw err;
}
for (i = 0; i < data.length; i++) {
console.log(data[i]);
}
});
$(document).ready(function() {
$('#show-tab').addClass('active-tab');
$('#show-content').addClass('active-content');
$('.tabs').on('click', function() {
var selected = $(this).attr('.tabs > class');
$('.tab-text').fadeOut('slow');
$('.tab-content').removeClass('active-content');
$('.tabs').removeClass('active-tab');
$('this').addClass('active-tab');
$('.tab-content' + '.' + selected).fadeIn('slow');
@stephanielingwood
stephanielingwood / CardGame
Last active August 29, 2015 14:02
CardGame
<script>
var debug = true
//NEED WELCOME/INTRO
//create class of cards
function Card(rank, suit) {
this.rank = rank;
this.suit = suit;
<script>
var debug = false
alert("Welcome to the Number-Guessing game! This is a two-person game. You can play against yourself, but it's more fun if you grab a friend to join you!");
function User(name, guess, howClose) {
this.name = name;
this.guess = guess;
this.howClose = howClose;
this.askName = function() {
@stephanielingwood
stephanielingwood / gist:773161ccee6de73fc303
Created June 11, 2014 07:18
NumberGuessingWithObjects
<script>
keepPlaying = true
alert("Welcome to the Number-Guessing game! This is a two-person game. You can play against yourself, but it's more fun if you grab a friend to join you!");
var name1 = prompt("Let's get started. Type the name of the first player here:");
var name2 = prompt("Thanks. Now, type the name of the second player here:")
@stephanielingwood
stephanielingwood / NumberGuessingAssignment2
Last active August 29, 2015 14:02
Stephanie Lingwood's Assignment 2
<script>
keepPlaying = true
alert("Welcome to the Number-Guessing game!");
do {
var randomNumber;