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
!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
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
// the gon.videos var is an array of objects | |
if (gon.videos.length >= 1){ | |
for ( var i = 0; i < gon.videos.length; i++ ){ | |
if( (gon.videos[i].lat < latUpperBound) && (gon.videos[i].lat > latLowerBound) && (gon.videos[i].long < lngUpperBound) && (gon.videos[i].long > lngLowerBound) ){ | |
videoList.push(gon.videos[i]); | |
} // closes if( (gon.videos[i].lat... | |
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
# A simple exercise in Ruby for substituting X for E in the alphabet | |
# and using nested loops to print each letter. | |
# Make sure you have Ruby 1.9 or above installed | |
# then to run simply type ruby then the file name | |
alpha = ('A'..'Z').to_a | |
alpha.to_s | |
i = 0 | |
while i < alpha.length do | |
count = 0 |