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
| class Magical | |
| def power | |
| puts 'certain power a magical being would have' | |
| end | |
| end | |
| class Wizard < Magical | |
| def power | |
| puts 'The Ground Starts to Shake' | |
| end |
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
| Errno::EACCES: Permission denied - /Users/meaganwaller/.rvm/gems/ruby-1.9.3-p392/build_info/json-1.7.7.info | |
| An error occurred while installing json (1.7.7), and Bundler cannot continue. | |
| Make sure that `gem install json -v '1.7.7'` succeeds before bundling. | |
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
| def base_condition_for_comb(n,m) | |
| (1 == n) || (0 == m) || (m == n) | |
| end |
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
| <internal:gem_prelude>:1:in `require': cannot load such file -- rubygems.rb (LoadError) | |
| from <internal:gem_prelude>:1:in `<compiled>' |
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
| module TicTacToe | |
| class PlayerFactory | |
| def self.create(input) | |
| case input[:type] | |
| when :ai | |
| AI.new(input[:mark]) | |
| when :human | |
| Human.new(input[:mark]) | |
| else | |
| raise "Invalid Player Type" |
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
| class Animal | |
| def breathe(animal) | |
| if animal == "cat" | |
| puts "inhale and exhale" | |
| elsif animal == "dog" | |
| puts "inhale and exhale" | |
| elsif animal == "cow" | |
| puts "inhale and exhale" | |
| end | |
| end |
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
| class Mammal | |
| def breathe | |
| puts "inhale and exhale" | |
| end | |
| end | |
| class Cat < Mammal | |
| def speak | |
| puts "meow" | |
| end |
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
| class Rectangle | |
| attr_reader :width, :height | |
| def initialize(width, height) | |
| @width = width | |
| @height = height | |
| end | |
| def area | |
| @width * @height |
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
| 1. Upgraded to Mavericks OS last night | |
| 2. Went to use her computer this morning, turned her computer on, got to the log in screen and got an error saying "Problem Occured Has to Restart Report Sent to Apple" | |
| 3. Computer restarted on it's own | |
| 4. Same thing keeps happening, gets to where she logs in with her password, and the same error keeps coming up, and restarting on it's own. | |
| Her computer is stuck in a restart loop after upgrading to Mavericks. | |
| I've tried to help her with some basic stuff: | |
| - Her computer wasn't chiming with the start up tone, after resetting her SMC & PRAM the startup tone is back, but the problem is still happening. |
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
| package com.kata.junit; | |
| import org.junit.Before; | |
| import org.junit.Test; | |
| import java.util.ArrayList; | |
| import java.util.List; | |
| public class PrimeFactorsTest { | |
| private PrimeFactors primeFactors; |
OlderNewer