Skip to content

Instantly share code, notes, and snippets.

View mknudsen01's full-sized avatar

Matthew Knudsen mknudsen01

View GitHub Profile
body {
background-image: url('http://pcmreviews.com/news/wp-content/uploads/2012/01/Red-carpet.jpg');
background-size: cover;
background-repeat: no-repeat;
background-position: center;
color: white;
font-family: 'Parisienne', cursive;
}
.header{
@mknudsen01
mknudsen01 / pig_latin.rb
Created January 31, 2014 07:14
Igpay Atinlay Onvertercay
def pig_latin_sentence(sentence)
if sentence[-1] == "."
temp = sentence.split('')
temp.pop
sentence = temp.join('')
end
words = sentence.split(' ')
piggied = []
words.each do |word|
@mknudsen01
mknudsen01 / jquery_example.html
Last active January 2, 2016 22:59 — forked from dbc-challenges/jquery_example.html
Intro to jQuery for Phase 0
<!DOCTYPE html>
<html>
<head>
<title>DOM manipulation with jQuery</title>
<!-- Add a link to jQuery CDN here script here -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script type="text/javascript" src="js/jquery_example.js"></script>
class BoggleBoard
def initialize (board)
@board = board
end
def create_word(*coords)
coords.map{|coord| @board[coord.first][coord.last]}.join("")
end
def get_row(row)