Skip to content

Instantly share code, notes, and snippets.

View geografa's full-sized avatar
🤓
Open to work

Rafa Gutierrez geografa

🤓
Open to work
View GitHub Profile
@geografa
geografa / crawlDirectory.php
Created February 28, 2011 19:51
scans a specified directory and echos the results in a clickable list.
$dir = scandir("review");
$result = count($dir);
$i=3;
while($i<=$result) {
echo "<a href='/folder/to/be/crawled/$dir[$i]'>" . $dir[$i] . "</a><br />";
$i++;
}
@geografa
geografa / haversine_bearing.py
Created November 15, 2011 07:38
Haversine formula example in Python for calculating bearing
#!/usr/bin/env python
# Haversine formula example in Python for Calculating Bearing
# Inspired from http://www.movable-type.co.uk/scripts/latlong.html
import math
def bearing(origin, destination):
lat1, lon1 = origin
lat2, lon2 = destination
.slider-wrapper
#slider
.slide1
= image_tag "slider-images/1slide-cropped-tag-line-trans.jpg"
.slide2
= image_tag "slider-images/2slide-tag-line-trans.jpg"
.slide3
= image_tag "slider-images/3slide-cropped-tag-line.jpg"
#slider-direction-nav
#slider-control-nav
@geografa
geografa / map.geojson
Created September 4, 2013 15:48
via:geojson.io
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
/Users/grafa/.rvm/gems/ruby-1.9.3-p392/gems/commander-4.1.5/lib/commander/command.rb:169:in `parse_options_and_call_procs': missing argument: --limit_posts (OptionParser::MissingArgument)
from /Users/grafa/.rvm/gems/ruby-1.9.3-p392/gems/commander-4.1.5/lib/commander/command.rb:155:in `run'
from /Users/grafa/.rvm/gems/ruby-1.9.3-p392/gems/commander-4.1.5/lib/commander/runner.rb:402:in `run_active_command'
from /Users/grafa/.rvm/gems/ruby-1.9.3-p392/gems/commander-4.1.5/lib/commander/runner.rb:78:in `run!'
from /Users/grafa/.rvm/gems/ruby-1.9.3-p392/gems/commander-4.1.5/lib/commander/delegates.rb:11:in `run!'
from /Users/grafa/.rvm/gems/ruby-1.9.3-p392/gems/commander-4.1.5/lib/commander/import.rb:10:in `block in <top (required)>'

RedCloth-4.2.3 abstract-1.0.0 actionmailer-2.3.10 actionmailer-3.0.3 actionmailer-3.0.5 actionpack-2.3.10 actionpack-3.0.3 actionpack-3.0.5 activemodel-3.0.3 activemodel-3.0.5

RedCloth-4.2.3
abstract-1.0.0
actionmailer-2.3.10
actionmailer-3.0.3
actionmailer-3.0.5
actionpack-2.3.10
actionpack-3.0.3
actionpack-3.0.5
activemodel-3.0.3
activemodel-3.0.5
xcode command line tools updated
ruby 1.8.7 (2012-02-08 patchlevel 358) [universal-darwin12.0]
jekyll 1.0.2
installed pygments
Git Status:
[mapbox.github.com (spaceship)]$ git st
# On branch spaceship
# Untracked files:
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8 />
<title></title>
<script src='//api.tiles.mapbox.com/mapbox.js/v1.4.0/mapbox.js'></script>
<link href='//api.tiles.mapbox.com/mapbox.js/v1.4.0/mapbox.css' rel='stylesheet' />
<!--[if lte IE 8]>
<link href='//api.tiles.mapbox.com/mapbox.js/v1.4.0/mapbox.ie.css' rel='stylesheet'>
<![endif]-->
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8 />
<title></title>
<script src='//api.tiles.mapbox.com/mapbox.js/v1.4.0/mapbox.js'></script>
<link href='//api.tiles.mapbox.com/mapbox.js/v1.4.0/mapbox.css' rel='stylesheet' />
<!--[if lte IE 8]>
<link href='//api.tiles.mapbox.com/mapbox.js/v1.4.0/mapbox.ie.css' rel='stylesheet'>
<![endif]-->