I hereby claim:
- I am gsperka on github.
- I am gsperka_dev (https://keybase.io/gsperka_dev) on keybase.
- I have a public key ASClO3_rHYn2d-6mWIE-FUYBe-7PQ5tJ6p6UsH2GmIaukAo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| class MotorVehicle | |
| def initialize(args={}) | |
| @color = args[:color] | |
| @wheels = args[:wheels] | |
| end | |
| def brake | |
| @status = :stopped | |
| end |
| // shorthand for $(document).ready(); | |
| $(function(){ | |
| $("button").click(function(e){ | |
| e.preventDefault(); | |
| var email = $("#email").val(); | |
| var password = $("#password").val(); | |
| checkError(email, password); | |
| }); | |
| // Shorthand for $(document).ready(); | |
| $(function(){ | |
| $('#previous_frame').on("click",function(){ | |
| var $last = $('.frames li:last-child') | |
| $('.frames').prepend($last) | |
| $last.css({left:'-33%'}) | |
| $last.animate({left:'0%'}) | |
| }); | |
| //------------------------------------------------------------------------------------------------------------------ | |
| // YOUR CODE: Create your Zoo "object literal" and Animal "constructor" and "prototypes" here. | |
| //------------------------------------------------------------------------------------------------------------------ | |
| var Animal = function(name, legs) { | |
| this.name = name; | |
| this.legs = legs; | |
| }; | |
| Animal.prototype.identify = function() { | |
| return "I am a " + this.name + " with " + this.legs + " legs."; |
| <!doctype html> | |
| <html> | |
| <head> | |
| <link rel="stylesheet" href="http://cdn.jsdelivr.net/normalize/2.1.0/normalize.css"> | |
| <link rel="stylesheet" href="main.css"> | |
| <link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700,800"> | |
| <link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Lato:100,900"> | |
| <link rel="stylesheet" href="http://cdnjs.cloudflare.com/ajax/libs/font-awesome/3.0.2/css/font-awesome.min.css"> | |
| </head> |
| <!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="jquery_example.js"></script> | |
| </head> |
| class BoggleBoard | |
| def initialize(dice_grid) | |
| @dice_grid = dice_grid | |
| end | |
| def create_word(board, *coords) | |
| coords.map { |coord| @dice_grid[coord.first][coord.last]}.join("") | |
| end |