Skip to content

Instantly share code, notes, and snippets.

View ezekielriva's full-sized avatar

Ezequiel Rivadeneira Lichardi ezekielriva

View GitHub Profile
@ezekielriva
ezekielriva / binnary_search.rb
Created November 20, 2015 04:40
Una lista de ejemplos en Ruby de las funciones que pueden estar en el parcial
# 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
@ezekielriva
ezekielriva / Object.js
Last active August 29, 2015 14:06
[PART 1] OOP Javascript. Object Definition.
/*
* 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.
@ezekielriva
ezekielriva / index.html
Last active December 19, 2015 15:29
Slider menu
<body>
<nav class="hidden-desktop">MI MENU</nav>
<div class="sliderpage">
SLIDE
</div>
</body>