Skip to content

Instantly share code, notes, and snippets.

@WizardNinja
WizardNinja / link_list.rb
Created December 3, 2013 01:38
my Implementation of a linked list, and more
@WizardNinja
WizardNinja / puppies.html
Created October 7, 2013 16:48
how I did my puppies
<html>
<head>
<title>Puppies</title>
<link rel="stylesheet" type="text/css" href="puppies.css">
<script src="puppies.js"></script>
</head>
<body>
<center>
<div class="top">
<h1>Puppies - wait, is that a puppy?! </h1>
@WizardNinja
WizardNinja / debug_1.md
Last active December 24, 2015 17:09 — forked from OfTheDelmer/debug_1.md

#Debugging (Use The Duck… )

Find the errors in the following

1.)

@WizardNinja
WizardNinja / animals.js
Created October 4, 2013 21:44
animals.js run this on repl.it
Animal = function(name,sound) {
if(name) {
this.name = name;
}
if(sound) {
this.sound = sound;
}
}
Animal.prototype = {
@WizardNinja
WizardNinja / atm.css
Created October 3, 2013 17:07
my ATM
@import url(http://fonts.googleapis.com/css?family=Oleo+Script);
@import url(http://fonts.googleapis.com/css?family=Ruluko);
#content {
margin: 0 auto;
text-align: center;
width: 700px;
}
#nav {
@WizardNinja
WizardNinja / rock.js
Created October 2, 2013 22:15
working javascript for pet rock!
// Generated by CoffeeScript 1.6.3
var userName;
var intervalSet = false;
function touchRock() {
if (userName === undefined ) {
userName = prompt("What is your name?");
alert("It's nice to meet you " + userName);
document.getElementById("rockImg").src = "rock2.jpeg";
}
@WizardNinja
WizardNinja / bowling.rb
Created October 1, 2013 23:48
my bowling class
class Bowling
attr_reader :score
def initialize
@score = 0
@spare = 0
@turn = 0
@strike = 0
@pins_this_frame = 0
@WizardNinja
WizardNinja / bowling_spec.rb
Created October 1, 2013 23:47
my spec.. not finished
require './bowling'
describe Bowling do
describe '#score' do
let(:game) { Bowling.new }
it 'should start at 0' do
game.score.should == 0
end
# ,o888888o. 8 8888 88 8 8888 8888888888',8888'
# . 8888 `88. 8 8888 88 8 8888 ,8',8888'
# ,8 8888 `8b 8 8888 88 8 8888 ,8',8888'
# 88 8888 `8b 8 8888 88 8 8888 ,8',8888'
# 88 8888 88 8 8888 88 8 8888 ,8',8888'
# 88 8888 `8. 88 8 8888 88 8 8888 ,8',8888'
# 88 8888 `8,8P 8 8888 88 8 8888 ,8',8888'
# `8 8888 ;8P ` 8888 ,8P 8 8888 ,8',8888'
# ` 8888 ,88'8. 8888 ,d8P 8 8888 ,8',8888'
@WizardNinja
WizardNinja / chooseYourOwnAdventure.rb
Created September 26, 2013 04:25
My choose your own adventure game.
# Choose your own adventure: redux
#printing the prompt
#reading input from the console
#return the input
def prompt_and_chomp(prompt)
puts prompt
gets.chomp
end