Skip to content

Instantly share code, notes, and snippets.

View Macariom01's full-sized avatar

Mark Macario Macariom01

  • San Francisco
View GitHub Profile
@Macariom01
Macariom01 / gonVideosData
Created September 12, 2014 00:17
valNewsDemo3
!DOCTYPE html>
<html lang="en">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
@Macariom01
Macariom01 / gon var demo
Created September 10, 2014 17:37
Shows how to access data form a gon var
// 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...
# 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