Skip to content

Instantly share code, notes, and snippets.

@Keenangp
Keenangp / index.html
Created July 19, 2017 04:02
kgportfolio
<!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">
<title>Keenan</title>
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
@Keenangp
Keenangp / js_generating_numbers_reg_expressions.js
Created January 21, 2017 01:03
Generating Random Numbers and Regular Expressions with JS
/* Generate Random Fractions with Javascript */
function randomFraction() {
console.log(Math.random());
return;
}
randomFraction();
/* Generating a random whole number */
@Keenangp
Keenangp / js_loops.js
Created January 20, 2017 05:00
Practicing JS loops
/* Iterate Through an Array with a For Loop */
var arr = [10, 9, 8, 7, 6];
for (var i = 0; i < arr.length; i++) {
console.log(arr[i])
} /* i++ will add 1 each time */
/* ---------------------------------- */
@Keenangp
Keenangp / contacts.css
Created December 16, 2016 05:26
html for an invoicing App.
/* Body-wide CSS */
body {
font-family: Arial, Helvetica, sans-serif;
}
/* table styles */
table,
th,
@Keenangp
Keenangp / RPG_game.rb
Last active May 9, 2016 06:09
Rock Paper Scissors game
loop do
puts "Please enter rock, paper, or scissors (Type exit to close program)"
player_input = gets.chomp.downcase
if player_input == "rock"
player_input = 2
elsif player_input == "scissors"
player_input = 1
elsif player_input == "paper"
class Pet #parent class
attr_reader :color, :breed
attr_accessor :name
def initialize(color, breed)
@color = color
@breed = breed
@hungry = true
@pirate = false
@Keenangp
Keenangp / index.html
Last active April 5, 2016 22:57
Product_Display, first portfolio project
<!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">
<title>Product Display</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">
<link rel="stylesheet" href="../css/styles.css">
@Keenangp
Keenangp / index.html
Last active April 24, 2016 04:34
Calculator Layout with CSS/HTML
<!DOCTYPE <!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">
<title>My Calculator</title>
<link rel="stylesheet" href="../css/styles.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">
<!--[if lt IE 9]>
@Keenangp
Keenangp / about_style.css
Last active April 20, 2016 07:17
html page about me, linked to portfolio, quick mockup
/* Universal Values *****************************************************************/
* {box-sizing: border-box;}
* h1,
h2,
h3 {
font-weight: 200;
}
html,