This file contains 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
# run using: ruby binnary_search.rb | |
require "minitest/autorun" | |
def mid_point(min, max) | |
diff = max - min | |
mid_diff = (diff / 2).floor | |
mid_diff + min | |
end |
This file contains 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
/* | |
* Hi, Everybody. | |
* I'm Ezequiel and I'm going to teach you about JS Objects. | |
* | |
* Please note that I'll skip the theory, so anyone reading this gists must have | |
* experience on OOP JS. | |
* | |
* First of all, we must use auto-called JS functions to define a Class. | |
* If you don't know what an auto-called function is, please read about it in | |
* Mozilla Development Network. |
This file contains 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
<body> | |
<nav class="hidden-desktop">MI MENU</nav> | |
<div class="sliderpage"> | |
SLIDE | |
</div> | |
</body> |